diff --git a/dist/cli/index.js b/dist/cli/index.js index 291c972..218c30c 100755 --- a/dist/cli/index.js +++ b/dist/cli/index.js @@ -22,4 +22,4 @@ module.exports=function(t,e){"use strict";var n={};function __webpack_require__( --name, -n SomeFilename Filename to be used (will be pascal cased by CLI) --version, -v Show version --help, -h Show help -`;const k=o()({"--repo":String,"--dest":String,"--html":Boolean,"--vue":Boolean,"--template":Boolean,"--page":Boolean,"--component":Boolean,"--layout":Boolean,"--name":String,"--version":Boolean,"--help":Boolean,"-h":"--help","-v":"--version","-n":"--name"});R({help:O,args:k})},365:function(t,e,n){const r=n(331);function buildGraph(){const t={};const e=Object.keys(r);for(let n=e.length,r=0;r{return[...new Set([].concat(...t))]})},378:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);const s=n(622);const o=n(730);const a=n(708);const c=n(493);const l=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=r(i.readFile);const h=t=>e=>{if(e.startsWith("!")){return"!"+s.posix.join(t,e.slice(1))}return s.posix.join(t,e)};const f=(t,e)=>{const n=c(s.relative(e.cwd,s.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(h(n))};const p=t=>{return t.reduce((t,e)=>{t.add(f(e.content,{cwd:e.cwd,fileName:e.filePath}));return t},a())};const d=(t,e)=>{if(s.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return s.join(t,e)};const y=(t,e)=>{return n=>t.ignores(c(s.relative(e,d(e,n))))};const m=async(t,e)=>{const n=s.join(e,t);const r=await u(n,"utf8");return{cwd:e,filePath:n,content:r}};const g=(t,e)=>{const n=s.join(e,t);const r=i.readFileSync(n,"utf8");return{cwd:e,filePath:n,content:r}};const v=({ignore:t=[],cwd:e=process.cwd()}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=v(t);const e=await o("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=await Promise.all(e.map(e=>m(e,t.cwd)));const r=p(n);return y(r,t.cwd)});t.exports.sync=(t=>{t=v(t);const e=o.sync("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=e.map(e=>g(e,t.cwd));const r=p(n);return y(r,t.cwd)})},385:function(t,e){"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,n,r=1,i)=>{if(i===false)return false;if(!e.isInteger(t)||!e.isInteger(n))return false;return(Number(n)-Number(t))/Number(r)>=i});e.escapeNode=((t,e=0,n)=>{let r=t.nodes[e];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const n=t=>{for(let r=0;r{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(n!==null){return e(n,undefined)}for(const e of r){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const n=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},397:function(t){"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},406:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(675);const i=n(416);const s=n(190);class SyncReader extends s.default{constructor(){super(...arguments);this._scandir=r.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const n=this._scandir(t,this._settings.fsScandirSettings);for(const t of n){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!i.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const n=t.path;if(e!==undefined){t.path=i.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},409:function(t,e){"use strict";e.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"]]);e.code=new Map(Array.from(e.name).map(t=>[t[1],t[0]]))},412:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(762);const o=n(747);const a=n(862);const c=n(616);const l=n(622);const u=n(728);const h=t.exports=((t,e,n)=>{const i=r(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);return i.sync?f(i,e):d(i,e,n)});const f=(t,e)=>{const n=new i.Sync(t);let r=true;let s;let a;try{try{s=o.openSync(t.file,"r+")}catch(e){if(e.code==="ENOENT")s=o.openSync(t.file,"w+");else throw e}const i=o.fstatSync(s);const c=Buffer.alloc(512);t:for(a=0;ai.size)break;a+=n;if(t.mtimeCache)t.mtimeCache.set(e.path,e.mtime)}r=false;p(t,n,a,s,e)}finally{if(r)try{o.closeSync(s)}catch(t){}}};const p=(t,e,n,r,i)=>{const s=new a.WriteStreamSync(t.file,{fd:r,start:n});e.pipe(s);y(e,i)};const d=(t,e,n)=>{e=Array.from(e);const r=new i(t);const s=(e,n,r)=>{const i=(t,n)=>{if(t)o.close(e,e=>r(t));else r(null,n)};let s=0;if(n===0)return i(null,0);let a=0;const c=Buffer.alloc(512);const l=(r,h)=>{if(r)return i(r);a+=h;if(a<512&&h)return o.read(e,c,a,c.length-a,s+a,l);if(s===0&&c[0]===31&&c[1]===139)return i(new Error("cannot append to compressed archives"));if(a<512)return i(null,s);const f=new u(c);if(!f.cksumValid)return i(null,s);const p=512*Math.ceil(f.size/512);if(s+p+512>n)return i(null,s);s+=p+512;if(s>=n)return i(null,s);if(t.mtimeCache)t.mtimeCache.set(f.path,f.mtime);a=0;o.read(e,c,0,512,s,l)};o.read(e,c,0,512,s,l)};const c=new Promise((n,i)=>{r.on("error",i);let c="r+";const l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+"){c="w+";return o.open(t.file,c,l)}if(u)return i(u);o.fstat(h,(o,c)=>{if(o)return i(o);s(h,c.size,(s,o)=>{if(s)return i(s);const c=new a.WriteStream(t.file,{fd:h,start:o});r.pipe(c);c.on("error",i);c.on("close",n);m(r,e)})})};o.open(t.file,c,l)});return n?c.then(n,n):c};const y=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")c({file:l.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const m=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return c({file:l.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>m(t,e));else t.add(n)}t.end()}},413:function(t){t.exports=require("stream")},416:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[\\/]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,n){if(t===""){return e}return t+n+e}e.joinPathSegments=joinPathSegments},417:function(t){t.exports=require("crypto")},419:function(t,e,n){"use strict";const r=n(563);const i=n(125);const s=n(728);const o=n(712);const a=n(747);const c=n(622);const l=n(409);const u=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const p=Symbol("directory");const d=Symbol("symlink");const y=Symbol("hardlink");const m=Symbol("header");const g=Symbol("read");const v=Symbol("lstat");const b=Symbol("onlstat");const _=Symbol("onread");const w=Symbol("onreadlink");const S=Symbol("openfile");const E=Symbol("onopenfile");const R=Symbol("close");const O=Symbol("mode");const k=n(477);const x=n(3);const A=n(660);const C=k(class WriteEntry extends r{constructor(t,e){e=e||{};super(e);if(typeof t!=="string")throw new TypeError("path is required");this.path=t;this.portable=!!e.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=e.maxReadSize||u;this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.preservePaths=!!e.preservePaths;this.cwd=e.cwd||process.cwd();this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(!this.preservePaths&&c.win32.isAbsolute(t)){const e=c.win32.parse(t);this.path=t.substr(e.root.length);n=e.root}this.win32=!!e.win32||process.platform==="win32";if(this.win32){this.path=x.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=e.absolute||c.resolve(this.cwd,t);if(this.path==="")this.path="./";if(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.statCache.has(this.absolute))this[b](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[b](e)})}[b](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile())t.size=0;this.type=M(t);this.emit("stat",t);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[d]();default:return this.end()}}[O](t){return A(t,this.type==="Directory",this.portable)}[m](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[O](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 i({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)}[p](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[m]();this.end()}[d](){a.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[w](e)})}[w](t){this.linkpath=t;this[m]();this.end()}[y](t){this.type="Link";this.linkpath=c.relative(this.cwd,t);this.stat.size=0;this[m]();this.end()}[f](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const e=this.linkCache.get(t);if(e.indexOf(this.cwd)===0)return this[y](e)}this.linkCache.set(t,this.absolute)}this[m]();if(this.stat.size===0)return this.end();this[S]()}[S](){a.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[E](e)})}[E](t){const e=512*Math.ceil(this.stat.size/512);const n=Math.min(e,this.maxReadSize);const r=Buffer.allocUnsafe(n);this[g](t,r,0,r.length,0,this.stat.size,e)}[g](t,e,n,r,i,s,o){a.read(t,e,n,r,i,(a,c)=>{if(a){return this[R](t,()=>this.emit("error",a))}this[_](t,e,n,r,i,s,o,c)})}[R](t,e){a.close(t,e)}[_](t,e,n,r,i,s,o,a){if(a<=0&&s>0){const e=new Error("encountered unexpected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a>s){const e=new Error("did not encounter expected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a===s){for(let t=a;tt?this.emit("error",t):this.end())}if(n>=r){e=Buffer.allocUnsafe(r);n=0}r=e.length-n;this[g](t,e,n,r,i,s,o)}});class WriteEntrySync extends C{constructor(t,e){super(t,e)}[v](){this[b](a.lstatSync(this.absolute))}[d](){this[w](a.readlinkSync(this.absolute))}[S](){this[E](a.openSync(this.absolute,"r"))}[g](t,e,n,r,i,s,o){let c=true;try{const l=a.readSync(t,e,n,r,i);this[_](t,e,n,r,i,s,o,l);c=false}finally{if(c)try{this[R](t,()=>{})}catch(t){}}}[R](t,e){a.closeSync(t);e()}}const P=k(class WriteEntryTar extends r{constructor(t,e){e=e||{};super(e);this.preservePaths=!!e.preservePaths;this.portable=!!e.portable;this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=t.path;this.mode=this[O](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:e.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=t.linkpath;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(c.isAbsolute(this.path)&&!this.preservePaths){const t=c.parse(this.path);n=t.root;this.path=this.path.substr(t.root.length)}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new s({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(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({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);t.pipe(this)}[O](t){return A(t,this.type==="Directory",this.portable)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=e;return super.write(t)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});C.Sync=WriteEntrySync;C.Tar=P;const M=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=C},421:function(t,e,n){"use strict";const r=n(543);const i=n(815);const s=n(385);const o=(t="",e="",n=false)=>{let r=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return n?s.flatten(e).map(t=>`{${t}}`):e}for(let i of t){if(Array.isArray(i)){for(let t of i){r.push(o(t,e,n))}}else{for(let t of e){if(n===true&&typeof t==="string")t=`{${t}}`;r.push(Array.isArray(t)?o(i,t,n):i+t)}}}return s.flatten(r)};const a=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,c={})=>{t.queue=[];let l=c;let u=c.queue;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;u=l.queue}if(t.invalid||t.dollar){u.push(o(u.pop(),i(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(o(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=s.reduce(t.nodes);if(s.exceedsLimit(...a,e.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=r(...a,e);if(c.length===0){c=i(t,e)}u.push(o(u.pop(),c));t.nodes=[];return}let h=s.encloseBrace(t);let f=t.queue;let p=t;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;f=p.queue}for(let e=0;esuper.write(t));this.zip.on("end",t=>super.end());this.zip.on("drain",t=>this[P]());this.on("resume",t=>this.zip.resume())}else this.on("drain",this[P]);this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[p]=new l;this[v]=0;this.jobs=+t.jobs||4;this[m]=false;this[f]=false}[C](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t)this.write(t);this[f]=true;this[y]();return this}write(t){if(this[f])throw new Error("write after end");if(t instanceof s)this[w](t);else this[_](t);return this.flowing}[w](t){const e=T.resolve(this.cwd,t.path);if(this.prefix)t.path=this.prefix+"/"+t.path.replace(/^\.(\/+|$)/,"");if(!this.filter(t.path,t))t.resume();else{const n=new PackJob(t.path,e,false);n.entry=new c(t,this[x](n));n.entry.on("end",t=>this[b](n));this[v]+=1;this[p].push(n)}this[y]()}[_](t){const e=T.resolve(this.cwd,t);if(this.prefix)t=this.prefix+"/"+t.replace(/^\.(\/+|$)/,"");this[p].push(new PackJob(t,e));this[y]()}[S](t){t.pending=true;this[v]+=1;const e=this.follow?"stat":"lstat";M[e](t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)this.emit("error",e);else this[h](t,n)})}[h](t,e){this.statCache.set(t.absolute,e);t.stat=e;if(!this.filter(t.path,e))t.ignore=true;this[y]()}[E](t){t.pending=true;this[v]+=1;M.readdir(t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)return this.emit("error",e);this[R](t,n)})}[R](t,e){this.readdirCache.set(t.absolute,e);t.readdir=e;this[y]()}[y](){if(this[m])return;this[m]=true;for(let t=this[p].head;t!==null&&this[v]this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[k](t){this[v]+=1;try{return new this[A](t.path,this[x](t)).on("end",()=>this[b](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[P](){if(this[d]&&this[d].entry)this[d].entry.resume()}[O](t){t.piped=true;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});const e=t.entry;const n=this.zip;if(n)e.on("data",t=>{if(!n.write(t))e.pause()});else e.on("data",t=>{if(!super.write(t))e.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends D{constructor(t){super(t);this[A]=a}pause(){}resume(){}[S](t){const e=this.follow?"statSync":"lstatSync";this[h](t,M[e](t.absolute))}[E](t,e){this[R](t,M.readdirSync(t.absolute))}[O](t){const e=t.entry;const n=this.zip;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});if(n)e.on("data",t=>{n.write(t)});else e.on("data",t=>{super[C](t)})}}D.Sync=PackSync;t.exports=D},438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},439:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);async function isType(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{const s=await r(i[t])(n);return s[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{return i[t](n)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},442:function(t,e,n){const r=n(357);t.exports=(()=>{const t=new Map;const e=new Map;const{join:i}=n(622);const s=t=>i(t).split(/[\\\/]/).slice(0,-1).reduce((t,e)=>t.length?t.concat(i(t[t.length-1],e)):[e],[]);const o=new Set;const a=n=>{const r=e.get(n);if(!r)throw new Error("function does not have any path reservations");return{paths:r.paths.map(e=>t.get(e)),dirs:[...r.dirs].map(e=>t.get(e))}};const c=t=>{const{paths:e,dirs:n}=a(t);return e.every(e=>e[0]===t)&&n.every(e=>e[0]instanceof Set&&e[0].has(t))};const l=t=>{if(o.has(t)||!c(t))return false;o.add(t);t(()=>u(t));return true};const u=n=>{if(!o.has(n))return false;const{paths:i,dirs:s}=e.get(n);const a=new Set;i.forEach(e=>{const i=t.get(e);r.equal(i[0],n);if(i.length===1)t.delete(e);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach(t=>a.add(t))}});s.forEach(e=>{const i=t.get(e);r(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(e)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(n)});o.delete(n);a.forEach(t=>l(t));return true};const h=(n,r)=>{const i=new Set(n.map(t=>s(t)).reduce((t,e)=>t.concat(e)));e.set(r,{dirs:i,paths:n});n.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[r]);else n.push(r)});i.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[new Set([r])]);else if(n[n.length-1]instanceof Set)n[n.length-1].add(r);else n.push(new Set([r]))});return l(r)};return{check:c,reserve:h}})},468:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){return callFailureCallback(n,r)}if(!i.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(n,i)}e.fs.stat(t,(t,r)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(n,t)}return callSuccessCallback(n,i)}if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}callSuccessCallback(n,r)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},477:function(t){"use strict";t.exports=(t=>(class extends t{warn(t,e,n={}){if(this.file)n.file=this.file;if(this.cwd)n.cwd=this.cwd;n.code=e instanceof Error&&e.code||t;n.tarCode=t;if(!this.strict&&n.recoverable!==false){if(e instanceof Error){n=Object.assign(e,n);e=e.message}this.emit("warn",n.tarCode,e,n)}else if(e instanceof Error){this.emit("error",Object.assign(e,n))}else this.emit("error",Object.assign(new Error(`${t}: ${e}`),n))}}))},483:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=n(564);var i=n(622);var s=_interopDefault(n(821));var o=n(747);var a=_interopDefault(n(137));function resolvePath(t){return i.resolve.apply(null,t)}function normaliseArguments(t){var e=t.length;var n=true;var r=[];var i=[null];var s;for(s=0;s{const e=/^\\\\\?\\/.test(t);const n=/[^\u0000-\u0080]+/.test(t);if(e||n){return t}return t.replace(/\\/g,"/")})},507:function(t,e,n){"use strict";const r=n(357);const i=n(293).Buffer;const s=n(903);const o=e.constants=n(63);const a=n(563);const c=i.concat;const l=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const y=Symbol("onError");const m=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const _=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(t,e){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[b]=false;this[u]=t;this[h]=t.flush;this[f]=t.finishFlush;try{this[d]=new s[e](t)}catch(t){throw new ZlibError(t)}this[y]=(t=>{this[m]=true;this.close();this.emit("error",t)});this[d].on("error",t=>this[y](new ZlibError(t)));this.once("end",()=>this.close)}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[m]){r(this[d],"zlib binding closed");return this[d].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[p];this.write(Object.assign(i.alloc(0),{[h]:t}))}end(t,e,n){if(t)this.write(t,e);this.flush(this[f]);this[b]=true;return super.end(null,null,n)}get ended(){return this[b]}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(typeof t==="string")t=i.from(t,e);if(this[m])return;r(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=(()=>{});const a=this[d].close;this[d].close=(()=>{});i.concat=(t=>t);let u;try{const e=typeof t[h]==="number"?t[h]:this[h];u=this[d]._processChunk(t,e);i.concat=c}catch(t){i.concat=c;this[y](new ZlibError(t))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=this[l](i.from(u[0]));for(let t=1;t{this.flush(t);e()});try{this[d].params(t,e)}finally{this[d].flush=n}if(this[d]){this[g]=t;this[v]=e}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const w=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[w]=t&&!!t.portable}[l](t){if(!this[w])return super[l](t);this[w]=false;t[9]=255;return super[l](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,e){t=t||{};t.flush=t.flush||o.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||o.BROTLI_OPERATION_FINISH;super(t,e);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}e.Deflate=Deflate;e.Inflate=Inflate;e.Gzip=Gzip;e.Gunzip=Gunzip;e.DeflateRaw=DeflateRaw;e.InflateRaw=InflateRaw;e.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){e.BrotliCompress=BrotliCompress;e.BrotliDecompress=BrotliDecompress}else{e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},522:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(203);const i=n(248);class ProviderAsync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=[];return new Promise((i,s)=>{const o=this.api(e,t,n);o.once("error",s);o.on("data",t=>r.push(n.transform(t)));o.once("end",()=>i(r))})}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderAsync},528:function(t,e,n){var r=n(622);var i=process.platform==="win32";var s=n(747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(o){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=r.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var n=t,o={},a={};var u;var h;var f;var p;start();function start(){var e=l.exec(t);u=e[0].length;h=e[0];f=e[0];p="";if(i&&!a[f]){s.lstatSync(f);a[f]=true}}while(u=t.length){if(e)e[o]=t;return n(null,t)}c.lastIndex=h;var r=c.exec(t);d=f;f+=r[0];p=d+r[1];h=c.lastIndex;if(u[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return s.lstat(p,gotStat)}function gotStat(t,r){if(t)return n(t);if(!r.isSymbolicLink()){u[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(t){if(t)return n(t);s.readlink(p,function(t,e){if(!i)a[o]=e;gotTarget(t,e)})})}function gotTarget(t,i,s){if(t)return n(t);var o=r.resolve(d,i);if(e)e[s]=o;gotResolvedLink(o)}function gotResolvedLink(e){t=r.resolve(e,t.slice(h));start()}}},529:function(t,e,n){"use strict";const r=n(892);const i=n(774);const s=n(747);const o=n(862);const a=n(622);const c=t.exports=((t,e,n)=>{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)l(i,e);return i.file&&i.sync?u(i):i.file?h(i,n):i.sync?f(i):p(i)});const l=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const u=t=>{const e=new i.Sync(t);const n=t.file;let r=true;let a;const c=s.statSync(n);const l=t.maxReadSize||16*1024*1024;const u=new o.ReadStreamSync(n,{readSize:l,size:c.size});u.pipe(e)};const h=(t,e)=>{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("close",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const f=t=>{return new i.Sync(t)};const p=t=>{return new i(t)}},543:function(t,e,n){"use strict";const r=n(669);const i=n(153);const s=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const c=t=>Number.isInteger(+t);const l=t=>{let e=`${t}`;let n=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++n]==="0");return n>0};const u=(t,e,n)=>{if(typeof t==="string"||typeof e==="string"){return true}return n.stringify===true};const h=(t,e,n)=>{if(e>0){let n=t[0]==="-"?"-":"";if(n)t=t.slice(1);t=n+t.padStart(n?e-1:e,"0")}if(n===false){return String(t)}return t};const f=(t,e)=>{let n=t[0]==="-"?"-":"";if(n){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let n=e.capture?"":"?:";let r="";let i="";let s;if(t.positives.length){r=t.positives.join("|")}if(t.negatives.length){i=`-(${n}${t.negatives.join("|")})`}if(r&&i){s=`${r}|${i}`}else{s=r||i}if(e.wrap){return`(${n}${s})`}return s};const d=(t,e,n,r)=>{if(n){return i(t,e,{wrap:false,...r})}let s=String.fromCharCode(t);if(t===e)return s;let o=String.fromCharCode(e);return`[${s}-${o}]`};const y=(t,e,n)=>{if(Array.isArray(t)){let e=n.wrap===true;let r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,n)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+r.inspect(...t))};const g=(t,e,n)=>{if(n.strictRanges===true)throw m([t,e]);return[]};const v=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,n=1,r={})=>{let i=Number(t);let s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===true)throw m([t,e]);return[]}if(i===0)i=0;if(s===0)s=0;let a=i>s;let c=String(t);let g=String(e);let v=String(n);n=Math.max(Math.abs(n),1);let b=l(c)||l(g)||l(v);let _=b?Math.max(c.length,g.length,v.length):0;let w=b===false&&u(t,e,r)===false;let S=r.transform||o(w);if(r.toRegex&&n===1){return d(f(t,_),f(e,_),true,r)}let E={negatives:[],positives:[]};let R=t=>E[t<0?"negatives":"positives"].push(Math.abs(t));let O=[];let k=0;while(a?i>=s:i<=s){if(r.toRegex===true&&n>1){R(i)}else{O.push(h(S(i,k),_,w))}i=a?i-n:i+n;k++}if(r.toRegex===true){return n>1?p(E,r):y(O,null,{wrap:false,...r})}return O};const _=(t,e,n=1,r={})=>{if(!c(t)&&t.length>1||!c(e)&&e.length>1){return g(t,e,r)}let i=r.transform||(t=>String.fromCharCode(t));let s=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=s>o;let l=Math.min(s,o);let u=Math.max(s,o);if(r.toRegex&&n===1){return d(l,u,false,r)}let h=[];let f=0;while(a?s>=o:s<=o){h.push(i(s,f));s=a?s-n:s+n;f++}if(r.toRegex===true){return y(h,null,{wrap:false,options:r})}return h};const w=(t,e,n,r={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return g(t,e,r)}if(typeof n==="function"){return w(t,e,1,{transform:n})}if(s(n)){return w(t,e,0,n)}let i={...r};if(i.capture===true)i.wrap=true;n=n||i.step||1;if(!c(n)){if(n!=null&&!s(n))return v(n,i);return w(t,e,1,n)}if(c(t)&&c(e)){return b(t,e,n,i)}return _(t,e,Math.max(Math.abs(n),1),i)};t.exports=w},546:function(t,e,n){"use strict";const r=n(87);const i=n(867);const s=n(609);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const t=r.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},549:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);function generate(t,e){const n=getPositivePatterns(t);const i=getNegativePatternsAsPositive(t,e.ignore);const s=n.filter(t=>r.pattern.isStaticPattern(t,e));const o=n.filter(t=>r.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(s,i,false);const c=convertPatternsToTasks(o,i,true);return a.concat(c)}e.generate=generate;function convertPatternsToTasks(t,e,n){const r=groupPatternsByBaseDirectory(t);if("."in r){const r=convertPatternGroupToTask(".",t,e,n);return[r]}return convertPatternGroupsToTasks(r,e,n)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return r.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const n=r.pattern.getNegativePatterns(t).concat(e);const i=n.map(r.pattern.convertToPositivePattern);return i}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);if(n in t){t[n].push(e)}else{t[n]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,n){return Object.keys(t).map(r=>{return convertPatternGroupToTask(r,t[r],e,n)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,n,i){return{dynamic:i,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},550:function(t,e,n){"use strict";const r=n(622);t.exports=((t,e)=>{t=r.resolve(t);e=r.resolve(e);if(process.platform==="win32"){t=t.toLowerCase();e=e.toLowerCase()}if(t===e){return false}t+=r.sep;e+=r.sep;return t.startsWith(e)})},556:function(t,e,n){t.exports=globSync;globSync.GlobSync=GlobSync;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(700).Glob;var c=n(669);var l=n(622);var u=n(357);var h=n(932);var f=n(133);var p=f.alphasort;var d=f.alphasorti;var y=f.setopts;var m=f.ownProp;var g=f.childrenIgnored;var v=f.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);y(this,t,e);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(e)}catch(t){o=a}}else{o=a}}this.statCache[e]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return f.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return f.makeAbs(this,t)}},560:function(t){t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},563:function(t,e,n){"use strict";const r=n(614);const i=n(413);const s=n(597);const o=n(304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const u=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const m=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const _=Symbol("bufferLength");const w=Symbol("bufferPush");const S=Symbol("bufferShift");const E=Symbol("objectMode");const R=Symbol("destroyed");const O=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const k=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const x=O&&Symbol.iterator||Symbol("iterator not implemented");const A=t=>t==="end"||t==="finish"||t==="prefinish";const C=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const P=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);t.exports=class Minipass extends i{constructor(t){super();this[g]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[E]=t&&t.objectMode||false;if(this[E])this[y]=null;else this[y]=t&&t.encoding||null;if(this[y]==="buffer")this[y]=null;this[m]=this[y]?new o(this[y]):null;this[a]=false;this[l]=false;this[u]=false;this[h]=false;this.writable=true;this.readable=true;this[_]=0;this[R]=false}get bufferLength(){return this[_]}get encoding(){return this[y]}set encoding(t){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[y]&&t!==this[y]&&(this[m]&&this[m].lastNeed||this[_]))throw new Error("cannot change encoding");if(this[y]!==t){this[m]=t?new o(t):null;if(this.buffer.length)this.buffer=this.buffer.map(t=>this[m].write(t))}this[y]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[E]}set objectMode(t){this[E]=this[E]||!!t}write(t,e,n){if(this[a])throw new Error("write after end");if(this[R]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";if(!this[E]&&!Buffer.isBuffer(t)){if(P(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(C(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(!this.objectMode&&!t.length){const t=this.flowing;if(this[_]!==0)this.emit("readable");if(n)n();return t}if(typeof t==="string"&&!this[E]&&!(e===this[y]&&!this[m].lastNeed)){t=Buffer.from(t,e)}if(Buffer.isBuffer(t)&&this[y])t=this[m].write(t);try{return this.flowing?(this.emit("data",t),this.flowing):(this[w](t),false)}finally{if(this[_]!==0)this.emit("readable");if(n)n()}}read(t){if(this[R])return null;try{if(this[_]===0||t===0||t>this[_])return null;if(this[E])t=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[_])])}return this[f](t||null,this.buffer.head.value)}finally{this[c]()}}[f](t,e){if(t===e.length||t===null)this[S]();else{this.buffer.head.value=e.slice(t);e=e.slice(0,t);this[_]-=t}this.emit("data",e);if(!this.buffer.length&&!this[a])this.emit("drain");return e}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[b](){if(this[R])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[R]}get flowing(){return this[g]}get paused(){return this[v]}[w](t){if(this[E])this[_]+=1;else this[_]+=t.length;return this.buffer.push(t)}[S](){if(this.buffer.length){if(this[E])this[_]-=1;else this[_]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[S]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[d](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,e){if(this[R])return;const n=this[l];e=e||{};if(t===process.stdout||t===process.stderr)e.end=false;else e.end=e.end!==false;const r={dest:t,opts:e,ondrain:t=>this[b]()};this.pipes.push(r);t.on("drain",r.ondrain);this[b]();if(n&&r.opts.end)r.dest.end();return t}addListener(t,e){return this.on(t,e)}on(t,e){try{return super.on(t,e)}finally{if(t==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(A(t)&&this[l]){super.emit(t);this.removeAllListeners(t)}}}get emittedEnd(){return this[l]}[c](){if(!this[u]&&!this[l]&&!this[R]&&this.buffer.length===0&&this[a]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[u]=false}}emit(t,e){if(t!=="error"&&t!=="close"&&t!==R&&this[R])return;else if(t==="data"){if(!e)return;if(this.pipes.length)this.pipes.forEach(t=>t.dest.write(e)===false&&this.pause())}else if(t==="end"){if(this[l]===true)return;this[l]=true;this.readable=false;if(this[m]){e=this[m].end();if(e){this.pipes.forEach(t=>t.dest.write(e));super.emit("data",e)}}this.pipes.forEach(t=>{t.dest.removeListener("drain",t.ondrain);if(t.opts.end)t.dest.end()})}else if(t==="close"){this[h]=true;if(!this[l]&&!this[R])return}const n=new Array(arguments.length);n[0]=t;n[1]=e;if(arguments.length>2){for(let t=2;t{t.push(e);if(!this[E])t.dataLength+=e.length});return e.then(()=>t)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,e)=>{this.on(R,()=>e(new Error("stream destroyed")));this.on("end",()=>t());this.on("error",t=>e(t))})}[k](){const t=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[a])return Promise.resolve({done:true});let e=null;let n=null;const r=t=>{this.removeListener("data",i);this.removeListener("end",s);n(t)};const i=t=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();e({value:t,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);e({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((t,a)=>{n=a;e=t;this.once(R,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:t}}[x](){const t=()=>{const t=this.read();const e=t===null;return{value:t,done:e}};return{next:t}}destroy(t){if(this[R]){if(t)this.emit("error",t);else this.emit(R);return this}this[R]=true;this.buffer=new s;this[_]=0;if(typeof this.close==="function"&&!this[h])this.close();if(t)this.emit("error",t);else this.emit(R);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof i||t instanceof r&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},564:function(t,e,n){var r=n(747);var i=n(281);var s=n(900);var o=n(758);var a=n(669);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var t=a.format.apply(a,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!global[c]){var h=[];Object.defineProperty(global,c,{get:function(){return h}});r.close=function(t){function close(e,n){return t.call(r,e,function(t){if(!t){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,l,{value:t});return close}(r.close);r.closeSync=function(t){function closeSync(e){t.apply(r,arguments);retry()}Object.defineProperty(closeSync,l,{value:t});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){u(global[c]);n(357).equal(global[c].length,0)})}}t.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){t.exports=patch(r);r.__patched=true}function patch(t){i(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var e=t.readFile;t.readFile=readFile;function readFile(t,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(t,n,r);function go$readFile(t,n,r){return e(t,n,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readFile,[t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=t.writeFile;t.writeFile=writeFile;function writeFile(t,e,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(t,e,r,i);function go$writeFile(t,e,r,i){return n(t,e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[t,e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=t.appendFile;if(r)t.appendFile=appendFile;function appendFile(t,e,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(t,e,n,i);function go$appendFile(t,e,n,i){return r(t,e,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[t,e,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=t.readdir;t.readdir=readdir;function readdir(t,e,n){var r=[t];if(typeof e!=="function"){r.push(e)}else{n=e}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(t,e){if(e&&e.sort)e.sort();if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(e){return o.apply(t,e)}if(process.version.substr(0,4)==="v0.8"){var a=s(t);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=t.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var l=t.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var u=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return u},set:function(t){u=t},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:true,configurable:true});function ReadStream(t,e){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){if(t.autoClose)t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n);t.read()}})}function WriteStream(t,e){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n)}})}function createReadStream(e,n){return new t.ReadStream(e,n)}function createWriteStream(e,n){return new t.WriteStream(e,n)}var f=t.open;t.open=open;function open(t,e,n,r){if(typeof n==="function")r=n,n=null;return go$open(t,e,n,r);function go$open(t,e,n,r){return f(t,e,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[t,e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return t}function enqueue(t){u("ENQUEUE",t[0].name,t[1]);global[c].push(t)}function retry(){var t=global[c].shift();if(t){u("RETRY",t[0].name,t[1]);t[0].apply(null,t[1])}}},574:function(t,e,n){"use strict";t=n.nmd(t);const r=n(13);const i=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${n+e}m`});const s=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};5;${n}m`});const o=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const t=new Map;const e={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]}};e.color.grey=e.color.gray;for(const n of Object.keys(e)){const r=e[n];for(const n of Object.keys(r)){const i=r[n];e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false});Object.defineProperty(e,"codes",{value:t,enumerable:false})}const n=t=>t;const a=(t,e,n)=>[t,e,n];e.color.close="";e.bgColor.close="";e.color.ansi={ansi:i(n,0)};e.color.ansi256={ansi256:s(n,0)};e.color.ansi16m={rgb:o(a,0)};e.bgColor.ansi={ansi:i(n,10)};e.bgColor.ansi256={ansi256:s(n,10)};e.bgColor.ansi16m={rgb:o(a,10)};for(let t of Object.keys(r)){if(typeof r[t]!=="object"){continue}const n=r[t];if(t==="ansi16"){t="ansi"}if("ansi16"in n){e.color.ansi[t]=i(n.ansi16,0);e.bgColor.ansi[t]=i(n.ansi16,10)}if("ansi256"in n){e.color.ansi256[t]=s(n.ansi256,0);e.bgColor.ansi256[t]=s(n.ansi256,10)}if("rgb"in n){e.color.ansi16m[t]=o(n.rgb,0);e.bgColor.ansi16m[t]=o(n.rgb,10)}}return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},580:function(t,e,n){var r=n(880);var i=n(305);t.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 l="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(t){return t.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var n=i("{","}",t);if(!n)return t.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var n=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=o||c;var u=s.body.indexOf(",")>=0;if(!l&&!u){if(s.post.match(/,.*\}/)){t=s.pre+"{"+s.body+a+s.post;return expand(t)}return[t]}var h;if(l){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var f=s.post.length?expand(s.post,false):[""];return f.map(function(t){return s.pre+h[0]+t})}}}var p=s.pre;var f=s.post.length?expand(s.post,false):[""];var d;if(l){var y=numeric(h[0]);var m=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var v=h.length==3?Math.abs(numeric(h[2])):1;var b=lte;var _=m0){var O=new Array(R+1).join("0");if(S<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=r(h,function(t){return expand(t,false)})}for(var k=0;k{const e=await i("package.json",{cwd:t});return e&&r.dirname(e)};t.exports=s;t.exports.default=s;t.exports.sync=(t=>{const e=i.sync("package.json",{cwd:t});return e&&r.dirname(e)})},597:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&rfalse;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const y=(t={})=>{if(!t.cwd){return}let e;try{e=r.statSync(t.cwd)}catch(t){return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const m=t=>t.stats instanceof r.Stats?t.path:t;const g=(t,e)=>{t=i([].concat(t));d(t);y(e);const n=[];e={ignore:[],expandDirectories:true,...e};for(const[r,i]of t.entries()){if(p(i)){continue}const s=t.slice(r).filter(p).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(s)};n.push({pattern:i,options:o})}return n};const v=(t,e)=>{let n={};if(t.options.cwd){n.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){n={...n,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){n={...n,...t.options.expandDirectories}}return e(t.pattern,n)};const b=(t,e)=>t.options.expandDirectories?v(t,e):[t.pattern];const _=t=>{return t&&t.gitignore?l.sync({cwd:t.cwd,ignore:t.ignore}):f};const w=t=>e=>{const{options:n}=t;if(n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories){n.ignore=c.sync(n.ignore)}return{pattern:e,options:n}};t.exports=(async(t,e)=>{const n=g(t,e);const r=async()=>{return e&&e.gitignore?l({cwd:e.cwd,ignore:e.ignore}):f};const s=async()=>{const t=await Promise.all(n.map(async t=>{const e=await b(t,c);return Promise.all(e.map(w(t)))}));return i(...t)};const[o,u]=await Promise.all([r(),s()]);const h=await Promise.all(u.map(t=>a(t.pattern,t.options)));return i(...h).filter(t=>!o(m(t)))});t.exports.sync=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(w(e));return t.concat(n)},[]);const s=_(e);return r.reduce((t,e)=>i(t,a.sync(e.pattern,e.options)),[]).filter(t=>!s(t))});t.exports.stream=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(w(e));return t.concat(n)},[]);const i=_(e);const o=new u(t=>!i(t));const l=new h;return s(r.map(t=>a.stream(t.pattern,t.options))).pipe(o).pipe(l)});t.exports.generateGlobTasks=g;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.hasMagic(t,e)));t.exports.gitignore=l},604:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},605:function(t){"use strict";t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},609:function(t){"use strict";t.exports=((t,e=process.argv)=>{const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1||r{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)u(i,e);if(!i.noResume)l(i);return i.file&&i.sync?h(i):i.file?f(i,n):p(i)});const l=t=>{const e=t.onentry;t.onentry=e?t=>{e(t);t.resume()}:t=>t.resume()};const u=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const h=t=>{const e=p(t);const n=t.file;let r=true;let i;try{const o=s.statSync(n);const a=t.maxReadSize||16*1024*1024;if(o.size{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("end",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const p=t=>new i(t)},617:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(920);const s=n(951);const o=n(35);function read(t,e,n){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,n)}return readdir(t,e,n)}e.read=read;function readdirWithFileTypes(t,e,n){e.fs.readdir(t,{withFileTypes:true},(r,s)=>{if(r!==null){return callFailureCallback(n,r)}const o=s.map(n=>({dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`}));if(!e.followSymbolicLinks){return callSuccessCallback(n,o)}const a=o.map(t=>makeRplTaskEntry(t,e));i(a,(t,e)=>{if(t!==null){return callFailureCallback(n,t)}callSuccessCallback(n,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return n=>{if(!t.dirent.isSymbolicLink()){return n(null,t)}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){return n(r)}return n(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,i);return n(null,t)})}}function readdir(t,e,n){e.fs.readdir(t,(s,a)=>{if(s!==null){return callFailureCallback(n,s)}const c=a.map(n=>`${t}${e.pathSegmentSeparator}${n}`);const l=c.map(t=>{return n=>r.stat(t,e.fsStatSettings,n)});i(l,(t,r)=>{if(t!==null){return callFailureCallback(n,t)}const i=[];a.forEach((t,n)=>{const s=r[n];const a={name:t,path:c[n],dirent:o.fs.createDirentFromStats(t,s)};if(e.stats){a.stats=s}i.push(a)});callSuccessCallback(n,i)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},619:function(t){t.exports=require("constants")},622:function(t){t.exports=require("path")},625:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},629:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(951);const s=n(35);function read(t,e){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const n=e.fs.readdirSync(t,{withFileTypes:true});return n.map(n=>{const r={dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`};if(r.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(r.path);r.dirent=s.fs.createDirentFromStats(r.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return r})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const n=e.fs.readdirSync(t);return n.map(n=>{const i=`${t}${e.pathSegmentSeparator}${n}`;const o=r.statSync(i,e.fsStatSettings);const a={name:n,path:i,dirent:s.fs.createDirentFromStats(n,o)};if(e.stats){a.stats=o}return a})}e.readdir=readdir},634:function(t,e,n){"use strict";const r=n(622);t.exports=(t=>{let e=process.cwd();t=r.resolve(t);if(process.platform==="win32"){e=e.toLowerCase();t=t.toLowerCase()}return t===e})},635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(312);e.array=r;const i=n(438);e.errno=i;const s=n(625);e.fs=s;const o=n(642);e.path=o;const a=n(136);e.pattern=a;const c=n(62);e.stream=c},641:function(t,e,n){"use strict";const r=n(747);const{promisify:i}=n(669);const s=i(r.access);t.exports=(async t=>{try{await s(t);return true}catch(t){return false}});t.exports.sync=(t=>{try{r.accessSync(t);return true}catch(t){return false}})},642:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=/(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return r.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape},660:function(t){"use strict";t.exports=((t,e,n)=>{t&=4095;if(n){t=(t|384)&~18}if(e){if(t&256)t|=64;if(t&32)t|=8;if(t&4)t|=1}return t})},665:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(160);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=s.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},669:function(t){t.exports=require("util")},671:function(t){const e=t=>t[0].toLocaleUpperCase()+t.slice(1);t.exports=(t=>{if(t===null||t===void 0)return"";if(typeof t.toString!=="function")return"";let n=t.toString().trim();if(n==="")return"";if(n.length===1)return n.toLocaleUpperCase();let r=n.match(/[a-zA-Z0-9]+/g);if(r){return r.map(t=>e(t)).join("")}return n})},675:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(617);const i=n(629);const s=n(665);e.Settings=s.default;function scandir(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.scandir=scandir;function scandirSync(t,e){const n=getSettings(e);return i.read(t,n)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},677:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const n=r.pattern.convertPatternsToRe(t,this._micromatchOptions);const i=r.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,n,i)}_filter(t,e,n){if(this._settings.unique){if(this._isDuplicateEntry(t)){return false}this._createIndexRecord(t)}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t,n)){return false}const r=this._settings.baseNameMatch?t.name:t.path;return this._isMatchToPatterns(r,e)&&!this._isMatchToPatterns(t.path,n)}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const n=r.path.makeAbsolute(this._settings.cwd,t.path);return this._isMatchToPatterns(n,e)}_isMatchToPatterns(t,e){return r.pattern.matchAny(t,e)}}e.default=EntryFilter},683:function(t,e,n){"use strict";const r=n(851);const i=n(210);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=r;const u=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map(t=>i.escapeRegex(t)).join("..")}return n};const h=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const f=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=l[t]||t;const n={...e};const f=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;let p=t.length;if(p>f){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`)}const d={type:"bos",value:"",output:n.prepend||""};const y=[d];const m=n.capture?"":"?:";const g=i.isWindows(e);const v=r.globChars(g);const b=r.extglobChars(v);const{DOT_LITERAL:_,PLUS_LITERAL:w,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:O,NO_DOT_SLASH:k,NO_DOTS_SLASH:x,QMARK:A,QMARK_NO_DOT:C,STAR:P,START_ANCHOR:M}=v;const T=t=>{return`(${m}(?:(?!${M}${t.dot?R:_}).)*?)`};const L=n.dot?"":O;const D=n.dot?A:C;let I=n.bash===true?T(n):P;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const $={input:t,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,tokens:y};t=i.removePrefix(t,$);p=t.length;const F=[];const B=[];let j=d;let N;const G=()=>$.index===p-1;const H=$.peek=((e=1)=>t[$.index+e]);const U=$.advance=(()=>t[++$.index]);const z=()=>t.slice($.index+1);const W=(t="",e=0)=>{$.consumed+=t;$.index+=e};const Y=t=>{$.output+=t.output!=null?t.output:t.value;W(t.value)};const Z=()=>{let t=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){U();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const V=t=>{$[t]++;B.push(t)};const Q=t=>{$[t]--;B.pop()};const X=t=>{if(j.type==="globstar"){const e=$.braces>0&&(t.type==="comma"||t.type==="brace");const n=t.extglob===true||F.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!n){$.output=$.output.slice(0,-j.output.length);j.type="star";j.value="*";j.output=I;$.output+=j.output}}if(F.length&&t.type!=="paren"&&!b[t.value]){F[F.length-1].inner+=t.value}if(t.value||t.output)Y(t);if(j&&j.type==="text"&&t.type==="text"){j.value+=t.value;return}t.prev=j;y.push(t);j=t};const K=(t,e)=>{const r={...b[e],conditions:1,inner:""};r.prev=j;r.parens=$.parens;r.output=$.output;const i=(n.capture?"(":"")+r.open;V("parens");X({type:t,value:e,output:$.output?"":E});X({type:"paren",extglob:true,value:U(),output:i});F.push(r)};const q=t=>{let e=t.close+(n.capture?")":"");if(t.type==="negate"){let r=I;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){r=T(n)}if(r!==I||G()||/^\)+$/.test(z())){e=t.close=")$))"+r}if(t.prev.type==="bos"&&G()){$.negatedExtglob=true}}X({type:"paren",extglob:true,value:N,output:e});Q("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let s=t.replace(c,(t,e,n,i,s,o)=>{if(i==="\\"){r=true;return t}if(i==="?"){if(e){return e+i+(s?A.repeat(s.length):"")}if(o===0){return D+(s?A.repeat(s.length):"")}return A.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(e){return e+i+(s?I:"")}return I}return e?t:"\\"+t});if(r===true){if(n.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(s===t&&n.contains===true){$.output=t;return $}$.output=i.wrapOutput(s,$,e);return $}while(!G()){N=U();if(N==="\0"){continue}if(N==="\\"){const t=H();if(t==="/"&&n.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){N+="\\";X({type:"text",value:N});continue}const e=/^\\+/.exec(z());let r=0;if(e&&e[0].length>2){r=e[0].length;$.index+=r;if(r%2!==0){N+="\\"}}if(n.unescape===true){N=U()||""}else{N+=U()||""}if($.brackets===0){X({type:"text",value:N});continue}}if($.brackets>0&&(N!=="]"||j.value==="["||j.value==="[^")){if(n.posix!==false&&N===":"){const t=j.value.slice(1);if(t.includes("[")){j.posix=true;if(t.includes(":")){const t=j.value.lastIndexOf("[");const e=j.value.slice(0,t);const n=j.value.slice(t+2);const r=o[n];if(r){j.value=e+r;$.backtrack=true;U();if(!d.output&&y.indexOf(j)===1){d.output=E}continue}}}}if(N==="["&&H()!==":"||N==="-"&&H()==="]"){N="\\"+N}if(N==="]"&&(j.value==="["||j.value==="[^")){N="\\"+N}if(n.posix===true&&N==="!"&&j.value==="["){N="^"}j.value+=N;Y({value:N});continue}if($.quotes===1&&N!=='"'){N=i.escapeRegex(N);j.value+=N;Y({value:N});continue}if(N==='"'){$.quotes=$.quotes===1?0:1;if(n.keepQuotes===true){X({type:"text",value:N})}continue}if(N==="("){V("parens");X({type:"paren",value:N});continue}if(N===")"){if($.parens===0&&n.strictBrackets===true){throw new SyntaxError(h("opening","("))}const t=F[F.length-1];if(t&&$.parens===t.parens+1){q(F.pop());continue}X({type:"paren",value:N,output:$.parens?")":"\\)"});Q("parens");continue}if(N==="["){if(n.nobracket===true||!z().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(h("closing","]"))}N="\\"+N}else{V("brackets")}X({type:"bracket",value:N});continue}if(N==="]"){if(n.nobracket===true||j&&j.type==="bracket"&&j.value.length===1){X({type:"text",value:N,output:"\\"+N});continue}if($.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(h("opening","["))}X({type:"text",value:N,output:"\\"+N});continue}Q("brackets");const t=j.value.slice(1);if(j.posix!==true&&t[0]==="^"&&!t.includes("/")){N="/"+N}j.value+=N;Y({value:N});if(n.literalBrackets===false||i.hasRegexChars(t)){continue}const e=i.escapeRegex(j.value);$.output=$.output.slice(0,-j.value.length);if(n.literalBrackets===true){$.output+=e;j.value=e;continue}j.value=`(${m}${e}|${j.value})`;$.output+=j.value;continue}if(N==="{"&&n.nobrace!==true){V("braces");X({type:"brace",value:N,output:"("});continue}if(N==="}"){if(n.nobrace===true||$.braces===0){X({type:"text",value:N,output:N});continue}let t=")";if($.dots===true){const e=y.slice();const r=[];for(let t=e.length-1;t>=0;t--){y.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=u(r,n);$.backtrack=true}X({type:"brace",value:N,output:t});Q("braces");continue}if(N==="|"){if(F.length>0){F[F.length-1].conditions++}X({type:"text",value:N});continue}if(N===","){let t=N;if($.braces>0&&B[B.length-1]==="braces"){t="|"}X({type:"comma",value:N,output:t});continue}if(N==="/"){if(j.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";y.pop();j=d;continue}X({type:"slash",value:N,output:S});continue}if(N==="."){if($.braces>0&&j.type==="dot"){if(j.value===".")j.output=_;j.type="dots";j.output+=N;j.value+=N;$.dots=true;continue}if($.braces+$.parens===0&&j.type!=="bos"&&j.type!=="slash"){X({type:"text",value:N,output:_});continue}X({type:"dot",value:N,output:_});continue}if(N==="?"){const t=j&&j.value==="(";if(!t&&n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("qmark",N);continue}if(j&&j.type==="paren"){const t=H();let e=N;if(t==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(j.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(z())){e="\\"+N}X({type:"text",value:N,output:e});continue}if(n.dot!==true&&(j.type==="slash"||j.type==="bos")){X({type:"qmark",value:N,output:C});continue}X({type:"qmark",value:N,output:A});continue}if(N==="!"){if(n.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){K("negate",N);continue}}if(n.nonegate!==true&&$.index===0){Z($);continue}}if(N==="+"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("plus",N);continue}if(j&&j.value==="("||n.regex===false){X({type:"plus",value:N,output:w});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||$.parens>0){X({type:"plus",value:N});continue}X({type:"plus",value:w});continue}if(N==="@"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){X({type:"at",extglob:true,value:N,output:""});continue}X({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N="\\"+N}const t=a.exec(z());if(t){N+=t[0];$.index+=t[0].length}X({type:"text",value:N});continue}if(j&&(j.type==="globstar"||j.star===true)){j.type="star";j.star=true;j.value+=N;j.output=I;$.backtrack=true;W(N);continue}let e=z();if(n.noextglob!==true&&/^\([^?]/.test(e)){K("star",N);continue}if(j.type==="star"){if(n.noglobstar===true){W(N);continue}const r=j.prev;const i=r.prev;const s=r.type==="slash"||r.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!s||e[0]&&e[0]!=="/")){X({type:"star",value:N,output:""});continue}const a=$.braces>0&&(r.type==="comma"||r.type==="brace");const c=F.length&&(r.type==="pipe"||r.type==="paren");if(!s&&r.type!=="paren"&&!a&&!c){X({type:"star",value:N,output:""});continue}while(e.slice(0,3)==="/**"){const n=t[$.index+4];if(n&&n!=="/"){break}e=e.slice(3);W("/**",3)}if(r.type==="bos"&&G()){j.type="globstar";j.value+=N;j.output=T(n);$.output=j.output;W(N);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&G()){$.output=$.output.slice(0,-(r.output+j.output).length);r.output="(?:"+r.output;j.type="globstar";j.output=T(n)+(n.strictSlashes?")":"|$)");j.value+=N;$.output+=r.output+j.output;W(N);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(r.output+j.output).length);r.output="(?:"+r.output;j.type="globstar";j.output=`${T(n)}${S}|${S}${t})`;j.value+=N;$.output+=r.output+j.output;W(N+U());X({type:"slash",value:N,output:""});continue}if(r.type==="bos"&&e[0]==="/"){j.type="globstar";j.value+=N;j.output=`(?:^|${S}|${T(n)}${S})`;$.output=j.output;W(N+U());X({type:"slash",value:N,output:""});continue}$.output=$.output.slice(0,-j.output.length);j.type="globstar";j.output=T(n);j.value+=N;$.output+=j.output;W(N);continue}const r={type:"star",value:N,output:I};if(n.bash===true){r.output=".*?";if(j.type==="bos"||j.type==="slash"){r.output=L+r.output}X(r);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&n.regex===true){r.output=N;X(r);continue}if($.index===$.start||j.type==="slash"||j.type==="dot"){if(j.type==="dot"){$.output+=k;j.output+=k}else if(n.dot===true){$.output+=x;j.output+=x}else{$.output+=L;j.output+=L}if(H()!=="*"){$.output+=E;j.output+=E}}X(r)}while($.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","]"));$.output=i.escapeLast($.output,"[");Q("brackets")}while($.parens>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing",")"));$.output=i.escapeLast($.output,"(");Q("parens")}while($.braces>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","}"));$.output=i.escapeLast($.output,"{");Q("braces")}if(n.strictSlashes!==true&&(j.type==="star"||j.type==="bracket")){X({type:"maybe_slash",value:"",output:`${S}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};f.fastpaths=((t,e)=>{const n={...e};const o=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=l[t]||t;const c=i.isWindows(e);const{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:v}=r.globChars(c);const b=n.dot?y:d;const _=n.dot?m:d;const w=n.capture?"":"?:";const S={negated:false,prefix:""};let E=n.bash===true?".*?":g;if(n.capture){E=`(${E})`}const R=t=>{if(t.noglobstar===true)return E;return`(${w}(?:(?!${v}${t.dot?p:u}).)*?)`};const O=t=>{switch(t){case"*":return`${b}${f}${E}`;case".*":return`${u}${f}${E}`;case"*.*":return`${b}${E}${u}${f}${E}`;case"*/*":return`${b}${E}${h}${f}${_}${E}`;case"**":return b+R(n);case"**/*":return`(?:${b}${R(n)}${h})?${_}${f}${E}`;case"**/*.*":return`(?:${b}${R(n)}${h})?${_}${E}${u}${f}${E}`;case"**/.*":return`(?:${b}${R(n)}${h})?${u}${f}${E}`;default:{const n=/^(.*?)\.(\w+)$/.exec(t);if(!n)return;const r=O(n[1],e);if(!r)return;return r+u+n[2]}}};const k=i.removePrefix(t,S);let x=O(k);if(x&&n.strictSlashes!==true){x+=`${h}?`}return x});t.exports=f},698:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},700:function(t,e,n){t.exports=glob;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(188);var c=n(614).EventEmitter;var l=n(622);var u=n(357);var h=n(932);var f=n(556);var p=n(133);var d=p.alphasort;var y=p.alphasorti;var m=p.setopts;var g=p.ownProp;var v=n(330);var b=n(669);var _=p.childrenIgnored;var w=p.isIgnored;var S=n(277);function glob(t,e,n){if(typeof e==="function")n=e,e={};if(!e)e={};if(e.sync){if(n)throw new TypeError("callback provided to sync glob");return f(t,e)}return new Glob(t,e,n)}glob.sync=f;var E=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var n=Object.keys(e);var r=n.length;while(r--){t[n[r]]=e[n[r]]}return t}glob.hasMagic=function(t,e){var n=extend({},e);n.noprocess=true;var r=new Glob(t,n);var i=r.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var s=0;sthis.maxLength)return e();if(!this.stat&&g(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var l=this;var u=v("stat\0"+n,lstatcb_);if(u)r.lstat(n,u);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)l._stat2(t,n,null,s,e);else l._stat2(t,n,r,i,e)})}else{l._stat2(t,n,i,s,e)}}};Glob.prototype._stat2=function(t,e,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[e]=false;return i()}var s=t.slice(-1)==="/";this.statCache[e]=r;if(e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},708:function(t){function makeArray(t){return Array.isArray(t)?t:[t]}const e=/^\s+$/;const n=/^\\!/;const r=/^\\#/;const i=/\r?\n/g;const s=/^\.*\/|^\.+$/;const o="/";const a=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const c=(t,e,n)=>Object.defineProperty(t,e,{value:n});const l=/([0-z])-([0-z])/g;const u=t=>t.replace(l,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:"");const h=[[/\\?\s+$/,t=>t.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,e,n)=>n==="]"?`[${u(e)}]`:`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6`${e}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const n=e?`${e}[^/]+`:"[^/]*";return`${n}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=Object.create(null);const p=(t,e,n)=>{const r=f[t];if(r){return r}const i=h.reduce((e,n)=>e.replace(n[0],n[1].bind(t)),t);return f[t]=n?new RegExp(i,"i"):new RegExp(i)};const d=t=>typeof t==="string";const y=t=>t&&d(t)&&!e.test(t)&&t.indexOf("#")!==0;const m=t=>t.split(i);class IgnoreRule{constructor(t,e,n,r){this.origin=t;this.pattern=e;this.negative=n;this.regex=r}}const g=(t,e)=>{const i=t;let s=false;if(t.indexOf("!")===0){s=true;t=t.substr(1)}t=t.replace(n,"!").replace(r,"#");const o=p(t,s,e);return new IgnoreRule(i,t,s,o)};const v=(t,e)=>{throw new e(t)};const b=(t,e,n)=>{if(!d(t)){return n(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return n(`path must not be empty`,TypeError)}if(b.isNotRelative(t)){const t="`path.relative()`d";return n(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const _=t=>s.test(t);b.isNotRelative=_;b.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;c(this,a,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[a]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(y(t)){const e=g(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(d(t)?m(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let n=false;let r=false;this._rules.forEach(i=>{const{negative:s}=i;if(r===s&&n!==r||s&&!n&&!r&&!e){return}const o=i.regex.test(t);if(o){n=!s;r=s}});return{ignored:n,unignored:r}}_test(t,e,n,r){const i=t&&b.convert(t);b(i,t,v);return this._t(i,e,n,r)}_t(t,e,n,r){if(t in e){return e[t]}if(!r){r=t.split(o)}r.pop();if(!r.length){return e[t]=this._testOne(t,n)}const i=this._t(r.join(o)+o,e,n,r);return e[t]=i.ignored?i:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const w=t=>new Ignore(t);const S=()=>false;const E=t=>b(t&&b.convert(t),t,S);w.isPathValid=E;w.default=w;t.exports=w;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");b.convert=t;const e=/^[a-z]:\//i;b.isNotRelative=(t=>e.test(t)||_(t))}},712:function(t,e,n){"use strict";const r=n(409);const i=n(563);const s=Symbol("slurp");t.exports=class ReadEntry extends i{constructor(t,e,n){super();this.pause();this.extended=e;this.globalExtended=n;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.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=t.path;this.mode=t.mode;if(this.mode)this.mode=this.mode&4095;this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath;this.uname=t.uname;this.gname=t.gname;if(e)this[s](e);if(n)this[s](n,true)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain;const r=this.blockRemain;this.remain=Math.max(0,n-e);this.blockRemain=Math.max(0,r-e);if(this.ignore)return true;if(n>=e)return super.write(t);return super.write(t.slice(0,n))}[s](t,e){for(let n in t){if(t[n]!==null&&t[n]!==undefined&&!(e&&n==="path"))this[n]=t[n]}}}},728:function(t,e,n){"use strict";const r=n(409);const i=n(622).posix;const s=n(340);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(t,e,n,r){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[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t))this.decode(t,e||0,n,r);else if(t)this.set(t)}decode(t,e,n,r){if(!e)e=0;if(!t||!(t.length>=e+512))throw new Error("need 512 bytes for header");this.path=l(t,e,100);this.mode=f(t,e+100,8);this.uid=f(t,e+108,8);this.gid=f(t,e+116,8);this.size=f(t,e+124,12);this.mtime=u(t,e+136,12);this.cksum=f(t,e+148,12);this[o](n);this[o](r,true);this[a]=l(t,e+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=l(t,e+157,100);if(t.slice(e+257,e+265).toString()==="ustar\x0000"){this.uname=l(t,e+265,32);this.gname=l(t,e+297,32);this.devmaj=f(t,e+329,8);this.devmin=f(t,e+337,8);if(t[e+475]!==0){const n=l(t,e+345,155);this.path=n+"/"+this.path}else{const n=l(t,e+345,130);if(n)this.path=n+"/"+this.path;this.atime=u(t,e+476,12);this.ctime=u(t,e+488,12)}}let i=8*32;for(let n=e;n=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155;const r=c(this.path||"",n);const i=r[0];const s=r[1];this.needPax=r[2];this.needPax=S(t,e,100,i)||this.needPax;this.needPax=m(t,e+100,8,this.mode)||this.needPax;this.needPax=m(t,e+108,8,this.uid)||this.needPax;this.needPax=m(t,e+116,8,this.gid)||this.needPax;this.needPax=m(t,e+124,12,this.size)||this.needPax;this.needPax=_(t,e+136,12,this.mtime)||this.needPax;t[e+156]=this[a].charCodeAt(0);this.needPax=S(t,e+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",e+257,8);this.needPax=S(t,e+265,32,this.uname)||this.needPax;this.needPax=S(t,e+297,32,this.gname)||this.needPax;this.needPax=m(t,e+329,8,this.devmaj)||this.needPax;this.needPax=m(t,e+337,8,this.devmin)||this.needPax;this.needPax=S(t,e+345,n,s)||this.needPax;if(t[e+475]!==0)this.needPax=S(t,e+345,155,s)||this.needPax;else{this.needPax=S(t,e+345,130,s)||this.needPax;this.needPax=_(t,e+476,12,this.atime)||this.needPax;this.needPax=_(t,e+488,12,this.ctime)||this.needPax}let o=8*32;for(let n=e;n{const n=100;let r=t;let s="";let o;const a=i.parse(t).root||".";if(Buffer.byteLength(r)n&&Buffer.byteLength(s)<=e)o=[r.substr(0,n-1),s,true];else{r=i.join(i.basename(s),r);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[t.substr(0,n-1),"",true]}return o};const l=(t,e,n)=>t.slice(e,e+n).toString("utf8").replace(/\0.*/,"");const u=(t,e,n)=>h(f(t,e,n));const h=t=>t===null?null:new Date(t*1e3);const f=(t,e,n)=>t[e]&128?s.parse(t.slice(e,e+n)):d(t,e,n);const p=t=>isNaN(t)?null:t;const d=(t,e,n)=>p(parseInt(t.slice(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const m=(t,e,n,r)=>r===null?false:r>y[n]||r<0?(s.encode(r,t.slice(e,e+n)),true):(g(t,e,n,r),false);const g=(t,e,n,r)=>t.write(v(r,n),e,n,"ascii");const v=(t,e)=>b(Math.floor(t).toString(8),e);const b=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0";const _=(t,e,n,r)=>r===null?false:m(t,e,n,r.getTime()/1e3);const w=new Array(156).join("\0");const S=(t,e,n,r)=>r===null?false:(t.write(r+w,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);t.exports=Header},730:function(t,e,n){"use strict";const r=n(549);const i=n(522);const s=n(33);const o=n(268);const a=n(422);const c=n(635);function FastGlob(t,e){try{assertPatternsInput(t)}catch(t){return Promise.reject(t)}const n=getWorks(t,i.default,e);return Promise.all(n).then(c.array.flatten)}(function(t){function sync(t,e){assertPatternsInput(t);const n=getWorks(t,o.default,e);return c.array.flatten(n)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const n=getWorks(t,s.default,e);return c.stream.merge(n)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const n=[].concat(t);const i=new a.default(e);return r.generate(n,i)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const n=new a.default(e);return c.pattern.isDynamicPattern(t,n)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,n){const i=[].concat(t);const s=new a.default(n);const o=r.generate(i,s);const c=new e(s);return o.map(c.read,c)}function assertPatternsInput(t){if([].concat(t).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(t){return typeof t==="string"}t.exports=FastGlob},736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(739);const i=n(102);const s=n(172);const o=n(768);e.Settings=o.default;function walk(t,e,n){if(typeof e==="function"){return new r.default(t,getSettings()).read(e)}new r.default(t,getSettings(e)).read(n)}e.walk=walk;function walkSync(t,e){const n=getSettings(e);const r=new s.default(t,n);return r.read()}e.walkSync=walkSync;function walkStream(t,e){const n=getSettings(e);const r=new i.default(t,n);return r.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(389);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},747:function(t){t.exports=require("fs")},758:function(t){"use strict";t.exports=clone;function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}},761:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(736);const s=n(828);class ReaderSync extends s.default{constructor(){super(...arguments);this._walkSync=i.walkSync;this._statSync=r.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const n=[];for(const r of t){const t=this._getFullEntryPath(r);const i=this._getEntry(t,r,e);if(i===null||!e.entryFilter(i)){continue}n.push(i)}return n}_getEntry(t,e,n){try{const r=this._getStat(t);return this._makeEntry(r,e)}catch(t){if(n.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},762:function(t,e,n){"use strict";const r=n(477);const i=n(622);const s=n(728);const o=n(614);const a=n(597);const c=1024*1024;const l=n(712);const u=n(125);const h=n(507);const f=Buffer.from([31,139]);const p=Symbol("state");const d=Symbol("writeEntry");const y=Symbol("readEntry");const m=Symbol("nextEntry");const g=Symbol("processEntry");const v=Symbol("extendedHeader");const b=Symbol("globalExtendedHeader");const _=Symbol("meta");const w=Symbol("emitMeta");const S=Symbol("buffer");const E=Symbol("queue");const R=Symbol("ended");const O=Symbol("emittedEnd");const k=Symbol("emit");const x=Symbol("unzip");const A=Symbol("consumeChunk");const C=Symbol("consumeChunkSub");const P=Symbol("consumeBody");const M=Symbol("consumeMeta");const T=Symbol("consumeHeader");const L=Symbol("consuming");const D=Symbol("bufferConcat");const I=Symbol("maybeEnd");const $=Symbol("writing");const F=Symbol("aborted");const B=Symbol("onDone");const j=Symbol("sawValidEntry");const N=Symbol("sawNullBlock");const G=Symbol("sawEOF");const H=t=>true;t.exports=r(class Parser extends o{constructor(t){t=t||{};super(t);this.file=t.file||"";this[j]=null;this.on(B,t=>{if(this[p]==="begin"||this[j]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(t.ondone)this.on(B,t.ondone);else this.on(B,t=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||c;this.filter=typeof t.filter==="function"?t.filter:H;this.writable=true;this.readable=false;this[E]=new a;this[S]=null;this[y]=null;this[d]=null;this[p]="begin";this[_]="";this[v]=null;this[b]=null;this[R]=false;this[x]=null;this[F]=false;this[N]=false;this[G]=false;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(typeof t.onentry==="function")this.on("entry",t.onentry)}[T](t,e){if(this[j]===null)this[j]=false;let n;try{n=new s(t,e,this[v],this[b])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock){if(this[N]){this[G]=true;if(this[p]==="begin")this[p]="header";this[k]("eof")}else{this[N]=true;this[k]("nullBlock")}}else{this[N]=false;if(!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(t)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{const t=this[d]=new l(n,this[v],this[b]);if(!this[j]){if(t.remain){const e=()=>{if(!t.invalid)this[j]=true};t.on("end",e)}else{this[j]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[k]("ignoredEntry",t);this[p]="ignore";t.resume()}else if(t.size>0){this[_]="";t.on("data",t=>this[_]+=t);this[p]="meta"}}else{this[v]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[k]("ignoredEntry",t);this[p]=t.remain?"ignore":"header";t.resume()}else{if(t.remain)this[p]="body";else{this[p]="header";t.end()}if(!this[y]){this[E].push(t);this[m]()}else this[E].push(t)}}}}}}[g](t){let e=true;if(!t){this[y]=null;e=false}else if(Array.isArray(t))this.emit.apply(this,t);else{this[y]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",t=>this[m]());e=false}}return e}[m](){do{}while(this[g](this[E].shift()));if(!this[E].length){const t=this[y];const e=!t||t.flowing||t.size===t.remain;if(e){if(!this[$])this.emit("drain")}else t.once("drain",t=>this.emit("drain"))}}[P](t,e){const n=this[d];const r=n.blockRemain;const i=r>=t.length&&e===0?t:t.slice(e,e+r);n.write(i);if(!n.blockRemain){this[p]="header";this[d]=null;n.end()}return i.length}[M](t,e){const n=this[d];const r=this[P](t,e);if(!this[d])this[w](n);return r}[k](t,e,n){if(!this[E].length&&!this[y])this.emit(t,e,n);else this[E].push([t,e,n])}[w](t){this[k]("meta",this[_]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[_],this[v],false);break;case"GlobalExtendedHeader":this[b]=u.parse(this[_],this[b],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[_].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[_].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[F]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[F])return;if(this[x]===null&&t){if(this[S]){t=Buffer.concat([this[S],t]);this[S]=null}if(t.lengththis[A](t));this[x].on("error",t=>this.abort(t));this[x].on("end",t=>{this[R]=true;this[A]()});this[$]=true;const n=this[x][e?"end":"write"](t);this[$]=false;return n}}this[$]=true;if(this[x])this[x].write(t);else this[A](t);this[$]=false;const e=this[E].length?false:this[y]?this[y].flowing:true;if(!e&&!this[E].length)this[y].once("drain",t=>this.emit("drain"));return e}[D](t){if(t&&!this[F])this[S]=this[S]?Buffer.concat([this[S],t]):t}[I](){if(this[R]&&!this[O]&&!this[F]&&!this[L]){this[O]=true;const t=this[d];if(t&&t.blockRemain){const e=this[S]?this[S].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t});if(this[S])t.write(this[S]);t.end()}this[k](B)}}[A](t){if(this[L])this[D](t);else if(!t&&!this[S])this[I]();else{this[L]=true;if(this[S]){this[D](t);const e=this[S];this[S]=null;this[C](e)}else{this[C](t)}while(this[S]&&this[S].length>=512&&!this[F]&&!this[G]){const t=this[S];this[S]=null;this[C](t)}this[L]=false}if(!this[S]||this[R])this[I]()}[C](t){let e=0;let n=t.length;while(e+512<=n&&!this[F]&&!this[G]){switch(this[p]){case"begin":case"header":this[T](t,e);e+=512;break;case"ignore":case"body":e+=this[P](t,e);break;case"meta":e+=this[M](t,e);break;default:throw new Error("invalid state: "+this[p])}}if(e{throw new Error("sync function called cb somehow?!?")};const N=(t,e)=>{if(process.platform!=="win32")return o.unlink(t,e);const n=t+".DELETE."+F.randomBytes(16).toString("hex");o.rename(t,n,t=>{if(t)return e(t);o.unlink(n,e)})};const G=t=>{if(process.platform!=="win32")return o.unlinkSync(t);const e=t+".DELETE."+F.randomBytes(16).toString("hex");o.renameSync(t,e);o.unlinkSync(e)};const H=(t,e,n)=>t===t>>>0?t:e===e>>>0?e:n;class Unpack extends s{constructor(t){if(!t)t={};t.ondone=(t=>{this[M]=true;this[T]()});super(t);this.reservations=f();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[A]=0;this[M]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!t.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=t.forceChown===true;this.win32=!!t.win32||process.platform==="win32";this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=c.resolve(t.cwd||process.cwd());this.strip=+t.strip||0;this.processUmask=process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",t=>this[p](t))}warn(t,e,n={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")n.recoverable=false;return super.warn(t,e,n)}[T](){if(this[M]&&this[A]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](t){if(this.strip){const e=t.path.split(/\/|\\/);if(e.length=this.strip)t.linkpath=e.slice(this.strip).join("/")}}if(!this.preservePaths){const e=t.path;if(e.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:e});return false}if(c.win32.isAbsolute(e)){const n=c.win32.parse(e);t.path=e.substr(n.root.length);const r=n.root;this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e})}}if(this.win32){const e=c.win32.parse(t.path);t.path=e.root===""?h.encode(t.path):e.root+h.encode(t.path.substr(e.root.length))}if(c.isAbsolute(t.path))t.absolute=t.path;else t.absolute=c.resolve(this.cwd,t.path);return true}[p](t){if(!this[O](t))return t.resume();r.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode)t.mode=t.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](t);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](t)}}[x](t,e){if(t.name==="CwdError")this.emit("error",t);else{this.warn("TAR_ENTRY_ERROR",t,{entry:e});this[P]();e.resume()}}[k](t,e,n){l(t,{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:e},n)}[D](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[I](t){return H(this.uid,t.uid,this.processUid)}[$](t){return H(this.gid,t.gid,this.processGid)}[v](t,e){const n=t.mode&4095||this.fmode;const r=new a.WriteStream(t.absolute,{flags:B(t.size),mode:n,autoClose:false});r.on("error",e=>this[x](e,t));let i=1;const s=n=>{if(n)return this[x](n,t);if(--i===0){o.close(r.fd,n=>{e();n?this[x](n,t):this[P]()})}};r.on("finish",e=>{const n=t.absolute;const a=r.fd;if(t.mtime&&!this.noMtime){i++;const e=t.atime||new Date;const r=t.mtime;o.futimes(a,e,r,t=>t?o.utimes(n,e,r,e=>s(e&&t)):s())}if(this[D](t)){i++;const e=this[I](t);const r=this[$](t);o.fchown(a,e,r,t=>t?o.chown(n,e,r,e=>s(e&&t)):s())}s()});const c=this.transform?this.transform(t)||t:t;if(c!==t){c.on("error",e=>this[x](e,t));t.pipe(c)}c.pipe(r)}[b](t,e){const n=t.mode&4095||this.dmode;this[k](t.absolute,n,n=>{if(n){e();return this[x](n,t)}let r=1;const i=n=>{if(--r===0){e();this[P]();t.resume()}};if(t.mtime&&!this.noMtime){r++;o.utimes(t.absolute,t.atime||new Date,t.mtime,i)}if(this[D](t)){r++;o.chown(t.absolute,this[I](t),this[$](t),i)}i()})}[E](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[w](t,e){this[_](t,t.linkpath,"symlink",e)}[S](t,e){this[_](t,c.resolve(this.cwd,t.linkpath),"link",e)}[C](){this[A]++}[P](){this[A]--;this[T]()}[L](t){this[P]();t.resume()}[m](t,e){return t.type==="File"&&!this.unlink&&e.isFile()&&e.nlink<=1&&process.platform!=="win32"}[d](t){this[C]();const e=[t.path];if(t.linkpath)e.push(t.linkpath);this.reservations.reserve(e,e=>this[y](t,e))}[y](t,e){this[k](c.dirname(t.absolute),this.dmode,n=>{if(n){e();return this[x](n,t)}o.lstat(t.absolute,(n,r)=>{if(r&&(this.keep||this.newer&&r.mtime>t.mtime)){this[L](t);e()}else if(n||this[m](t,r)){this[g](null,t,e)}else if(r.isDirectory()){if(t.type==="Directory"){if(!t.mode||(r.mode&4095)===t.mode)this[g](null,t,e);else o.chmod(t.absolute,t.mode,n=>this[g](n,t,e))}else o.rmdir(t.absolute,n=>this[g](n,t,e))}else N(t.absolute,n=>this[g](n,t,e))})})}[g](t,e,n){if(t)return this[x](t,e);switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[v](e,n);case"Link":return this[S](e,n);case"SymbolicLink":return this[w](e,n);case"Directory":case"GNUDumpDir":return this[b](e,n)}}[_](t,e,n,r){o[n](e,t.absolute,e=>{if(e)return this[x](e,t);r();this[P]();t.resume()})}}class UnpackSync extends Unpack{constructor(t){super(t)}[d](t){const e=this[k](c.dirname(t.absolute),this.dmode,j);if(e)return this[x](e,t);try{const n=o.lstatSync(t.absolute);if(this.keep||this.newer&&n.mtime>t.mtime)return this[L](t);else if(this[m](t,n))return this[g](null,t,j);else{try{if(n.isDirectory()){if(t.type==="Directory"){if(t.mode&&(n.mode&4095)!==t.mode)o.chmodSync(t.absolute,t.mode)}else o.rmdirSync(t.absolute)}else G(t.absolute);return this[g](null,t,j)}catch(e){return this[x](e,t)}}}catch(e){return this[g](null,t,j)}}[v](t,e){const n=t.mode&4095||this.fmode;const r=e=>{let n;try{o.closeSync(s)}catch(t){n=t}if(e||n)this[x](e||n,t)};let i;let s;try{s=o.openSync(t.absolute,B(t.size),n)}catch(t){return r(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",e=>this[x](e,t));t.pipe(a)}a.on("data",t=>{try{o.writeSync(s,t,0,t.length)}catch(t){r(t)}});a.on("end",e=>{let n=null;if(t.mtime&&!this.noMtime){const e=t.atime||new Date;const r=t.mtime;try{o.futimesSync(s,e,r)}catch(i){try{o.utimesSync(t.absolute,e,r)}catch(t){n=i}}}if(this[D](t)){const e=this[I](t);const r=this[$](t);try{o.fchownSync(s,e,r)}catch(i){try{o.chownSync(t.absolute,e,r)}catch(t){n=n||i}}}r(n)})}[b](t,e){const n=t.mode&4095||this.dmode;const r=this[k](t.absolute,n);if(r)return this[x](r,t);if(t.mtime&&!this.noMtime){try{o.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(r){}}if(this[D](t)){try{o.chownSync(t.absolute,this[I](t),this[$](t))}catch(r){}}t.resume()}[k](t,e){try{return l.sync(t,{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:e})}catch(t){return t}}[_](t,e,n,r){try{o[n+"Sync"](e,t.absolute);t.resume()}catch(e){return this[x](e,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},786:function(t,e,n){"use strict";const r=n(815);const i=n(968);const s=n(421);const o=n(266);const a=(t,e={})=>{let n=[];if(Array.isArray(t)){for(let r of t){let t=a.create(r,e);if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}else{n=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){n=[...new Set(n)]}return n};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return r(a.parse(t,e),e)}return r(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return i(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let n=s(t,e);if(e.noempty===true){n=n.filter(Boolean)}if(e.nodupes===true){n=[...new Set(n)]}return n});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},789:function(t,e,n){"use strict";const r=n(622);const i=n(747);const{promisify:s}=n(669);const o=n(232);const a=s(i.stat);const c=s(i.lstat);const l={directory:"isDirectory",file:"isFile"};function checkType({type:t}){if(t in l){return}throw new Error(`Invalid type specified: ${t}`)}const u=(t,e)=>t===undefined||e[l[t]]();t.exports=(async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:true,...e};checkType(e);const n=e.allowSymlinks?a:c;return o(t,async t=>{try{const i=await n(r.resolve(e.cwd,t));return u(e.type,i)}catch(t){return false}},e)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),allowSymlinks:true,type:"file",...e};checkType(e);const n=e.allowSymlinks?i.statSync:i.lstatSync;for(const i of t){try{const t=n(r.resolve(e.cwd,i));if(u(e.type,t)){return i}}catch(t){}}})},791:function(t,e,n){"use strict";const r=n(58);const{stdout:i,stderr:s}=n(546);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=n(883);const c=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const u=(t,e={})=>{if(e.level>3||e.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const n=i?i.level:0;t.level=e.level===undefined?n:e.level};class ChalkClass{constructor(t){return h(t)}}const h=t=>{const e={};u(e,t);e.template=((...t)=>v(e.template,...t));Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});e.template.Instance=ChalkClass;return e.template};function Chalk(t){return h(t)}for(const[t,e]of Object.entries(r)){l[t]={get(){const n=y(this,d(e.open,e.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:n});return n}}}l.visible={get(){const t=y(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of f){l[t]={get(){const{level:e}=this;return function(...n){const i=d(r.color[c[e]][t](...n),r.color.close,this._styler);return y(this,i,this._isEmpty)}}}}for(const t of f){const e="bg"+t[0].toUpperCase()+t.slice(1);l[e]={get(){const{level:e}=this;return function(...n){const i=d(r.bgColor[c[e]][t](...n),r.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const p=Object.defineProperties(()=>{},{...l,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const d=(t,e,n)=>{let r;let i;if(n===undefined){r=t;i=e}else{r=n.openAll+t;i=e+n.closeAll}return{open:t,close:e,openAll:r,closeAll:i,parent:n}};const y=(t,e,n)=>{const r=(...t)=>{return m(r,t.length===1?""+t[0]:t.join(" "))};r.__proto__=p;r._generator=t;r._styler=e;r._isEmpty=n;return r};const m=(t,e)=>{if(t.level<=0||!e){return t._isEmpty?"":e}let n=t._styler;if(n===undefined){return e}const{openAll:r,closeAll:i}=n;if(e.indexOf("")!==-1){while(n!==undefined){e=o(e,n.close,n.open);n=n.parent}}const s=e.indexOf("\n");if(s!==-1){e=a(e,i,r,s)}return r+e+i};let g;const v=(t,...e)=>{const[r]=e;if(!Array.isArray(r)){return e.join(" ")}const i=e.slice(1);const s=[r.raw[0]];for(let t=1;t{return new Promise((s,o)=>{if(typeof e!=="function"){throw new TypeError("Mapper function is required")}if(!(typeof n==="number"&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const l=t[Symbol.iterator]();let u=false;let h=false;let f=0;let p=0;const d=()=>{if(u){return}const t=l.next();const n=p;p++;if(t.done){h=true;if(f===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}f++;(async()=>{try{const r=await t.value;a[n]=await e(r,n);f--;d()}catch(t){if(i){u=true;o(t)}else{c.push(t);f--;d()}}})()};for(let t=0;t0)return;e=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);next()}if(t._readableState.endEmitted)return next();t.on("merge2UnpipeEnd",onend);t.on("end",onend);t.pipe(a,{end:false});t.resume()}for(let t=0;t{let n=(t,i={})=>{let s=e.escapeInvalid&&r.isInvalidBrace(i);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((s||o)&&r.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=n(e)}}return a};return n(t)})},821:function(t,e,n){var r=n(622);var i=n(747);var s=parseInt("0777",8);t.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(t,e,n,o){if(typeof e==="function"){n=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var a=e.mode;var c=e.fs||i;if(a===undefined){a=s&~process.umask()}if(!o)o=null;var l=n||function(){};t=r.resolve(t);c.mkdir(t,a,function(n){if(!n){o=o||t;return l(null,o)}switch(n.code){case"ENOENT":mkdirP(r.dirname(t),e,function(n,r){if(n)l(n,r);else mkdirP(t,e,l,r)});break;default:c.stat(t,function(t,e){if(t||!e.isDirectory())l(n,o);else l(null,o)});break}})}mkdirP.sync=function sync(t,e,n){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var a=e.fs||i;if(o===undefined){o=s&~process.umask()}if(!n)n=null;t=r.resolve(t);try{a.mkdirSync(t,o);n=n||t}catch(i){switch(i.code){case"ENOENT":n=sync(r.dirname(t),e,n);sync(t,e,n);break;default:var c;try{c=a.statSync(t)}catch(t){throw i}if(!c.isDirectory())throw i;break}}return n}},828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(635);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:s.fs.createDirentFromStats(e,t)};if(this._settings.stats){n.stats=t}return n}_isFatalError(t){return!s.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},830:function(t,e,n){"use strict";t.exports=n(258)},835:function(t){"use strict";t.exports=((t,e=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof t!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``)}if(typeof e!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(e===0){return t}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(r,n.indent.repeat(e))})},839:function(t,e,n){"use strict";const r=n(87);const i=n(199);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(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!t.isTTY&&o!==true){return 0}const e=o?1:0;if(process.platform==="win32"){const t=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in s)||s.CI_NAME==="codeship"){return 1}return e}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 t=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return t>=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 e}return e}function getSupportLevel(t){const e=supportsColor(t);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},842:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){wrapper[e]=t[e]});return wrapper;function wrapper(){var e=new Array(arguments.length);for(var n=0;nthis._isNonFatalError(t)}_isNonFatalError(t){return r.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},851:function(t,e,n){"use strict";const r=n(622);const i="\\\\/";const s=`[^${i}]`;const o="\\.";const a="\\+";const c="\\?";const l="\\/";const u="(?=.)";const h="[^/]";const f=`(?:${l}|$)`;const p=`(?:^|${l})`;const d=`${o}{1,2}${f}`;const y=`(?!${o})`;const m=`(?!${p}${d})`;const g=`(?!${o}{0,1}${f})`;const v=`(?!${d})`;const b=`[^.${l}]`;const _=`${h}*?`;const w={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:h,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:_,START_ANCHOR:p};const S={...w,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?S:w}}},861:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(747);const o=n(862);const a=n(616);const c=n(622);const l=t.exports=((t,e,n)=>{if(typeof e==="function")n=e;if(Array.isArray(t))e=t,t={};if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?u(i,e):i.file?h(i,e,n):i.sync?d(i,e):y(i,e)});const u=(t,e)=>{const n=new i.Sync(t);const r=new o.WriteStreamSync(t.file,{mode:t.mode||438});n.pipe(r);f(n,e)};const h=(t,e,n)=>{const r=new i(t);const s=new o.WriteStream(t.file,{mode:t.mode||438});r.pipe(s);const a=new Promise((t,e)=>{s.on("error",e);s.on("close",t);r.on("error",e)});p(r,e);return n?a.then(n,n):a};const f=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")a({file:c.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const p=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return a({file:c.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>p(t,e));else t.add(n)}t.end()};const d=(t,e)=>{const n=new i.Sync(t);f(n,e);return n};const y=(t,e)=>{const n=new i(t);p(n,e);return n}},862:function(t,e,n){"use strict";const r=n(563);const i=n(614).EventEmitter;const s=n(747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const l=Symbol("_autoClose");const u=Symbol("_close");const h=Symbol("_ended");const f=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const y=Symbol("_flush");const m=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const _=Symbol("_onerror");const w=Symbol("_onopen");const S=Symbol("_onread");const E=Symbol("_onwrite");const R=Symbol("_open");const O=Symbol("_path");const k=Symbol("_pos");const x=Symbol("_queue");const A=Symbol("_read");const C=Symbol("_readSize");const P=Symbol("_reading");const M=Symbol("_remain");const T=Symbol("_size");const L=Symbol("_write");const D=Symbol("_writing");const I=Symbol("_defaultFlag");class ReadStream extends r{constructor(t,e){e=e||{};super(e);this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[f]=typeof e.fd==="number"?e.fd:null;this[O]=t;this[C]=e.readSize||16*1024*1024;this[P]=false;this[T]=typeof e.size==="number"?e.size:Infinity;this[M]=this[T];this[l]=typeof e.autoClose==="boolean"?e.autoClose:true;if(typeof this[f]==="number")this[A]();else this[R]()}get fd(){return this[f]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){s.open(this[O],"r",(t,e)=>this[w](t,e))}[w](t,e){if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[A]()}}[g](){return Buffer.allocUnsafe(Math.min(this[C],this[M]))}[A](){if(!this[P]){this[P]=true;const t=this[g]();if(t.length===0)return process.nextTick(()=>this[S](null,0,t));s.read(this[f],t,0,t.length,null,(t,e,n)=>this[S](t,e,n))}}[S](t,e,n){this[P]=false;if(t)this[_](t);else if(this[m](e,n))this[A]()}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}[_](t){this[P]=true;this[u]();this.emit("error",t)}[m](t,e){let n=false;this[M]-=t;if(t>0)n=super.write(tthis[w](t,e))}[w](t,e){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";this[R]()}else if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[y]()}}end(t,e){if(t)this.write(t,e);this[h]=true;if(!this[D]&&!this[x].length&&typeof this[f]==="number")this[E](null,0)}write(t,e){if(typeof t==="string")t=new Buffer(t,e);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[f]===null||this[D]||this[x].length){this[x].push(t);this[b]=true;return false}this[D]=true;this[L](t);return true}[L](t){s.write(this[f],t,0,t.length,this[k],(t,e)=>this[E](t,e))}[E](t,e){if(t)this[_](t);else{if(this[k]!==null)this[k]+=e;if(this[x].length)this[y]();else{this[D]=false;if(this[h]&&!this[p]){this[p]=true;this[u]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[y](){if(this[x].length===0){if(this[h])this[E](null,0)}else if(this[x].length===1)this[L](this[x].pop());else{const t=this[x];this[x]=[];$(this[f],t,this[k],(t,e)=>this[E](t,e))}}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}}class WriteStreamSync extends WriteStream{[R](){let t;try{t=s.openSync(this[O],this[d],this[v])}catch(t){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";return this[R]()}else throw t}this[w](null,t)}[u](){if(this[l]&&typeof this[f]==="number"){try{s.closeSync(this[f])}catch(t){}this[f]=null;this.emit("close")}}[L](t){try{this[E](null,s.writeSync(this[f],t,0,t.length,this[k]))}catch(t){this[E](t,0)}}}const $=(t,e,n,r)=>{const i=(t,n)=>r(t,n,e);const s=new c;s.oncomplete=i;o.writeBuffers(t,e,n,s)};e.ReadStream=ReadStream;e.ReadStreamSync=ReadStreamSync;e.WriteStream=WriteStream;e.WriteStreamSync=WriteStreamSync},867:function(t){t.exports=require("tty")},876:function(t,e,n){"use strict";var r=n(802);var i=n(622).posix.dirname;var s=n(87).platform()==="win32";var o="/";var a=/\\/g;var c=/[\{\[].*[\/]*.*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var u=/\\([\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var n=Object.assign({flipBackslashes:true},e);if(n.flipBackslashes&&s&&t.indexOf(o)<0){t=t.replace(a,o)}if(c.test(t)){t+=o}t+="a";do{t=i(t)}while(r(t)||l.test(t));return t.replace(u,"$1")}},880:function(t){t.exports=function(t,n){var r=[];for(var i=0;i{let r=t.indexOf(e);if(r===-1){return t}const i=e.length;let s=0;let o="";do{o+=t.substr(s,r-s)+e+n;s=r+i;r=t.indexOf(e,s)}while(r!==-1);o+=t.substr(s);return o};const n=(t,e,n,r)=>{let i=0;let s="";do{const o=t[r-1]==="\r";s+=t.substr(i,(o?r-1:r)-i)+e+(o?"\r\n":"\n")+n;i=r+1;r=t.indexOf("\n",i)}while(r!==-1);s+=t.substr(i);return s};t.exports={stringReplaceAll:e,stringEncaseCRLFWithFirstIndex:n}},885:function(t,e,n){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var r=n(747);var i=r.realpath;var s=r.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=n(528);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,n){if(a){return i(t,e,n)}if(typeof e==="function"){n=e;e=null}i(t,e,function(r,i){if(newError(r)){c.realpath(t,e,n)}else{n(r,i)}})}function realpathSync(t,e){if(a){return s(t,e)}try{return s(t,e)}catch(n){if(newError(n)){return c.realpathSync(t,e)}else{throw n}}}function monkeypatch(){r.realpath=realpath;r.realpathSync=realpathSync}function unmonkeypatch(){r.realpath=i;r.realpathSync=s}},886:function(t,e,n){"use strict";var r=n(164);function fastqueue(t,e,n){if(typeof t==="function"){n=e;e=t;t=null}var i=r(Task);var s=null;var o=null;var a=0;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:n,running:running,resume:resume,idle:idle,length:length,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=s;var e=0;while(t){t=t.next;e++}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t{r.push(t(e,n,r[r.length-1]));return r});i=t===Boolean||t[e]===true}else if(typeof r==="function"){i=r===Boolean||r[e]===true}else{throw new TypeError(`Type missing or not a function or valid array type: ${n}`)}if(n[1]!=="-"&&n.length>2){throw new TypeError(`Short argument keys (with a single hyphen) must have only one character: ${n}`)}a[n]=[r,i]}for(let t=0,e=n.length;t0){s._=s._.concat(n.slice(t));break}if(e==="--"){s._=s._.concat(n.slice(t+1));break}if(e.length>1&&e[0]==="-"){const i=e[1]==="-"||e.length===2?[e]:e.slice(1).split("").map(t=>`-${t}`);for(let e=0;e1&&n[t+1][0]==="-"){const t=l===h?"":` (alias for ${h})`;throw new Error(`Option requires argument: ${l}${t}`)}s[h]=f(n[t+1],h,s[h]);++t}else{s[h]=f(u,h,s[h])}}}else{s._.push(e)}}return s}arg.flag=(t=>{t[e]=true;return t});arg.COUNT=arg.flag((t,e,n)=>(n||0)+1);t.exports=arg},892:function(t){"use strict";const e=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 n=t.exports=(t=>t?Object.keys(t).map(n=>[e.has(n)?e.get(n):n,t[n]]).reduce((t,e)=>(t[e[0]]=e[1],t),Object.create(null)):{})},896:function(t,e,n){"use strict";const r=n(921);const i=t=>{if(!((Number.isInteger(t)||t===Infinity)&&t>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const e=[];let n=0;const i=()=>{n--;if(e.length>0){e.shift()()}};const s=(t,e,...s)=>{n++;const o=r(t,...s);e(o);o.then(i,i)};const o=(r,i,...o)=>{if(nnew Promise(n=>o(t,n,...e));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>e.length}});return a};t.exports=i;t.exports.default=i},899:function(t,e,n){"use strict";const r=n(622);const i=n(789);const s=n(641);const o=Symbol("findUp.stop");t.exports=(async(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=async e=>{if(typeof t!=="function"){return i(a,e)}const n=await t(e.cwd);if(typeof n==="string"){return i([n],e)}return n};while(true){const t=await c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.sync=((t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=e=>{if(typeof t!=="function"){return i.sync(a,e)}const n=t(e.cwd);if(typeof n==="string"){return i.sync([n],e)}return n};while(true){const t=c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.exists=s;t.exports.sync.exists=s.sync;t.exports.stop=o},900:function(t,e,n){var r=n(413).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(e,n){if(!(this instanceof ReadStream))return new ReadStream(e,n);r.call(this);var i=this;this.path=e;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t);i.readable=false;return}i.fd=e;i.emit("open",e);i._read()})}function WriteStream(e,n){if(!(this instanceof WriteStream))return new WriteStream(e,n);r.call(this);this.path=e;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},903:function(t){t.exports=require("zlib")},920:function(t){t.exports=runParallel;function runParallel(t,e){var n,r,i;var s=true;if(Array.isArray(t)){n=[];r=t.length}else{i=Object.keys(t);n={};r=i.length}function done(t){function end(){if(e)e(t,n);e=null}if(s)process.nextTick(end);else end()}function each(t,e,i){n[t]=i;if(--r===0||e){done(e)}}if(!r){done(null)}else if(i){i.forEach(function(e){t[e](function(t,n){each(e,t,n)})})}else{t.forEach(function(t,e){t(function(t,n){each(e,t,n)})})}s=false}},921:function(t){"use strict";const e=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=e;t.exports.default=e},932:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=e.exec(t);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},945:function(t,e,n){const r=n(331);const i=n(365);const s={};const o=Object.keys(r);function wrapRaw(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}const r=t(e);if(typeof r==="object"){for(let t=r.length,e=0;e{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const e=i(t);const n=Object.keys(e);n.forEach(n=>{const r=e[n];s[t][n]=wrapRounded(r);s[t][n].raw=wrapRaw(r)})});t.exports=s},948:function(t,e,n){const r=n(357);const i=n(622);const s=n(747);let o=undefined;try{o=n(700)}catch(t){}const a={nosort:true,silent:true};let c=0;const l=process.platform==="win32";const u=t=>{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(e=>{t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||a};const h=(t,e,n)=>{if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");u(e);let i=0;let s=null;let a=0;const l=t=>{s=s||t;if(--a===0)n(s)};const h=(t,r)=>{if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(t=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&if(t,e,n),i*100)}if(r.code==="EMFILE"&&cf(t,e,n),c++)}if(r.code==="ENOENT")r=null}c=0;l(r)};f(t,e,n)})};if(e.disableGlob||!o.hasMagic(t))return h(null,[t]);e.lstat(t,(n,r)=>{if(!n)return h(null,[t]);o(t,e.glob,h)})};const f=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.lstat(t,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&l)p(t,e,r,n);if(i&&i.isDirectory())return y(t,e,r,n);e.unlink(t,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return l?p(t,e,r,n):y(t,e,r,n);if(r.code==="EISDIR")return y(t,e,r,n)}return n(r)})})};const p=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");if(n)r(n instanceof Error);e.chmod(t,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else e.stat(t,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())y(t,e,n,i);else e.unlink(t,i)})})};const d=(t,e,n)=>{r(t);r(e);if(n)r(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw n}let i;try{i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw n}if(i.isDirectory())v(t,e,n);else e.unlinkSync(t)};const y=(t,e,n,i)=>{r(t);r(e);if(n)r(n instanceof Error);r(typeof i==="function");e.rmdir(t,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))m(t,e,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const m=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.readdir(t,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return e.rmdir(t,n);let a;s.forEach(r=>{h(i.join(t,r),e,r=>{if(a)return;if(r)return n(a=r);if(--o===0)e.rmdir(t,n)})})})};const g=(t,e)=>{e=e||{};u(e);r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r(e,"rimraf: missing options");r.equal(typeof e,"object","rimraf: options should be object");let n;if(e.disableGlob||!o.hasMagic(t)){n=[t]}else{try{e.lstatSync(t);n=[t]}catch(r){n=o.sync(t,e.glob)}}if(!n.length)return;for(let t=0;t{r(t);r(e);if(n)r(n instanceof Error);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")b(t,e)}};const b=(t,e)=>{r(t);r(e);e.readdirSync(t).forEach(n=>g(i.join(t,n),e));const n=l?100:1;let s=0;do{let r=true;try{const i=e.rmdirSync(t,e);r=false;return i}finally{if(++ss;const c=r===s&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},955:function(t,e,n){const r=process.env.__FAKE_PLATFORM__||process.platform;const i=r==="win32";const s=global.__FAKE_TESTING_FS__||n(747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:c,UV_FS_O_FILEMAP:l=0}=s.constants;const u=i&&!!l;const h=512*1024;const f=l|a|o|c;t.exports=!u?()=>"w":t=>t{let n=(t,s={})=>{let o=i.isInvalidBrace(s);let a=t.invalid===true&&e.escapeInvalid===true;let c=o===true||a===true;let l=e.escapeInvalid===true?"\\":"";let u="";if(t.isOpen===true){return l+t.value}if(t.isClose===true){return l+t.value}if(t.type==="open"){return c?l+t.value:"("}if(t.type==="close"){return c?l+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":c?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let n=i.reduce(t.nodes);let s=r(...n,{...e,wrap:false,toRegex:true});if(s.length!==0){return n.length>1&&s.length>1?`(${s})`:s}}if(t.nodes){for(let e of t.nodes){u+=n(e,t)}}return u};return n(t)};t.exports=s},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(468);const i=n(25);const s=n(69);e.Settings=s.default;function stat(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.stat=stat;function statSync(t,e){const n=getSettings(e);return i.read(t,n)}e.statSync=statSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},998:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\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(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return s.get(t)||t}function parseArguments(t,e){const n=[];const s=e.trim().split(/\s*,\s*/g);let o;for(const e of s){if(!isNaN(e)){n.push(Number(e))}else if(o=e.match(r)){n.push(o[2].replace(i,(t,e,n)=>e?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const t of Object.keys(n)){if(Array.isArray(n[t])){if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}if(n[t].length>0){r=r[t].apply(r,n[t])}else{r=r[t]}}}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})}},function(t){"use strict";!function(){t.nmd=function(t){t.paths=[];if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});return t}}();!function(){t.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();!function(){var e=Object.prototype.hasOwnProperty;t.d=function(t,n,r){if(!e.call(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r})}}}();!function(){t.t=function(e,n){if(n&1)e=this(e);if(n&8)return e;if(n&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);t.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(n&2&&typeof e!="string")for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r}}();!function(){t.n=function(e){var n=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};t.d(n,"a",n);return n}}()}); \ No newline at end of file +`;const k=o()({"--repo":String,"--dest":String,"--html":Boolean,"--vue":Boolean,"--template":Boolean,"--page":Boolean,"--component":Boolean,"--layout":Boolean,"--name":String,"--version":Boolean,"--help":Boolean,"-h":"--help","-v":"--version","-n":"--name"});R({help:O,args:k})},365:function(t,e,n){const r=n(331);function buildGraph(){const t={};const e=Object.keys(r);for(let n=e.length,r=0;r{return[...new Set([].concat(...t))]})},378:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);const s=n(622);const o=n(730);const a=n(708);const c=n(493);const l=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=r(i.readFile);const h=t=>e=>{if(e.startsWith("!")){return"!"+s.posix.join(t,e.slice(1))}return s.posix.join(t,e)};const f=(t,e)=>{const n=c(s.relative(e.cwd,s.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(h(n))};const p=t=>{return t.reduce((t,e)=>{t.add(f(e.content,{cwd:e.cwd,fileName:e.filePath}));return t},a())};const d=(t,e)=>{if(s.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return s.join(t,e)};const y=(t,e)=>{return n=>t.ignores(c(s.relative(e,d(e,n))))};const m=async(t,e)=>{const n=s.join(e,t);const r=await u(n,"utf8");return{cwd:e,filePath:n,content:r}};const g=(t,e)=>{const n=s.join(e,t);const r=i.readFileSync(n,"utf8");return{cwd:e,filePath:n,content:r}};const v=({ignore:t=[],cwd:e=process.cwd()}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=v(t);const e=await o("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=await Promise.all(e.map(e=>m(e,t.cwd)));const r=p(n);return y(r,t.cwd)});t.exports.sync=(t=>{t=v(t);const e=o.sync("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=e.map(e=>g(e,t.cwd));const r=p(n);return y(r,t.cwd)})},385:function(t,e){"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,n,r=1,i)=>{if(i===false)return false;if(!e.isInteger(t)||!e.isInteger(n))return false;return(Number(n)-Number(t))/Number(r)>=i});e.escapeNode=((t,e=0,n)=>{let r=t.nodes[e];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const n=t=>{for(let r=0;r{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(n!==null){return e(n,undefined)}for(const e of r){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const n=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},397:function(t){"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},406:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(675);const i=n(416);const s=n(190);class SyncReader extends s.default{constructor(){super(...arguments);this._scandir=r.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const n=this._scandir(t,this._settings.fsScandirSettings);for(const t of n){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!i.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const n=t.path;if(e!==undefined){t.path=i.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},409:function(t,e){"use strict";e.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"]]);e.code=new Map(Array.from(e.name).map(t=>[t[1],t[0]]))},412:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(762);const o=n(747);const a=n(862);const c=n(616);const l=n(622);const u=n(728);const h=t.exports=((t,e,n)=>{const i=r(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);return i.sync?f(i,e):d(i,e,n)});const f=(t,e)=>{const n=new i.Sync(t);let r=true;let s;let a;try{try{s=o.openSync(t.file,"r+")}catch(e){if(e.code==="ENOENT")s=o.openSync(t.file,"w+");else throw e}const i=o.fstatSync(s);const c=Buffer.alloc(512);t:for(a=0;ai.size)break;a+=n;if(t.mtimeCache)t.mtimeCache.set(e.path,e.mtime)}r=false;p(t,n,a,s,e)}finally{if(r)try{o.closeSync(s)}catch(t){}}};const p=(t,e,n,r,i)=>{const s=new a.WriteStreamSync(t.file,{fd:r,start:n});e.pipe(s);y(e,i)};const d=(t,e,n)=>{e=Array.from(e);const r=new i(t);const s=(e,n,r)=>{const i=(t,n)=>{if(t)o.close(e,e=>r(t));else r(null,n)};let s=0;if(n===0)return i(null,0);let a=0;const c=Buffer.alloc(512);const l=(r,h)=>{if(r)return i(r);a+=h;if(a<512&&h)return o.read(e,c,a,c.length-a,s+a,l);if(s===0&&c[0]===31&&c[1]===139)return i(new Error("cannot append to compressed archives"));if(a<512)return i(null,s);const f=new u(c);if(!f.cksumValid)return i(null,s);const p=512*Math.ceil(f.size/512);if(s+p+512>n)return i(null,s);s+=p+512;if(s>=n)return i(null,s);if(t.mtimeCache)t.mtimeCache.set(f.path,f.mtime);a=0;o.read(e,c,0,512,s,l)};o.read(e,c,0,512,s,l)};const c=new Promise((n,i)=>{r.on("error",i);let c="r+";const l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+"){c="w+";return o.open(t.file,c,l)}if(u)return i(u);o.fstat(h,(o,c)=>{if(o)return i(o);s(h,c.size,(s,o)=>{if(s)return i(s);const c=new a.WriteStream(t.file,{fd:h,start:o});r.pipe(c);c.on("error",i);c.on("close",n);m(r,e)})})};o.open(t.file,c,l)});return n?c.then(n,n):c};const y=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")c({file:l.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const m=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return c({file:l.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>m(t,e));else t.add(n)}t.end()}},413:function(t){t.exports=require("stream")},416:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[\\/]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,n){if(t===""){return e}return t+n+e}e.joinPathSegments=joinPathSegments},417:function(t){t.exports=require("crypto")},419:function(t,e,n){"use strict";const r=n(563);const i=n(125);const s=n(728);const o=n(712);const a=n(747);const c=n(622);const l=n(409);const u=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const p=Symbol("directory");const d=Symbol("symlink");const y=Symbol("hardlink");const m=Symbol("header");const g=Symbol("read");const v=Symbol("lstat");const b=Symbol("onlstat");const _=Symbol("onread");const w=Symbol("onreadlink");const S=Symbol("openfile");const E=Symbol("onopenfile");const R=Symbol("close");const O=Symbol("mode");const k=n(477);const x=n(3);const A=n(660);const C=k(class WriteEntry extends r{constructor(t,e){e=e||{};super(e);if(typeof t!=="string")throw new TypeError("path is required");this.path=t;this.portable=!!e.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=e.maxReadSize||u;this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.preservePaths=!!e.preservePaths;this.cwd=e.cwd||process.cwd();this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(!this.preservePaths&&c.win32.isAbsolute(t)){const e=c.win32.parse(t);this.path=t.substr(e.root.length);n=e.root}this.win32=!!e.win32||process.platform==="win32";if(this.win32){this.path=x.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=e.absolute||c.resolve(this.cwd,t);if(this.path==="")this.path="./";if(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.statCache.has(this.absolute))this[b](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[b](e)})}[b](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile())t.size=0;this.type=M(t);this.emit("stat",t);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[d]();default:return this.end()}}[O](t){return A(t,this.type==="Directory",this.portable)}[m](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[O](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 i({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)}[p](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[m]();this.end()}[d](){a.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[w](e)})}[w](t){this.linkpath=t;this[m]();this.end()}[y](t){this.type="Link";this.linkpath=c.relative(this.cwd,t);this.stat.size=0;this[m]();this.end()}[f](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const e=this.linkCache.get(t);if(e.indexOf(this.cwd)===0)return this[y](e)}this.linkCache.set(t,this.absolute)}this[m]();if(this.stat.size===0)return this.end();this[S]()}[S](){a.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[E](e)})}[E](t){const e=512*Math.ceil(this.stat.size/512);const n=Math.min(e,this.maxReadSize);const r=Buffer.allocUnsafe(n);this[g](t,r,0,r.length,0,this.stat.size,e)}[g](t,e,n,r,i,s,o){a.read(t,e,n,r,i,(a,c)=>{if(a){return this[R](t,()=>this.emit("error",a))}this[_](t,e,n,r,i,s,o,c)})}[R](t,e){a.close(t,e)}[_](t,e,n,r,i,s,o,a){if(a<=0&&s>0){const e=new Error("encountered unexpected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a>s){const e=new Error("did not encounter expected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a===s){for(let t=a;tt?this.emit("error",t):this.end())}if(n>=r){e=Buffer.allocUnsafe(r);n=0}r=e.length-n;this[g](t,e,n,r,i,s,o)}});class WriteEntrySync extends C{constructor(t,e){super(t,e)}[v](){this[b](a.lstatSync(this.absolute))}[d](){this[w](a.readlinkSync(this.absolute))}[S](){this[E](a.openSync(this.absolute,"r"))}[g](t,e,n,r,i,s,o){let c=true;try{const l=a.readSync(t,e,n,r,i);this[_](t,e,n,r,i,s,o,l);c=false}finally{if(c)try{this[R](t,()=>{})}catch(t){}}}[R](t,e){a.closeSync(t);e()}}const P=k(class WriteEntryTar extends r{constructor(t,e){e=e||{};super(e);this.preservePaths=!!e.preservePaths;this.portable=!!e.portable;this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=t.path;this.mode=this[O](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:e.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=t.linkpath;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(c.isAbsolute(this.path)&&!this.preservePaths){const t=c.parse(this.path);n=t.root;this.path=this.path.substr(t.root.length)}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new s({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(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({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);t.pipe(this)}[O](t){return A(t,this.type==="Directory",this.portable)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=e;return super.write(t)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});C.Sync=WriteEntrySync;C.Tar=P;const M=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=C},421:function(t,e,n){"use strict";const r=n(543);const i=n(815);const s=n(385);const o=(t="",e="",n=false)=>{let r=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return n?s.flatten(e).map(t=>`{${t}}`):e}for(let i of t){if(Array.isArray(i)){for(let t of i){r.push(o(t,e,n))}}else{for(let t of e){if(n===true&&typeof t==="string")t=`{${t}}`;r.push(Array.isArray(t)?o(i,t,n):i+t)}}}return s.flatten(r)};const a=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,c={})=>{t.queue=[];let l=c;let u=c.queue;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;u=l.queue}if(t.invalid||t.dollar){u.push(o(u.pop(),i(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(o(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=s.reduce(t.nodes);if(s.exceedsLimit(...a,e.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=r(...a,e);if(c.length===0){c=i(t,e)}u.push(o(u.pop(),c));t.nodes=[];return}let h=s.encloseBrace(t);let f=t.queue;let p=t;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;f=p.queue}for(let e=0;esuper.write(t));this.zip.on("end",t=>super.end());this.zip.on("drain",t=>this[P]());this.on("resume",t=>this.zip.resume())}else this.on("drain",this[P]);this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[p]=new l;this[v]=0;this.jobs=+t.jobs||4;this[m]=false;this[f]=false}[C](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t)this.write(t);this[f]=true;this[y]();return this}write(t){if(this[f])throw new Error("write after end");if(t instanceof s)this[w](t);else this[_](t);return this.flowing}[w](t){const e=T.resolve(this.cwd,t.path);if(this.prefix)t.path=this.prefix+"/"+t.path.replace(/^\.(\/+|$)/,"");if(!this.filter(t.path,t))t.resume();else{const n=new PackJob(t.path,e,false);n.entry=new c(t,this[x](n));n.entry.on("end",t=>this[b](n));this[v]+=1;this[p].push(n)}this[y]()}[_](t){const e=T.resolve(this.cwd,t);if(this.prefix)t=this.prefix+"/"+t.replace(/^\.(\/+|$)/,"");this[p].push(new PackJob(t,e));this[y]()}[S](t){t.pending=true;this[v]+=1;const e=this.follow?"stat":"lstat";M[e](t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)this.emit("error",e);else this[h](t,n)})}[h](t,e){this.statCache.set(t.absolute,e);t.stat=e;if(!this.filter(t.path,e))t.ignore=true;this[y]()}[E](t){t.pending=true;this[v]+=1;M.readdir(t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)return this.emit("error",e);this[R](t,n)})}[R](t,e){this.readdirCache.set(t.absolute,e);t.readdir=e;this[y]()}[y](){if(this[m])return;this[m]=true;for(let t=this[p].head;t!==null&&this[v]this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[k](t){this[v]+=1;try{return new this[A](t.path,this[x](t)).on("end",()=>this[b](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[P](){if(this[d]&&this[d].entry)this[d].entry.resume()}[O](t){t.piped=true;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});const e=t.entry;const n=this.zip;if(n)e.on("data",t=>{if(!n.write(t))e.pause()});else e.on("data",t=>{if(!super.write(t))e.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends D{constructor(t){super(t);this[A]=a}pause(){}resume(){}[S](t){const e=this.follow?"statSync":"lstatSync";this[h](t,M[e](t.absolute))}[E](t,e){this[R](t,M.readdirSync(t.absolute))}[O](t){const e=t.entry;const n=this.zip;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});if(n)e.on("data",t=>{n.write(t)});else e.on("data",t=>{super[C](t)})}}D.Sync=PackSync;t.exports=D},438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},439:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);async function isType(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{const s=await r(i[t])(n);return s[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{return i[t](n)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},442:function(t,e,n){const r=n(357);t.exports=(()=>{const t=new Map;const e=new Map;const{join:i}=n(622);const s=t=>i(t).split(/[\\\/]/).slice(0,-1).reduce((t,e)=>t.length?t.concat(i(t[t.length-1],e)):[e],[]);const o=new Set;const a=n=>{const r=e.get(n);if(!r)throw new Error("function does not have any path reservations");return{paths:r.paths.map(e=>t.get(e)),dirs:[...r.dirs].map(e=>t.get(e))}};const c=t=>{const{paths:e,dirs:n}=a(t);return e.every(e=>e[0]===t)&&n.every(e=>e[0]instanceof Set&&e[0].has(t))};const l=t=>{if(o.has(t)||!c(t))return false;o.add(t);t(()=>u(t));return true};const u=n=>{if(!o.has(n))return false;const{paths:i,dirs:s}=e.get(n);const a=new Set;i.forEach(e=>{const i=t.get(e);r.equal(i[0],n);if(i.length===1)t.delete(e);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach(t=>a.add(t))}});s.forEach(e=>{const i=t.get(e);r(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(e)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(n)});o.delete(n);a.forEach(t=>l(t));return true};const h=(n,r)=>{const i=new Set(n.map(t=>s(t)).reduce((t,e)=>t.concat(e)));e.set(r,{dirs:i,paths:n});n.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[r]);else n.push(r)});i.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[new Set([r])]);else if(n[n.length-1]instanceof Set)n[n.length-1].add(r);else n.push(new Set([r]))});return l(r)};return{check:c,reserve:h}})},468:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){return callFailureCallback(n,r)}if(!i.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(n,i)}e.fs.stat(t,(t,r)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(n,t)}return callSuccessCallback(n,i)}if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}callSuccessCallback(n,r)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},477:function(t){"use strict";t.exports=(t=>(class extends t{warn(t,e,n={}){if(this.file)n.file=this.file;if(this.cwd)n.cwd=this.cwd;n.code=e instanceof Error&&e.code||t;n.tarCode=t;if(!this.strict&&n.recoverable!==false){if(e instanceof Error){n=Object.assign(e,n);e=e.message}this.emit("warn",n.tarCode,e,n)}else if(e instanceof Error){this.emit("error",Object.assign(e,n))}else this.emit("error",Object.assign(new Error(`${t}: ${e}`),n))}}))},483:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=n(564);var i=n(622);var s=_interopDefault(n(821));var o=n(747);var a=_interopDefault(n(137));function resolvePath(t){return i.resolve.apply(null,t)}function normaliseArguments(t){var e=t.length;var n=true;var r=[];var i=[null];var s;for(s=0;s{const e=/^\\\\\?\\/.test(t);const n=/[^\u0000-\u0080]+/.test(t);if(e||n){return t}return t.replace(/\\/g,"/")})},507:function(t,e,n){"use strict";const r=n(357);const i=n(293).Buffer;const s=n(903);const o=e.constants=n(63);const a=n(563);const c=i.concat;const l=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const y=Symbol("onError");const m=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const _=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(t,e){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[b]=false;this[u]=t;this[h]=t.flush;this[f]=t.finishFlush;try{this[d]=new s[e](t)}catch(t){throw new ZlibError(t)}this[y]=(t=>{this[m]=true;this.close();this.emit("error",t)});this[d].on("error",t=>this[y](new ZlibError(t)));this.once("end",()=>this.close)}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[m]){r(this[d],"zlib binding closed");return this[d].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[p];this.write(Object.assign(i.alloc(0),{[h]:t}))}end(t,e,n){if(t)this.write(t,e);this.flush(this[f]);this[b]=true;return super.end(null,null,n)}get ended(){return this[b]}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(typeof t==="string")t=i.from(t,e);if(this[m])return;r(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=(()=>{});const a=this[d].close;this[d].close=(()=>{});i.concat=(t=>t);let u;try{const e=typeof t[h]==="number"?t[h]:this[h];u=this[d]._processChunk(t,e);i.concat=c}catch(t){i.concat=c;this[y](new ZlibError(t))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=this[l](i.from(u[0]));for(let t=1;t{this.flush(t);e()});try{this[d].params(t,e)}finally{this[d].flush=n}if(this[d]){this[g]=t;this[v]=e}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const w=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[w]=t&&!!t.portable}[l](t){if(!this[w])return super[l](t);this[w]=false;t[9]=255;return super[l](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,e){t=t||{};t.flush=t.flush||o.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||o.BROTLI_OPERATION_FINISH;super(t,e);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}e.Deflate=Deflate;e.Inflate=Inflate;e.Gzip=Gzip;e.Gunzip=Gunzip;e.DeflateRaw=DeflateRaw;e.InflateRaw=InflateRaw;e.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){e.BrotliCompress=BrotliCompress;e.BrotliDecompress=BrotliDecompress}else{e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},522:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(203);const i=n(248);class ProviderAsync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=[];return new Promise((i,s)=>{const o=this.api(e,t,n);o.once("error",s);o.on("data",t=>r.push(n.transform(t)));o.once("end",()=>i(r))})}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderAsync},528:function(t,e,n){var r=n(622);var i=process.platform==="win32";var s=n(747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(o){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=r.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var n=t,o={},a={};var u;var h;var f;var p;start();function start(){var e=l.exec(t);u=e[0].length;h=e[0];f=e[0];p="";if(i&&!a[f]){s.lstatSync(f);a[f]=true}}while(u=t.length){if(e)e[o]=t;return n(null,t)}c.lastIndex=h;var r=c.exec(t);d=f;f+=r[0];p=d+r[1];h=c.lastIndex;if(u[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return s.lstat(p,gotStat)}function gotStat(t,r){if(t)return n(t);if(!r.isSymbolicLink()){u[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(t){if(t)return n(t);s.readlink(p,function(t,e){if(!i)a[o]=e;gotTarget(t,e)})})}function gotTarget(t,i,s){if(t)return n(t);var o=r.resolve(d,i);if(e)e[s]=o;gotResolvedLink(o)}function gotResolvedLink(e){t=r.resolve(e,t.slice(h));start()}}},529:function(t,e,n){"use strict";const r=n(892);const i=n(774);const s=n(747);const o=n(862);const a=n(622);const c=t.exports=((t,e,n)=>{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)l(i,e);return i.file&&i.sync?u(i):i.file?h(i,n):i.sync?f(i):p(i)});const l=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const u=t=>{const e=new i.Sync(t);const n=t.file;let r=true;let a;const c=s.statSync(n);const l=t.maxReadSize||16*1024*1024;const u=new o.ReadStreamSync(n,{readSize:l,size:c.size});u.pipe(e)};const h=(t,e)=>{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("close",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const f=t=>{return new i.Sync(t)};const p=t=>{return new i(t)}},543:function(t,e,n){"use strict";const r=n(669);const i=n(153);const s=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const c=t=>Number.isInteger(+t);const l=t=>{let e=`${t}`;let n=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++n]==="0");return n>0};const u=(t,e,n)=>{if(typeof t==="string"||typeof e==="string"){return true}return n.stringify===true};const h=(t,e,n)=>{if(e>0){let n=t[0]==="-"?"-":"";if(n)t=t.slice(1);t=n+t.padStart(n?e-1:e,"0")}if(n===false){return String(t)}return t};const f=(t,e)=>{let n=t[0]==="-"?"-":"";if(n){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let n=e.capture?"":"?:";let r="";let i="";let s;if(t.positives.length){r=t.positives.join("|")}if(t.negatives.length){i=`-(${n}${t.negatives.join("|")})`}if(r&&i){s=`${r}|${i}`}else{s=r||i}if(e.wrap){return`(${n}${s})`}return s};const d=(t,e,n,r)=>{if(n){return i(t,e,{wrap:false,...r})}let s=String.fromCharCode(t);if(t===e)return s;let o=String.fromCharCode(e);return`[${s}-${o}]`};const y=(t,e,n)=>{if(Array.isArray(t)){let e=n.wrap===true;let r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,n)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+r.inspect(...t))};const g=(t,e,n)=>{if(n.strictRanges===true)throw m([t,e]);return[]};const v=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,n=1,r={})=>{let i=Number(t);let s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===true)throw m([t,e]);return[]}if(i===0)i=0;if(s===0)s=0;let a=i>s;let c=String(t);let g=String(e);let v=String(n);n=Math.max(Math.abs(n),1);let b=l(c)||l(g)||l(v);let _=b?Math.max(c.length,g.length,v.length):0;let w=b===false&&u(t,e,r)===false;let S=r.transform||o(w);if(r.toRegex&&n===1){return d(f(t,_),f(e,_),true,r)}let E={negatives:[],positives:[]};let R=t=>E[t<0?"negatives":"positives"].push(Math.abs(t));let O=[];let k=0;while(a?i>=s:i<=s){if(r.toRegex===true&&n>1){R(i)}else{O.push(h(S(i,k),_,w))}i=a?i-n:i+n;k++}if(r.toRegex===true){return n>1?p(E,r):y(O,null,{wrap:false,...r})}return O};const _=(t,e,n=1,r={})=>{if(!c(t)&&t.length>1||!c(e)&&e.length>1){return g(t,e,r)}let i=r.transform||(t=>String.fromCharCode(t));let s=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=s>o;let l=Math.min(s,o);let u=Math.max(s,o);if(r.toRegex&&n===1){return d(l,u,false,r)}let h=[];let f=0;while(a?s>=o:s<=o){h.push(i(s,f));s=a?s-n:s+n;f++}if(r.toRegex===true){return y(h,null,{wrap:false,options:r})}return h};const w=(t,e,n,r={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return g(t,e,r)}if(typeof n==="function"){return w(t,e,1,{transform:n})}if(s(n)){return w(t,e,0,n)}let i={...r};if(i.capture===true)i.wrap=true;n=n||i.step||1;if(!c(n)){if(n!=null&&!s(n))return v(n,i);return w(t,e,1,n)}if(c(t)&&c(e)){return b(t,e,n,i)}return _(t,e,Math.max(Math.abs(n),1),i)};t.exports=w},546:function(t,e,n){"use strict";const r=n(87);const i=n(867);const s=n(609);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const t=r.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},549:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);function generate(t,e){const n=getPositivePatterns(t);const i=getNegativePatternsAsPositive(t,e.ignore);const s=n.filter(t=>r.pattern.isStaticPattern(t,e));const o=n.filter(t=>r.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(s,i,false);const c=convertPatternsToTasks(o,i,true);return a.concat(c)}e.generate=generate;function convertPatternsToTasks(t,e,n){const r=groupPatternsByBaseDirectory(t);if("."in r){const r=convertPatternGroupToTask(".",t,e,n);return[r]}return convertPatternGroupsToTasks(r,e,n)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return r.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const n=r.pattern.getNegativePatterns(t).concat(e);const i=n.map(r.pattern.convertToPositivePattern);return i}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);if(n in t){t[n].push(e)}else{t[n]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,n){return Object.keys(t).map(r=>{return convertPatternGroupToTask(r,t[r],e,n)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,n,i){return{dynamic:i,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},550:function(t,e,n){"use strict";const r=n(622);t.exports=((t,e)=>{t=r.resolve(t);e=r.resolve(e);if(process.platform==="win32"){t=t.toLowerCase();e=e.toLowerCase()}if(t===e){return false}t+=r.sep;e+=r.sep;return t.startsWith(e)})},556:function(t,e,n){t.exports=globSync;globSync.GlobSync=GlobSync;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(700).Glob;var c=n(669);var l=n(622);var u=n(357);var h=n(932);var f=n(133);var p=f.alphasort;var d=f.alphasorti;var y=f.setopts;var m=f.ownProp;var g=f.childrenIgnored;var v=f.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);y(this,t,e);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(e)}catch(t){o=a}}else{o=a}}this.statCache[e]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return f.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return f.makeAbs(this,t)}},560:function(t){t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},563:function(t,e,n){"use strict";const r=n(614);const i=n(413);const s=n(597);const o=n(304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const u=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const m=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const _=Symbol("bufferLength");const w=Symbol("bufferPush");const S=Symbol("bufferShift");const E=Symbol("objectMode");const R=Symbol("destroyed");const O=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const k=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const x=O&&Symbol.iterator||Symbol("iterator not implemented");const A=t=>t==="end"||t==="finish"||t==="prefinish";const C=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const P=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);t.exports=class Minipass extends i{constructor(t){super();this[g]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[E]=t&&t.objectMode||false;if(this[E])this[y]=null;else this[y]=t&&t.encoding||null;if(this[y]==="buffer")this[y]=null;this[m]=this[y]?new o(this[y]):null;this[a]=false;this[l]=false;this[u]=false;this[h]=false;this.writable=true;this.readable=true;this[_]=0;this[R]=false}get bufferLength(){return this[_]}get encoding(){return this[y]}set encoding(t){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[y]&&t!==this[y]&&(this[m]&&this[m].lastNeed||this[_]))throw new Error("cannot change encoding");if(this[y]!==t){this[m]=t?new o(t):null;if(this.buffer.length)this.buffer=this.buffer.map(t=>this[m].write(t))}this[y]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[E]}set objectMode(t){this[E]=this[E]||!!t}write(t,e,n){if(this[a])throw new Error("write after end");if(this[R]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";if(!this[E]&&!Buffer.isBuffer(t)){if(P(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(C(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(!this.objectMode&&!t.length){const t=this.flowing;if(this[_]!==0)this.emit("readable");if(n)n();return t}if(typeof t==="string"&&!this[E]&&!(e===this[y]&&!this[m].lastNeed)){t=Buffer.from(t,e)}if(Buffer.isBuffer(t)&&this[y])t=this[m].write(t);try{return this.flowing?(this.emit("data",t),this.flowing):(this[w](t),false)}finally{if(this[_]!==0)this.emit("readable");if(n)n()}}read(t){if(this[R])return null;try{if(this[_]===0||t===0||t>this[_])return null;if(this[E])t=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[_])])}return this[f](t||null,this.buffer.head.value)}finally{this[c]()}}[f](t,e){if(t===e.length||t===null)this[S]();else{this.buffer.head.value=e.slice(t);e=e.slice(0,t);this[_]-=t}this.emit("data",e);if(!this.buffer.length&&!this[a])this.emit("drain");return e}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[b](){if(this[R])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[R]}get flowing(){return this[g]}get paused(){return this[v]}[w](t){if(this[E])this[_]+=1;else this[_]+=t.length;return this.buffer.push(t)}[S](){if(this.buffer.length){if(this[E])this[_]-=1;else this[_]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[S]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[d](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,e){if(this[R])return;const n=this[l];e=e||{};if(t===process.stdout||t===process.stderr)e.end=false;else e.end=e.end!==false;const r={dest:t,opts:e,ondrain:t=>this[b]()};this.pipes.push(r);t.on("drain",r.ondrain);this[b]();if(n&&r.opts.end)r.dest.end();return t}addListener(t,e){return this.on(t,e)}on(t,e){try{return super.on(t,e)}finally{if(t==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(A(t)&&this[l]){super.emit(t);this.removeAllListeners(t)}}}get emittedEnd(){return this[l]}[c](){if(!this[u]&&!this[l]&&!this[R]&&this.buffer.length===0&&this[a]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[u]=false}}emit(t,e){if(t!=="error"&&t!=="close"&&t!==R&&this[R])return;else if(t==="data"){if(!e)return;if(this.pipes.length)this.pipes.forEach(t=>t.dest.write(e)===false&&this.pause())}else if(t==="end"){if(this[l]===true)return;this[l]=true;this.readable=false;if(this[m]){e=this[m].end();if(e){this.pipes.forEach(t=>t.dest.write(e));super.emit("data",e)}}this.pipes.forEach(t=>{t.dest.removeListener("drain",t.ondrain);if(t.opts.end)t.dest.end()})}else if(t==="close"){this[h]=true;if(!this[l]&&!this[R])return}const n=new Array(arguments.length);n[0]=t;n[1]=e;if(arguments.length>2){for(let t=2;t{t.push(e);if(!this[E])t.dataLength+=e.length});return e.then(()=>t)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,e)=>{this.on(R,()=>e(new Error("stream destroyed")));this.on("end",()=>t());this.on("error",t=>e(t))})}[k](){const t=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[a])return Promise.resolve({done:true});let e=null;let n=null;const r=t=>{this.removeListener("data",i);this.removeListener("end",s);n(t)};const i=t=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();e({value:t,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);e({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((t,a)=>{n=a;e=t;this.once(R,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:t}}[x](){const t=()=>{const t=this.read();const e=t===null;return{value:t,done:e}};return{next:t}}destroy(t){if(this[R]){if(t)this.emit("error",t);else this.emit(R);return this}this[R]=true;this.buffer=new s;this[_]=0;if(typeof this.close==="function"&&!this[h])this.close();if(t)this.emit("error",t);else this.emit(R);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof i||t instanceof r&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},564:function(t,e,n){var r=n(747);var i=n(281);var s=n(900);var o=n(758);var a=n(669);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var t=a.format.apply(a,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!global[c]){var h=[];Object.defineProperty(global,c,{get:function(){return h}});r.close=function(t){function close(e,n){return t.call(r,e,function(t){if(!t){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,l,{value:t});return close}(r.close);r.closeSync=function(t){function closeSync(e){t.apply(r,arguments);retry()}Object.defineProperty(closeSync,l,{value:t});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){u(global[c]);n(357).equal(global[c].length,0)})}}t.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){t.exports=patch(r);r.__patched=true}function patch(t){i(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var e=t.readFile;t.readFile=readFile;function readFile(t,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(t,n,r);function go$readFile(t,n,r){return e(t,n,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readFile,[t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=t.writeFile;t.writeFile=writeFile;function writeFile(t,e,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(t,e,r,i);function go$writeFile(t,e,r,i){return n(t,e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[t,e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=t.appendFile;if(r)t.appendFile=appendFile;function appendFile(t,e,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(t,e,n,i);function go$appendFile(t,e,n,i){return r(t,e,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[t,e,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=t.readdir;t.readdir=readdir;function readdir(t,e,n){var r=[t];if(typeof e!=="function"){r.push(e)}else{n=e}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(t,e){if(e&&e.sort)e.sort();if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(e){return o.apply(t,e)}if(process.version.substr(0,4)==="v0.8"){var a=s(t);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=t.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var l=t.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var u=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return u},set:function(t){u=t},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:true,configurable:true});function ReadStream(t,e){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){if(t.autoClose)t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n);t.read()}})}function WriteStream(t,e){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n)}})}function createReadStream(e,n){return new t.ReadStream(e,n)}function createWriteStream(e,n){return new t.WriteStream(e,n)}var f=t.open;t.open=open;function open(t,e,n,r){if(typeof n==="function")r=n,n=null;return go$open(t,e,n,r);function go$open(t,e,n,r){return f(t,e,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[t,e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return t}function enqueue(t){u("ENQUEUE",t[0].name,t[1]);global[c].push(t)}function retry(){var t=global[c].shift();if(t){u("RETRY",t[0].name,t[1]);t[0].apply(null,t[1])}}},574:function(t,e,n){"use strict";t=n.nmd(t);const r=n(13);const i=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${n+e}m`});const s=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};5;${n}m`});const o=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const t=new Map;const e={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]}};e.color.grey=e.color.gray;for(const n of Object.keys(e)){const r=e[n];for(const n of Object.keys(r)){const i=r[n];e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false});Object.defineProperty(e,"codes",{value:t,enumerable:false})}const n=t=>t;const a=(t,e,n)=>[t,e,n];e.color.close="";e.bgColor.close="";e.color.ansi={ansi:i(n,0)};e.color.ansi256={ansi256:s(n,0)};e.color.ansi16m={rgb:o(a,0)};e.bgColor.ansi={ansi:i(n,10)};e.bgColor.ansi256={ansi256:s(n,10)};e.bgColor.ansi16m={rgb:o(a,10)};for(let t of Object.keys(r)){if(typeof r[t]!=="object"){continue}const n=r[t];if(t==="ansi16"){t="ansi"}if("ansi16"in n){e.color.ansi[t]=i(n.ansi16,0);e.bgColor.ansi[t]=i(n.ansi16,10)}if("ansi256"in n){e.color.ansi256[t]=s(n.ansi256,0);e.bgColor.ansi256[t]=s(n.ansi256,10)}if("rgb"in n){e.color.ansi16m[t]=o(n.rgb,0);e.bgColor.ansi16m[t]=o(n.rgb,10)}}return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},580:function(t,e,n){var r=n(880);var i=n(305);t.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 l="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(t){return t.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var n=i("{","}",t);if(!n)return t.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var n=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=o||c;var u=s.body.indexOf(",")>=0;if(!l&&!u){if(s.post.match(/,.*\}/)){t=s.pre+"{"+s.body+a+s.post;return expand(t)}return[t]}var h;if(l){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var f=s.post.length?expand(s.post,false):[""];return f.map(function(t){return s.pre+h[0]+t})}}}var p=s.pre;var f=s.post.length?expand(s.post,false):[""];var d;if(l){var y=numeric(h[0]);var m=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var v=h.length==3?Math.abs(numeric(h[2])):1;var b=lte;var _=m0){var O=new Array(R+1).join("0");if(S<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=r(h,function(t){return expand(t,false)})}for(var k=0;k{const e=await i("package.json",{cwd:t});return e&&r.dirname(e)};t.exports=s;t.exports.default=s;t.exports.sync=(t=>{const e=i.sync("package.json",{cwd:t});return e&&r.dirname(e)})},597:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&rfalse;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const y=(t={})=>{if(!t.cwd){return}let e;try{e=r.statSync(t.cwd)}catch(t){return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const m=t=>t.stats instanceof r.Stats?t.path:t;const g=(t,e)=>{t=i([].concat(t));d(t);y(e);const n=[];e={ignore:[],expandDirectories:true,...e};for(const[r,i]of t.entries()){if(p(i)){continue}const s=t.slice(r).filter(p).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(s)};n.push({pattern:i,options:o})}return n};const v=(t,e)=>{let n={};if(t.options.cwd){n.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){n={...n,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){n={...n,...t.options.expandDirectories}}return e(t.pattern,n)};const b=(t,e)=>t.options.expandDirectories?v(t,e):[t.pattern];const _=t=>{return t&&t.gitignore?l.sync({cwd:t.cwd,ignore:t.ignore}):f};const w=t=>e=>{const{options:n}=t;if(n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories){n.ignore=c.sync(n.ignore)}return{pattern:e,options:n}};t.exports=(async(t,e)=>{const n=g(t,e);const r=async()=>{return e&&e.gitignore?l({cwd:e.cwd,ignore:e.ignore}):f};const s=async()=>{const t=await Promise.all(n.map(async t=>{const e=await b(t,c);return Promise.all(e.map(w(t)))}));return i(...t)};const[o,u]=await Promise.all([r(),s()]);const h=await Promise.all(u.map(t=>a(t.pattern,t.options)));return i(...h).filter(t=>!o(m(t)))});t.exports.sync=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(w(e));return t.concat(n)},[]);const s=_(e);return r.reduce((t,e)=>i(t,a.sync(e.pattern,e.options)),[]).filter(t=>!s(t))});t.exports.stream=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(w(e));return t.concat(n)},[]);const i=_(e);const o=new u(t=>!i(t));const l=new h;return s(r.map(t=>a.stream(t.pattern,t.options))).pipe(o).pipe(l)});t.exports.generateGlobTasks=g;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.hasMagic(t,e)));t.exports.gitignore=l},604:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},605:function(t){"use strict";t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},609:function(t){"use strict";t.exports=((t,e=process.argv)=>{const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1||r{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)u(i,e);if(!i.noResume)l(i);return i.file&&i.sync?h(i):i.file?f(i,n):p(i)});const l=t=>{const e=t.onentry;t.onentry=e?t=>{e(t);t.resume()}:t=>t.resume()};const u=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const h=t=>{const e=p(t);const n=t.file;let r=true;let i;try{const o=s.statSync(n);const a=t.maxReadSize||16*1024*1024;if(o.size{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("end",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const p=t=>new i(t)},617:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(920);const s=n(951);const o=n(35);function read(t,e,n){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,n)}return readdir(t,e,n)}e.read=read;function readdirWithFileTypes(t,e,n){e.fs.readdir(t,{withFileTypes:true},(r,s)=>{if(r!==null){return callFailureCallback(n,r)}const o=s.map(n=>({dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`}));if(!e.followSymbolicLinks){return callSuccessCallback(n,o)}const a=o.map(t=>makeRplTaskEntry(t,e));i(a,(t,e)=>{if(t!==null){return callFailureCallback(n,t)}callSuccessCallback(n,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return n=>{if(!t.dirent.isSymbolicLink()){return n(null,t)}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){return n(r)}return n(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,i);return n(null,t)})}}function readdir(t,e,n){e.fs.readdir(t,(s,a)=>{if(s!==null){return callFailureCallback(n,s)}const c=a.map(n=>`${t}${e.pathSegmentSeparator}${n}`);const l=c.map(t=>{return n=>r.stat(t,e.fsStatSettings,n)});i(l,(t,r)=>{if(t!==null){return callFailureCallback(n,t)}const i=[];a.forEach((t,n)=>{const s=r[n];const a={name:t,path:c[n],dirent:o.fs.createDirentFromStats(t,s)};if(e.stats){a.stats=s}i.push(a)});callSuccessCallback(n,i)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},619:function(t){t.exports=require("constants")},622:function(t){t.exports=require("path")},625:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},629:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(951);const s=n(35);function read(t,e){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const n=e.fs.readdirSync(t,{withFileTypes:true});return n.map(n=>{const r={dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`};if(r.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(r.path);r.dirent=s.fs.createDirentFromStats(r.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return r})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const n=e.fs.readdirSync(t);return n.map(n=>{const i=`${t}${e.pathSegmentSeparator}${n}`;const o=r.statSync(i,e.fsStatSettings);const a={name:n,path:i,dirent:s.fs.createDirentFromStats(n,o)};if(e.stats){a.stats=o}return a})}e.readdir=readdir},634:function(t,e,n){"use strict";const r=n(622);t.exports=(t=>{let e=process.cwd();t=r.resolve(t);if(process.platform==="win32"){e=e.toLowerCase();t=t.toLowerCase()}return t===e})},635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(312);e.array=r;const i=n(438);e.errno=i;const s=n(625);e.fs=s;const o=n(642);e.path=o;const a=n(136);e.pattern=a;const c=n(62);e.stream=c},641:function(t,e,n){"use strict";const r=n(747);const{promisify:i}=n(669);const s=i(r.access);t.exports=(async t=>{try{await s(t);return true}catch(t){return false}});t.exports.sync=(t=>{try{r.accessSync(t);return true}catch(t){return false}})},642:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=/(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return r.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape},660:function(t){"use strict";t.exports=((t,e,n)=>{t&=4095;if(n){t=(t|384)&~18}if(e){if(t&256)t|=64;if(t&32)t|=8;if(t&4)t|=1}return t})},665:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(160);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=s.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},669:function(t){t.exports=require("util")},671:function(t){const e=t=>t[0].toLocaleUpperCase()+t.slice(1);t.exports=(t=>{if(t===null||t===void 0)return"";if(typeof t.toString!=="function")return"";let n=t.toString().trim();if(n==="")return"";if(n.length===1)return n.toLocaleUpperCase();let r=n.match(/[a-zA-Z0-9]+/g);if(r){return r.map(t=>e(t)).join("")}return n})},675:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(617);const i=n(629);const s=n(665);e.Settings=s.default;function scandir(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.scandir=scandir;function scandirSync(t,e){const n=getSettings(e);return i.read(t,n)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},677:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const n=r.pattern.convertPatternsToRe(t,this._micromatchOptions);const i=r.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,n,i)}_filter(t,e,n){if(this._settings.unique){if(this._isDuplicateEntry(t)){return false}this._createIndexRecord(t)}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t,n)){return false}const r=this._settings.baseNameMatch?t.name:t.path;return this._isMatchToPatterns(r,e)&&!this._isMatchToPatterns(t.path,n)}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const n=r.path.makeAbsolute(this._settings.cwd,t.path);return this._isMatchToPatterns(n,e)}_isMatchToPatterns(t,e){return r.pattern.matchAny(t,e)}}e.default=EntryFilter},683:function(t,e,n){"use strict";const r=n(851);const i=n(210);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=r;const u=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map(t=>i.escapeRegex(t)).join("..")}return n};const h=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const f=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=l[t]||t;const n={...e};const f=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;let p=t.length;if(p>f){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`)}const d={type:"bos",value:"",output:n.prepend||""};const y=[d];const m=n.capture?"":"?:";const g=i.isWindows(e);const v=r.globChars(g);const b=r.extglobChars(v);const{DOT_LITERAL:_,PLUS_LITERAL:w,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:O,NO_DOT_SLASH:k,NO_DOTS_SLASH:x,QMARK:A,QMARK_NO_DOT:C,STAR:P,START_ANCHOR:M}=v;const T=t=>{return`(${m}(?:(?!${M}${t.dot?R:_}).)*?)`};const L=n.dot?"":O;const D=n.dot?A:C;let I=n.bash===true?T(n):P;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const $={input:t,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,tokens:y};t=i.removePrefix(t,$);p=t.length;const F=[];const B=[];let j=d;let N;const G=()=>$.index===p-1;const H=$.peek=((e=1)=>t[$.index+e]);const U=$.advance=(()=>t[++$.index]);const z=()=>t.slice($.index+1);const W=(t="",e=0)=>{$.consumed+=t;$.index+=e};const Y=t=>{$.output+=t.output!=null?t.output:t.value;W(t.value)};const Z=()=>{let t=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){U();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const V=t=>{$[t]++;B.push(t)};const Q=t=>{$[t]--;B.pop()};const X=t=>{if(j.type==="globstar"){const e=$.braces>0&&(t.type==="comma"||t.type==="brace");const n=t.extglob===true||F.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!n){$.output=$.output.slice(0,-j.output.length);j.type="star";j.value="*";j.output=I;$.output+=j.output}}if(F.length&&t.type!=="paren"&&!b[t.value]){F[F.length-1].inner+=t.value}if(t.value||t.output)Y(t);if(j&&j.type==="text"&&t.type==="text"){j.value+=t.value;return}t.prev=j;y.push(t);j=t};const K=(t,e)=>{const r={...b[e],conditions:1,inner:""};r.prev=j;r.parens=$.parens;r.output=$.output;const i=(n.capture?"(":"")+r.open;V("parens");X({type:t,value:e,output:$.output?"":E});X({type:"paren",extglob:true,value:U(),output:i});F.push(r)};const q=t=>{let e=t.close+(n.capture?")":"");if(t.type==="negate"){let r=I;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){r=T(n)}if(r!==I||G()||/^\)+$/.test(z())){e=t.close=")$))"+r}if(t.prev.type==="bos"&&G()){$.negatedExtglob=true}}X({type:"paren",extglob:true,value:N,output:e});Q("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let s=t.replace(c,(t,e,n,i,s,o)=>{if(i==="\\"){r=true;return t}if(i==="?"){if(e){return e+i+(s?A.repeat(s.length):"")}if(o===0){return D+(s?A.repeat(s.length):"")}return A.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(e){return e+i+(s?I:"")}return I}return e?t:"\\"+t});if(r===true){if(n.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(s===t&&n.contains===true){$.output=t;return $}$.output=i.wrapOutput(s,$,e);return $}while(!G()){N=U();if(N==="\0"){continue}if(N==="\\"){const t=H();if(t==="/"&&n.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){N+="\\";X({type:"text",value:N});continue}const e=/^\\+/.exec(z());let r=0;if(e&&e[0].length>2){r=e[0].length;$.index+=r;if(r%2!==0){N+="\\"}}if(n.unescape===true){N=U()||""}else{N+=U()||""}if($.brackets===0){X({type:"text",value:N});continue}}if($.brackets>0&&(N!=="]"||j.value==="["||j.value==="[^")){if(n.posix!==false&&N===":"){const t=j.value.slice(1);if(t.includes("[")){j.posix=true;if(t.includes(":")){const t=j.value.lastIndexOf("[");const e=j.value.slice(0,t);const n=j.value.slice(t+2);const r=o[n];if(r){j.value=e+r;$.backtrack=true;U();if(!d.output&&y.indexOf(j)===1){d.output=E}continue}}}}if(N==="["&&H()!==":"||N==="-"&&H()==="]"){N="\\"+N}if(N==="]"&&(j.value==="["||j.value==="[^")){N="\\"+N}if(n.posix===true&&N==="!"&&j.value==="["){N="^"}j.value+=N;Y({value:N});continue}if($.quotes===1&&N!=='"'){N=i.escapeRegex(N);j.value+=N;Y({value:N});continue}if(N==='"'){$.quotes=$.quotes===1?0:1;if(n.keepQuotes===true){X({type:"text",value:N})}continue}if(N==="("){V("parens");X({type:"paren",value:N});continue}if(N===")"){if($.parens===0&&n.strictBrackets===true){throw new SyntaxError(h("opening","("))}const t=F[F.length-1];if(t&&$.parens===t.parens+1){q(F.pop());continue}X({type:"paren",value:N,output:$.parens?")":"\\)"});Q("parens");continue}if(N==="["){if(n.nobracket===true||!z().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(h("closing","]"))}N="\\"+N}else{V("brackets")}X({type:"bracket",value:N});continue}if(N==="]"){if(n.nobracket===true||j&&j.type==="bracket"&&j.value.length===1){X({type:"text",value:N,output:"\\"+N});continue}if($.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(h("opening","["))}X({type:"text",value:N,output:"\\"+N});continue}Q("brackets");const t=j.value.slice(1);if(j.posix!==true&&t[0]==="^"&&!t.includes("/")){N="/"+N}j.value+=N;Y({value:N});if(n.literalBrackets===false||i.hasRegexChars(t)){continue}const e=i.escapeRegex(j.value);$.output=$.output.slice(0,-j.value.length);if(n.literalBrackets===true){$.output+=e;j.value=e;continue}j.value=`(${m}${e}|${j.value})`;$.output+=j.value;continue}if(N==="{"&&n.nobrace!==true){V("braces");X({type:"brace",value:N,output:"("});continue}if(N==="}"){if(n.nobrace===true||$.braces===0){X({type:"text",value:N,output:N});continue}let t=")";if($.dots===true){const e=y.slice();const r=[];for(let t=e.length-1;t>=0;t--){y.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=u(r,n);$.backtrack=true}X({type:"brace",value:N,output:t});Q("braces");continue}if(N==="|"){if(F.length>0){F[F.length-1].conditions++}X({type:"text",value:N});continue}if(N===","){let t=N;if($.braces>0&&B[B.length-1]==="braces"){t="|"}X({type:"comma",value:N,output:t});continue}if(N==="/"){if(j.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";y.pop();j=d;continue}X({type:"slash",value:N,output:S});continue}if(N==="."){if($.braces>0&&j.type==="dot"){if(j.value===".")j.output=_;j.type="dots";j.output+=N;j.value+=N;$.dots=true;continue}if($.braces+$.parens===0&&j.type!=="bos"&&j.type!=="slash"){X({type:"text",value:N,output:_});continue}X({type:"dot",value:N,output:_});continue}if(N==="?"){const t=j&&j.value==="(";if(!t&&n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("qmark",N);continue}if(j&&j.type==="paren"){const t=H();let e=N;if(t==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(j.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(z())){e="\\"+N}X({type:"text",value:N,output:e});continue}if(n.dot!==true&&(j.type==="slash"||j.type==="bos")){X({type:"qmark",value:N,output:C});continue}X({type:"qmark",value:N,output:A});continue}if(N==="!"){if(n.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){K("negate",N);continue}}if(n.nonegate!==true&&$.index===0){Z($);continue}}if(N==="+"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("plus",N);continue}if(j&&j.value==="("||n.regex===false){X({type:"plus",value:N,output:w});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||$.parens>0){X({type:"plus",value:N});continue}X({type:"plus",value:w});continue}if(N==="@"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){X({type:"at",extglob:true,value:N,output:""});continue}X({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N="\\"+N}const t=a.exec(z());if(t){N+=t[0];$.index+=t[0].length}X({type:"text",value:N});continue}if(j&&(j.type==="globstar"||j.star===true)){j.type="star";j.star=true;j.value+=N;j.output=I;$.backtrack=true;W(N);continue}let e=z();if(n.noextglob!==true&&/^\([^?]/.test(e)){K("star",N);continue}if(j.type==="star"){if(n.noglobstar===true){W(N);continue}const r=j.prev;const i=r.prev;const s=r.type==="slash"||r.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!s||e[0]&&e[0]!=="/")){X({type:"star",value:N,output:""});continue}const a=$.braces>0&&(r.type==="comma"||r.type==="brace");const c=F.length&&(r.type==="pipe"||r.type==="paren");if(!s&&r.type!=="paren"&&!a&&!c){X({type:"star",value:N,output:""});continue}while(e.slice(0,3)==="/**"){const n=t[$.index+4];if(n&&n!=="/"){break}e=e.slice(3);W("/**",3)}if(r.type==="bos"&&G()){j.type="globstar";j.value+=N;j.output=T(n);$.output=j.output;W(N);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&G()){$.output=$.output.slice(0,-(r.output+j.output).length);r.output="(?:"+r.output;j.type="globstar";j.output=T(n)+(n.strictSlashes?")":"|$)");j.value+=N;$.output+=r.output+j.output;W(N);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(r.output+j.output).length);r.output="(?:"+r.output;j.type="globstar";j.output=`${T(n)}${S}|${S}${t})`;j.value+=N;$.output+=r.output+j.output;W(N+U());X({type:"slash",value:N,output:""});continue}if(r.type==="bos"&&e[0]==="/"){j.type="globstar";j.value+=N;j.output=`(?:^|${S}|${T(n)}${S})`;$.output=j.output;W(N+U());X({type:"slash",value:N,output:""});continue}$.output=$.output.slice(0,-j.output.length);j.type="globstar";j.output=T(n);j.value+=N;$.output+=j.output;W(N);continue}const r={type:"star",value:N,output:I};if(n.bash===true){r.output=".*?";if(j.type==="bos"||j.type==="slash"){r.output=L+r.output}X(r);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&n.regex===true){r.output=N;X(r);continue}if($.index===$.start||j.type==="slash"||j.type==="dot"){if(j.type==="dot"){$.output+=k;j.output+=k}else if(n.dot===true){$.output+=x;j.output+=x}else{$.output+=L;j.output+=L}if(H()!=="*"){$.output+=E;j.output+=E}}X(r)}while($.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","]"));$.output=i.escapeLast($.output,"[");Q("brackets")}while($.parens>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing",")"));$.output=i.escapeLast($.output,"(");Q("parens")}while($.braces>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","}"));$.output=i.escapeLast($.output,"{");Q("braces")}if(n.strictSlashes!==true&&(j.type==="star"||j.type==="bracket")){X({type:"maybe_slash",value:"",output:`${S}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};f.fastpaths=((t,e)=>{const n={...e};const o=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=l[t]||t;const c=i.isWindows(e);const{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:v}=r.globChars(c);const b=n.dot?y:d;const _=n.dot?m:d;const w=n.capture?"":"?:";const S={negated:false,prefix:""};let E=n.bash===true?".*?":g;if(n.capture){E=`(${E})`}const R=t=>{if(t.noglobstar===true)return E;return`(${w}(?:(?!${v}${t.dot?p:u}).)*?)`};const O=t=>{switch(t){case"*":return`${b}${f}${E}`;case".*":return`${u}${f}${E}`;case"*.*":return`${b}${E}${u}${f}${E}`;case"*/*":return`${b}${E}${h}${f}${_}${E}`;case"**":return b+R(n);case"**/*":return`(?:${b}${R(n)}${h})?${_}${f}${E}`;case"**/*.*":return`(?:${b}${R(n)}${h})?${_}${E}${u}${f}${E}`;case"**/.*":return`(?:${b}${R(n)}${h})?${u}${f}${E}`;default:{const n=/^(.*?)\.(\w+)$/.exec(t);if(!n)return;const r=O(n[1],e);if(!r)return;return r+u+n[2]}}};const k=i.removePrefix(t,S);let x=O(k);if(x&&n.strictSlashes!==true){x+=`${h}?`}return x});t.exports=f},698:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},700:function(t,e,n){t.exports=glob;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(188);var c=n(614).EventEmitter;var l=n(622);var u=n(357);var h=n(932);var f=n(556);var p=n(133);var d=p.alphasort;var y=p.alphasorti;var m=p.setopts;var g=p.ownProp;var v=n(330);var b=n(669);var _=p.childrenIgnored;var w=p.isIgnored;var S=n(277);function glob(t,e,n){if(typeof e==="function")n=e,e={};if(!e)e={};if(e.sync){if(n)throw new TypeError("callback provided to sync glob");return f(t,e)}return new Glob(t,e,n)}glob.sync=f;var E=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var n=Object.keys(e);var r=n.length;while(r--){t[n[r]]=e[n[r]]}return t}glob.hasMagic=function(t,e){var n=extend({},e);n.noprocess=true;var r=new Glob(t,n);var i=r.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var s=0;sthis.maxLength)return e();if(!this.stat&&g(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var l=this;var u=v("stat\0"+n,lstatcb_);if(u)r.lstat(n,u);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)l._stat2(t,n,null,s,e);else l._stat2(t,n,r,i,e)})}else{l._stat2(t,n,i,s,e)}}};Glob.prototype._stat2=function(t,e,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[e]=false;return i()}var s=t.slice(-1)==="/";this.statCache[e]=r;if(e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},708:function(t){function makeArray(t){return Array.isArray(t)?t:[t]}const e=/^\s+$/;const n=/^\\!/;const r=/^\\#/;const i=/\r?\n/g;const s=/^\.*\/|^\.+$/;const o="/";const a=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const c=(t,e,n)=>Object.defineProperty(t,e,{value:n});const l=/([0-z])-([0-z])/g;const u=t=>t.replace(l,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:"");const h=[[/\\?\s+$/,t=>t.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,e,n)=>n==="]"?`[${u(e)}]`:`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6`${e}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const n=e?`${e}[^/]+`:"[^/]*";return`${n}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=Object.create(null);const p=(t,e,n)=>{const r=f[t];if(r){return r}const i=h.reduce((e,n)=>e.replace(n[0],n[1].bind(t)),t);return f[t]=n?new RegExp(i,"i"):new RegExp(i)};const d=t=>typeof t==="string";const y=t=>t&&d(t)&&!e.test(t)&&t.indexOf("#")!==0;const m=t=>t.split(i);class IgnoreRule{constructor(t,e,n,r){this.origin=t;this.pattern=e;this.negative=n;this.regex=r}}const g=(t,e)=>{const i=t;let s=false;if(t.indexOf("!")===0){s=true;t=t.substr(1)}t=t.replace(n,"!").replace(r,"#");const o=p(t,s,e);return new IgnoreRule(i,t,s,o)};const v=(t,e)=>{throw new e(t)};const b=(t,e,n)=>{if(!d(t)){return n(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return n(`path must not be empty`,TypeError)}if(b.isNotRelative(t)){const t="`path.relative()`d";return n(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const _=t=>s.test(t);b.isNotRelative=_;b.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;c(this,a,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[a]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(y(t)){const e=g(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(d(t)?m(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let n=false;let r=false;this._rules.forEach(i=>{const{negative:s}=i;if(r===s&&n!==r||s&&!n&&!r&&!e){return}const o=i.regex.test(t);if(o){n=!s;r=s}});return{ignored:n,unignored:r}}_test(t,e,n,r){const i=t&&b.convert(t);b(i,t,v);return this._t(i,e,n,r)}_t(t,e,n,r){if(t in e){return e[t]}if(!r){r=t.split(o)}r.pop();if(!r.length){return e[t]=this._testOne(t,n)}const i=this._t(r.join(o)+o,e,n,r);return e[t]=i.ignored?i:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const w=t=>new Ignore(t);const S=()=>false;const E=t=>b(t&&b.convert(t),t,S);w.isPathValid=E;w.default=w;t.exports=w;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");b.convert=t;const e=/^[a-z]:\//i;b.isNotRelative=(t=>e.test(t)||_(t))}},712:function(t,e,n){"use strict";const r=n(409);const i=n(563);const s=Symbol("slurp");t.exports=class ReadEntry extends i{constructor(t,e,n){super();this.pause();this.extended=e;this.globalExtended=n;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.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=t.path;this.mode=t.mode;if(this.mode)this.mode=this.mode&4095;this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath;this.uname=t.uname;this.gname=t.gname;if(e)this[s](e);if(n)this[s](n,true)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain;const r=this.blockRemain;this.remain=Math.max(0,n-e);this.blockRemain=Math.max(0,r-e);if(this.ignore)return true;if(n>=e)return super.write(t);return super.write(t.slice(0,n))}[s](t,e){for(let n in t){if(t[n]!==null&&t[n]!==undefined&&!(e&&n==="path"))this[n]=t[n]}}}},728:function(t,e,n){"use strict";const r=n(409);const i=n(622).posix;const s=n(340);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(t,e,n,r){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[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t))this.decode(t,e||0,n,r);else if(t)this.set(t)}decode(t,e,n,r){if(!e)e=0;if(!t||!(t.length>=e+512))throw new Error("need 512 bytes for header");this.path=l(t,e,100);this.mode=f(t,e+100,8);this.uid=f(t,e+108,8);this.gid=f(t,e+116,8);this.size=f(t,e+124,12);this.mtime=u(t,e+136,12);this.cksum=f(t,e+148,12);this[o](n);this[o](r,true);this[a]=l(t,e+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=l(t,e+157,100);if(t.slice(e+257,e+265).toString()==="ustar\x0000"){this.uname=l(t,e+265,32);this.gname=l(t,e+297,32);this.devmaj=f(t,e+329,8);this.devmin=f(t,e+337,8);if(t[e+475]!==0){const n=l(t,e+345,155);this.path=n+"/"+this.path}else{const n=l(t,e+345,130);if(n)this.path=n+"/"+this.path;this.atime=u(t,e+476,12);this.ctime=u(t,e+488,12)}}let i=8*32;for(let n=e;n=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155;const r=c(this.path||"",n);const i=r[0];const s=r[1];this.needPax=r[2];this.needPax=S(t,e,100,i)||this.needPax;this.needPax=m(t,e+100,8,this.mode)||this.needPax;this.needPax=m(t,e+108,8,this.uid)||this.needPax;this.needPax=m(t,e+116,8,this.gid)||this.needPax;this.needPax=m(t,e+124,12,this.size)||this.needPax;this.needPax=_(t,e+136,12,this.mtime)||this.needPax;t[e+156]=this[a].charCodeAt(0);this.needPax=S(t,e+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",e+257,8);this.needPax=S(t,e+265,32,this.uname)||this.needPax;this.needPax=S(t,e+297,32,this.gname)||this.needPax;this.needPax=m(t,e+329,8,this.devmaj)||this.needPax;this.needPax=m(t,e+337,8,this.devmin)||this.needPax;this.needPax=S(t,e+345,n,s)||this.needPax;if(t[e+475]!==0)this.needPax=S(t,e+345,155,s)||this.needPax;else{this.needPax=S(t,e+345,130,s)||this.needPax;this.needPax=_(t,e+476,12,this.atime)||this.needPax;this.needPax=_(t,e+488,12,this.ctime)||this.needPax}let o=8*32;for(let n=e;n{const n=100;let r=t;let s="";let o;const a=i.parse(t).root||".";if(Buffer.byteLength(r)n&&Buffer.byteLength(s)<=e)o=[r.substr(0,n-1),s,true];else{r=i.join(i.basename(s),r);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[t.substr(0,n-1),"",true]}return o};const l=(t,e,n)=>t.slice(e,e+n).toString("utf8").replace(/\0.*/,"");const u=(t,e,n)=>h(f(t,e,n));const h=t=>t===null?null:new Date(t*1e3);const f=(t,e,n)=>t[e]&128?s.parse(t.slice(e,e+n)):d(t,e,n);const p=t=>isNaN(t)?null:t;const d=(t,e,n)=>p(parseInt(t.slice(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const m=(t,e,n,r)=>r===null?false:r>y[n]||r<0?(s.encode(r,t.slice(e,e+n)),true):(g(t,e,n,r),false);const g=(t,e,n,r)=>t.write(v(r,n),e,n,"ascii");const v=(t,e)=>b(Math.floor(t).toString(8),e);const b=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0";const _=(t,e,n,r)=>r===null?false:m(t,e,n,r.getTime()/1e3);const w=new Array(156).join("\0");const S=(t,e,n,r)=>r===null?false:(t.write(r+w,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);t.exports=Header},730:function(t,e,n){"use strict";const r=n(549);const i=n(522);const s=n(33);const o=n(268);const a=n(422);const c=n(635);function FastGlob(t,e){try{assertPatternsInput(t)}catch(t){return Promise.reject(t)}const n=getWorks(t,i.default,e);return Promise.all(n).then(c.array.flatten)}(function(t){function sync(t,e){assertPatternsInput(t);const n=getWorks(t,o.default,e);return c.array.flatten(n)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const n=getWorks(t,s.default,e);return c.stream.merge(n)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const n=[].concat(t);const i=new a.default(e);return r.generate(n,i)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const n=new a.default(e);return c.pattern.isDynamicPattern(t,n)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,n){const i=[].concat(t);const s=new a.default(n);const o=r.generate(i,s);const c=new e(s);return o.map(c.read,c)}function assertPatternsInput(t){if([].concat(t).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(t){return typeof t==="string"}t.exports=FastGlob},736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(739);const i=n(102);const s=n(172);const o=n(768);e.Settings=o.default;function walk(t,e,n){if(typeof e==="function"){return new r.default(t,getSettings()).read(e)}new r.default(t,getSettings(e)).read(n)}e.walk=walk;function walkSync(t,e){const n=getSettings(e);const r=new s.default(t,n);return r.read()}e.walkSync=walkSync;function walkStream(t,e){const n=getSettings(e);const r=new i.default(t,n);return r.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(389);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},747:function(t){t.exports=require("fs")},758:function(t){"use strict";t.exports=clone;function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}},761:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(736);const s=n(828);class ReaderSync extends s.default{constructor(){super(...arguments);this._walkSync=i.walkSync;this._statSync=r.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const n=[];for(const r of t){const t=this._getFullEntryPath(r);const i=this._getEntry(t,r,e);if(i===null||!e.entryFilter(i)){continue}n.push(i)}return n}_getEntry(t,e,n){try{const r=this._getStat(t);return this._makeEntry(r,e)}catch(t){if(n.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},762:function(t,e,n){"use strict";const r=n(477);const i=n(622);const s=n(728);const o=n(614);const a=n(597);const c=1024*1024;const l=n(712);const u=n(125);const h=n(507);const f=Buffer.from([31,139]);const p=Symbol("state");const d=Symbol("writeEntry");const y=Symbol("readEntry");const m=Symbol("nextEntry");const g=Symbol("processEntry");const v=Symbol("extendedHeader");const b=Symbol("globalExtendedHeader");const _=Symbol("meta");const w=Symbol("emitMeta");const S=Symbol("buffer");const E=Symbol("queue");const R=Symbol("ended");const O=Symbol("emittedEnd");const k=Symbol("emit");const x=Symbol("unzip");const A=Symbol("consumeChunk");const C=Symbol("consumeChunkSub");const P=Symbol("consumeBody");const M=Symbol("consumeMeta");const T=Symbol("consumeHeader");const L=Symbol("consuming");const D=Symbol("bufferConcat");const I=Symbol("maybeEnd");const $=Symbol("writing");const F=Symbol("aborted");const B=Symbol("onDone");const j=Symbol("sawValidEntry");const N=Symbol("sawNullBlock");const G=Symbol("sawEOF");const H=t=>true;t.exports=r(class Parser extends o{constructor(t){t=t||{};super(t);this.file=t.file||"";this[j]=null;this.on(B,t=>{if(this[p]==="begin"||this[j]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(t.ondone)this.on(B,t.ondone);else this.on(B,t=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||c;this.filter=typeof t.filter==="function"?t.filter:H;this.writable=true;this.readable=false;this[E]=new a;this[S]=null;this[y]=null;this[d]=null;this[p]="begin";this[_]="";this[v]=null;this[b]=null;this[R]=false;this[x]=null;this[F]=false;this[N]=false;this[G]=false;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(typeof t.onentry==="function")this.on("entry",t.onentry)}[T](t,e){if(this[j]===null)this[j]=false;let n;try{n=new s(t,e,this[v],this[b])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock){if(this[N]){this[G]=true;if(this[p]==="begin")this[p]="header";this[k]("eof")}else{this[N]=true;this[k]("nullBlock")}}else{this[N]=false;if(!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(t)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{const t=this[d]=new l(n,this[v],this[b]);if(!this[j]){if(t.remain){const e=()=>{if(!t.invalid)this[j]=true};t.on("end",e)}else{this[j]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[k]("ignoredEntry",t);this[p]="ignore";t.resume()}else if(t.size>0){this[_]="";t.on("data",t=>this[_]+=t);this[p]="meta"}}else{this[v]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[k]("ignoredEntry",t);this[p]=t.remain?"ignore":"header";t.resume()}else{if(t.remain)this[p]="body";else{this[p]="header";t.end()}if(!this[y]){this[E].push(t);this[m]()}else this[E].push(t)}}}}}}[g](t){let e=true;if(!t){this[y]=null;e=false}else if(Array.isArray(t))this.emit.apply(this,t);else{this[y]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",t=>this[m]());e=false}}return e}[m](){do{}while(this[g](this[E].shift()));if(!this[E].length){const t=this[y];const e=!t||t.flowing||t.size===t.remain;if(e){if(!this[$])this.emit("drain")}else t.once("drain",t=>this.emit("drain"))}}[P](t,e){const n=this[d];const r=n.blockRemain;const i=r>=t.length&&e===0?t:t.slice(e,e+r);n.write(i);if(!n.blockRemain){this[p]="header";this[d]=null;n.end()}return i.length}[M](t,e){const n=this[d];const r=this[P](t,e);if(!this[d])this[w](n);return r}[k](t,e,n){if(!this[E].length&&!this[y])this.emit(t,e,n);else this[E].push([t,e,n])}[w](t){this[k]("meta",this[_]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[_],this[v],false);break;case"GlobalExtendedHeader":this[b]=u.parse(this[_],this[b],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[_].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[_].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[F]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[F])return;if(this[x]===null&&t){if(this[S]){t=Buffer.concat([this[S],t]);this[S]=null}if(t.lengththis[A](t));this[x].on("error",t=>this.abort(t));this[x].on("end",t=>{this[R]=true;this[A]()});this[$]=true;const n=this[x][e?"end":"write"](t);this[$]=false;return n}}this[$]=true;if(this[x])this[x].write(t);else this[A](t);this[$]=false;const e=this[E].length?false:this[y]?this[y].flowing:true;if(!e&&!this[E].length)this[y].once("drain",t=>this.emit("drain"));return e}[D](t){if(t&&!this[F])this[S]=this[S]?Buffer.concat([this[S],t]):t}[I](){if(this[R]&&!this[O]&&!this[F]&&!this[L]){this[O]=true;const t=this[d];if(t&&t.blockRemain){const e=this[S]?this[S].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t});if(this[S])t.write(this[S]);t.end()}this[k](B)}}[A](t){if(this[L])this[D](t);else if(!t&&!this[S])this[I]();else{this[L]=true;if(this[S]){this[D](t);const e=this[S];this[S]=null;this[C](e)}else{this[C](t)}while(this[S]&&this[S].length>=512&&!this[F]&&!this[G]){const t=this[S];this[S]=null;this[C](t)}this[L]=false}if(!this[S]||this[R])this[I]()}[C](t){let e=0;let n=t.length;while(e+512<=n&&!this[F]&&!this[G]){switch(this[p]){case"begin":case"header":this[T](t,e);e+=512;break;case"ignore":case"body":e+=this[P](t,e);break;case"meta":e+=this[M](t,e);break;default:throw new Error("invalid state: "+this[p])}}if(e{throw new Error("sync function called cb somehow?!?")};const N=(t,e)=>{if(process.platform!=="win32")return o.unlink(t,e);const n=t+".DELETE."+F.randomBytes(16).toString("hex");o.rename(t,n,t=>{if(t)return e(t);o.unlink(n,e)})};const G=t=>{if(process.platform!=="win32")return o.unlinkSync(t);const e=t+".DELETE."+F.randomBytes(16).toString("hex");o.renameSync(t,e);o.unlinkSync(e)};const H=(t,e,n)=>t===t>>>0?t:e===e>>>0?e:n;class Unpack extends s{constructor(t){if(!t)t={};t.ondone=(t=>{this[M]=true;this[T]()});super(t);this.reservations=f();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[A]=0;this[M]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!t.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=t.forceChown===true;this.win32=!!t.win32||process.platform==="win32";this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=c.resolve(t.cwd||process.cwd());this.strip=+t.strip||0;this.processUmask=process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",t=>this[p](t))}warn(t,e,n={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")n.recoverable=false;return super.warn(t,e,n)}[T](){if(this[M]&&this[A]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](t){if(this.strip){const e=t.path.split(/\/|\\/);if(e.length=this.strip)t.linkpath=e.slice(this.strip).join("/")}}if(!this.preservePaths){const e=t.path;if(e.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:e});return false}if(c.win32.isAbsolute(e)){const n=c.win32.parse(e);t.path=e.substr(n.root.length);const r=n.root;this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e})}}if(this.win32){const e=c.win32.parse(t.path);t.path=e.root===""?h.encode(t.path):e.root+h.encode(t.path.substr(e.root.length))}if(c.isAbsolute(t.path))t.absolute=t.path;else t.absolute=c.resolve(this.cwd,t.path);return true}[p](t){if(!this[O](t))return t.resume();r.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode)t.mode=t.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](t);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](t)}}[x](t,e){if(t.name==="CwdError")this.emit("error",t);else{this.warn("TAR_ENTRY_ERROR",t,{entry:e});this[P]();e.resume()}}[k](t,e,n){l(t,{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:e},n)}[D](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[I](t){return H(this.uid,t.uid,this.processUid)}[$](t){return H(this.gid,t.gid,this.processGid)}[v](t,e){const n=t.mode&4095||this.fmode;const r=new a.WriteStream(t.absolute,{flags:B(t.size),mode:n,autoClose:false});r.on("error",e=>this[x](e,t));let i=1;const s=n=>{if(n)return this[x](n,t);if(--i===0){o.close(r.fd,n=>{e();n?this[x](n,t):this[P]()})}};r.on("finish",e=>{const n=t.absolute;const a=r.fd;if(t.mtime&&!this.noMtime){i++;const e=t.atime||new Date;const r=t.mtime;o.futimes(a,e,r,t=>t?o.utimes(n,e,r,e=>s(e&&t)):s())}if(this[D](t)){i++;const e=this[I](t);const r=this[$](t);o.fchown(a,e,r,t=>t?o.chown(n,e,r,e=>s(e&&t)):s())}s()});const c=this.transform?this.transform(t)||t:t;if(c!==t){c.on("error",e=>this[x](e,t));t.pipe(c)}c.pipe(r)}[b](t,e){const n=t.mode&4095||this.dmode;this[k](t.absolute,n,n=>{if(n){e();return this[x](n,t)}let r=1;const i=n=>{if(--r===0){e();this[P]();t.resume()}};if(t.mtime&&!this.noMtime){r++;o.utimes(t.absolute,t.atime||new Date,t.mtime,i)}if(this[D](t)){r++;o.chown(t.absolute,this[I](t),this[$](t),i)}i()})}[E](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[w](t,e){this[_](t,t.linkpath,"symlink",e)}[S](t,e){this[_](t,c.resolve(this.cwd,t.linkpath),"link",e)}[C](){this[A]++}[P](){this[A]--;this[T]()}[L](t){this[P]();t.resume()}[m](t,e){return t.type==="File"&&!this.unlink&&e.isFile()&&e.nlink<=1&&process.platform!=="win32"}[d](t){this[C]();const e=[t.path];if(t.linkpath)e.push(t.linkpath);this.reservations.reserve(e,e=>this[y](t,e))}[y](t,e){this[k](c.dirname(t.absolute),this.dmode,n=>{if(n){e();return this[x](n,t)}o.lstat(t.absolute,(n,r)=>{if(r&&(this.keep||this.newer&&r.mtime>t.mtime)){this[L](t);e()}else if(n||this[m](t,r)){this[g](null,t,e)}else if(r.isDirectory()){if(t.type==="Directory"){if(!t.mode||(r.mode&4095)===t.mode)this[g](null,t,e);else o.chmod(t.absolute,t.mode,n=>this[g](n,t,e))}else o.rmdir(t.absolute,n=>this[g](n,t,e))}else N(t.absolute,n=>this[g](n,t,e))})})}[g](t,e,n){if(t)return this[x](t,e);switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[v](e,n);case"Link":return this[S](e,n);case"SymbolicLink":return this[w](e,n);case"Directory":case"GNUDumpDir":return this[b](e,n)}}[_](t,e,n,r){o[n](e,t.absolute,e=>{if(e)return this[x](e,t);r();this[P]();t.resume()})}}class UnpackSync extends Unpack{constructor(t){super(t)}[d](t){const e=this[k](c.dirname(t.absolute),this.dmode,j);if(e)return this[x](e,t);try{const n=o.lstatSync(t.absolute);if(this.keep||this.newer&&n.mtime>t.mtime)return this[L](t);else if(this[m](t,n))return this[g](null,t,j);else{try{if(n.isDirectory()){if(t.type==="Directory"){if(t.mode&&(n.mode&4095)!==t.mode)o.chmodSync(t.absolute,t.mode)}else o.rmdirSync(t.absolute)}else G(t.absolute);return this[g](null,t,j)}catch(e){return this[x](e,t)}}}catch(e){return this[g](null,t,j)}}[v](t,e){const n=t.mode&4095||this.fmode;const r=e=>{let n;try{o.closeSync(s)}catch(t){n=t}if(e||n)this[x](e||n,t)};let i;let s;try{s=o.openSync(t.absolute,B(t.size),n)}catch(t){return r(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",e=>this[x](e,t));t.pipe(a)}a.on("data",t=>{try{o.writeSync(s,t,0,t.length)}catch(t){r(t)}});a.on("end",e=>{let n=null;if(t.mtime&&!this.noMtime){const e=t.atime||new Date;const r=t.mtime;try{o.futimesSync(s,e,r)}catch(i){try{o.utimesSync(t.absolute,e,r)}catch(t){n=i}}}if(this[D](t)){const e=this[I](t);const r=this[$](t);try{o.fchownSync(s,e,r)}catch(i){try{o.chownSync(t.absolute,e,r)}catch(t){n=n||i}}}r(n)})}[b](t,e){const n=t.mode&4095||this.dmode;const r=this[k](t.absolute,n);if(r)return this[x](r,t);if(t.mtime&&!this.noMtime){try{o.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(r){}}if(this[D](t)){try{o.chownSync(t.absolute,this[I](t),this[$](t))}catch(r){}}t.resume()}[k](t,e){try{return l.sync(t,{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:e})}catch(t){return t}}[_](t,e,n,r){try{o[n+"Sync"](e,t.absolute);t.resume()}catch(e){return this[x](e,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},786:function(t,e,n){"use strict";const r=n(815);const i=n(968);const s=n(421);const o=n(266);const a=(t,e={})=>{let n=[];if(Array.isArray(t)){for(let r of t){let t=a.create(r,e);if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}else{n=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){n=[...new Set(n)]}return n};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return r(a.parse(t,e),e)}return r(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return i(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let n=s(t,e);if(e.noempty===true){n=n.filter(Boolean)}if(e.nodupes===true){n=[...new Set(n)]}return n});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},789:function(t,e,n){"use strict";const r=n(622);const i=n(747);const{promisify:s}=n(669);const o=n(232);const a=s(i.stat);const c=s(i.lstat);const l={directory:"isDirectory",file:"isFile"};function checkType({type:t}){if(t in l){return}throw new Error(`Invalid type specified: ${t}`)}const u=(t,e)=>t===undefined||e[l[t]]();t.exports=(async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:true,...e};checkType(e);const n=e.allowSymlinks?a:c;return o(t,async t=>{try{const i=await n(r.resolve(e.cwd,t));return u(e.type,i)}catch(t){return false}},e)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),allowSymlinks:true,type:"file",...e};checkType(e);const n=e.allowSymlinks?i.statSync:i.lstatSync;for(const i of t){try{const t=n(r.resolve(e.cwd,i));if(u(e.type,t)){return i}}catch(t){}}})},791:function(t,e,n){"use strict";const r=n(58);const{stdout:i,stderr:s}=n(546);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=n(883);const c=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const u=(t,e={})=>{if(e.level>3||e.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const n=i?i.level:0;t.level=e.level===undefined?n:e.level};class ChalkClass{constructor(t){return h(t)}}const h=t=>{const e={};u(e,t);e.template=((...t)=>v(e.template,...t));Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});e.template.Instance=ChalkClass;return e.template};function Chalk(t){return h(t)}for(const[t,e]of Object.entries(r)){l[t]={get(){const n=y(this,d(e.open,e.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:n});return n}}}l.visible={get(){const t=y(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of f){l[t]={get(){const{level:e}=this;return function(...n){const i=d(r.color[c[e]][t](...n),r.color.close,this._styler);return y(this,i,this._isEmpty)}}}}for(const t of f){const e="bg"+t[0].toUpperCase()+t.slice(1);l[e]={get(){const{level:e}=this;return function(...n){const i=d(r.bgColor[c[e]][t](...n),r.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const p=Object.defineProperties(()=>{},{...l,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const d=(t,e,n)=>{let r;let i;if(n===undefined){r=t;i=e}else{r=n.openAll+t;i=e+n.closeAll}return{open:t,close:e,openAll:r,closeAll:i,parent:n}};const y=(t,e,n)=>{const r=(...t)=>{return m(r,t.length===1?""+t[0]:t.join(" "))};r.__proto__=p;r._generator=t;r._styler=e;r._isEmpty=n;return r};const m=(t,e)=>{if(t.level<=0||!e){return t._isEmpty?"":e}let n=t._styler;if(n===undefined){return e}const{openAll:r,closeAll:i}=n;if(e.indexOf("")!==-1){while(n!==undefined){e=o(e,n.close,n.open);n=n.parent}}const s=e.indexOf("\n");if(s!==-1){e=a(e,i,r,s)}return r+e+i};let g;const v=(t,...e)=>{const[r]=e;if(!Array.isArray(r)){return e.join(" ")}const i=e.slice(1);const s=[r.raw[0]];for(let t=1;t{return new Promise((s,o)=>{if(typeof e!=="function"){throw new TypeError("Mapper function is required")}if(!(typeof n==="number"&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const l=t[Symbol.iterator]();let u=false;let h=false;let f=0;let p=0;const d=()=>{if(u){return}const t=l.next();const n=p;p++;if(t.done){h=true;if(f===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}f++;(async()=>{try{const r=await t.value;a[n]=await e(r,n);f--;d()}catch(t){if(i){u=true;o(t)}else{c.push(t);f--;d()}}})()};for(let t=0;t0)return;e=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);next()}if(t._readableState.endEmitted)return next();t.on("merge2UnpipeEnd",onend);t.on("end",onend);t.pipe(a,{end:false});t.resume()}for(let t=0;t{let n=(t,i={})=>{let s=e.escapeInvalid&&r.isInvalidBrace(i);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((s||o)&&r.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=n(e)}}return a};return n(t)})},821:function(t,e,n){var r=n(622);var i=n(747);var s=parseInt("0777",8);t.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(t,e,n,o){if(typeof e==="function"){n=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var a=e.mode;var c=e.fs||i;if(a===undefined){a=s&~process.umask()}if(!o)o=null;var l=n||function(){};t=r.resolve(t);c.mkdir(t,a,function(n){if(!n){o=o||t;return l(null,o)}switch(n.code){case"ENOENT":mkdirP(r.dirname(t),e,function(n,r){if(n)l(n,r);else mkdirP(t,e,l,r)});break;default:c.stat(t,function(t,e){if(t||!e.isDirectory())l(n,o);else l(null,o)});break}})}mkdirP.sync=function sync(t,e,n){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var a=e.fs||i;if(o===undefined){o=s&~process.umask()}if(!n)n=null;t=r.resolve(t);try{a.mkdirSync(t,o);n=n||t}catch(i){switch(i.code){case"ENOENT":n=sync(r.dirname(t),e,n);sync(t,e,n);break;default:var c;try{c=a.statSync(t)}catch(t){throw i}if(!c.isDirectory())throw i;break}}return n}},828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(635);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:s.fs.createDirentFromStats(e,t)};if(this._settings.stats){n.stats=t}return n}_isFatalError(t){return!s.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},830:function(t,e,n){"use strict";t.exports=n(258)},835:function(t){"use strict";t.exports=((t,e=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof t!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``)}if(typeof e!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(e===0){return t}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(r,n.indent.repeat(e))})},839:function(t,e,n){"use strict";const r=n(87);const i=n(199);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(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!t.isTTY&&o!==true){return 0}const e=o?1:0;if(process.platform==="win32"){const t=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in s)||s.CI_NAME==="codeship"){return 1}return e}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 t=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return t>=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 e}return e}function getSupportLevel(t){const e=supportsColor(t);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},842:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){wrapper[e]=t[e]});return wrapper;function wrapper(){var e=new Array(arguments.length);for(var n=0;nthis._isNonFatalError(t)}_isNonFatalError(t){return r.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},851:function(t,e,n){"use strict";const r=n(622);const i="\\\\/";const s=`[^${i}]`;const o="\\.";const a="\\+";const c="\\?";const l="\\/";const u="(?=.)";const h="[^/]";const f=`(?:${l}|$)`;const p=`(?:^|${l})`;const d=`${o}{1,2}${f}`;const y=`(?!${o})`;const m=`(?!${p}${d})`;const g=`(?!${o}{0,1}${f})`;const v=`(?!${d})`;const b=`[^.${l}]`;const _=`${h}*?`;const w={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:h,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:_,START_ANCHOR:p};const S={...w,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?S:w}}},861:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(747);const o=n(862);const a=n(616);const c=n(622);const l=t.exports=((t,e,n)=>{if(typeof e==="function")n=e;if(Array.isArray(t))e=t,t={};if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?u(i,e):i.file?h(i,e,n):i.sync?d(i,e):y(i,e)});const u=(t,e)=>{const n=new i.Sync(t);const r=new o.WriteStreamSync(t.file,{mode:t.mode||438});n.pipe(r);f(n,e)};const h=(t,e,n)=>{const r=new i(t);const s=new o.WriteStream(t.file,{mode:t.mode||438});r.pipe(s);const a=new Promise((t,e)=>{s.on("error",e);s.on("close",t);r.on("error",e)});p(r,e);return n?a.then(n,n):a};const f=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")a({file:c.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const p=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return a({file:c.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>p(t,e));else t.add(n)}t.end()};const d=(t,e)=>{const n=new i.Sync(t);f(n,e);return n};const y=(t,e)=>{const n=new i(t);p(n,e);return n}},862:function(t,e,n){"use strict";const r=n(563);const i=n(614).EventEmitter;const s=n(747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const l=Symbol("_autoClose");const u=Symbol("_close");const h=Symbol("_ended");const f=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const y=Symbol("_flush");const m=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const _=Symbol("_onerror");const w=Symbol("_onopen");const S=Symbol("_onread");const E=Symbol("_onwrite");const R=Symbol("_open");const O=Symbol("_path");const k=Symbol("_pos");const x=Symbol("_queue");const A=Symbol("_read");const C=Symbol("_readSize");const P=Symbol("_reading");const M=Symbol("_remain");const T=Symbol("_size");const L=Symbol("_write");const D=Symbol("_writing");const I=Symbol("_defaultFlag");class ReadStream extends r{constructor(t,e){e=e||{};super(e);this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[f]=typeof e.fd==="number"?e.fd:null;this[O]=t;this[C]=e.readSize||16*1024*1024;this[P]=false;this[T]=typeof e.size==="number"?e.size:Infinity;this[M]=this[T];this[l]=typeof e.autoClose==="boolean"?e.autoClose:true;if(typeof this[f]==="number")this[A]();else this[R]()}get fd(){return this[f]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){s.open(this[O],"r",(t,e)=>this[w](t,e))}[w](t,e){if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[A]()}}[g](){return Buffer.allocUnsafe(Math.min(this[C],this[M]))}[A](){if(!this[P]){this[P]=true;const t=this[g]();if(t.length===0)return process.nextTick(()=>this[S](null,0,t));s.read(this[f],t,0,t.length,null,(t,e,n)=>this[S](t,e,n))}}[S](t,e,n){this[P]=false;if(t)this[_](t);else if(this[m](e,n))this[A]()}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}[_](t){this[P]=true;this[u]();this.emit("error",t)}[m](t,e){let n=false;this[M]-=t;if(t>0)n=super.write(tthis[w](t,e))}[w](t,e){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";this[R]()}else if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[y]()}}end(t,e){if(t)this.write(t,e);this[h]=true;if(!this[D]&&!this[x].length&&typeof this[f]==="number")this[E](null,0)}write(t,e){if(typeof t==="string")t=new Buffer(t,e);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[f]===null||this[D]||this[x].length){this[x].push(t);this[b]=true;return false}this[D]=true;this[L](t);return true}[L](t){s.write(this[f],t,0,t.length,this[k],(t,e)=>this[E](t,e))}[E](t,e){if(t)this[_](t);else{if(this[k]!==null)this[k]+=e;if(this[x].length)this[y]();else{this[D]=false;if(this[h]&&!this[p]){this[p]=true;this[u]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[y](){if(this[x].length===0){if(this[h])this[E](null,0)}else if(this[x].length===1)this[L](this[x].pop());else{const t=this[x];this[x]=[];$(this[f],t,this[k],(t,e)=>this[E](t,e))}}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}}class WriteStreamSync extends WriteStream{[R](){let t;try{t=s.openSync(this[O],this[d],this[v])}catch(t){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";return this[R]()}else throw t}this[w](null,t)}[u](){if(this[l]&&typeof this[f]==="number"){try{s.closeSync(this[f])}catch(t){}this[f]=null;this.emit("close")}}[L](t){try{this[E](null,s.writeSync(this[f],t,0,t.length,this[k]))}catch(t){this[E](t,0)}}}const $=(t,e,n,r)=>{const i=(t,n)=>r(t,n,e);const s=new c;s.oncomplete=i;o.writeBuffers(t,e,n,s)};e.ReadStream=ReadStream;e.ReadStreamSync=ReadStreamSync;e.WriteStream=WriteStream;e.WriteStreamSync=WriteStreamSync},867:function(t){t.exports=require("tty")},876:function(t,e,n){"use strict";var r=n(802);var i=n(622).posix.dirname;var s=n(87).platform()==="win32";var o="/";var a=/\\/g;var c=/[\{\[].*[\/]*.*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var u=/\\([\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var n=Object.assign({flipBackslashes:true},e);if(n.flipBackslashes&&s&&t.indexOf(o)<0){t=t.replace(a,o)}if(c.test(t)){t+=o}t+="a";do{t=i(t)}while(r(t)||l.test(t));return t.replace(u,"$1")}},880:function(t){t.exports=function(t,n){var r=[];for(var i=0;i{let r=t.indexOf(e);if(r===-1){return t}const i=e.length;let s=0;let o="";do{o+=t.substr(s,r-s)+e+n;s=r+i;r=t.indexOf(e,s)}while(r!==-1);o+=t.substr(s);return o};const n=(t,e,n,r)=>{let i=0;let s="";do{const o=t[r-1]==="\r";s+=t.substr(i,(o?r-1:r)-i)+e+(o?"\r\n":"\n")+n;i=r+1;r=t.indexOf("\n",i)}while(r!==-1);s+=t.substr(i);return s};t.exports={stringReplaceAll:e,stringEncaseCRLFWithFirstIndex:n}},885:function(t,e,n){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var r=n(747);var i=r.realpath;var s=r.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=n(528);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,n){if(a){return i(t,e,n)}if(typeof e==="function"){n=e;e=null}i(t,e,function(r,i){if(newError(r)){c.realpath(t,e,n)}else{n(r,i)}})}function realpathSync(t,e){if(a){return s(t,e)}try{return s(t,e)}catch(n){if(newError(n)){return c.realpathSync(t,e)}else{throw n}}}function monkeypatch(){r.realpath=realpath;r.realpathSync=realpathSync}function unmonkeypatch(){r.realpath=i;r.realpathSync=s}},886:function(t,e,n){"use strict";var r=n(164);function fastqueue(t,e,n){if(typeof t==="function"){n=e;e=t;t=null}var i=r(Task);var s=null;var o=null;var a=0;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:n,running:running,resume:resume,idle:idle,length:length,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=s;var e=0;while(t){t=t.next;e++}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t{r.push(t(e,n,r[r.length-1]));return r});i=t===Boolean||t[e]===true}else if(typeof r==="function"){i=r===Boolean||r[e]===true}else{throw new TypeError(`Type missing or not a function or valid array type: ${n}`)}if(n[1]!=="-"&&n.length>2){throw new TypeError(`Short argument keys (with a single hyphen) must have only one character: ${n}`)}a[n]=[r,i]}for(let t=0,e=n.length;t0){s._=s._.concat(n.slice(t));break}if(e==="--"){s._=s._.concat(n.slice(t+1));break}if(e.length>1&&e[0]==="-"){const i=e[1]==="-"||e.length===2?[e]:e.slice(1).split("").map(t=>`-${t}`);for(let e=0;e1&&n[t+1][0]==="-"){const t=l===h?"":` (alias for ${h})`;throw new Error(`Option requires argument: ${l}${t}`)}s[h]=f(n[t+1],h,s[h]);++t}else{s[h]=f(u,h,s[h])}}}else{s._.push(e)}}return s}arg.flag=(t=>{t[e]=true;return t});arg.COUNT=arg.flag((t,e,n)=>(n||0)+1);t.exports=arg},892:function(t){"use strict";const e=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 n=t.exports=(t=>t?Object.keys(t).map(n=>[e.has(n)?e.get(n):n,t[n]]).reduce((t,e)=>(t[e[0]]=e[1],t),Object.create(null)):{})},896:function(t,e,n){"use strict";const r=n(921);const i=t=>{if(!((Number.isInteger(t)||t===Infinity)&&t>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const e=[];let n=0;const i=()=>{n--;if(e.length>0){e.shift()()}};const s=(t,e,...s)=>{n++;const o=r(t,...s);e(o);o.then(i,i)};const o=(r,i,...o)=>{if(nnew Promise(n=>o(t,n,...e));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>e.length}});return a};t.exports=i;t.exports.default=i},899:function(t,e,n){"use strict";const r=n(622);const i=n(789);const s=n(641);const o=Symbol("findUp.stop");t.exports=(async(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=async e=>{if(typeof t!=="function"){return i(a,e)}const n=await t(e.cwd);if(typeof n==="string"){return i([n],e)}return n};while(true){const t=await c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.sync=((t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=e=>{if(typeof t!=="function"){return i.sync(a,e)}const n=t(e.cwd);if(typeof n==="string"){return i.sync([n],e)}return n};while(true){const t=c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.exists=s;t.exports.sync.exists=s.sync;t.exports.stop=o},900:function(t,e,n){var r=n(413).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(e,n){if(!(this instanceof ReadStream))return new ReadStream(e,n);r.call(this);var i=this;this.path=e;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t);i.readable=false;return}i.fd=e;i.emit("open",e);i._read()})}function WriteStream(e,n){if(!(this instanceof WriteStream))return new WriteStream(e,n);r.call(this);this.path=e;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},903:function(t){t.exports=require("zlib")},920:function(t){t.exports=runParallel;function runParallel(t,e){var n,r,i;var s=true;if(Array.isArray(t)){n=[];r=t.length}else{i=Object.keys(t);n={};r=i.length}function done(t){function end(){if(e)e(t,n);e=null}if(s)process.nextTick(end);else end()}function each(t,e,i){n[t]=i;if(--r===0||e){done(e)}}if(!r){done(null)}else if(i){i.forEach(function(e){t[e](function(t,n){each(e,t,n)})})}else{t.forEach(function(t,e){t(function(t,n){each(e,t,n)})})}s=false}},921:function(t){"use strict";const e=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=e;t.exports.default=e},932:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=e.exec(t);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},945:function(t,e,n){const r=n(331);const i=n(365);const s={};const o=Object.keys(r);function wrapRaw(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}const r=t(e);if(typeof r==="object"){for(let t=r.length,e=0;e{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const e=i(t);const n=Object.keys(e);n.forEach(n=>{const r=e[n];s[t][n]=wrapRounded(r);s[t][n].raw=wrapRaw(r)})});t.exports=s},948:function(t,e,n){const r=n(357);const i=n(622);const s=n(747);let o=undefined;try{o=n(700)}catch(t){}const a={nosort:true,silent:true};let c=0;const l=process.platform==="win32";const u=t=>{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(e=>{t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||a};const h=(t,e,n)=>{if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");u(e);let i=0;let s=null;let a=0;const l=t=>{s=s||t;if(--a===0)n(s)};const h=(t,r)=>{if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(t=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&if(t,e,n),i*100)}if(r.code==="EMFILE"&&cf(t,e,n),c++)}if(r.code==="ENOENT")r=null}c=0;l(r)};f(t,e,n)})};if(e.disableGlob||!o.hasMagic(t))return h(null,[t]);e.lstat(t,(n,r)=>{if(!n)return h(null,[t]);o(t,e.glob,h)})};const f=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.lstat(t,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&l)p(t,e,r,n);if(i&&i.isDirectory())return y(t,e,r,n);e.unlink(t,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return l?p(t,e,r,n):y(t,e,r,n);if(r.code==="EISDIR")return y(t,e,r,n)}return n(r)})})};const p=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");if(n)r(n instanceof Error);e.chmod(t,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else e.stat(t,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())y(t,e,n,i);else e.unlink(t,i)})})};const d=(t,e,n)=>{r(t);r(e);if(n)r(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw n}let i;try{i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw n}if(i.isDirectory())v(t,e,n);else e.unlinkSync(t)};const y=(t,e,n,i)=>{r(t);r(e);if(n)r(n instanceof Error);r(typeof i==="function");e.rmdir(t,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))m(t,e,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const m=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.readdir(t,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return e.rmdir(t,n);let a;s.forEach(r=>{h(i.join(t,r),e,r=>{if(a)return;if(r)return n(a=r);if(--o===0)e.rmdir(t,n)})})})};const g=(t,e)=>{e=e||{};u(e);r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r(e,"rimraf: missing options");r.equal(typeof e,"object","rimraf: options should be object");let n;if(e.disableGlob||!o.hasMagic(t)){n=[t]}else{try{e.lstatSync(t);n=[t]}catch(r){n=o.sync(t,e.glob)}}if(!n.length)return;for(let t=0;t{r(t);r(e);if(n)r(n instanceof Error);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")b(t,e)}};const b=(t,e)=>{r(t);r(e);e.readdirSync(t).forEach(n=>g(i.join(t,n),e));const n=l?100:1;let s=0;do{let r=true;try{const i=e.rmdirSync(t,e);r=false;return i}finally{if(++ss;const c=r===s&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},955:function(t,e,n){const r=process.env.__FAKE_PLATFORM__||process.platform;const i=r==="win32";const s=global.__FAKE_TESTING_FS__||n(747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:c,UV_FS_O_FILEMAP:l=0}=s.constants;const u=i&&!!l;const h=512*1024;const f=l|a|o|c;t.exports=!u?()=>"w":t=>t{let n=(t,s={})=>{let o=i.isInvalidBrace(s);let a=t.invalid===true&&e.escapeInvalid===true;let c=o===true||a===true;let l=e.escapeInvalid===true?"\\":"";let u="";if(t.isOpen===true){return l+t.value}if(t.isClose===true){return l+t.value}if(t.type==="open"){return c?l+t.value:"("}if(t.type==="close"){return c?l+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":c?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let n=i.reduce(t.nodes);let s=r(...n,{...e,wrap:false,toRegex:true});if(s.length!==0){return n.length>1&&s.length>1?`(${s})`:s}}if(t.nodes){for(let e of t.nodes){u+=n(e,t)}}return u};return n(t)};t.exports=s},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(468);const i=n(25);const s=n(69);e.Settings=s.default;function stat(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.stat=stat;function statSync(t,e){const n=getSettings(e);return i.read(t,n)}e.statSync=statSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},998:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\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(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return s.get(t)||t}function parseArguments(t,e){const n=[];const s=e.trim().split(/\s*,\s*/g);let o;for(const e of s){if(!isNaN(e)){n.push(Number(e))}else if(o=e.match(r)){n.push(o[2].replace(i,(t,e,n)=>e?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const t of Object.keys(n)){if(Array.isArray(n[t])){if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}if(n[t].length>0){r=r[t].apply(r,n[t])}else{r=r[t]}}}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})}},function(t){"use strict";!function(){t.nmd=function(t){t.paths=[];if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});return t}}();!function(){t.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();!function(){var e=Object.prototype.hasOwnProperty;t.d=function(t,n,r){if(!e.call(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r})}}}();!function(){t.t=function(e,n){if(n&1)e=this(e);if(n&8)return e;if(n&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);t.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(n&2&&typeof e!="string")for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r}}();!function(){t.n=function(e){var n=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};t.d(n,"a",n);return n}}()}); \ No newline at end of file diff --git a/dist/main/index.js b/dist/main/index.js index f69b6c4..f838a8b 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -1 +1 @@ -module.exports=function(t,e){"use strict";var n={};function __webpack_require__(e){if(n[e]){return n[e].exports}var r=n[e]={i:e,l:false,exports:{}};t[e].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(241)}e(__webpack_require__);return startup()}({3:function(t){"use strict";const e=["|","<",">","?",":"];const n=e.map(t=>String.fromCharCode(61440+t.charCodeAt(0)));const r=new Map(e.map((t,e)=>[t,n[e]]));const i=new Map(n.map((t,n)=>[t,e[n]]));t.exports={encode:t=>e.reduce((t,e)=>t.split(e).join(r.get(e)),t),decode:t=>n.reduce((t,e)=>t.split(e).join(i.get(e)),t)}},10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;if(this._settings.absolute){e=r.path.makeAbsolute(this._settings.cwd,e);e=r.path.unixify(e)}if(this._settings.markDirectories&&t.dirent.isDirectory()){e+="/"}if(!this._settings.objectMode){return e}return Object.assign(Object.assign({},t),{path:e})}}e.default=EntryTransformer},13:function(t,e,n){var r=n(350);var i=n(240);var s={};var o=Object.keys(r);function wrapRaw(t){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}var n=t(e);if(typeof n==="object"){for(var r=n.length,i=0;ie?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const[t,e]of Object.entries(n)){if(!Array.isArray(e)){continue}if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}r=e.length>0?r[t](...e):r[t]}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})},24:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype;t.prototype=new n;t.prototype.constructor=t}}}},25:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e){const n=e.fs.lstatSync(t);if(!n.isSymbolicLink()||!e.followSymbolicLink){return n}try{const r=e.fs.statSync(t);if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}return r}catch(t){if(!e.throwErrorOnBrokenSymbolicLink){return n}throw t}}e.read=read},33:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(413);const i=n(203);const s=n(248);class ProviderStream extends s.default{constructor(){super(...arguments);this._reader=new i.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const i=this.api(e,t,n);const s=new r.Readable({objectMode:true,read:()=>{}});i.once("error",t=>s.emit("error",t)).on("data",t=>s.emit("data",n.transform(t))).once("end",()=>s.emit("end"));s.once("close",()=>i.destroy());return s}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderStream},35:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(162);e.fs=r},55:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class DeepFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e}getFilter(t,e,n){const r=this._getMaxPatternDepth(e);const i=this._getNegativePatternsRe(n);return e=>this._filter(t,e,i,r)}_getMaxPatternDepth(t){const e=t.some(r.pattern.hasGlobStar);return e?Infinity:r.pattern.getMaxNaivePatternsDepth(t)}_getNegativePatternsRe(t){const e=t.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,n,r){const i=this._getEntryDepth(t,e.path);if(this._isSkippedByDeep(i)){return false}if(this._isSkippedByMaxPatternDepth(i,r)){return false}if(this._isSkippedSymbolicLink(e)){return false}return this._isSkippedByNegativePatterns(e,n)}_getEntryDepth(t,e){const n=t.split("/").length;const r=e.split("/").length;return r-(t===""?0:n)}_isSkippedByDeep(t){return t>=this._settings.deep}_isSkippedByMaxPatternDepth(t,e){return!this._settings.baseNameMatch&&e!==Infinity&&t>e}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByNegativePatterns(t,e){return!r.pattern.matchAny(t.path,e)}}e.default=DeepFilter},58:function(t,e,n){"use strict";t=n.nmd(t);const r=(t,e)=>(...n)=>{const r=t(...n);return`[${r+e}m`};const i=(t,e)=>(...n)=>{const r=t(...n);return`[${38+e};5;${r}m`};const s=(t,e)=>(...n)=>{const r=t(...n);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};const o=t=>t;const a=(t,e,n)=>[t,e,n];const c=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{const r=n();Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let l;const u=(t,e,r,i)=>{if(l===undefined){l=n(945)}const s=i?10:0;const o={};for(const[n,i]of Object.entries(l)){const a=n==="ansi16"?"ansi":n;if(n===e){o[a]=t(r,s)}else if(typeof i==="object"){o[a]=t(i[e],s)}}return o};function assembleStyles(){const t=new Map;const e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright;e.bgColor.bgGray=e.bgColor.bgBlackBright;e.color.grey=e.color.blackBright;e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[n,r]of Object.entries(e)){for(const[n,i]of Object.entries(r)){e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false})}Object.defineProperty(e,"codes",{value:t,enumerable:false});e.color.close="";e.bgColor.close="";c(e.color,"ansi",()=>u(r,"ansi16",o,false));c(e.color,"ansi256",()=>u(i,"ansi256",o,false));c(e.color,"ansi16m",()=>u(s,"rgb",a,false));c(e.bgColor,"ansi",()=>u(r,"ansi16",o,true));c(e.bgColor,"ansi256",()=>u(i,"ansi256",o,true));c(e.bgColor,"ansi16m",()=>u(s,"rgb",a,true));return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},62:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(813);function merge(t){const e=r(t);t.forEach(t=>{t.once("error",t=>e.emit("error",t))});e.once("close",()=>propagateCloseEventToSources(t));e.once("end",()=>propagateCloseEventToSources(t));return e}e.merge=merge;function propagateCloseEventToSources(t){t.forEach(t=>t.emit("close"))}},63:function(t,e,n){const r=n(903).constants||{ZLIB_VERNUM:4736};t.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},r))},69:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(192);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=r.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},76:function(t,e,n){"use strict";const{Transform:r}=n(413);class ObjectTransform extends r{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(t){super();this._filter=t}_transform(t,e,n){if(this._filter(t)){this.push(t)}n()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(t,e,n){if(!this._pushed.has(t)){this.push(t);this._pushed.add(t)}n()}}t.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},82:function(t){t.exports=require("console")},87:function(t){t.exports=require("os")},93:function(t,e,n){"use strict";const r=n(360);const i=n(574);const s=n(839).stdout;const o=n(998);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const l=new Set(["gray"]);const u=Object.create(null);function applyOptions(t,e){e=e||{};const n=s?s.level:0;t.level=e.level===undefined?n:e.level;t.enabled="enabled"in e?e.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const e={};applyOptions(e,t);e.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[e.template].concat(t))};Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=Chalk;return e.template}applyOptions(this,t)}if(a){i.blue.open=""}for(const t of Object.keys(i)){i[t].closeRe=new RegExp(r(i[t].close),"g");u[t]={get(){const e=i[t];return build.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}}}u.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(r(i.color.close),"g");for(const t of Object.keys(i.color.ansi)){if(l.has(t)){continue}u[t]={get(){const e=this.level;return function(){const n=i.color[c[e]][t].apply(null,arguments);const r={open:n,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}}i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const t of Object.keys(i.bgColor.ansi)){if(l.has(t)){continue}const e="bg"+t[0].toUpperCase()+t.slice(1);u[e]={get(){const e=this.level;return function(){const n=i.bgColor[c[e]][t].apply(null,arguments);const r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}}const h=Object.defineProperties(()=>{},u);function build(t,e,n){const r=function(){return applyStyle.apply(r,arguments)};r._styles=t;r._empty=e;const i=this;Object.defineProperty(r,"level",{enumerable:true,get(){return i.level},set(t){i.level=t}});Object.defineProperty(r,"enabled",{enumerable:true,get(){return i.enabled},set(t){i.enabled=t}});r.hasGrey=this.hasGrey||n==="gray"||n==="grey";r.__proto__=h;return r}function applyStyle(){const t=arguments;const e=t.length;let n=String(arguments[0]);if(e===0){return""}if(e>1){for(let r=1;r{},destroy:this._reader.destroy.bind(this._reader)})}read(){this._reader.onError(t=>{this._stream.emit("error",t)});this._reader.onEntry(t=>{this._stream.push(t)});this._reader.onEnd(()=>{this._stream.push(null)});this._reader.read();return this._stream}}e.default=StreamProvider},104:function(t,e,n){"use strict";const r=n(87);t.exports=r.homedir()||r.tmpdir()},106:function(t,e,n){"use strict";const r=n(835);const i=n(292);const s=t=>t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(t){if(!Array.isArray(t)){throw new TypeError(`Expected input to be an Array, got ${typeof t}`)}t=[...t].map(t=>{if(t instanceof Error){return t}if(t!==null&&typeof t==="object"){return Object.assign(new Error(t.message),t)}return new Error(t)});let e=t.map(t=>{return typeof t.stack==="string"?s(i(t.stack)):String(t)}).join("\n");e="\n"+r(e,4);super(e);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:t})}*[Symbol.iterator](){for(const t of this._errors){yield t}}}t.exports=AggregateError},112:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(622);const s=n(599);const o=n(802);const a=n(493);const c=n(564);const l=n(634);const u=n(550);const h=n(948);const f=n(806);const p=r(h);const d={glob:false,unlink:c.unlink,unlinkSync:c.unlinkSync,chmod:c.chmod,chmodSync:c.chmodSync,stat:c.stat,statSync:c.statSync,lstat:c.lstat,lstatSync:c.lstatSync,rmdir:c.rmdir,rmdirSync:c.rmdirSync,readdir:c.readdir,readdirSync:c.readdirSync};function safeCheck(t,e){if(l(t)){throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.")}if(!u(t,e)){throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}}function normalizePatterns(t){t=Array.isArray(t)?t:[t];t=t.map(t=>{if(process.platform==="win32"&&o(t)===false){return a(t)}return t});return t}t.exports=(async(t,{force:e,dryRun:n,cwd:r=process.cwd(),...o}={})=>{o={expandDirectories:false,onlyFiles:false,followSymbolicLinks:false,cwd:r,...o};t=normalizePatterns(t);const a=(await s(t,o)).sort((t,e)=>e.localeCompare(t));const c=async t=>{t=i.resolve(r,t);if(!e){safeCheck(t,r)}if(!n){await p(t,d)}return t};const l=await f(a,c,o);l.sort((t,e)=>t.localeCompare(e));return l});t.exports.sync=((t,{force:e,dryRun:n,cwd:r=process.cwd(),...o}={})=>{o={expandDirectories:false,onlyFiles:false,followSymbolicLinks:false,cwd:r,...o};t=normalizePatterns(t);const a=s.sync(t,o).sort((t,e)=>e.localeCompare(t));const c=a.map(t=>{t=i.resolve(r,t);if(!e){safeCheck(t,r)}if(!n){h.sync(t,d)}return t});c.sort((t,e)=>t.localeCompare(e));return c})},125:function(t,e,n){"use strict";const r=n(728);const i=n(622);class Pax{constructor(t,e){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=e||false}encode(){const t=this.encodeBody();if(t==="")return null;const e=Buffer.byteLength(t);const n=512*Math.ceil(1+e/512);const s=Buffer.allocUnsafe(n);for(let t=0;t<512;t++){s[t]=0}new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:e,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(s);s.write(t,512,e,"utf8");for(let t=e+512;t=Math.pow(10,i))i+=1;const s=i+r;return s+n}}Pax.parse=((t,e,n)=>new Pax(s(o(t),e),n));const s=(t,e)=>e?Object.keys(t).reduce((e,n)=>(e[n]=t[n],e),e):t;const o=t=>t.replace(/\n$/,"").split("\n").reduce(a,Object.create(null));const a=(t,e)=>{const n=parseInt(e,10);if(n!==Buffer.byteLength(e)+1)return t;e=e.substr((n+" ").length);const r=e.split("=");const i=r.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;const s=r.join("=");t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s;return t};t.exports=Pax},129:function(t){t.exports=require("child_process")},133:function(t,e,n){e.alphasort=alphasort;e.alphasorti=alphasorti;e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var r=n(622);var i=n(314);var s=n(932);var o=i.Minimatch;function alphasorti(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function alphasort(t,e){return t.localeCompare(e)}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var n=t.replace(/(\/\*\*)+$/,"");e=new o(n,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,n){if(!n)n={};if(n.matchBase&&-1===e.indexOf("/")){if(n.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!n.silent;t.pattern=e;t.strict=n.strict!==false;t.realpath=!!n.realpath;t.realpathCache=n.realpathCache||Object.create(null);t.follow=!!n.follow;t.dot=!!n.dot;t.mark=!!n.mark;t.nodir=!!n.nodir;if(t.nodir)t.mark=true;t.sync=!!n.sync;t.nounique=!!n.nounique;t.nonull=!!n.nonull;t.nosort=!!n.nosort;t.nocase=!!n.nocase;t.stat=!!n.stat;t.noprocess=!!n.noprocess;t.absolute=!!n.absolute;t.maxLength=n.maxLength||Infinity;t.cache=n.cache||Object.create(null);t.statCache=n.statCache||Object.create(null);t.symlinks=n.symlinks||Object.create(null);setupIgnores(t,n);t.changedCwd=false;var i=process.cwd();if(!ownProp(n,"cwd"))t.cwd=i;else{t.cwd=r.resolve(n.cwd);t.changedCwd=t.cwd!==i}t.root=n.root||r.resolve(t.cwd,"/");t.root=r.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=s(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!n.nomount;n.nonegate=true;n.nocomment=true;t.minimatch=new o(e,n);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var n=e?[]:Object.create(null);for(var r=0,i=t.matches.length;r{const n=getNaiveDepth(e);return n>t?n:t},0)}e.getMaxNaivePatternsDepth=getMaxNaivePatternsDepth;function makeRe(t,e){return s.makeRe(t,e)}e.makeRe=makeRe;function convertPatternsToRe(t,e){return t.map(t=>makeRe(t,e))}e.convertPatternsToRe=convertPatternsToRe;function matchAny(t,e){const n=t.replace(/^\.[\\/]/,"");return e.some(t=>t.test(n))}e.matchAny=matchAny},137:function(t,e,n){t.exports=rimraf;rimraf.sync=rimrafSync;var r=n(357);var i=n(622);var s=n(747);var o=undefined;try{o=n(700)}catch(t){}var a=parseInt("666",8);var c={nosort:true,silent:true};var l=0;var u=process.platform==="win32";function defaults(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(e){t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||c}function rimraf(t,e,n){if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");defaults(e);var i=0;var s=null;var a=0;if(e.disableGlob||!o.hasMagic(t))return afterGlob(null,[t]);e.lstat(t,function(n,r){if(!n)return afterGlob(null,[t]);o(t,e.glob,afterGlob)});function next(t){s=s||t;if(--a===0)n(s)}function afterGlob(t,r){if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(function(t){rimraf_(t,e,function CB(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i{if(r(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(r(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...n};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let o=String(s.relaxZeros);let a=String(s.shorthand);let c=String(s.capture);let l=String(s.wrap);let u=t+":"+e+"="+o+a+c+l;if(i.cache.hasOwnProperty(u)){return i.cache[u].result}let h=Math.min(t,e);let f=Math.max(t,e);if(Math.abs(h-f)===1){let n=t+"|"+e;if(s.capture){return`(${n})`}if(s.wrap===false){return n}return`(?:${n})`}let p=hasPadding(t)||hasPadding(e);let d={min:t,max:e,a:h,b:f};let y=[];let m=[];if(p){d.isPadded=p;d.maxLen=String(d.max).length}if(h<0){let t=f<0?Math.abs(f):1;m=splitToPatterns(t,Math.abs(h),d,s);h=d.a=0}if(f>=0){y=splitToPatterns(h,f,d,s)}d.negatives=m;d.positives=y;d.result=collatePatterns(m,y,s);if(s.capture===true){d.result=`(${d.result})`}else if(s.wrap!==false&&y.length+m.length>1){d.result=`(?:${d.result})`}i.cache[u]=d;return d.result};function collatePatterns(t,e,n){let r=filterPatterns(t,e,"-",false,n)||[];let i=filterPatterns(e,t,"",false,n)||[];let s=filterPatterns(t,e,"-?",true,n)||[];let o=r.concat(s).concat(i);return o.join("|")}function splitToRanges(t,e){let n=1;let r=1;let i=countNines(t,n);let s=new Set([e]);while(t<=i&&i<=e){s.add(i);n+=1;i=countNines(t,n)}i=countZeros(e+1,r)-1;while(t1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(n.isPadded){l=padZeros(e,n,r)}c.string=l+c.pattern+toQuantifier(c.count);s.push(c);o=e+1;a=c}return s}function filterPatterns(t,e,n,r,i){let s=[];for(let i of t){let{string:t}=i;if(!r&&!contains(e,"string",t)){s.push(n+t)}if(r&&contains(e,"string",t)){s.push(n+t)}}return s}function zip(t,e){let n=[];for(let r=0;re?1:e>t?-1:0}function contains(t,e,n){return t.some(t=>t[e]===n)}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,n=""]=t;if(n||e>1){return`{${e+(n?","+n:"")}}`}return""}function toCharacterClass(t,e,n){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,n){if(!e.isPadded){return t}let r=Math.abs(e.maxLen-String(t).length);let i=n.relaxZeros!==false;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${r}}`:`0{${r}}`}}}i.cache={};i.clearCache=(()=>i.cache={});t.exports=i},160:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(747);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},162:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},164:function(t){"use strict";function reusify(t){var e=new t;var n=e;function get(){var r=e;if(r.next){e=r.next}else{e=new t;n=e}r.next=null;return r}function release(t){n.next=t;n=t}return{get:get,release:release}}t.exports=reusify},172:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(406);class SyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}e.default=SyncProvider},177:function(t,e,n){"use strict";const r=n(622);const i=n(439);const s=t=>t.length>1?`{${t.join(",")}}`:t[0];const o=(t,e)=>{const n=t[0]==="!"?t.slice(1):t;return r.isAbsolute(n)?n:r.join(e,n)};const a=(t,e)=>{if(r.extname(t)){return`**/${t}`}return`**/${t}.${s(e)}`};const c=(t,e)=>{if(e.files&&!Array.isArray(e.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``)}if(e.extensions&&!Array.isArray(e.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``)}if(e.files&&e.extensions){return e.files.map(n=>r.posix.join(t,a(n,e.extensions)))}if(e.files){return e.files.map(e=>r.posix.join(t,`**/${e}`))}if(e.extensions){return[r.posix.join(t,`**/*.${s(e.extensions)}`)]}return[r.posix.join(t,"**")]};t.exports=(async(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const n=await Promise.all([].concat(t).map(async t=>{const n=await i.isDirectory(o(t,e.cwd));return n?c(t,e):t}));return[].concat.apply([],n)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const n=[].concat(t).map(t=>i.isDirectorySync(o(t,e.cwd))?c(t,e):t);return[].concat.apply([],n)})},188:function(t,e,n){try{var r=n(669);if(typeof r.inherits!=="function")throw"";t.exports=r.inherits}catch(e){t.exports=n(24)}},190:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(416);class Reader{constructor(t,e){this._root=t;this._settings=e;this._root=r.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}e.default=Reader},192:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(747);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},199:function(t){"use strict";t.exports=((t,e)=>{e=e||process.argv;const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1?true:r{return this._getEntry(n[r],t[r],e).then(t=>{if(t!==null&&e.entryFilter(t)){i.push(t)}if(r===n.length-1){i.end()}o()}).catch(o)});for(let t=0;tthis._makeEntry(t,e)).catch(t=>{if(n.errorFilter(t)){return null}throw t})}_getStat(t){return new Promise((e,n)=>{this._stat(t,this._fsStatSettings,(t,r)=>{return t===null?e(r):n(t)})})}}e.default=ReaderStream},209:function(t,e,n){"use strict";function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=_interopDefault(n(747));var i=_interopDefault(n(622));var s=_interopDefault(n(104));var o=_interopDefault(n(313));var a=_interopDefault(n(614));var c=_interopDefault(n(93));var l=n(483);var u=_interopDefault(n(211));var h=_interopDefault(n(129));const f="tmp";const p="degit.json";class DegitError extends Error{constructor(t,e){super(t);Object.assign(this,e)}}function tryRequire(t,e){try{if(e&&e.clearCache===true){delete require.cache[require.resolve(t)]}return require(t)}catch(t){return null}}function exec(t){return new Promise((e,n)=>{h.exec(t,(t,r,i)=>{if(t){n(t);return}e({stdout:r,stderr:i})})})}function mkdirp(t){const e=i.dirname(t);if(e===t)return;mkdirp(e);try{r.mkdirSync(t)}catch(t){if(t.code!=="EEXIST")throw t}}function fetch(t,e){return new Promise((n,i)=>{u.get(t,t=>{const s=t.statusCode;if(s>=400){i({code:s,message:t.statusMessage})}else if(s>=300){fetch(t.headers.location,e).then(n,i)}else{t.pipe(r.createWriteStream(e)).on("finish",()=>n()).on("error",i)}}).on("error",i)})}function stashFiles(t,e){const n=i.join(t,f);l.rimrafSync(n);mkdirp(n);r.readdirSync(e).forEach(t=>{const s=i.join(e,t);const o=i.join(n,t);const a=r.lstatSync(s).isDirectory();if(a){l.copydirSync(s).to(o);l.rimrafSync(s)}else{r.copyFileSync(s,o);r.unlinkSync(s)}})}function unstashFiles(t,e){const n=i.join(t,f);r.readdirSync(n).forEach(t=>{const s=i.join(n,t);const o=i.join(e,t);const a=r.lstatSync(s).isDirectory();if(a){l.copydirSync(s).to(o);l.rimrafSync(s)}else{if(t!=="degit.json"){r.copyFileSync(s,o)}r.unlinkSync(s)}});l.rimrafSync(n)}const d=i.join(s,".degit");function degit(t,e){return new Degit(t,e)}class Degit extends a{constructor(t,e={}){super();this.src=t;this.cache=e.cache;this.force=e.force;this.verbose=e.verbose;this.repo=parse(t);this._hasStashed=false;this.directiveActions={clone:async(t,e,n)=>{if(this._hasStashed===false){stashFiles(t,e);this._hasStashed=true}const r=Object.assign({force:true},{cache:n.cache,verbose:n.verbose});const i=degit(n.src,r);i.on("info",t=>{console.error(c.cyan(`> ${t.message.replace("options.","--")}`))});i.on("warn",t=>{console.error(c.magenta(`! ${t.message.replace("options.","--")}`))});await i.clone(e).catch(t=>{console.error(c.red(`! ${t.message}`));process.exit(1)})},remove:this.remove.bind(this)}}_getDirectives(t){const e=i.resolve(t,p);const n=tryRequire(e,{clearCache:true})||false;if(n){r.unlinkSync(e)}return n}async clone(t){this._checkDirIsEmpty(t);const e=this.repo;const n=i.join(d,e.site,e.user,e.name);const s=tryRequire(i.join(n,"map.json"))||{};const o=this.cache?this._getHashFromCache(e,s):await this._getHash(e,s);if(!o){throw new DegitError(`could not find commit hash for ${e.ref}`,{code:"MISSING_REF",ref:e.ref})}const a=`${n}/${o}.tar.gz`;const l=e.site==="gitlab"?`${e.url}/repository/archive.tar.gz?ref=${o}`:e.site==="bitbucket"?`${e.url}/get/${o}.tar.gz`:`${e.url}/archive/${o}.tar.gz`;try{if(!this.cache){try{r.statSync(a);this._verbose({code:"FILE_EXISTS",message:`${a} already exists locally`})}catch(t){mkdirp(i.dirname(a));this._verbose({code:"DOWNLOADING",message:`downloading ${l} to ${a}`});await fetch(l,a)}}}catch(t){throw new DegitError(`could not download ${l}`,{code:"COULD_NOT_DOWNLOAD",url:l,original:t})}updateCache(n,e,o,s);this._verbose({code:"EXTRACTING",message:`extracting ${a} to ${t}`});mkdirp(t);await untar(a,t);this._info({code:"SUCCESS",message:`cloned ${c.bold(e.user+"/"+e.name)}#${c.bold(e.ref)}${t!=="."?` to ${t}`:""}`,repo:e,dest:t});const u=this._getDirectives(t);if(u){for(const e of u){await this.directiveActions[e.action](n,t,e)}if(this._hasStashed===true){unstashFiles(n,t)}}}remove(t,e,n){let s=n.files;if(!Array.isArray(s)){s=[s]}const o=s.map(t=>{const n=i.resolve(e,t);if(r.existsSync(n)){const e=r.lstatSync(n).isDirectory();if(e){l.rimrafSync(n);return t+"/"}else{r.unlinkSync(n);return t}}else{this._warn({code:"FILE_DOES_NOT_EXIST",message:`action wants to remove ${c.bold(t)} but it does not exist`});return null}}).filter(t=>t);if(o.length>0){this._info({code:"REMOVED",message:`removed: ${c.bold(o.map(t=>c.bold(t)).join(", "))}`})}}_checkDirIsEmpty(t){try{const e=r.readdirSync(t);if(e.length>0){if(this.force){this._info({code:"DEST_NOT_EMPTY",message:`destination directory is not empty. Using options.force, continuing`})}else{throw new DegitError(`destination directory is not empty, aborting. Use options.force to override`,{code:"DEST_NOT_EMPTY"})}}else{this._verbose({code:"DEST_IS_EMPTY",message:`destination directory is empty`})}}catch(t){if(t.code!=="ENOENT")throw t}}_info(t){this.emit("info",t)}_warn(t){this.emit("warn",t)}_verbose(t){if(this.verbose)this._info(t)}async _getHash(t,e){try{const n=await fetchRefs(t);return this._selectRef(n,t.ref)}catch(n){this._warn(n);this._verbose(n.original);return this._getHashFromCache(t,e)}}_getHashFromCache(t,e){if(t.ref in e){const n=e[t.ref];this._info({code:"USING_CACHE",message:`using cached commit hash ${n}`});return n}}_selectRef(t,e){for(const n of t){if(n.name===e){this._verbose({code:"FOUND_MATCH",message:`found matching commit hash: ${n.hash}`});return n.hash}}if(e.length<8)return null;for(const n of t){if(n.hash.startsWith(e))return n.hash}}}const y=new Set(["github","gitlab","bitbucket","git.sr.ht"]);function parse(t){const e=/^(?:https:\/\/([^/]+)\/|git@([^/]+)[:/]|([^/]+)[:/])?([^/\s]+)\/([^/\s#]+)(?:#(.+))?/.exec(t);if(!e){throw new DegitError(`could not parse ${t}`,{code:"BAD_SRC"})}const n=(e[1]||e[2]||e[3]||"github").replace(/\.(com|org)$/,"");if(!y.has(n)){throw new DegitError(`degit supports GitHub, GitLab, Sourcehut and BitBucket`,{code:"UNSUPPORTED_HOST"})}const r=e[4];const i=e[5].replace(/\.git$/,"");const s=e[6]||"master";const o=`https://${n}.${n==="bitbucket"?"org":n==="git.sr.ht"?"":"com"}/${r}/${i}`;return{site:n,user:r,name:i,ref:s,url:o}}async function untar(t,e){return o.extract({file:t,strip:1,C:e})}async function fetchRefs(t){try{const{stdout:e}=await exec(`git ls-remote ${t.url}`);return e.split("\n").filter(Boolean).map(t=>{const[e,n]=t.split("\t");if(n==="HEAD"){return{type:"HEAD",hash:e}}const r=/refs\/(\w+)\/(.+)/.exec(n);if(!r)throw new DegitError(`could not parse ${n}`,{code:"BAD_REF"});return{type:r[1]==="heads"?"branch":r[1]==="refs"?"ref":r[1],name:r[2],hash:e}})}catch(e){throw new DegitError(`could not fetch remote ${t.url}`,{code:"COULD_NOT_FETCH",url:t.url,original:e})}}function updateCache(t,e,n,s){if(s[e.ref]===n)return;const o=s[e.ref];if(o){let e=false;for(const t in s){if(s[t]===n){e=true;break}}if(!e){try{r.unlinkSync(i.join(t,`${o}.tar.gz`))}catch(t){}}}s[e.ref]=n;r.writeFileSync(i.join(t,"map.json"),JSON.stringify(s,null," "))}t.exports=degit},210:function(t,e,n){"use strict";const r=n(622);const i=process.platform==="win32";const{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=n(851);e.isObject=(t=>t!==null&&typeof t==="object"&&!Array.isArray(t));e.hasRegexChars=(t=>a.test(t));e.isRegexChar=(t=>t.length===1&&e.hasRegexChars(t));e.escapeRegex=(t=>t.replace(c,"\\$1"));e.toPosixSlashes=(t=>t.replace(s,"/"));e.removeBackslashes=(t=>{return t.replace(o,t=>{return t==="\\"?"":t})});e.supportsLookbehinds=(()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false});e.isWindows=(t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return i===true||r.sep==="\\"});e.escapeLast=((t,n,r)=>{const i=t.lastIndexOf(n,r);if(i===-1)return t;if(t[i-1]==="\\")return e.escapeLast(t,n,i-1);return t.slice(0,i)+"\\"+t.slice(i)});e.removePrefix=((t,e={})=>{let n=t;if(n.startsWith("./")){n=n.slice(2);e.prefix="./"}return n});e.wrapOutput=((t,e={},n={})=>{const r=n.contains?"":"^";const i=n.contains?"":"$";let s=`${r}(?:${t})${i}`;if(e.negated===true){s=`(?:^(?!${s}).*$)`}return s})},211:function(t){t.exports=require("https")},220:function(t,e,n){"use strict";const r=n(747);const i=n(622);const s=r.lchown?"lchown":"chown";const o=r.lchownSync?"lchownSync":"chownSync";const a=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=a?(t,e,n,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else r.chown(t,e,n,i)}:(t,e,n,r)=>r;const l=a?(t,e,n)=>{try{return r[o](t,e,n)}catch(i){if(i.code!=="EISDIR")throw i;r.chownSync(t,e,n)}}:(t,e,n)=>r[o](t,e,n);const u=process.version;let h=(t,e,n)=>r.readdir(t,e,n);let f=(t,e)=>r.readdirSync(t,e);if(/^v4\./.test(u))h=((t,e,n)=>r.readdir(t,n));const p=(t,e,n,o,a)=>{if(typeof e==="string")return r.lstat(i.resolve(t,e),(r,i)=>{if(r)return a(r);i.name=e;p(t,i,n,o,a)});if(e.isDirectory()){d(i.resolve(t,e.name),n,o,l=>{if(l)return a(l);const u=i.resolve(t,e.name);r[s](u,n,o,c(u,n,o,a))})}else{const l=i.resolve(t,e.name);r[s](l,n,o,c(l,n,o,a))}};const d=(t,e,n,i)=>{h(t,{withFileTypes:true},(o,a)=>{if(o&&o.code!=="ENOTDIR"&&o.code!=="ENOTSUP")return i(o);if(o||!a.length)return r[s](t,e,n,c(t,e,n,i));let l=a.length;let u=null;const h=o=>{if(u)return;if(o)return i(u=o);if(--l===0)return r[s](t,e,n,c(t,e,n,i))};a.forEach(r=>p(t,r,e,n,h))})};const y=(t,e,n,s)=>{if(typeof e==="string"){const n=r.lstatSync(i.resolve(t,e));n.name=e;e=n}if(e.isDirectory())m(i.resolve(t,e.name),n,s);l(i.resolve(t,e.name),n,s)};const m=(t,e,n)=>{let r;try{r=f(t,{withFileTypes:true})}catch(r){if(r&&r.code==="ENOTDIR"&&r.code!=="ENOTSUP")return l(t,e,n);throw r}if(r.length)r.forEach(r=>y(t,r,e,n));return l(t,e,n)};t.exports=d;d.sync=m},226:function(t,e,n){"use strict";const r=n(210);const{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:h,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:d,CHAR_QUESTION_MARK:y,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=n(851);const b=t=>{return t===u||t===o};t.exports=((t,e)=>{const n=e||{};const _=t.length-1;let S=-1;let w=0;let E=0;let R=false;let O=false;let k=false;let x=0;let A;let C;let P=false;const M=()=>S>=_;const T=()=>{A=C;return t.charCodeAt(++S)};while(S<_){C=T();let e;if(C===o){O=true;e=T();if(e===h){P=true}continue}if(P===true||C===h){x++;while(!M()&&(e=T())){if(e===o){O=true;e=T();continue}if(e===h){x++;continue}if(!P&&e===c&&(e=T())===c){R=true;break}if(!P&&e===a){R=true;break}if(e===m){x--;if(x===0){P=false;break}}}}if(C===u){if(A===c&&S===w+1){w+=2;continue}E=S+1;continue}if(C===i){R=true;break}if(C===i||C===y){R=true;break}if(C===p){while(!M()&&(e=T())){if(e===o){O=true;e=T();continue}if(e===v){R=true;break}}}const r=C===d||C===s||C===l;if(r&&t.charCodeAt(S+1)===f){R=true;break}if(!n.nonegate&&C===l&&S===w){k=true;w++;continue}if(n.noparen!==true&&C===f){while(!M()&&(C=T())){if(C===o){O=true;C=T();continue}if(C===g){R=true;break}}}if(R){break}}if(n.noext===true){R=false}let L="";const D=t;let I=t;let $="";if(w>0){L=t.slice(0,w);t=t.slice(w);E-=w}if(I&&R===true&&E>0){I=t.slice(0,E);$=t.slice(E)}else if(R===true){I="";$=t}else{I=t}if(I&&I!==""&&I!=="/"&&I!==t){if(b(I.charCodeAt(I.length-1))){I=I.slice(0,-1)}}if(n.unescape===true){if($)$=r.removeBackslashes($);if(I&&O===true){I=r.removeBackslashes(I)}}return{prefix:L,input:D,base:I,glob:$,negated:k,isGlob:R}})},232:function(t,e,n){"use strict";const r=n(896);class EndError extends Error{constructor(t){super();this.value=t}}const i=async(t,e)=>e(await t);const s=async t=>{const e=await Promise.all(t);if(e[1]===true){throw new EndError(e[0])}return false};const o=async(t,e,n)=>{n={concurrency:Infinity,preserveOrder:true,...n};const o=r(n.concurrency);const a=[...t].map(t=>[t,o(i,t,e)]);const c=r(n.preserveOrder?1:Infinity);try{await Promise.all(a.map(t=>c(s,t)))}catch(t){if(t instanceof EndError){return t.value}throw t}};t.exports=o;t.exports.default=o},240:function(t,e,n){var r=n(350);function buildGraph(){var t={};var e=Object.keys(r);for(var n=e.length,i=0;i{if(!a().existsSync("./gridsome.config.js")){console.log(i().red("Not in root of a Gridsome project!"));process.exit(126)}};var u=n(591);var h=n.n(u);var f=async({"--html":t=false,"--vue":e=false}={})=>{l();if(!a().existsSync("./src")){Object(c.log)(i().blue("Creating src directory"));a().mkdirSync("./src")}if(!(t||e)){console.log(i().yellow("Please pass --html and/or --vue."));process.exit(126)}const n=await h()(__dirname);if(t){if(a().existsSync("./src/index.html")){Object(c.log)(i().red("index.html already exists!"))}else{a().copyFileSync(`${n}/templates/index.html`,"./src/index.html");Object(c.log)(i().green("index.html created successfully."))}}if(e){if(a().existsSync("./src/App.vue")){Object(c.log)(i().red("App.vue already exists!"))}else{a().copyFileSync(`${n}/templates/App.vue`,"./src/App.vue");Object(c.log)(i().green("App.vue created successfully."))}}};var p=n(671);var d=n.n(p);var y=async({"--name":t=null,"--component":e=false,"--template":n=false,"--page":r=false,"--layout":s=false}={})=>{l();if(!(e||r||n||s)){console.log(i().bold.red("Please provide one of the filetype options."));process.exit(126)}if(!t){console.log(i().bold.red("--name option must be provided."));process.exit(126)}const o={component:e,template:n,page:r,layout:s};const u=await h()(__dirname);for(let[e,n]of Object.entries(o)){if(n){let n=d()(t);if(a().existsSync(`./src/${e}s/${n}.vue`)){Object(c.log)(i().red(`${n}.vue already exists!`));process.exit(126)}else{a().copyFileSync(`${u}/templates/${e}.vue`,`./src/${e}s/${n}.vue`);Object(c.log)(i().green(`src/${e}s/${n}.vue created successfully.`))}}}};var m=n(112);var g=n.n(m);var v=async()=>{l();const t=await g()(["src/{pages,components,layouts,templates}/README.md","src/pages/{Index,About}.vue","src/layouts/Default.vue","!./README.md"]);if(t.length>0){console.log(i().green("Deleted files:\n",t.join("\n")))}else{console.log(i().yellow("No files to delete."))}y({"--layout":true,"--name":"Default"});y({"--page":true,"--name":"Index"})};var b=n(209);var _=n.n(b);var S=({"--repo":t="brandonpittman/gridsome-starter-default","--dest":e="gridsome-starter-default"}={})=>{let n=_()(t,{cache:false,force:true,verbose:true});if(!e){e=t.split("/")[1]}n.clone(e).then(()=>{console.log(i().bold.green(`\nCloned ${t} to ${e}.\n`));console.log(i().underline("Run the following command:\n"));console.log(`cd ${e} && npm install && gridsome develop`)})};n.d(e,"default",function(){return w});var w=function({args:t,help:e}){if(t["--version"]){Object(c.log)(s.version)}const n=["init","scaffold","override","fresh"];const r=t._[0];if(!r){Object(c.log)(e);return}switch(r){case"init":S(t);break;case"scaffold":y(t);break;case"override":f(t);break;case"fresh":v();break;default:Object(c.log)(i().bold.red(`\n${r} is not a recognized command.\n`));Object(c.log)(i().underline("Available commands:"));for(const t of n){Object(c.log)(`${t}`)}process.exit(126)}}},248:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(55);const s=n(677);const o=n(844);const a=n(10);class Provider{constructor(t){this._settings=t;this.errorFilter=new o.default(this._settings);this.entryFilter=new s.default(this._settings,this._getMicromatchOptions());this.deepFilter=new i.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}e.default=Provider},258:function(t,e,n){"use strict";const r=n(622);const i=n(226);const s=n(683);const o=n(210);const a=n(851);const c=(t,e,n=false)=>{if(Array.isArray(t)){const r=t.map(t=>c(t,e,n));return t=>{for(const e of r){const n=e(t);if(n)return n}return false}}if(typeof t!=="string"||t===""){throw new TypeError("Expected pattern to be a non-empty string")}const r=e||{};const i=o.isWindows(e);const s=c.makeRe(t,e,false,true);const a=s.state;delete s.state;let l=()=>false;if(r.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};l=c(r.ignore,t,n)}const u=(n,o=false)=>{const{isMatch:u,match:h,output:f}=c.test(n,s,e,{glob:t,posix:i});const p={glob:t,state:a,regex:s,posix:i,input:n,output:f,match:h,isMatch:u};if(typeof r.onResult==="function"){r.onResult(p)}if(u===false){p.isMatch=false;return o?p:false}if(l(n)){if(typeof r.onIgnore==="function"){r.onIgnore(p)}p.isMatch=false;return o?p:false}if(typeof r.onMatch==="function"){r.onMatch(p)}return o?p:true};if(n){u.state=a}return u};c.test=((t,e,n,{glob:r,posix:i}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const s=n||{};const a=s.format||(i?o.toPosixSlashes:null);let l=t===r;let u=l&&a?a(t):t;if(l===false){u=a?a(t):t;l=u===r}if(l===false||s.capture===true){if(s.matchBase===true||s.basename===true){l=c.matchBase(t,e,n,i)}else{l=e.exec(u)}}return{isMatch:!!l,match:l,output:u}});c.matchBase=((t,e,n,i=o.isWindows(n))=>{const s=e instanceof RegExp?e:c.makeRe(e,n);return s.test(r.basename(t))});c.isMatch=((t,e,n)=>c(e,n)(t));c.parse=((t,e)=>s(t,e));c.scan=((t,e)=>i(t,e));c.makeRe=((t,e,n=false,r=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}const i=e||{};const o=i.contains?"":"^";const a=i.contains?"":"$";let l={negated:false,fastpaths:true};let u="";let h;if(t.startsWith("./")){t=t.slice(2);u=l.prefix="./"}if(i.fastpaths!==false&&(t[0]==="."||t[0]==="*")){h=s.fastpaths(t,e)}if(h===void 0){l=c.parse(t,e);l.prefix=u+(l.prefix||"");h=l.output}if(n===true){return h}let f=`${o}(?:${h})${a}`;if(l&&l.negated===true){f=`^(?!${f}).*$`}const p=c.toRegex(f,e);if(r===true){p.state=l}return p});c.toRegex=((t,e)=>{try{const n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}});c.constants=a;t.exports=c},266:function(t,e,n){"use strict";const r=n(815);const{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:h,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:y,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=n(605);const b=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let n=e||{};let b=typeof n.maxLength==="number"?Math.min(i,n.maxLength):i;if(t.length>b){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`)}let _={type:"root",input:t,nodes:[]};let S=[_];let w=_;let E=_;let R=0;let O=t.length;let k=0;let x=0;let A;let C={};const P=()=>t[k++];const M=t=>{if(t.type==="text"&&E.type==="dot"){E.type="text"}if(E&&E.type==="text"&&t.type==="text"){E.value+=t.value;return}w.nodes.push(t);t.parent=w;t.prev=E;E=t;return t};M({type:"bos"});while(k0){if(w.ranges>0){w.ranges=0;let t=w.nodes.shift();w.nodes=[t,{type:"text",value:r(w)}]}M({type:"comma",value:A});w.commas++;continue}if(A===c&&x>0&&w.commas===0){let t=w.nodes;if(x===0||t.length===0){M({type:"text",value:A});continue}if(E.type==="dot"){w.range=[];E.value+=A;E.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;E.type="text";continue}w.ranges++;w.args=[];continue}if(E.type==="range"){t.pop();let e=t[t.length-1];e.value+=E.value+A;E=e;w.ranges--;continue}M({type:"dot",value:A});continue}M({type:"text",value:A})}do{w=S.pop();if(w.type!=="root"){w.nodes.forEach(t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}});let t=S[S.length-1];let e=t.nodes.indexOf(w);t.nodes.splice(e,1,...w.nodes)}}while(S.length>0);M({type:"eos"});return _};t.exports=b},268:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(761);const i=n(248);class ProviderSync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=this.api(e,t,n);return r.map(n.transform)}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderSync},277:function(t,e,n){var r=n(842);t.exports=r(once);t.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(t){var e=function(){if(e.called)return e.value;e.called=true;return e.value=t.apply(this,arguments)};e.called=false;return e}function onceStrict(t){var e=function(){if(e.called)throw new Error(e.onceError);e.called=true;return e.value=t.apply(this,arguments)};var n=t.name||"Function wrapped with `once`";e.onceError=n+" shouldn't be called more than once";e.called=false;return e}},281:function(t,e,n){var r=n(619);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(t){}var a=process.chdir;process.chdir=function(t){s=null;a.call(process,t)};t.exports=patch;function patch(t){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(!t.lchmod){t.lchmod=function(t,e,n){if(n)process.nextTick(n)};t.lchmodSync=function(){}}if(!t.lchown){t.lchown=function(t,e,n,r){if(r)process.nextTick(r)};t.lchownSync=function(){}}if(o==="win32"){t.rename=function(e){return function(n,r,i){var s=Date.now();var o=0;e(n,r,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){t.stat(r,function(t,s){if(t&&t.code==="ENOENT")e(n,r,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}}(t.rename)}t.read=function(e){function read(n,r,i,s,o,a){var c;if(a&&typeof a==="function"){var l=0;c=function(u,h,f){if(u&&u.code==="EAGAIN"&&l<10){l++;return e.call(t,n,r,i,s,o,c)}a.apply(this,arguments)}}return e.call(t,n,r,i,s,o,c)}read.__proto__=e;return read}(t.read);t.readSync=function(e){return function(n,r,i,s,o){var a=0;while(true){try{return e.call(t,n,r,i,s,o)}catch(t){if(t.code==="EAGAIN"&&a<10){a++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){if(e){if(i)i(e);return}t.fchmod(r,n,function(e){t.close(r,function(t){if(i)i(e||t)})})})};t.lchmodSync=function(e,n){var i=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n);var s=true;var o;try{o=t.fchmodSync(i,n);s=false}finally{if(s){try{t.closeSync(i)}catch(t){}}else{t.closeSync(i)}}return o}}function patchLutimes(t){if(r.hasOwnProperty("O_SYMLINK")){t.lutimes=function(e,n,i,s){t.open(e,r.O_SYMLINK,function(e,r){if(e){if(s)s(e);return}t.futimes(r,n,i,function(e){t.close(r,function(t){if(s)s(e||t)})})})};t.lutimesSync=function(e,n,i){var s=t.openSync(e,r.O_SYMLINK);var o;var a=true;try{o=t.futimesSync(s,n,i);a=false}finally{if(a){try{t.closeSync(s)}catch(t){}}else{t.closeSync(s)}}return o}}else{t.lutimes=function(t,e,n,r){if(r)process.nextTick(r)};t.lutimesSync=function(){}}}function chmodFix(e){if(!e)return e;return function(n,r,i){return e.call(t,n,r,function(t){if(chownErOk(t))t=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(e){if(!e)return e;return function(n,r){try{return e.call(t,n,r)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(e){if(!e)return e;return function(n,r,i,s){return e.call(t,n,r,i,function(t){if(chownErOk(t))t=null;if(s)s.apply(this,arguments)})}}function chownFixSync(e){if(!e)return e;return function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!chownErOk(t))throw t}}}function statFix(e){if(!e)return e;return function(n,r,i){if(typeof r==="function"){i=r;r=null}function callback(t,e){if(e){if(e.uid<0)e.uid+=4294967296;if(e.gid<0)e.gid+=4294967296}if(i)i.apply(this,arguments)}return r?e.call(t,n,r,callback):e.call(t,n,callback)}}function statFixSync(e){if(!e)return e;return function(n,r){var i=r?e.call(t,n,r):e.call(t,n);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var e=!process.getuid||process.getuid()!==0;if(e){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},286:function(t,e,n){"use strict";const r=n(669);const i=n(786);const s=n(830);const o=n(210);const a=t=>typeof t==="string"&&(t===""||t==="./");const c=(t,e,n)=>{e=[].concat(e);t=[].concat(t);let r=new Set;let i=new Set;let o=new Set;let a=0;let c=t=>{o.add(t.output);if(n&&n.onResult){n.onResult(t)}};for(let o=0;o!r.has(t));if(n&&u.length===0){if(n.failglob===true){throw new Error(`No matches found for "${e.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?e.map(t=>t.replace(/\\/g,"")):e}}return u};c.match=c;c.matcher=((t,e)=>s(t,e));c.isMatch=((t,e,n)=>s(e,n)(t));c.any=c.isMatch;c.not=((t,e,n={})=>{e=[].concat(e).map(String);let r=new Set;let i=[];let s=t=>{if(n.onResult)n.onResult(t);i.push(t.output)};let o=c(t,e,{...n,onResult:s});for(let t of i){if(!o.includes(t)){r.add(t)}}return[...r]});c.contains=((t,e,n)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${r.inspect(t)}"`)}if(Array.isArray(e)){return e.some(e=>c.contains(t,e,n))}if(typeof e==="string"){if(a(t)||a(e)){return false}if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e)){return true}}return c.isMatch(t,e,{...n,contains:true})});c.matchKeys=((t,e,n)=>{if(!o.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let r=c(Object.keys(t),e,n);let i={};for(let e of r)i[e]=t[e];return i});c.some=((t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=s(String(t),n);if(r.some(t=>e(t))){return true}}return false});c.every=((t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=s(String(t),n);if(!r.every(t=>e(t))){return false}}return true});c.all=((t,e,n)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${r.inspect(t)}"`)}return[].concat(e).every(e=>s(e,n)(t))});c.capture=((t,e,n)=>{let r=o.isWindows(n);let i=s.makeRe(String(t),{...n,capture:true});let a=i.exec(r?o.toPosixSlashes(e):e);if(a){return a.slice(1).map(t=>t===void 0?"":t)}});c.makeRe=((...t)=>s.makeRe(...t));c.scan=((...t)=>s.scan(...t));c.parse=((t,e)=>{let n=[];for(let r of[].concat(t||[])){for(let t of i(String(r),e)){n.push(s.parse(t,e))}}return n});c.braces=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(e&&e.nobrace===true||!/\{.*\}/.test(t)){return[t]}return i(t,e)});c.braceExpand=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return c.braces(t,{...e,expand:true})});t.exports=c},292:function(t,e,n){"use strict";const r=n(87);const i=/\s+at.*(?:\(|\s)(.*)\)?/;const s=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;const o=typeof r.homedir==="undefined"?"":r.homedir();t.exports=((t,e)=>{e=Object.assign({pretty:false},e);return t.replace(/\\/g,"/").split("\n").filter(t=>{const e=t.match(i);if(e===null||!e[1]){return true}const n=e[1];if(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")){return false}return!s.test(n)}).filter(t=>t.trim()!=="").map(t=>{if(e.pretty){return t.replace(i,(t,e)=>t.replace(e,e.replace(o,"~")))}return t}).join("\n")})},293:function(t){t.exports=require("buffer")},298:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},304:function(t){t.exports=require("string_decoder")},305:function(t){"use strict";t.exports=balanced;function balanced(t,e,n){if(t instanceof RegExp)t=maybeMatch(t,n);if(e instanceof RegExp)e=maybeMatch(e,n);var r=range(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function maybeMatch(t,e){var n=e.match(t);return n?n[0]:null}balanced.range=range;function range(t,e,n){var r,i,s,o,a;var c=n.indexOf(t);var l=n.indexOf(e,c+1);var u=c;if(c>=0&&l>0){r=[];s=n.length;while(u>=0&&!a){if(u==c){r.push(u);c=n.indexOf(t,u+1)}else if(r.length==1){a=[r.pop(),l]}else{i=r.pop();if(i=0?c:l}if(r.length){a=[s,o]}}return a}},312:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function flatten(t){return t.reduce((t,e)=>[].concat(t,e),[])}e.flatten=flatten},313:function(t,e,n){"use strict";e.c=e.create=n(861);e.r=e.replace=n(412);e.t=e.list=n(616);e.u=e.update=n(325);e.x=e.extract=n(889);e.Pack=n(433);e.Unpack=n(774);e.Parse=n(762);e.ReadEntry=n(712);e.WriteEntry=n(419);e.Header=n(728);e.Pax=n(125);e.types=n(409)},314:function(t,e,n){t.exports=minimatch;minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(622)}catch(t){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=n(580);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce(function(t,e){t[e]=true;return t},{})}var f=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(n,r,i){return minimatch(n,t,e)}}function ext(t,e){t=t||{};e=e||{};var n={};Object.keys(e).forEach(function(t){n[t]=e[t]});Object.keys(t).forEach(function(e){n[e]=t[e]});return n}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var n=function minimatch(n,r,i){return e.minimatch(n,r,ext(t,i))};n.Minimatch=function Minimatch(n,r){return new e.Minimatch(n,ext(t,r))};return n};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,n){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!n)n={};if(!n.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,n).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(r.sep!=="/"){t=t.split(r.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,n);n=this.globParts=n.map(function(t){return t.split(f)});this.debug(this.pattern,n);n=n.map(function(t,e,n){return t.map(this.parse,this)},this);this.debug(this.pattern,n);n=n.filter(function(t){return t.indexOf(false)===-1});this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var n=this.options;var r=0;if(n.nonegate)return;for(var i=0,s=t.length;i1024*64){throw new TypeError("pattern is too long")}var n=this.options;if(!n.noglobstar&&t==="**")return i;if(t==="")return"";var r="";var s=!!n.nocase;var l=false;var u=[];var f=[];var d;var y=false;var m=-1;var g=-1;var v=t.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var b=this;function clearStateChar(){if(d){switch(d){case"*":r+=c;s=true;break;case"?":r+=a;s=true;break;default:r+="\\"+d;break}b.debug("clearStateChar %j %j",d,r);d=false}}for(var _=0,S=t.length,w;_-1;C--){var P=f[C];var M=r.slice(0,P.reStart);var T=r.slice(P.reStart,P.reEnd-8);var L=r.slice(P.reEnd-8,P.reEnd);var D=r.slice(P.reEnd);L+=D;var I=M.split("(").length-1;var $=D;for(_=0;_=0;o--){s=t[o];if(s)break}for(o=0;o>> no match, partial?",t,h,e,f);if(h===a)return true}return false}var d;if(typeof l==="string"){if(r.nocase){d=u.toLowerCase()===l.toLowerCase()}else{d=u===l}this.debug("string match",l,u,d)}else{d=u.match(l);this.debug("pattern match",l,u,d)}if(!d)return false}if(s===a&&o===c){return true}else if(s===a){return n}else if(o===c){var y=s===a-1&&t[s]==="";return y}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},325:function(t,e,n){"use strict";const r=n(892);const i=n(412);const s=t.exports=((t,e,n)=>{const s=r(t);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);o(s);return i(s,e,n)});const o=t=>{const e=t.filter;if(!t.mtimeCache)t.mtimeCache=new Map;t.filter=e?(n,r)=>e(n,r)&&!(t.mtimeCache.get(n)>r.mtime):(e,n)=>!(t.mtimeCache.get(e)>n.mtime)}},328:function(t,e,n){"use strict";const r=n(821);const i=n(747);const s=n(622);const o=n(220);class SymlinkError extends Error{constructor(t,e){super("Cannot extract through symbolic link");this.path=e;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,e){super(e+": Cannot cd into '"+t+"'");this.path=t;this.code=e}get name(){return"CwdError"}}const a=t.exports=((t,e,n)=>{const a=e.umask;const l=e.mode|448;const u=(l&a)!==0;const h=e.uid;const f=e.gid;const p=typeof h==="number"&&typeof f==="number"&&(h!==e.processUid||f!==e.processGid);const d=e.preserve;const y=e.unlink;const m=e.cache;const g=e.cwd;const v=(e,r)=>{if(e)n(e);else{m.set(t,true);if(r&&p)o(r,h,f,t=>v(t));else if(u)i.chmod(t,l,n);else n()}};if(m&&m.get(t)===true)return v();if(t===g)return i.stat(t,(e,n)=>{if(e||!n.isDirectory())e=new CwdError(t,e&&e.code||"ENOTDIR");v(e)});if(d)return r(t,l,v);const b=s.relative(g,t);const _=b.split(/\/|\\/);c(g,_,l,m,y,g,null,v)});const c=(t,e,n,r,s,o,a,u)=>{if(!e.length)return u(null,a);const h=e.shift();const f=t+"/"+h;if(r.get(f))return c(f,e,n,r,s,o,a,u);i.mkdir(f,n,l(f,e,n,r,s,o,a,u))};const l=(t,e,n,r,o,a,u,h)=>f=>{if(f){if(f.path&&s.dirname(f.path)===a&&(f.code==="ENOTDIR"||f.code==="ENOENT"))return h(new CwdError(a,f.code));i.lstat(t,(s,p)=>{if(s)h(s);else if(p.isDirectory())c(t,e,n,r,o,a,u,h);else if(o)i.unlink(t,s=>{if(s)return h(s);i.mkdir(t,n,l(t,e,n,r,o,a,u,h))});else if(p.isSymbolicLink())return h(new SymlinkError(t,t+"/"+e.join("/")));else h(f)})}else{u=u||t;c(t,e,n,r,o,a,u,h)}};const u=t.exports.sync=((t,e)=>{const n=e.umask;const a=e.mode|448;const c=(a&n)!==0;const l=e.uid;const u=e.gid;const h=typeof l==="number"&&typeof u==="number"&&(l!==e.processUid||u!==e.processGid);const f=e.preserve;const p=e.unlink;const d=e.cache;const y=e.cwd;const m=e=>{d.set(t,true);if(e&&h)o.sync(e,l,u);if(c)i.chmodSync(t,a)};if(d&&d.get(t)===true)return m();if(t===y){let e=false;let n="ENOTDIR";try{e=i.statSync(t).isDirectory()}catch(t){n=t.code}finally{if(!e)throw new CwdError(t,n)}m();return}if(f)return m(r.sync(t,a));const g=s.relative(y,t);const v=g.split(/\/|\\/);let b=null;for(let t=v.shift(),e=y;t&&(e+="/"+t);t=v.shift()){if(d.get(e))continue;try{i.mkdirSync(e,a);b=b||e;d.set(e,true)}catch(t){if(t.path&&s.dirname(t.path)===y&&(t.code==="ENOTDIR"||t.code==="ENOENT"))return new CwdError(y,t.code);const n=i.lstatSync(e);if(n.isDirectory()){d.set(e,true);continue}else if(p){i.unlinkSync(e);i.mkdirSync(e,a);b=b||e;d.set(e,true);continue}else if(n.isSymbolicLink())return new SymlinkError(e,e+"/"+v.join("/"))}}return m(b)})},330:function(t,e,n){var r=n(842);var i=Object.create(null);var s=n(277);t.exports=r(inflight);function inflight(t,e){if(i[t]){i[t].push(e);return null}else{i[t]=[e];return makeres(t)}}function makeres(t){return s(function RES(){var e=i[t];var n=e.length;var r=slice(arguments);try{for(var s=0;sn){e.splice(0,n);process.nextTick(function(){RES.apply(null,r)})}else{delete i[t]}}})}function slice(t){var e=t.length;var n=[];for(var r=0;r1){i-=1}}return[i*360,s*100,l*100]};s.rgb.hwb=function(t){const e=t[0];const n=t[1];let r=t[2];const i=s.rgb.hsl(t)[0];const o=1/255*Math.min(e,Math.min(n,r));r=1-1/255*Math.max(e,Math.max(n,r));return[i,o*100,r*100]};s.rgb.cmyk=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const i=Math.min(1-e,1-n,1-r);const s=(1-e-i)/(1-i)||0;const o=(1-n-i)/(1-i)||0;const a=(1-r-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function comparativeDistance(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}s.rgb.keyword=function(t){const e=i[t];if(e){return e}let n=Infinity;let s;for(const e of Object.keys(r)){const i=r[e];const o=comparativeDistance(t,i);if(o.04045?((e+.055)/1.055)**2.4:e/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124+n*.3576+r*.1805;const s=e*.2126+n*.7152+r*.0722;const o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};s.rgb.lab=function(t){const e=s.rgb.xyz(t);let n=e[0];let r=e[1];let i=e[2];n/=95.047;r/=100;i/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16;const a=500*(n-r);const c=200*(r-i);return[o,a,c]};s.hsl.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;let i;let s;let o;if(n===0){o=r*255;return[o,o,o]}if(r<.5){i=r*(1+n)}else{i=r+n-r*n}const a=2*r-i;const c=[0,0,0];for(let t=0;t<3;t++){s=e+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){o=a+(i-a)*6*s}else if(2*s<1){o=i}else if(3*s<2){o=a+(i-a)*(2/3-s)*6}else{o=a}c[t]=o*255}return c};s.hsl.hsv=function(t){const e=t[0];let n=t[1]/100;let r=t[2]/100;let i=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;const o=(r+n)/2;const a=r===0?2*i/(s+i):2*n/(r+n);return[e,a*100,o*100]};s.hsv.rgb=function(t){const e=t[0]/60;const n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6;const s=e-Math.floor(e);const o=255*r*(1-n);const a=255*r*(1-n*s);const c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};s.hsv.hsl=function(t){const e=t[0];const n=t[1]/100;const r=t[2]/100;const i=Math.max(r,.01);let s;let o;o=(2-n)*r;const a=(2-n)*i;s=n*i;s/=a<=1?a:2-a;s=s||0;o/=2;return[e,s*100,o*100]};s.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100;let r=t[2]/100;const i=n+r;let s;if(i>1){n/=i;r/=i}const o=Math.floor(6*e);const a=1-r;s=6*e-o;if((o&1)!==0){s=1-s}const c=n+s*(a-n);let l;let u;let h;switch(o){default:case 6:case 0:l=a;u=c;h=n;break;case 1:l=c;u=a;h=n;break;case 2:l=n;u=a;h=c;break;case 3:l=n;u=c;h=a;break;case 4:l=c;u=n;h=a;break;case 5:l=a;u=n;h=c;break}return[l*255,u*255,h*255]};s.cmyk.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;const i=t[3]/100;const s=1-Math.min(1,e*(1-i)+i);const o=1-Math.min(1,n*(1-i)+i);const a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};s.xyz.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;let i;let s;let o;i=e*3.2406+n*-1.5372+r*-.4986;s=e*-.9689+n*1.8758+r*.0415;o=e*.0557+n*-.204+r*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*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]};s.xyz.lab=function(t){let e=t[0];let n=t[1];let r=t[2];e/=95.047;n/=100;r/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16;const s=500*(e-n);const o=200*(n-r);return[i,s,o]};s.lab.xyz=function(t){const e=t[0];const n=t[1];const r=t[2];let i;let s;let o;s=(e+16)/116;i=n/500+s;o=s-r/200;const a=s**3;const c=i**3;const l=o**3;s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};s.lab.lch=function(t){const e=t[0];const n=t[1];const r=t[2];let i;const s=Math.atan2(r,n);i=s*360/2/Math.PI;if(i<0){i+=360}const o=Math.sqrt(n*n+r*r);return[e,o,i]};s.lch.lab=function(t){const e=t[0];const n=t[1];const r=t[2];const i=r/360*2*Math.PI;const s=n*Math.cos(i);const o=n*Math.sin(i);return[e,s,o]};s.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=e===null?s.rgb.hsv(t)[2]:e;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(o===2){a+=60}return a};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const e=t[0];const n=t[1];const r=t[2];if(e===n&&n===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}const i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};s.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7){if(t>50){e+=3.5}e=e/10.5*255;return[e,e,e]}const n=(~~(t>50)+1)*.5;const r=(e&1)*n*255;const i=(e>>1&1)*n*255;const s=(e>>2&1)*n*255;return[r,i,s]};s.ansi256.rgb=function(t){if(t>=232){const e=(t-232)*10+8;return[e,e,e]}t-=16;let e;const n=Math.floor(t/36)/5*255;const r=Math.floor((e=t%36)/6)/5*255;const i=e%6/5*255;return[n,r,i]};s.rgb.hex=function(t){const e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}let n=e[0];if(e[0].length===3){n=n.split("").map(t=>{return t+t}).join("")}const r=parseInt(n,16);const i=r>>16&255;const s=r>>8&255;const o=r&255;return[i,s,o]};s.rgb.hcg=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const i=Math.max(Math.max(e,n),r);const s=Math.min(Math.min(e,n),r);const o=i-s;let a;let c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===e){c=(n-r)/o%6}else if(i===n){c=2+(r-e)/o}else{c=4+(e-n)/o}c/=6;c%=1;return[c*360,o*100,a*100]};s.hsl.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=n<.5?2*e*n:2*e*(1-n);let i=0;if(r<1){i=(n-.5*r)/(1-r)}return[t[0],r*100,i*100]};s.hsv.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=e*n;let i=0;if(r<1){i=(n-r)/(1-r)}return[t[0],r*100,i*100]};s.hcg.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;if(n===0){return[r*255,r*255,r*255]}const i=[0,0,0];const s=e%1*6;const o=s%1;const a=1-o;let 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-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};s.hcg.hsv=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);let i=0;if(r>0){i=e/r}return[t[0],i*100,r*100]};s.hcg.hsl=function(t){const e=t[1]/100;const n=t[2]/100;const r=n*(1-e)+.5*e;let i=0;if(r>0&&r<.5){i=e/(2*r)}else if(r>=.5&&r<1){i=e/(2*(1-r))}return[t[0],i*100,r*100]};s.hcg.hwb=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};s.hwb.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=1-n;const i=r-e;let s=0;if(i<1){s=(r-i)/(1-i)}return[t[0],i*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255;const n=(e<<16)+(e<<8)+e;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},340:function(t,e){"use strict";const n=e.encode=((t,e)=>{if(!Number.isSafeInteger(t))throw Error("cannot encode number outside of javascript safe integer range");else if(t<0)i(t,e);else r(t,e);return e});const r=(t,e)=>{e[0]=128;for(var n=e.length;n>1;n--){e[n-1]=t&255;t=Math.floor(t/256)}};const i=(t,e)=>{e[0]=255;var n=false;t=t*-1;for(var r=e.length;r>1;r--){var i=t&255;t=Math.floor(t/256);if(n)e[r-1]=c(i);else if(i===0)e[r-1]=0;else{n=true;e[r-1]=l(i)}}};const s=e.parse=(t=>{var e=t[t.length-1];var n=t[0];var r;if(n===128)r=a(t.slice(1,t.length));else if(n===255)r=o(t);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r});const o=t=>{var e=t.length;var n=0;var r=false;for(var i=e-1;i>-1;i--){var s=t[i];var o;if(r)o=c(s);else if(s===0)o=s;else{r=true;o=l(s)}if(o!==0)n-=o*Math.pow(256,e-i-1)}return n};const a=t=>{var e=t.length;var n=0;for(var r=e-1;r>-1;r--){var i=t[r];if(i!==0)n+=i*Math.pow(256,e-r-1)}return n};const c=t=>(255^t)&255;const l=t=>(255^t)+1&255},350:function(t,e,n){var r=n(698);var i={};for(var s in r){if(r.hasOwnProperty(s)){i[r[s]]=s}}var o=t.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 l=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:l})}}o.rgb.hsl=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i=Math.min(e,n,r);var s=Math.max(e,n,r);var o=s-i;var a;var c;var l;if(s===i){a=0}else if(e===s){a=(n-r)/o}else if(n===s){a=2+(r-e)/o}else if(r===s){a=4+(e-n)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=(i+s)/2;if(s===i){c=0}else if(l<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,l*100]};o.rgb.hsv=function(t){var e;var n;var r;var i;var s;var o=t[0]/255;var a=t[1]/255;var c=t[2]/255;var l=Math.max(o,a,c);var u=l-Math.min(o,a,c);var h=function(t){return(l-t)/6/u+1/2};if(u===0){i=s=0}else{s=u/l;e=h(o);n=h(a);r=h(c);if(o===l){i=r-n}else if(a===l){i=1/3+e-r}else if(c===l){i=2/3+n-e}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,l*100]};o.rgb.hwb=function(t){var e=t[0];var n=t[1];var r=t[2];var i=o.rgb.hsl(t)[0];var s=1/255*Math.min(e,Math.min(n,r));r=1-1/255*Math.max(e,Math.max(n,r));return[i,s*100,r*100]};o.rgb.cmyk=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i;var s;var o;var a;a=Math.min(1-e,1-n,1-r);i=(1-e-a)/(1-a)||0;s=(1-n-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}o.rgb.keyword=function(t){var e=i[t];if(e){return e}var n=Infinity;var s;for(var o in r){if(r.hasOwnProperty(o)){var a=r[o];var c=comparativeDistance(t,a);if(c.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=e*.4124+n*.3576+r*.1805;var s=e*.2126+n*.7152+r*.0722;var o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(t){var e=o.rgb.xyz(t);var n=e[0];var r=e[1];var i=e[2];var s;var a;var c;n/=95.047;r/=100;i/=108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*r-16;a=500*(n-r);c=200*(r-i);return[s,a,c]};o.hsl.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;var i;var s;var o;var a;var c;if(n===0){c=r*255;return[c,c,c]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}i=2*r-s;a=[0,0,0];for(var l=0;l<3;l++){o=e+1/3*-(l-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[l]=c*255}return a};o.hsl.hsv=function(t){var e=t[0];var n=t[1]/100;var r=t[2]/100;var i=n;var s=Math.max(r,.01);var o;var a;r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;a=(r+n)/2;o=r===0?2*i/(s+i):2*n/(r+n);return[e,o*100,a*100]};o.hsv.rgb=function(t){var e=t[0]/60;var n=t[1]/100;var r=t[2]/100;var i=Math.floor(e)%6;var s=e-Math.floor(e);var o=255*r*(1-n);var a=255*r*(1-n*s);var c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};o.hsv.hsl=function(t){var e=t[0];var n=t[1]/100;var r=t[2]/100;var i=Math.max(r,.01);var s;var o;var a;a=(2-n)*r;s=(2-n)*i;o=n*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[e,o*100,a*100]};o.hwb.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;var i=n+r;var s;var o;var a;var c;if(i>1){n/=i;r/=i}s=Math.floor(6*e);o=1-r;a=6*e-s;if((s&1)!==0){a=1-a}c=n+a*(o-n);var l;var u;var h;switch(s){default:case 6:case 0:l=o;u=c;h=n;break;case 1:l=c;u=o;h=n;break;case 2:l=n;u=o;h=c;break;case 3:l=n;u=c;h=o;break;case 4:l=c;u=n;h=o;break;case 5:l=o;u=n;h=c;break}return[l*255,u*255,h*255]};o.cmyk.rgb=function(t){var e=t[0]/100;var n=t[1]/100;var r=t[2]/100;var i=t[3]/100;var s;var o;var a;s=1-Math.min(1,e*(1-i)+i);o=1-Math.min(1,n*(1-i)+i);a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(t){var e=t[0]/100;var n=t[1]/100;var r=t[2]/100;var i;var s;var o;i=e*3.2406+n*-1.5372+r*-.4986;s=e*-.9689+n*1.8758+r*.0415;o=e*.0557+n*-.204+r*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(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;e/=95.047;n/=100;r/=108.883;e=e>.008856?Math.pow(e,1/3):7.787*e+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=116*n-16;s=500*(e-n);o=200*(n-r);return[i,s,o]};o.lab.xyz=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;s=(e+16)/116;i=n/500+s;o=s-r/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var l=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;i=Math.atan2(r,n);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(n*n+r*r);return[e,o,s]};o.lch.lab=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;o=r/360*2*Math.PI;i=n*Math.cos(o);s=n*Math.sin(o);return[e,i,s]};o.rgb.ansi16=function(t){var e=t[0];var n=t[1];var r=t[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(t)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(t){return o.rgb.ansi16(o.hsv.rgb(t),t[2])};o.rgb.ansi256=function(t){var e=t[0];var n=t[1];var r=t[2];if(e===n&&n===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};o.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7){if(t>50){e+=3.5}e=e/10.5*255;return[e,e,e]}var n=(~~(t>50)+1)*.5;var r=(e&1)*n*255;var i=(e>>1&1)*n*255;var s=(e>>2&1)*n*255;return[r,i,s]};o.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n;var r=Math.floor(t/36)/5*255;var i=Math.floor((n=t%36)/6)/5*255;var s=n%6/5*255;return[r,i,s]};o.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);var n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}var n=e[0];if(e[0].length===3){n=n.split("").map(function(t){return t+t}).join("")}var r=parseInt(n,16);var i=r>>16&255;var s=r>>8&255;var o=r&255;return[i,s,o]};o.rgb.hcg=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i=Math.max(Math.max(e,n),r);var s=Math.min(Math.min(e,n),r);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===e){c=(n-r)/o%6}else if(i===n){c=2+(r-e)/o}else{c=4+(e-n)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=1;var i=0;if(n<.5){r=2*e*n}else{r=2*e*(1-n)}if(r<1){i=(n-.5*r)/(1-r)}return[t[0],r*100,i*100]};o.hsv.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=e*n;var i=0;if(r<1){i=(n-r)/(1-r)}return[t[0],r*100,i*100]};o.hcg.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;if(n===0){return[r*255,r*255,r*255]}var i=[0,0,0];var s=e%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-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};o.hcg.hsv=function(t){var e=t[1]/100;var n=t[2]/100;var r=e+n*(1-e);var i=0;if(r>0){i=e/r}return[t[0],i*100,r*100]};o.hcg.hsl=function(t){var e=t[1]/100;var n=t[2]/100;var r=n*(1-e)+.5*e;var i=0;if(r>0&&r<.5){i=e/(2*r)}else if(r>=.5&&r<1){i=e/(2*(1-r))}return[t[0],i*100,r*100]};o.hcg.hwb=function(t){var e=t[1]/100;var n=t[2]/100;var r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};o.hwb.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=1-n;var i=r-e;var s=0;if(i<1){s=(r-i)/(1-i)}return[t[0],i*100,s*100]};o.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};o.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};o.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};o.gray.hsl=o.gray.hsv=function(t){return[0,0,t[0]]};o.gray.hwb=function(t){return[0,100,t[0]]};o.gray.cmyk=function(t){return[0,0,0,t[0]]};o.gray.lab=function(t){return[t[0],0,0]};o.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255;var n=(e<<16)+(e<<8)+e;var r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},357:function(t){t.exports=require("assert")},360:function(t){"use strict";var e=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(e,"\\$&")}},365:function(t,e,n){const r=n(331);function buildGraph(){const t={};const e=Object.keys(r);for(let n=e.length,r=0;r{return[...new Set([].concat(...t))]})},378:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);const s=n(622);const o=n(730);const a=n(708);const c=n(493);const l=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=r(i.readFile);const h=t=>e=>{if(e.startsWith("!")){return"!"+s.posix.join(t,e.slice(1))}return s.posix.join(t,e)};const f=(t,e)=>{const n=c(s.relative(e.cwd,s.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(h(n))};const p=t=>{return t.reduce((t,e)=>{t.add(f(e.content,{cwd:e.cwd,fileName:e.filePath}));return t},a())};const d=(t,e)=>{if(s.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return s.join(t,e)};const y=(t,e)=>{return n=>t.ignores(c(s.relative(e,d(e,n))))};const m=async(t,e)=>{const n=s.join(e,t);const r=await u(n,"utf8");return{cwd:e,filePath:n,content:r}};const g=(t,e)=>{const n=s.join(e,t);const r=i.readFileSync(n,"utf8");return{cwd:e,filePath:n,content:r}};const v=({ignore:t=[],cwd:e=process.cwd()}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=v(t);const e=await o("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=await Promise.all(e.map(e=>m(e,t.cwd)));const r=p(n);return y(r,t.cwd)});t.exports.sync=(t=>{t=v(t);const e=o.sync("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=e.map(e=>g(e,t.cwd));const r=p(n);return y(r,t.cwd)})},385:function(t,e){"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,n,r=1,i)=>{if(i===false)return false;if(!e.isInteger(t)||!e.isInteger(n))return false;return(Number(n)-Number(t))/Number(r)>=i});e.escapeNode=((t,e=0,n)=>{let r=t.nodes[e];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const n=t=>{for(let r=0;r{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(n!==null){return e(n,undefined)}for(const e of r){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const n=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},397:function(t){"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},406:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(675);const i=n(416);const s=n(190);class SyncReader extends s.default{constructor(){super(...arguments);this._scandir=r.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const n=this._scandir(t,this._settings.fsScandirSettings);for(const t of n){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!i.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const n=t.path;if(e!==undefined){t.path=i.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},409:function(t,e){"use strict";e.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"]]);e.code=new Map(Array.from(e.name).map(t=>[t[1],t[0]]))},412:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(762);const o=n(747);const a=n(862);const c=n(616);const l=n(622);const u=n(728);const h=t.exports=((t,e,n)=>{const i=r(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);return i.sync?f(i,e):d(i,e,n)});const f=(t,e)=>{const n=new i.Sync(t);let r=true;let s;let a;try{try{s=o.openSync(t.file,"r+")}catch(e){if(e.code==="ENOENT")s=o.openSync(t.file,"w+");else throw e}const i=o.fstatSync(s);const c=Buffer.alloc(512);t:for(a=0;ai.size)break;a+=n;if(t.mtimeCache)t.mtimeCache.set(e.path,e.mtime)}r=false;p(t,n,a,s,e)}finally{if(r)try{o.closeSync(s)}catch(t){}}};const p=(t,e,n,r,i)=>{const s=new a.WriteStreamSync(t.file,{fd:r,start:n});e.pipe(s);y(e,i)};const d=(t,e,n)=>{e=Array.from(e);const r=new i(t);const s=(e,n,r)=>{const i=(t,n)=>{if(t)o.close(e,e=>r(t));else r(null,n)};let s=0;if(n===0)return i(null,0);let a=0;const c=Buffer.alloc(512);const l=(r,h)=>{if(r)return i(r);a+=h;if(a<512&&h)return o.read(e,c,a,c.length-a,s+a,l);if(s===0&&c[0]===31&&c[1]===139)return i(new Error("cannot append to compressed archives"));if(a<512)return i(null,s);const f=new u(c);if(!f.cksumValid)return i(null,s);const p=512*Math.ceil(f.size/512);if(s+p+512>n)return i(null,s);s+=p+512;if(s>=n)return i(null,s);if(t.mtimeCache)t.mtimeCache.set(f.path,f.mtime);a=0;o.read(e,c,0,512,s,l)};o.read(e,c,0,512,s,l)};const c=new Promise((n,i)=>{r.on("error",i);let c="r+";const l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+"){c="w+";return o.open(t.file,c,l)}if(u)return i(u);o.fstat(h,(o,c)=>{if(o)return i(o);s(h,c.size,(s,o)=>{if(s)return i(s);const c=new a.WriteStream(t.file,{fd:h,start:o});r.pipe(c);c.on("error",i);c.on("close",n);m(r,e)})})};o.open(t.file,c,l)});return n?c.then(n,n):c};const y=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")c({file:l.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const m=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return c({file:l.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>m(t,e));else t.add(n)}t.end()}},413:function(t){t.exports=require("stream")},416:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[\\/]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,n){if(t===""){return e}return t+n+e}e.joinPathSegments=joinPathSegments},417:function(t){t.exports=require("crypto")},419:function(t,e,n){"use strict";const r=n(563);const i=n(125);const s=n(728);const o=n(712);const a=n(747);const c=n(622);const l=n(409);const u=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const p=Symbol("directory");const d=Symbol("symlink");const y=Symbol("hardlink");const m=Symbol("header");const g=Symbol("read");const v=Symbol("lstat");const b=Symbol("onlstat");const _=Symbol("onread");const S=Symbol("onreadlink");const w=Symbol("openfile");const E=Symbol("onopenfile");const R=Symbol("close");const O=Symbol("mode");const k=n(477);const x=n(3);const A=n(660);const C=k(class WriteEntry extends r{constructor(t,e){e=e||{};super(e);if(typeof t!=="string")throw new TypeError("path is required");this.path=t;this.portable=!!e.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=e.maxReadSize||u;this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.preservePaths=!!e.preservePaths;this.cwd=e.cwd||process.cwd();this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(!this.preservePaths&&c.win32.isAbsolute(t)){const e=c.win32.parse(t);this.path=t.substr(e.root.length);n=e.root}this.win32=!!e.win32||process.platform==="win32";if(this.win32){this.path=x.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=e.absolute||c.resolve(this.cwd,t);if(this.path==="")this.path="./";if(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.statCache.has(this.absolute))this[b](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[b](e)})}[b](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile())t.size=0;this.type=M(t);this.emit("stat",t);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[d]();default:return this.end()}}[O](t){return A(t,this.type==="Directory",this.portable)}[m](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[O](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 i({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)}[p](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[m]();this.end()}[d](){a.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[S](e)})}[S](t){this.linkpath=t;this[m]();this.end()}[y](t){this.type="Link";this.linkpath=c.relative(this.cwd,t);this.stat.size=0;this[m]();this.end()}[f](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const e=this.linkCache.get(t);if(e.indexOf(this.cwd)===0)return this[y](e)}this.linkCache.set(t,this.absolute)}this[m]();if(this.stat.size===0)return this.end();this[w]()}[w](){a.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[E](e)})}[E](t){const e=512*Math.ceil(this.stat.size/512);const n=Math.min(e,this.maxReadSize);const r=Buffer.allocUnsafe(n);this[g](t,r,0,r.length,0,this.stat.size,e)}[g](t,e,n,r,i,s,o){a.read(t,e,n,r,i,(a,c)=>{if(a){return this[R](t,()=>this.emit("error",a))}this[_](t,e,n,r,i,s,o,c)})}[R](t,e){a.close(t,e)}[_](t,e,n,r,i,s,o,a){if(a<=0&&s>0){const e=new Error("encountered unexpected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a>s){const e=new Error("did not encounter expected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a===s){for(let t=a;tt?this.emit("error",t):this.end())}if(n>=r){e=Buffer.allocUnsafe(r);n=0}r=e.length-n;this[g](t,e,n,r,i,s,o)}});class WriteEntrySync extends C{constructor(t,e){super(t,e)}[v](){this[b](a.lstatSync(this.absolute))}[d](){this[S](a.readlinkSync(this.absolute))}[w](){this[E](a.openSync(this.absolute,"r"))}[g](t,e,n,r,i,s,o){let c=true;try{const l=a.readSync(t,e,n,r,i);this[_](t,e,n,r,i,s,o,l);c=false}finally{if(c)try{this[R](t,()=>{})}catch(t){}}}[R](t,e){a.closeSync(t);e()}}const P=k(class WriteEntryTar extends r{constructor(t,e){e=e||{};super(e);this.preservePaths=!!e.preservePaths;this.portable=!!e.portable;this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=t.path;this.mode=this[O](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:e.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=t.linkpath;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(c.isAbsolute(this.path)&&!this.preservePaths){const t=c.parse(this.path);n=t.root;this.path=this.path.substr(t.root.length)}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new s({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(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({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);t.pipe(this)}[O](t){return A(t,this.type==="Directory",this.portable)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=e;return super.write(t)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});C.Sync=WriteEntrySync;C.Tar=P;const M=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=C},421:function(t,e,n){"use strict";const r=n(543);const i=n(815);const s=n(385);const o=(t="",e="",n=false)=>{let r=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return n?s.flatten(e).map(t=>`{${t}}`):e}for(let i of t){if(Array.isArray(i)){for(let t of i){r.push(o(t,e,n))}}else{for(let t of e){if(n===true&&typeof t==="string")t=`{${t}}`;r.push(Array.isArray(t)?o(i,t,n):i+t)}}}return s.flatten(r)};const a=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,c={})=>{t.queue=[];let l=c;let u=c.queue;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;u=l.queue}if(t.invalid||t.dollar){u.push(o(u.pop(),i(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(o(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=s.reduce(t.nodes);if(s.exceedsLimit(...a,e.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=r(...a,e);if(c.length===0){c=i(t,e)}u.push(o(u.pop(),c));t.nodes=[];return}let h=s.encloseBrace(t);let f=t.queue;let p=t;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;f=p.queue}for(let e=0;esuper.write(t));this.zip.on("end",t=>super.end());this.zip.on("drain",t=>this[P]());this.on("resume",t=>this.zip.resume())}else this.on("drain",this[P]);this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[p]=new l;this[v]=0;this.jobs=+t.jobs||4;this[m]=false;this[f]=false}[C](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t)this.write(t);this[f]=true;this[y]();return this}write(t){if(this[f])throw new Error("write after end");if(t instanceof s)this[S](t);else this[_](t);return this.flowing}[S](t){const e=T.resolve(this.cwd,t.path);if(this.prefix)t.path=this.prefix+"/"+t.path.replace(/^\.(\/+|$)/,"");if(!this.filter(t.path,t))t.resume();else{const n=new PackJob(t.path,e,false);n.entry=new c(t,this[x](n));n.entry.on("end",t=>this[b](n));this[v]+=1;this[p].push(n)}this[y]()}[_](t){const e=T.resolve(this.cwd,t);if(this.prefix)t=this.prefix+"/"+t.replace(/^\.(\/+|$)/,"");this[p].push(new PackJob(t,e));this[y]()}[w](t){t.pending=true;this[v]+=1;const e=this.follow?"stat":"lstat";M[e](t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)this.emit("error",e);else this[h](t,n)})}[h](t,e){this.statCache.set(t.absolute,e);t.stat=e;if(!this.filter(t.path,e))t.ignore=true;this[y]()}[E](t){t.pending=true;this[v]+=1;M.readdir(t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)return this.emit("error",e);this[R](t,n)})}[R](t,e){this.readdirCache.set(t.absolute,e);t.readdir=e;this[y]()}[y](){if(this[m])return;this[m]=true;for(let t=this[p].head;t!==null&&this[v]this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[k](t){this[v]+=1;try{return new this[A](t.path,this[x](t)).on("end",()=>this[b](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[P](){if(this[d]&&this[d].entry)this[d].entry.resume()}[O](t){t.piped=true;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});const e=t.entry;const n=this.zip;if(n)e.on("data",t=>{if(!n.write(t))e.pause()});else e.on("data",t=>{if(!super.write(t))e.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends D{constructor(t){super(t);this[A]=a}pause(){}resume(){}[w](t){const e=this.follow?"statSync":"lstatSync";this[h](t,M[e](t.absolute))}[E](t,e){this[R](t,M.readdirSync(t.absolute))}[O](t){const e=t.entry;const n=this.zip;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});if(n)e.on("data",t=>{n.write(t)});else e.on("data",t=>{super[C](t)})}}D.Sync=PackSync;t.exports=D},438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},439:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);async function isType(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{const s=await r(i[t])(n);return s[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{return i[t](n)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},442:function(t,e,n){const r=n(357);t.exports=(()=>{const t=new Map;const e=new Map;const{join:i}=n(622);const s=t=>i(t).split(/[\\\/]/).slice(0,-1).reduce((t,e)=>t.length?t.concat(i(t[t.length-1],e)):[e],[]);const o=new Set;const a=n=>{const r=e.get(n);if(!r)throw new Error("function does not have any path reservations");return{paths:r.paths.map(e=>t.get(e)),dirs:[...r.dirs].map(e=>t.get(e))}};const c=t=>{const{paths:e,dirs:n}=a(t);return e.every(e=>e[0]===t)&&n.every(e=>e[0]instanceof Set&&e[0].has(t))};const l=t=>{if(o.has(t)||!c(t))return false;o.add(t);t(()=>u(t));return true};const u=n=>{if(!o.has(n))return false;const{paths:i,dirs:s}=e.get(n);const a=new Set;i.forEach(e=>{const i=t.get(e);r.equal(i[0],n);if(i.length===1)t.delete(e);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach(t=>a.add(t))}});s.forEach(e=>{const i=t.get(e);r(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(e)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(n)});o.delete(n);a.forEach(t=>l(t));return true};const h=(n,r)=>{const i=new Set(n.map(t=>s(t)).reduce((t,e)=>t.concat(e)));e.set(r,{dirs:i,paths:n});n.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[r]);else n.push(r)});i.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[new Set([r])]);else if(n[n.length-1]instanceof Set)n[n.length-1].add(r);else n.push(new Set([r]))});return l(r)};return{check:c,reserve:h}})},468:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){return callFailureCallback(n,r)}if(!i.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(n,i)}e.fs.stat(t,(t,r)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(n,t)}return callSuccessCallback(n,i)}if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}callSuccessCallback(n,r)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},477:function(t){"use strict";t.exports=(t=>(class extends t{warn(t,e,n={}){if(this.file)n.file=this.file;if(this.cwd)n.cwd=this.cwd;n.code=e instanceof Error&&e.code||t;n.tarCode=t;if(!this.strict&&n.recoverable!==false){if(e instanceof Error){n=Object.assign(e,n);e=e.message}this.emit("warn",n.tarCode,e,n)}else if(e instanceof Error){this.emit("error",Object.assign(e,n))}else this.emit("error",Object.assign(new Error(`${t}: ${e}`),n))}}))},483:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=n(564);var i=n(622);var s=_interopDefault(n(821));var o=n(747);var a=_interopDefault(n(137));function resolvePath(t){return i.resolve.apply(null,t)}function normaliseArguments(t){var e=t.length;var n=true;var r=[];var i=[null];var s;for(s=0;s{const e=/^\\\\\?\\/.test(t);const n=/[^\u0000-\u0080]+/.test(t);if(e||n){return t}return t.replace(/\\/g,"/")})},507:function(t,e,n){"use strict";const r=n(357);const i=n(293).Buffer;const s=n(903);const o=e.constants=n(63);const a=n(563);const c=i.concat;const l=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const y=Symbol("onError");const m=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const _=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(t,e){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[b]=false;this[u]=t;this[h]=t.flush;this[f]=t.finishFlush;try{this[d]=new s[e](t)}catch(t){throw new ZlibError(t)}this[y]=(t=>{this[m]=true;this.close();this.emit("error",t)});this[d].on("error",t=>this[y](new ZlibError(t)));this.once("end",()=>this.close)}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[m]){r(this[d],"zlib binding closed");return this[d].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[p];this.write(Object.assign(i.alloc(0),{[h]:t}))}end(t,e,n){if(t)this.write(t,e);this.flush(this[f]);this[b]=true;return super.end(null,null,n)}get ended(){return this[b]}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(typeof t==="string")t=i.from(t,e);if(this[m])return;r(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=(()=>{});const a=this[d].close;this[d].close=(()=>{});i.concat=(t=>t);let u;try{const e=typeof t[h]==="number"?t[h]:this[h];u=this[d]._processChunk(t,e);i.concat=c}catch(t){i.concat=c;this[y](new ZlibError(t))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=this[l](i.from(u[0]));for(let t=1;t{this.flush(t);e()});try{this[d].params(t,e)}finally{this[d].flush=n}if(this[d]){this[g]=t;this[v]=e}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const S=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[S]=t&&!!t.portable}[l](t){if(!this[S])return super[l](t);this[S]=false;t[9]=255;return super[l](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,e){t=t||{};t.flush=t.flush||o.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||o.BROTLI_OPERATION_FINISH;super(t,e);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}e.Deflate=Deflate;e.Inflate=Inflate;e.Gzip=Gzip;e.Gunzip=Gunzip;e.DeflateRaw=DeflateRaw;e.InflateRaw=InflateRaw;e.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){e.BrotliCompress=BrotliCompress;e.BrotliDecompress=BrotliDecompress}else{e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},522:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(203);const i=n(248);class ProviderAsync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=[];return new Promise((i,s)=>{const o=this.api(e,t,n);o.once("error",s);o.on("data",t=>r.push(n.transform(t)));o.once("end",()=>i(r))})}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderAsync},528:function(t,e,n){var r=n(622);var i=process.platform==="win32";var s=n(747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(o){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=r.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var n=t,o={},a={};var u;var h;var f;var p;start();function start(){var e=l.exec(t);u=e[0].length;h=e[0];f=e[0];p="";if(i&&!a[f]){s.lstatSync(f);a[f]=true}}while(u=t.length){if(e)e[o]=t;return n(null,t)}c.lastIndex=h;var r=c.exec(t);d=f;f+=r[0];p=d+r[1];h=c.lastIndex;if(u[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return s.lstat(p,gotStat)}function gotStat(t,r){if(t)return n(t);if(!r.isSymbolicLink()){u[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(t){if(t)return n(t);s.readlink(p,function(t,e){if(!i)a[o]=e;gotTarget(t,e)})})}function gotTarget(t,i,s){if(t)return n(t);var o=r.resolve(d,i);if(e)e[s]=o;gotResolvedLink(o)}function gotResolvedLink(e){t=r.resolve(e,t.slice(h));start()}}},543:function(t,e,n){"use strict";const r=n(669);const i=n(153);const s=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const c=t=>Number.isInteger(+t);const l=t=>{let e=`${t}`;let n=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++n]==="0");return n>0};const u=(t,e,n)=>{if(typeof t==="string"||typeof e==="string"){return true}return n.stringify===true};const h=(t,e,n)=>{if(e>0){let n=t[0]==="-"?"-":"";if(n)t=t.slice(1);t=n+t.padStart(n?e-1:e,"0")}if(n===false){return String(t)}return t};const f=(t,e)=>{let n=t[0]==="-"?"-":"";if(n){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let n=e.capture?"":"?:";let r="";let i="";let s;if(t.positives.length){r=t.positives.join("|")}if(t.negatives.length){i=`-(${n}${t.negatives.join("|")})`}if(r&&i){s=`${r}|${i}`}else{s=r||i}if(e.wrap){return`(${n}${s})`}return s};const d=(t,e,n,r)=>{if(n){return i(t,e,{wrap:false,...r})}let s=String.fromCharCode(t);if(t===e)return s;let o=String.fromCharCode(e);return`[${s}-${o}]`};const y=(t,e,n)=>{if(Array.isArray(t)){let e=n.wrap===true;let r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,n)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+r.inspect(...t))};const g=(t,e,n)=>{if(n.strictRanges===true)throw m([t,e]);return[]};const v=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,n=1,r={})=>{let i=Number(t);let s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===true)throw m([t,e]);return[]}if(i===0)i=0;if(s===0)s=0;let a=i>s;let c=String(t);let g=String(e);let v=String(n);n=Math.max(Math.abs(n),1);let b=l(c)||l(g)||l(v);let _=b?Math.max(c.length,g.length,v.length):0;let S=b===false&&u(t,e,r)===false;let w=r.transform||o(S);if(r.toRegex&&n===1){return d(f(t,_),f(e,_),true,r)}let E={negatives:[],positives:[]};let R=t=>E[t<0?"negatives":"positives"].push(Math.abs(t));let O=[];let k=0;while(a?i>=s:i<=s){if(r.toRegex===true&&n>1){R(i)}else{O.push(h(w(i,k),_,S))}i=a?i-n:i+n;k++}if(r.toRegex===true){return n>1?p(E,r):y(O,null,{wrap:false,...r})}return O};const _=(t,e,n=1,r={})=>{if(!c(t)&&t.length>1||!c(e)&&e.length>1){return g(t,e,r)}let i=r.transform||(t=>String.fromCharCode(t));let s=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=s>o;let l=Math.min(s,o);let u=Math.max(s,o);if(r.toRegex&&n===1){return d(l,u,false,r)}let h=[];let f=0;while(a?s>=o:s<=o){h.push(i(s,f));s=a?s-n:s+n;f++}if(r.toRegex===true){return y(h,null,{wrap:false,options:r})}return h};const S=(t,e,n,r={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return g(t,e,r)}if(typeof n==="function"){return S(t,e,1,{transform:n})}if(s(n)){return S(t,e,0,n)}let i={...r};if(i.capture===true)i.wrap=true;n=n||i.step||1;if(!c(n)){if(n!=null&&!s(n))return v(n,i);return S(t,e,1,n)}if(c(t)&&c(e)){return b(t,e,n,i)}return _(t,e,Math.max(Math.abs(n),1),i)};t.exports=S},546:function(t,e,n){"use strict";const r=n(87);const i=n(867);const s=n(609);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const t=r.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},549:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);function generate(t,e){const n=getPositivePatterns(t);const i=getNegativePatternsAsPositive(t,e.ignore);const s=n.filter(t=>r.pattern.isStaticPattern(t,e));const o=n.filter(t=>r.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(s,i,false);const c=convertPatternsToTasks(o,i,true);return a.concat(c)}e.generate=generate;function convertPatternsToTasks(t,e,n){const r=groupPatternsByBaseDirectory(t);if("."in r){const r=convertPatternGroupToTask(".",t,e,n);return[r]}return convertPatternGroupsToTasks(r,e,n)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return r.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const n=r.pattern.getNegativePatterns(t).concat(e);const i=n.map(r.pattern.convertToPositivePattern);return i}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);if(n in t){t[n].push(e)}else{t[n]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,n){return Object.keys(t).map(r=>{return convertPatternGroupToTask(r,t[r],e,n)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,n,i){return{dynamic:i,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},550:function(t,e,n){"use strict";const r=n(622);t.exports=((t,e)=>{t=r.resolve(t);e=r.resolve(e);if(process.platform==="win32"){t=t.toLowerCase();e=e.toLowerCase()}if(t===e){return false}t+=r.sep;e+=r.sep;return t.startsWith(e)})},556:function(t,e,n){t.exports=globSync;globSync.GlobSync=GlobSync;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(700).Glob;var c=n(669);var l=n(622);var u=n(357);var h=n(932);var f=n(133);var p=f.alphasort;var d=f.alphasorti;var y=f.setopts;var m=f.ownProp;var g=f.childrenIgnored;var v=f.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);y(this,t,e);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(e)}catch(t){o=a}}else{o=a}}this.statCache[e]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return f.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return f.makeAbs(this,t)}},560:function(t){t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},563:function(t,e,n){"use strict";const r=n(614);const i=n(413);const s=n(597);const o=n(304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const u=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const m=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const _=Symbol("bufferLength");const S=Symbol("bufferPush");const w=Symbol("bufferShift");const E=Symbol("objectMode");const R=Symbol("destroyed");const O=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const k=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const x=O&&Symbol.iterator||Symbol("iterator not implemented");const A=t=>t==="end"||t==="finish"||t==="prefinish";const C=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const P=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);t.exports=class Minipass extends i{constructor(t){super();this[g]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[E]=t&&t.objectMode||false;if(this[E])this[y]=null;else this[y]=t&&t.encoding||null;if(this[y]==="buffer")this[y]=null;this[m]=this[y]?new o(this[y]):null;this[a]=false;this[l]=false;this[u]=false;this[h]=false;this.writable=true;this.readable=true;this[_]=0;this[R]=false}get bufferLength(){return this[_]}get encoding(){return this[y]}set encoding(t){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[y]&&t!==this[y]&&(this[m]&&this[m].lastNeed||this[_]))throw new Error("cannot change encoding");if(this[y]!==t){this[m]=t?new o(t):null;if(this.buffer.length)this.buffer=this.buffer.map(t=>this[m].write(t))}this[y]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[E]}set objectMode(t){this[E]=this[E]||!!t}write(t,e,n){if(this[a])throw new Error("write after end");if(this[R]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";if(!this[E]&&!Buffer.isBuffer(t)){if(P(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(C(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(!this.objectMode&&!t.length){const t=this.flowing;if(this[_]!==0)this.emit("readable");if(n)n();return t}if(typeof t==="string"&&!this[E]&&!(e===this[y]&&!this[m].lastNeed)){t=Buffer.from(t,e)}if(Buffer.isBuffer(t)&&this[y])t=this[m].write(t);try{return this.flowing?(this.emit("data",t),this.flowing):(this[S](t),false)}finally{if(this[_]!==0)this.emit("readable");if(n)n()}}read(t){if(this[R])return null;try{if(this[_]===0||t===0||t>this[_])return null;if(this[E])t=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[_])])}return this[f](t||null,this.buffer.head.value)}finally{this[c]()}}[f](t,e){if(t===e.length||t===null)this[w]();else{this.buffer.head.value=e.slice(t);e=e.slice(0,t);this[_]-=t}this.emit("data",e);if(!this.buffer.length&&!this[a])this.emit("drain");return e}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[b](){if(this[R])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[R]}get flowing(){return this[g]}get paused(){return this[v]}[S](t){if(this[E])this[_]+=1;else this[_]+=t.length;return this.buffer.push(t)}[w](){if(this.buffer.length){if(this[E])this[_]-=1;else this[_]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[w]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[d](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,e){if(this[R])return;const n=this[l];e=e||{};if(t===process.stdout||t===process.stderr)e.end=false;else e.end=e.end!==false;const r={dest:t,opts:e,ondrain:t=>this[b]()};this.pipes.push(r);t.on("drain",r.ondrain);this[b]();if(n&&r.opts.end)r.dest.end();return t}addListener(t,e){return this.on(t,e)}on(t,e){try{return super.on(t,e)}finally{if(t==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(A(t)&&this[l]){super.emit(t);this.removeAllListeners(t)}}}get emittedEnd(){return this[l]}[c](){if(!this[u]&&!this[l]&&!this[R]&&this.buffer.length===0&&this[a]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[u]=false}}emit(t,e){if(t!=="error"&&t!=="close"&&t!==R&&this[R])return;else if(t==="data"){if(!e)return;if(this.pipes.length)this.pipes.forEach(t=>t.dest.write(e)===false&&this.pause())}else if(t==="end"){if(this[l]===true)return;this[l]=true;this.readable=false;if(this[m]){e=this[m].end();if(e){this.pipes.forEach(t=>t.dest.write(e));super.emit("data",e)}}this.pipes.forEach(t=>{t.dest.removeListener("drain",t.ondrain);if(t.opts.end)t.dest.end()})}else if(t==="close"){this[h]=true;if(!this[l]&&!this[R])return}const n=new Array(arguments.length);n[0]=t;n[1]=e;if(arguments.length>2){for(let t=2;t{t.push(e);if(!this[E])t.dataLength+=e.length});return e.then(()=>t)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,e)=>{this.on(R,()=>e(new Error("stream destroyed")));this.on("end",()=>t());this.on("error",t=>e(t))})}[k](){const t=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[a])return Promise.resolve({done:true});let e=null;let n=null;const r=t=>{this.removeListener("data",i);this.removeListener("end",s);n(t)};const i=t=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();e({value:t,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);e({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((t,a)=>{n=a;e=t;this.once(R,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:t}}[x](){const t=()=>{const t=this.read();const e=t===null;return{value:t,done:e}};return{next:t}}destroy(t){if(this[R]){if(t)this.emit("error",t);else this.emit(R);return this}this[R]=true;this.buffer=new s;this[_]=0;if(typeof this.close==="function"&&!this[h])this.close();if(t)this.emit("error",t);else this.emit(R);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof i||t instanceof r&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},564:function(t,e,n){var r=n(747);var i=n(281);var s=n(900);var o=n(758);var a=n(669);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var t=a.format.apply(a,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!global[c]){var h=[];Object.defineProperty(global,c,{get:function(){return h}});r.close=function(t){function close(e,n){return t.call(r,e,function(t){if(!t){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,l,{value:t});return close}(r.close);r.closeSync=function(t){function closeSync(e){t.apply(r,arguments);retry()}Object.defineProperty(closeSync,l,{value:t});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){u(global[c]);n(357).equal(global[c].length,0)})}}t.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){t.exports=patch(r);r.__patched=true}function patch(t){i(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var e=t.readFile;t.readFile=readFile;function readFile(t,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(t,n,r);function go$readFile(t,n,r){return e(t,n,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readFile,[t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=t.writeFile;t.writeFile=writeFile;function writeFile(t,e,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(t,e,r,i);function go$writeFile(t,e,r,i){return n(t,e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[t,e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=t.appendFile;if(r)t.appendFile=appendFile;function appendFile(t,e,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(t,e,n,i);function go$appendFile(t,e,n,i){return r(t,e,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[t,e,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=t.readdir;t.readdir=readdir;function readdir(t,e,n){var r=[t];if(typeof e!=="function"){r.push(e)}else{n=e}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(t,e){if(e&&e.sort)e.sort();if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(e){return o.apply(t,e)}if(process.version.substr(0,4)==="v0.8"){var a=s(t);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=t.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var l=t.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var u=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return u},set:function(t){u=t},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:true,configurable:true});function ReadStream(t,e){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){if(t.autoClose)t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n);t.read()}})}function WriteStream(t,e){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n)}})}function createReadStream(e,n){return new t.ReadStream(e,n)}function createWriteStream(e,n){return new t.WriteStream(e,n)}var f=t.open;t.open=open;function open(t,e,n,r){if(typeof n==="function")r=n,n=null;return go$open(t,e,n,r);function go$open(t,e,n,r){return f(t,e,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[t,e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return t}function enqueue(t){u("ENQUEUE",t[0].name,t[1]);global[c].push(t)}function retry(){var t=global[c].shift();if(t){u("RETRY",t[0].name,t[1]);t[0].apply(null,t[1])}}},574:function(t,e,n){"use strict";t=n.nmd(t);const r=n(13);const i=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${n+e}m`});const s=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};5;${n}m`});const o=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const t=new Map;const e={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]}};e.color.grey=e.color.gray;for(const n of Object.keys(e)){const r=e[n];for(const n of Object.keys(r)){const i=r[n];e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false});Object.defineProperty(e,"codes",{value:t,enumerable:false})}const n=t=>t;const a=(t,e,n)=>[t,e,n];e.color.close="";e.bgColor.close="";e.color.ansi={ansi:i(n,0)};e.color.ansi256={ansi256:s(n,0)};e.color.ansi16m={rgb:o(a,0)};e.bgColor.ansi={ansi:i(n,10)};e.bgColor.ansi256={ansi256:s(n,10)};e.bgColor.ansi16m={rgb:o(a,10)};for(let t of Object.keys(r)){if(typeof r[t]!=="object"){continue}const n=r[t];if(t==="ansi16"){t="ansi"}if("ansi16"in n){e.color.ansi[t]=i(n.ansi16,0);e.bgColor.ansi[t]=i(n.ansi16,10)}if("ansi256"in n){e.color.ansi256[t]=s(n.ansi256,0);e.bgColor.ansi256[t]=s(n.ansi256,10)}if("rgb"in n){e.color.ansi16m[t]=o(n.rgb,0);e.bgColor.ansi16m[t]=o(n.rgb,10)}}return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},580:function(t,e,n){var r=n(880);var i=n(305);t.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 l="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(t){return t.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var n=i("{","}",t);if(!n)return t.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var n=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=o||c;var u=s.body.indexOf(",")>=0;if(!l&&!u){if(s.post.match(/,.*\}/)){t=s.pre+"{"+s.body+a+s.post;return expand(t)}return[t]}var h;if(l){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var f=s.post.length?expand(s.post,false):[""];return f.map(function(t){return s.pre+h[0]+t})}}}var p=s.pre;var f=s.post.length?expand(s.post,false):[""];var d;if(l){var y=numeric(h[0]);var m=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var v=h.length==3?Math.abs(numeric(h[2])):1;var b=lte;var _=m0){var O=new Array(R+1).join("0");if(w<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=r(h,function(t){return expand(t,false)})}for(var k=0;k{const e=await i("package.json",{cwd:t});return e&&r.dirname(e)};t.exports=s;t.exports.default=s;t.exports.sync=(t=>{const e=i.sync("package.json",{cwd:t});return e&&r.dirname(e)})},597:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&rfalse;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const y=(t={})=>{if(!t.cwd){return}let e;try{e=r.statSync(t.cwd)}catch(t){return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const m=t=>t.stats instanceof r.Stats?t.path:t;const g=(t,e)=>{t=i([].concat(t));d(t);y(e);const n=[];e={ignore:[],expandDirectories:true,...e};for(const[r,i]of t.entries()){if(p(i)){continue}const s=t.slice(r).filter(p).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(s)};n.push({pattern:i,options:o})}return n};const v=(t,e)=>{let n={};if(t.options.cwd){n.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){n={...n,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){n={...n,...t.options.expandDirectories}}return e(t.pattern,n)};const b=(t,e)=>t.options.expandDirectories?v(t,e):[t.pattern];const _=t=>{return t&&t.gitignore?l.sync({cwd:t.cwd,ignore:t.ignore}):f};const S=t=>e=>{const{options:n}=t;if(n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories){n.ignore=c.sync(n.ignore)}return{pattern:e,options:n}};t.exports=(async(t,e)=>{const n=g(t,e);const r=async()=>{return e&&e.gitignore?l({cwd:e.cwd,ignore:e.ignore}):f};const s=async()=>{const t=await Promise.all(n.map(async t=>{const e=await b(t,c);return Promise.all(e.map(S(t)))}));return i(...t)};const[o,u]=await Promise.all([r(),s()]);const h=await Promise.all(u.map(t=>a(t.pattern,t.options)));return i(...h).filter(t=>!o(m(t)))});t.exports.sync=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(S(e));return t.concat(n)},[]);const s=_(e);return r.reduce((t,e)=>i(t,a.sync(e.pattern,e.options)),[]).filter(t=>!s(t))});t.exports.stream=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(S(e));return t.concat(n)},[]);const i=_(e);const o=new u(t=>!i(t));const l=new h;return s(r.map(t=>a.stream(t.pattern,t.options))).pipe(o).pipe(l)});t.exports.generateGlobTasks=g;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.hasMagic(t,e)));t.exports.gitignore=l},604:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},605:function(t){"use strict";t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},609:function(t){"use strict";t.exports=((t,e=process.argv)=>{const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1||r{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)u(i,e);if(!i.noResume)l(i);return i.file&&i.sync?h(i):i.file?f(i,n):p(i)});const l=t=>{const e=t.onentry;t.onentry=e?t=>{e(t);t.resume()}:t=>t.resume()};const u=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const h=t=>{const e=p(t);const n=t.file;let r=true;let i;try{const o=s.statSync(n);const a=t.maxReadSize||16*1024*1024;if(o.size{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("end",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const p=t=>new i(t)},617:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(920);const s=n(951);const o=n(35);function read(t,e,n){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,n)}return readdir(t,e,n)}e.read=read;function readdirWithFileTypes(t,e,n){e.fs.readdir(t,{withFileTypes:true},(r,s)=>{if(r!==null){return callFailureCallback(n,r)}const o=s.map(n=>({dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`}));if(!e.followSymbolicLinks){return callSuccessCallback(n,o)}const a=o.map(t=>makeRplTaskEntry(t,e));i(a,(t,e)=>{if(t!==null){return callFailureCallback(n,t)}callSuccessCallback(n,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return n=>{if(!t.dirent.isSymbolicLink()){return n(null,t)}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){return n(r)}return n(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,i);return n(null,t)})}}function readdir(t,e,n){e.fs.readdir(t,(s,a)=>{if(s!==null){return callFailureCallback(n,s)}const c=a.map(n=>`${t}${e.pathSegmentSeparator}${n}`);const l=c.map(t=>{return n=>r.stat(t,e.fsStatSettings,n)});i(l,(t,r)=>{if(t!==null){return callFailureCallback(n,t)}const i=[];a.forEach((t,n)=>{const s=r[n];const a={name:t,path:c[n],dirent:o.fs.createDirentFromStats(t,s)};if(e.stats){a.stats=s}i.push(a)});callSuccessCallback(n,i)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},619:function(t){t.exports=require("constants")},622:function(t){t.exports=require("path")},625:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},629:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(951);const s=n(35);function read(t,e){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const n=e.fs.readdirSync(t,{withFileTypes:true});return n.map(n=>{const r={dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`};if(r.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(r.path);r.dirent=s.fs.createDirentFromStats(r.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return r})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const n=e.fs.readdirSync(t);return n.map(n=>{const i=`${t}${e.pathSegmentSeparator}${n}`;const o=r.statSync(i,e.fsStatSettings);const a={name:n,path:i,dirent:s.fs.createDirentFromStats(n,o)};if(e.stats){a.stats=o}return a})}e.readdir=readdir},634:function(t,e,n){"use strict";const r=n(622);t.exports=(t=>{let e=process.cwd();t=r.resolve(t);if(process.platform==="win32"){e=e.toLowerCase();t=t.toLowerCase()}return t===e})},635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(312);e.array=r;const i=n(438);e.errno=i;const s=n(625);e.fs=s;const o=n(642);e.path=o;const a=n(136);e.pattern=a;const c=n(62);e.stream=c},641:function(t,e,n){"use strict";const r=n(747);const{promisify:i}=n(669);const s=i(r.access);t.exports=(async t=>{try{await s(t);return true}catch(t){return false}});t.exports.sync=(t=>{try{r.accessSync(t);return true}catch(t){return false}})},642:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=/(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return r.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape},660:function(t){"use strict";t.exports=((t,e,n)=>{t&=4095;if(n){t=(t|384)&~18}if(e){if(t&256)t|=64;if(t&32)t|=8;if(t&4)t|=1}return t})},665:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(160);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=s.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},669:function(t){t.exports=require("util")},671:function(t){const e=t=>t[0].toLocaleUpperCase()+t.slice(1);t.exports=(t=>{if(t===null||t===void 0)return"";if(typeof t.toString!=="function")return"";let n=t.toString().trim();if(n==="")return"";if(n.length===1)return n.toLocaleUpperCase();let r=n.match(/[a-zA-Z0-9]+/g);if(r){return r.map(t=>e(t)).join("")}return n})},675:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(617);const i=n(629);const s=n(665);e.Settings=s.default;function scandir(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.scandir=scandir;function scandirSync(t,e){const n=getSettings(e);return i.read(t,n)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},677:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const n=r.pattern.convertPatternsToRe(t,this._micromatchOptions);const i=r.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,n,i)}_filter(t,e,n){if(this._settings.unique){if(this._isDuplicateEntry(t)){return false}this._createIndexRecord(t)}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t,n)){return false}const r=this._settings.baseNameMatch?t.name:t.path;return this._isMatchToPatterns(r,e)&&!this._isMatchToPatterns(t.path,n)}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const n=r.path.makeAbsolute(this._settings.cwd,t.path);return this._isMatchToPatterns(n,e)}_isMatchToPatterns(t,e){return r.pattern.matchAny(t,e)}}e.default=EntryFilter},683:function(t,e,n){"use strict";const r=n(851);const i=n(210);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=r;const u=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map(t=>i.escapeRegex(t)).join("..")}return n};const h=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const f=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=l[t]||t;const n={...e};const f=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;let p=t.length;if(p>f){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`)}const d={type:"bos",value:"",output:n.prepend||""};const y=[d];const m=n.capture?"":"?:";const g=i.isWindows(e);const v=r.globChars(g);const b=r.extglobChars(v);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:w,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:O,NO_DOT_SLASH:k,NO_DOTS_SLASH:x,QMARK:A,QMARK_NO_DOT:C,STAR:P,START_ANCHOR:M}=v;const T=t=>{return`(${m}(?:(?!${M}${t.dot?R:_}).)*?)`};const L=n.dot?"":O;const D=n.dot?A:C;let I=n.bash===true?T(n):P;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const $={input:t,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,tokens:y};t=i.removePrefix(t,$);p=t.length;const N=[];const F=[];let B=d;let j;const G=()=>$.index===p-1;const H=$.peek=((e=1)=>t[$.index+e]);const U=$.advance=(()=>t[++$.index]);const z=()=>t.slice($.index+1);const W=(t="",e=0)=>{$.consumed+=t;$.index+=e};const Y=t=>{$.output+=t.output!=null?t.output:t.value;W(t.value)};const Z=()=>{let t=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){U();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const V=t=>{$[t]++;F.push(t)};const Q=t=>{$[t]--;F.pop()};const X=t=>{if(B.type==="globstar"){const e=$.braces>0&&(t.type==="comma"||t.type==="brace");const n=t.extglob===true||N.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!n){$.output=$.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=I;$.output+=B.output}}if(N.length&&t.type!=="paren"&&!b[t.value]){N[N.length-1].inner+=t.value}if(t.value||t.output)Y(t);if(B&&B.type==="text"&&t.type==="text"){B.value+=t.value;return}t.prev=B;y.push(t);B=t};const K=(t,e)=>{const r={...b[e],conditions:1,inner:""};r.prev=B;r.parens=$.parens;r.output=$.output;const i=(n.capture?"(":"")+r.open;V("parens");X({type:t,value:e,output:$.output?"":E});X({type:"paren",extglob:true,value:U(),output:i});N.push(r)};const q=t=>{let e=t.close+(n.capture?")":"");if(t.type==="negate"){let r=I;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){r=T(n)}if(r!==I||G()||/^\)+$/.test(z())){e=t.close=")$))"+r}if(t.prev.type==="bos"&&G()){$.negatedExtglob=true}}X({type:"paren",extglob:true,value:j,output:e});Q("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let s=t.replace(c,(t,e,n,i,s,o)=>{if(i==="\\"){r=true;return t}if(i==="?"){if(e){return e+i+(s?A.repeat(s.length):"")}if(o===0){return D+(s?A.repeat(s.length):"")}return A.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(e){return e+i+(s?I:"")}return I}return e?t:"\\"+t});if(r===true){if(n.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(s===t&&n.contains===true){$.output=t;return $}$.output=i.wrapOutput(s,$,e);return $}while(!G()){j=U();if(j==="\0"){continue}if(j==="\\"){const t=H();if(t==="/"&&n.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){j+="\\";X({type:"text",value:j});continue}const e=/^\\+/.exec(z());let r=0;if(e&&e[0].length>2){r=e[0].length;$.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=U()||""}else{j+=U()||""}if($.brackets===0){X({type:"text",value:j});continue}}if($.brackets>0&&(j!=="]"||B.value==="["||B.value==="[^")){if(n.posix!==false&&j===":"){const t=B.value.slice(1);if(t.includes("[")){B.posix=true;if(t.includes(":")){const t=B.value.lastIndexOf("[");const e=B.value.slice(0,t);const n=B.value.slice(t+2);const r=o[n];if(r){B.value=e+r;$.backtrack=true;U();if(!d.output&&y.indexOf(B)===1){d.output=E}continue}}}}if(j==="["&&H()!==":"||j==="-"&&H()==="]"){j="\\"+j}if(j==="]"&&(B.value==="["||B.value==="[^")){j="\\"+j}if(n.posix===true&&j==="!"&&B.value==="["){j="^"}B.value+=j;Y({value:j});continue}if($.quotes===1&&j!=='"'){j=i.escapeRegex(j);B.value+=j;Y({value:j});continue}if(j==='"'){$.quotes=$.quotes===1?0:1;if(n.keepQuotes===true){X({type:"text",value:j})}continue}if(j==="("){V("parens");X({type:"paren",value:j});continue}if(j===")"){if($.parens===0&&n.strictBrackets===true){throw new SyntaxError(h("opening","("))}const t=N[N.length-1];if(t&&$.parens===t.parens+1){q(N.pop());continue}X({type:"paren",value:j,output:$.parens?")":"\\)"});Q("parens");continue}if(j==="["){if(n.nobracket===true||!z().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(h("closing","]"))}j="\\"+j}else{V("brackets")}X({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){X({type:"text",value:j,output:"\\"+j});continue}if($.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(h("opening","["))}X({type:"text",value:j,output:"\\"+j});continue}Q("brackets");const t=B.value.slice(1);if(B.posix!==true&&t[0]==="^"&&!t.includes("/")){j="/"+j}B.value+=j;Y({value:j});if(n.literalBrackets===false||i.hasRegexChars(t)){continue}const e=i.escapeRegex(B.value);$.output=$.output.slice(0,-B.value.length);if(n.literalBrackets===true){$.output+=e;B.value=e;continue}B.value=`(${m}${e}|${B.value})`;$.output+=B.value;continue}if(j==="{"&&n.nobrace!==true){V("braces");X({type:"brace",value:j,output:"("});continue}if(j==="}"){if(n.nobrace===true||$.braces===0){X({type:"text",value:j,output:j});continue}let t=")";if($.dots===true){const e=y.slice();const r=[];for(let t=e.length-1;t>=0;t--){y.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=u(r,n);$.backtrack=true}X({type:"brace",value:j,output:t});Q("braces");continue}if(j==="|"){if(N.length>0){N[N.length-1].conditions++}X({type:"text",value:j});continue}if(j===","){let t=j;if($.braces>0&&F[F.length-1]==="braces"){t="|"}X({type:"comma",value:j,output:t});continue}if(j==="/"){if(B.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";y.pop();B=d;continue}X({type:"slash",value:j,output:w});continue}if(j==="."){if($.braces>0&&B.type==="dot"){if(B.value===".")B.output=_;B.type="dots";B.output+=j;B.value+=j;$.dots=true;continue}if($.braces+$.parens===0&&B.type!=="bos"&&B.type!=="slash"){X({type:"text",value:j,output:_});continue}X({type:"dot",value:j,output:_});continue}if(j==="?"){const t=B&&B.value==="(";if(!t&&n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("qmark",j);continue}if(B&&B.type==="paren"){const t=H();let e=j;if(t==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(z())){e="\\"+j}X({type:"text",value:j,output:e});continue}if(n.dot!==true&&(B.type==="slash"||B.type==="bos")){X({type:"qmark",value:j,output:C});continue}X({type:"qmark",value:j,output:A});continue}if(j==="!"){if(n.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){K("negate",j);continue}}if(n.nonegate!==true&&$.index===0){Z($);continue}}if(j==="+"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("plus",j);continue}if(B&&B.value==="("||n.regex===false){X({type:"plus",value:j,output:S});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||$.parens>0){X({type:"plus",value:j});continue}X({type:"plus",value:S});continue}if(j==="@"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){X({type:"at",extglob:true,value:j,output:""});continue}X({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j="\\"+j}const t=a.exec(z());if(t){j+=t[0];$.index+=t[0].length}X({type:"text",value:j});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=j;B.output=I;$.backtrack=true;W(j);continue}let e=z();if(n.noextglob!==true&&/^\([^?]/.test(e)){K("star",j);continue}if(B.type==="star"){if(n.noglobstar===true){W(j);continue}const r=B.prev;const i=r.prev;const s=r.type==="slash"||r.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!s||e[0]&&e[0]!=="/")){X({type:"star",value:j,output:""});continue}const a=$.braces>0&&(r.type==="comma"||r.type==="brace");const c=N.length&&(r.type==="pipe"||r.type==="paren");if(!s&&r.type!=="paren"&&!a&&!c){X({type:"star",value:j,output:""});continue}while(e.slice(0,3)==="/**"){const n=t[$.index+4];if(n&&n!=="/"){break}e=e.slice(3);W("/**",3)}if(r.type==="bos"&&G()){B.type="globstar";B.value+=j;B.output=T(n);$.output=B.output;W(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&G()){$.output=$.output.slice(0,-(r.output+B.output).length);r.output="(?:"+r.output;B.type="globstar";B.output=T(n)+(n.strictSlashes?")":"|$)");B.value+=j;$.output+=r.output+B.output;W(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(r.output+B.output).length);r.output="(?:"+r.output;B.type="globstar";B.output=`${T(n)}${w}|${w}${t})`;B.value+=j;$.output+=r.output+B.output;W(j+U());X({type:"slash",value:j,output:""});continue}if(r.type==="bos"&&e[0]==="/"){B.type="globstar";B.value+=j;B.output=`(?:^|${w}|${T(n)}${w})`;$.output=B.output;W(j+U());X({type:"slash",value:j,output:""});continue}$.output=$.output.slice(0,-B.output.length);B.type="globstar";B.output=T(n);B.value+=j;$.output+=B.output;W(j);continue}const r={type:"star",value:j,output:I};if(n.bash===true){r.output=".*?";if(B.type==="bos"||B.type==="slash"){r.output=L+r.output}X(r);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&n.regex===true){r.output=j;X(r);continue}if($.index===$.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){$.output+=k;B.output+=k}else if(n.dot===true){$.output+=x;B.output+=x}else{$.output+=L;B.output+=L}if(H()!=="*"){$.output+=E;B.output+=E}}X(r)}while($.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","]"));$.output=i.escapeLast($.output,"[");Q("brackets")}while($.parens>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing",")"));$.output=i.escapeLast($.output,"(");Q("parens")}while($.braces>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","}"));$.output=i.escapeLast($.output,"{");Q("braces")}if(n.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){X({type:"maybe_slash",value:"",output:`${w}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};f.fastpaths=((t,e)=>{const n={...e};const o=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=l[t]||t;const c=i.isWindows(e);const{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:v}=r.globChars(c);const b=n.dot?y:d;const _=n.dot?m:d;const S=n.capture?"":"?:";const w={negated:false,prefix:""};let E=n.bash===true?".*?":g;if(n.capture){E=`(${E})`}const R=t=>{if(t.noglobstar===true)return E;return`(${S}(?:(?!${v}${t.dot?p:u}).)*?)`};const O=t=>{switch(t){case"*":return`${b}${f}${E}`;case".*":return`${u}${f}${E}`;case"*.*":return`${b}${E}${u}${f}${E}`;case"*/*":return`${b}${E}${h}${f}${_}${E}`;case"**":return b+R(n);case"**/*":return`(?:${b}${R(n)}${h})?${_}${f}${E}`;case"**/*.*":return`(?:${b}${R(n)}${h})?${_}${E}${u}${f}${E}`;case"**/.*":return`(?:${b}${R(n)}${h})?${u}${f}${E}`;default:{const n=/^(.*?)\.(\w+)$/.exec(t);if(!n)return;const r=O(n[1],e);if(!r)return;return r+u+n[2]}}};const k=i.removePrefix(t,w);let x=O(k);if(x&&n.strictSlashes!==true){x+=`${h}?`}return x});t.exports=f},698:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},700:function(t,e,n){t.exports=glob;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(188);var c=n(614).EventEmitter;var l=n(622);var u=n(357);var h=n(932);var f=n(556);var p=n(133);var d=p.alphasort;var y=p.alphasorti;var m=p.setopts;var g=p.ownProp;var v=n(330);var b=n(669);var _=p.childrenIgnored;var S=p.isIgnored;var w=n(277);function glob(t,e,n){if(typeof e==="function")n=e,e={};if(!e)e={};if(e.sync){if(n)throw new TypeError("callback provided to sync glob");return f(t,e)}return new Glob(t,e,n)}glob.sync=f;var E=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var n=Object.keys(e);var r=n.length;while(r--){t[n[r]]=e[n[r]]}return t}glob.hasMagic=function(t,e){var n=extend({},e);n.noprocess=true;var r=new Glob(t,n);var i=r.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var s=0;sthis.maxLength)return e();if(!this.stat&&g(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var l=this;var u=v("stat\0"+n,lstatcb_);if(u)r.lstat(n,u);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)l._stat2(t,n,null,s,e);else l._stat2(t,n,r,i,e)})}else{l._stat2(t,n,i,s,e)}}};Glob.prototype._stat2=function(t,e,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[e]=false;return i()}var s=t.slice(-1)==="/";this.statCache[e]=r;if(e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},708:function(t){function makeArray(t){return Array.isArray(t)?t:[t]}const e=/^\s+$/;const n=/^\\!/;const r=/^\\#/;const i=/\r?\n/g;const s=/^\.*\/|^\.+$/;const o="/";const a=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const c=(t,e,n)=>Object.defineProperty(t,e,{value:n});const l=/([0-z])-([0-z])/g;const u=t=>t.replace(l,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:"");const h=[[/\\?\s+$/,t=>t.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,e,n)=>n==="]"?`[${u(e)}]`:`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6`${e}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const n=e?`${e}[^/]+`:"[^/]*";return`${n}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=Object.create(null);const p=(t,e,n)=>{const r=f[t];if(r){return r}const i=h.reduce((e,n)=>e.replace(n[0],n[1].bind(t)),t);return f[t]=n?new RegExp(i,"i"):new RegExp(i)};const d=t=>typeof t==="string";const y=t=>t&&d(t)&&!e.test(t)&&t.indexOf("#")!==0;const m=t=>t.split(i);class IgnoreRule{constructor(t,e,n,r){this.origin=t;this.pattern=e;this.negative=n;this.regex=r}}const g=(t,e)=>{const i=t;let s=false;if(t.indexOf("!")===0){s=true;t=t.substr(1)}t=t.replace(n,"!").replace(r,"#");const o=p(t,s,e);return new IgnoreRule(i,t,s,o)};const v=(t,e)=>{throw new e(t)};const b=(t,e,n)=>{if(!d(t)){return n(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return n(`path must not be empty`,TypeError)}if(b.isNotRelative(t)){const t="`path.relative()`d";return n(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const _=t=>s.test(t);b.isNotRelative=_;b.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;c(this,a,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[a]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(y(t)){const e=g(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(d(t)?m(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let n=false;let r=false;this._rules.forEach(i=>{const{negative:s}=i;if(r===s&&n!==r||s&&!n&&!r&&!e){return}const o=i.regex.test(t);if(o){n=!s;r=s}});return{ignored:n,unignored:r}}_test(t,e,n,r){const i=t&&b.convert(t);b(i,t,v);return this._t(i,e,n,r)}_t(t,e,n,r){if(t in e){return e[t]}if(!r){r=t.split(o)}r.pop();if(!r.length){return e[t]=this._testOne(t,n)}const i=this._t(r.join(o)+o,e,n,r);return e[t]=i.ignored?i:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const S=t=>new Ignore(t);const w=()=>false;const E=t=>b(t&&b.convert(t),t,w);S.isPathValid=E;S.default=S;t.exports=S;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");b.convert=t;const e=/^[a-z]:\//i;b.isNotRelative=(t=>e.test(t)||_(t))}},712:function(t,e,n){"use strict";const r=n(409);const i=n(563);const s=Symbol("slurp");t.exports=class ReadEntry extends i{constructor(t,e,n){super();this.pause();this.extended=e;this.globalExtended=n;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.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=t.path;this.mode=t.mode;if(this.mode)this.mode=this.mode&4095;this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath;this.uname=t.uname;this.gname=t.gname;if(e)this[s](e);if(n)this[s](n,true)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain;const r=this.blockRemain;this.remain=Math.max(0,n-e);this.blockRemain=Math.max(0,r-e);if(this.ignore)return true;if(n>=e)return super.write(t);return super.write(t.slice(0,n))}[s](t,e){for(let n in t){if(t[n]!==null&&t[n]!==undefined&&!(e&&n==="path"))this[n]=t[n]}}}},728:function(t,e,n){"use strict";const r=n(409);const i=n(622).posix;const s=n(340);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(t,e,n,r){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[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t))this.decode(t,e||0,n,r);else if(t)this.set(t)}decode(t,e,n,r){if(!e)e=0;if(!t||!(t.length>=e+512))throw new Error("need 512 bytes for header");this.path=l(t,e,100);this.mode=f(t,e+100,8);this.uid=f(t,e+108,8);this.gid=f(t,e+116,8);this.size=f(t,e+124,12);this.mtime=u(t,e+136,12);this.cksum=f(t,e+148,12);this[o](n);this[o](r,true);this[a]=l(t,e+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=l(t,e+157,100);if(t.slice(e+257,e+265).toString()==="ustar\x0000"){this.uname=l(t,e+265,32);this.gname=l(t,e+297,32);this.devmaj=f(t,e+329,8);this.devmin=f(t,e+337,8);if(t[e+475]!==0){const n=l(t,e+345,155);this.path=n+"/"+this.path}else{const n=l(t,e+345,130);if(n)this.path=n+"/"+this.path;this.atime=u(t,e+476,12);this.ctime=u(t,e+488,12)}}let i=8*32;for(let n=e;n=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155;const r=c(this.path||"",n);const i=r[0];const s=r[1];this.needPax=r[2];this.needPax=w(t,e,100,i)||this.needPax;this.needPax=m(t,e+100,8,this.mode)||this.needPax;this.needPax=m(t,e+108,8,this.uid)||this.needPax;this.needPax=m(t,e+116,8,this.gid)||this.needPax;this.needPax=m(t,e+124,12,this.size)||this.needPax;this.needPax=_(t,e+136,12,this.mtime)||this.needPax;t[e+156]=this[a].charCodeAt(0);this.needPax=w(t,e+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",e+257,8);this.needPax=w(t,e+265,32,this.uname)||this.needPax;this.needPax=w(t,e+297,32,this.gname)||this.needPax;this.needPax=m(t,e+329,8,this.devmaj)||this.needPax;this.needPax=m(t,e+337,8,this.devmin)||this.needPax;this.needPax=w(t,e+345,n,s)||this.needPax;if(t[e+475]!==0)this.needPax=w(t,e+345,155,s)||this.needPax;else{this.needPax=w(t,e+345,130,s)||this.needPax;this.needPax=_(t,e+476,12,this.atime)||this.needPax;this.needPax=_(t,e+488,12,this.ctime)||this.needPax}let o=8*32;for(let n=e;n{const n=100;let r=t;let s="";let o;const a=i.parse(t).root||".";if(Buffer.byteLength(r)n&&Buffer.byteLength(s)<=e)o=[r.substr(0,n-1),s,true];else{r=i.join(i.basename(s),r);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[t.substr(0,n-1),"",true]}return o};const l=(t,e,n)=>t.slice(e,e+n).toString("utf8").replace(/\0.*/,"");const u=(t,e,n)=>h(f(t,e,n));const h=t=>t===null?null:new Date(t*1e3);const f=(t,e,n)=>t[e]&128?s.parse(t.slice(e,e+n)):d(t,e,n);const p=t=>isNaN(t)?null:t;const d=(t,e,n)=>p(parseInt(t.slice(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const m=(t,e,n,r)=>r===null?false:r>y[n]||r<0?(s.encode(r,t.slice(e,e+n)),true):(g(t,e,n,r),false);const g=(t,e,n,r)=>t.write(v(r,n),e,n,"ascii");const v=(t,e)=>b(Math.floor(t).toString(8),e);const b=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0";const _=(t,e,n,r)=>r===null?false:m(t,e,n,r.getTime()/1e3);const S=new Array(156).join("\0");const w=(t,e,n,r)=>r===null?false:(t.write(r+S,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);t.exports=Header},730:function(t,e,n){"use strict";const r=n(549);const i=n(522);const s=n(33);const o=n(268);const a=n(422);const c=n(635);function FastGlob(t,e){try{assertPatternsInput(t)}catch(t){return Promise.reject(t)}const n=getWorks(t,i.default,e);return Promise.all(n).then(c.array.flatten)}(function(t){function sync(t,e){assertPatternsInput(t);const n=getWorks(t,o.default,e);return c.array.flatten(n)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const n=getWorks(t,s.default,e);return c.stream.merge(n)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const n=[].concat(t);const i=new a.default(e);return r.generate(n,i)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const n=new a.default(e);return c.pattern.isDynamicPattern(t,n)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,n){const i=[].concat(t);const s=new a.default(n);const o=r.generate(i,s);const c=new e(s);return o.map(c.read,c)}function assertPatternsInput(t){if([].concat(t).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(t){return typeof t==="string"}t.exports=FastGlob},736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(739);const i=n(102);const s=n(172);const o=n(768);e.Settings=o.default;function walk(t,e,n){if(typeof e==="function"){return new r.default(t,getSettings()).read(e)}new r.default(t,getSettings(e)).read(n)}e.walk=walk;function walkSync(t,e){const n=getSettings(e);const r=new s.default(t,n);return r.read()}e.walkSync=walkSync;function walkStream(t,e){const n=getSettings(e);const r=new i.default(t,n);return r.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(389);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},747:function(t){t.exports=require("fs")},758:function(t){"use strict";t.exports=clone;function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}},761:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(736);const s=n(828);class ReaderSync extends s.default{constructor(){super(...arguments);this._walkSync=i.walkSync;this._statSync=r.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const n=[];for(const r of t){const t=this._getFullEntryPath(r);const i=this._getEntry(t,r,e);if(i===null||!e.entryFilter(i)){continue}n.push(i)}return n}_getEntry(t,e,n){try{const r=this._getStat(t);return this._makeEntry(r,e)}catch(t){if(n.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},762:function(t,e,n){"use strict";const r=n(477);const i=n(622);const s=n(728);const o=n(614);const a=n(597);const c=1024*1024;const l=n(712);const u=n(125);const h=n(507);const f=Buffer.from([31,139]);const p=Symbol("state");const d=Symbol("writeEntry");const y=Symbol("readEntry");const m=Symbol("nextEntry");const g=Symbol("processEntry");const v=Symbol("extendedHeader");const b=Symbol("globalExtendedHeader");const _=Symbol("meta");const S=Symbol("emitMeta");const w=Symbol("buffer");const E=Symbol("queue");const R=Symbol("ended");const O=Symbol("emittedEnd");const k=Symbol("emit");const x=Symbol("unzip");const A=Symbol("consumeChunk");const C=Symbol("consumeChunkSub");const P=Symbol("consumeBody");const M=Symbol("consumeMeta");const T=Symbol("consumeHeader");const L=Symbol("consuming");const D=Symbol("bufferConcat");const I=Symbol("maybeEnd");const $=Symbol("writing");const N=Symbol("aborted");const F=Symbol("onDone");const B=Symbol("sawValidEntry");const j=Symbol("sawNullBlock");const G=Symbol("sawEOF");const H=t=>true;t.exports=r(class Parser extends o{constructor(t){t=t||{};super(t);this.file=t.file||"";this[B]=null;this.on(F,t=>{if(this[p]==="begin"||this[B]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(t.ondone)this.on(F,t.ondone);else this.on(F,t=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||c;this.filter=typeof t.filter==="function"?t.filter:H;this.writable=true;this.readable=false;this[E]=new a;this[w]=null;this[y]=null;this[d]=null;this[p]="begin";this[_]="";this[v]=null;this[b]=null;this[R]=false;this[x]=null;this[N]=false;this[j]=false;this[G]=false;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(typeof t.onentry==="function")this.on("entry",t.onentry)}[T](t,e){if(this[B]===null)this[B]=false;let n;try{n=new s(t,e,this[v],this[b])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock){if(this[j]){this[G]=true;if(this[p]==="begin")this[p]="header";this[k]("eof")}else{this[j]=true;this[k]("nullBlock")}}else{this[j]=false;if(!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(t)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{const t=this[d]=new l(n,this[v],this[b]);if(!this[B]){if(t.remain){const e=()=>{if(!t.invalid)this[B]=true};t.on("end",e)}else{this[B]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[k]("ignoredEntry",t);this[p]="ignore";t.resume()}else if(t.size>0){this[_]="";t.on("data",t=>this[_]+=t);this[p]="meta"}}else{this[v]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[k]("ignoredEntry",t);this[p]=t.remain?"ignore":"header";t.resume()}else{if(t.remain)this[p]="body";else{this[p]="header";t.end()}if(!this[y]){this[E].push(t);this[m]()}else this[E].push(t)}}}}}}[g](t){let e=true;if(!t){this[y]=null;e=false}else if(Array.isArray(t))this.emit.apply(this,t);else{this[y]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",t=>this[m]());e=false}}return e}[m](){do{}while(this[g](this[E].shift()));if(!this[E].length){const t=this[y];const e=!t||t.flowing||t.size===t.remain;if(e){if(!this[$])this.emit("drain")}else t.once("drain",t=>this.emit("drain"))}}[P](t,e){const n=this[d];const r=n.blockRemain;const i=r>=t.length&&e===0?t:t.slice(e,e+r);n.write(i);if(!n.blockRemain){this[p]="header";this[d]=null;n.end()}return i.length}[M](t,e){const n=this[d];const r=this[P](t,e);if(!this[d])this[S](n);return r}[k](t,e,n){if(!this[E].length&&!this[y])this.emit(t,e,n);else this[E].push([t,e,n])}[S](t){this[k]("meta",this[_]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[_],this[v],false);break;case"GlobalExtendedHeader":this[b]=u.parse(this[_],this[b],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[_].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[_].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[N]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[N])return;if(this[x]===null&&t){if(this[w]){t=Buffer.concat([this[w],t]);this[w]=null}if(t.lengththis[A](t));this[x].on("error",t=>this.abort(t));this[x].on("end",t=>{this[R]=true;this[A]()});this[$]=true;const n=this[x][e?"end":"write"](t);this[$]=false;return n}}this[$]=true;if(this[x])this[x].write(t);else this[A](t);this[$]=false;const e=this[E].length?false:this[y]?this[y].flowing:true;if(!e&&!this[E].length)this[y].once("drain",t=>this.emit("drain"));return e}[D](t){if(t&&!this[N])this[w]=this[w]?Buffer.concat([this[w],t]):t}[I](){if(this[R]&&!this[O]&&!this[N]&&!this[L]){this[O]=true;const t=this[d];if(t&&t.blockRemain){const e=this[w]?this[w].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t});if(this[w])t.write(this[w]);t.end()}this[k](F)}}[A](t){if(this[L])this[D](t);else if(!t&&!this[w])this[I]();else{this[L]=true;if(this[w]){this[D](t);const e=this[w];this[w]=null;this[C](e)}else{this[C](t)}while(this[w]&&this[w].length>=512&&!this[N]&&!this[G]){const t=this[w];this[w]=null;this[C](t)}this[L]=false}if(!this[w]||this[R])this[I]()}[C](t){let e=0;let n=t.length;while(e+512<=n&&!this[N]&&!this[G]){switch(this[p]){case"begin":case"header":this[T](t,e);e+=512;break;case"ignore":case"body":e+=this[P](t,e);break;case"meta":e+=this[M](t,e);break;default:throw new Error("invalid state: "+this[p])}}if(e{throw new Error("sync function called cb somehow?!?")};const j=(t,e)=>{if(process.platform!=="win32")return o.unlink(t,e);const n=t+".DELETE."+N.randomBytes(16).toString("hex");o.rename(t,n,t=>{if(t)return e(t);o.unlink(n,e)})};const G=t=>{if(process.platform!=="win32")return o.unlinkSync(t);const e=t+".DELETE."+N.randomBytes(16).toString("hex");o.renameSync(t,e);o.unlinkSync(e)};const H=(t,e,n)=>t===t>>>0?t:e===e>>>0?e:n;class Unpack extends s{constructor(t){if(!t)t={};t.ondone=(t=>{this[M]=true;this[T]()});super(t);this.reservations=f();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[A]=0;this[M]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!t.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=t.forceChown===true;this.win32=!!t.win32||process.platform==="win32";this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=c.resolve(t.cwd||process.cwd());this.strip=+t.strip||0;this.processUmask=process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",t=>this[p](t))}warn(t,e,n={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")n.recoverable=false;return super.warn(t,e,n)}[T](){if(this[M]&&this[A]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](t){if(this.strip){const e=t.path.split(/\/|\\/);if(e.length=this.strip)t.linkpath=e.slice(this.strip).join("/")}}if(!this.preservePaths){const e=t.path;if(e.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:e});return false}if(c.win32.isAbsolute(e)){const n=c.win32.parse(e);t.path=e.substr(n.root.length);const r=n.root;this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e})}}if(this.win32){const e=c.win32.parse(t.path);t.path=e.root===""?h.encode(t.path):e.root+h.encode(t.path.substr(e.root.length))}if(c.isAbsolute(t.path))t.absolute=t.path;else t.absolute=c.resolve(this.cwd,t.path);return true}[p](t){if(!this[O](t))return t.resume();r.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode)t.mode=t.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](t);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](t)}}[x](t,e){if(t.name==="CwdError")this.emit("error",t);else{this.warn("TAR_ENTRY_ERROR",t,{entry:e});this[P]();e.resume()}}[k](t,e,n){l(t,{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:e},n)}[D](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[I](t){return H(this.uid,t.uid,this.processUid)}[$](t){return H(this.gid,t.gid,this.processGid)}[v](t,e){const n=t.mode&4095||this.fmode;const r=new a.WriteStream(t.absolute,{flags:F(t.size),mode:n,autoClose:false});r.on("error",e=>this[x](e,t));let i=1;const s=n=>{if(n)return this[x](n,t);if(--i===0){o.close(r.fd,n=>{e();n?this[x](n,t):this[P]()})}};r.on("finish",e=>{const n=t.absolute;const a=r.fd;if(t.mtime&&!this.noMtime){i++;const e=t.atime||new Date;const r=t.mtime;o.futimes(a,e,r,t=>t?o.utimes(n,e,r,e=>s(e&&t)):s())}if(this[D](t)){i++;const e=this[I](t);const r=this[$](t);o.fchown(a,e,r,t=>t?o.chown(n,e,r,e=>s(e&&t)):s())}s()});const c=this.transform?this.transform(t)||t:t;if(c!==t){c.on("error",e=>this[x](e,t));t.pipe(c)}c.pipe(r)}[b](t,e){const n=t.mode&4095||this.dmode;this[k](t.absolute,n,n=>{if(n){e();return this[x](n,t)}let r=1;const i=n=>{if(--r===0){e();this[P]();t.resume()}};if(t.mtime&&!this.noMtime){r++;o.utimes(t.absolute,t.atime||new Date,t.mtime,i)}if(this[D](t)){r++;o.chown(t.absolute,this[I](t),this[$](t),i)}i()})}[E](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[S](t,e){this[_](t,t.linkpath,"symlink",e)}[w](t,e){this[_](t,c.resolve(this.cwd,t.linkpath),"link",e)}[C](){this[A]++}[P](){this[A]--;this[T]()}[L](t){this[P]();t.resume()}[m](t,e){return t.type==="File"&&!this.unlink&&e.isFile()&&e.nlink<=1&&process.platform!=="win32"}[d](t){this[C]();const e=[t.path];if(t.linkpath)e.push(t.linkpath);this.reservations.reserve(e,e=>this[y](t,e))}[y](t,e){this[k](c.dirname(t.absolute),this.dmode,n=>{if(n){e();return this[x](n,t)}o.lstat(t.absolute,(n,r)=>{if(r&&(this.keep||this.newer&&r.mtime>t.mtime)){this[L](t);e()}else if(n||this[m](t,r)){this[g](null,t,e)}else if(r.isDirectory()){if(t.type==="Directory"){if(!t.mode||(r.mode&4095)===t.mode)this[g](null,t,e);else o.chmod(t.absolute,t.mode,n=>this[g](n,t,e))}else o.rmdir(t.absolute,n=>this[g](n,t,e))}else j(t.absolute,n=>this[g](n,t,e))})})}[g](t,e,n){if(t)return this[x](t,e);switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[v](e,n);case"Link":return this[w](e,n);case"SymbolicLink":return this[S](e,n);case"Directory":case"GNUDumpDir":return this[b](e,n)}}[_](t,e,n,r){o[n](e,t.absolute,e=>{if(e)return this[x](e,t);r();this[P]();t.resume()})}}class UnpackSync extends Unpack{constructor(t){super(t)}[d](t){const e=this[k](c.dirname(t.absolute),this.dmode,B);if(e)return this[x](e,t);try{const n=o.lstatSync(t.absolute);if(this.keep||this.newer&&n.mtime>t.mtime)return this[L](t);else if(this[m](t,n))return this[g](null,t,B);else{try{if(n.isDirectory()){if(t.type==="Directory"){if(t.mode&&(n.mode&4095)!==t.mode)o.chmodSync(t.absolute,t.mode)}else o.rmdirSync(t.absolute)}else G(t.absolute);return this[g](null,t,B)}catch(e){return this[x](e,t)}}}catch(e){return this[g](null,t,B)}}[v](t,e){const n=t.mode&4095||this.fmode;const r=e=>{let n;try{o.closeSync(s)}catch(t){n=t}if(e||n)this[x](e||n,t)};let i;let s;try{s=o.openSync(t.absolute,F(t.size),n)}catch(t){return r(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",e=>this[x](e,t));t.pipe(a)}a.on("data",t=>{try{o.writeSync(s,t,0,t.length)}catch(t){r(t)}});a.on("end",e=>{let n=null;if(t.mtime&&!this.noMtime){const e=t.atime||new Date;const r=t.mtime;try{o.futimesSync(s,e,r)}catch(i){try{o.utimesSync(t.absolute,e,r)}catch(t){n=i}}}if(this[D](t)){const e=this[I](t);const r=this[$](t);try{o.fchownSync(s,e,r)}catch(i){try{o.chownSync(t.absolute,e,r)}catch(t){n=n||i}}}r(n)})}[b](t,e){const n=t.mode&4095||this.dmode;const r=this[k](t.absolute,n);if(r)return this[x](r,t);if(t.mtime&&!this.noMtime){try{o.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(r){}}if(this[D](t)){try{o.chownSync(t.absolute,this[I](t),this[$](t))}catch(r){}}t.resume()}[k](t,e){try{return l.sync(t,{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:e})}catch(t){return t}}[_](t,e,n,r){try{o[n+"Sync"](e,t.absolute);t.resume()}catch(e){return this[x](e,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},786:function(t,e,n){"use strict";const r=n(815);const i=n(968);const s=n(421);const o=n(266);const a=(t,e={})=>{let n=[];if(Array.isArray(t)){for(let r of t){let t=a.create(r,e);if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}else{n=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){n=[...new Set(n)]}return n};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return r(a.parse(t,e),e)}return r(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return i(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let n=s(t,e);if(e.noempty===true){n=n.filter(Boolean)}if(e.nodupes===true){n=[...new Set(n)]}return n});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},789:function(t,e,n){"use strict";const r=n(622);const i=n(747);const{promisify:s}=n(669);const o=n(232);const a=s(i.stat);const c=s(i.lstat);const l={directory:"isDirectory",file:"isFile"};function checkType({type:t}){if(t in l){return}throw new Error(`Invalid type specified: ${t}`)}const u=(t,e)=>t===undefined||e[l[t]]();t.exports=(async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:true,...e};checkType(e);const n=e.allowSymlinks?a:c;return o(t,async t=>{try{const i=await n(r.resolve(e.cwd,t));return u(e.type,i)}catch(t){return false}},e)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),allowSymlinks:true,type:"file",...e};checkType(e);const n=e.allowSymlinks?i.statSync:i.lstatSync;for(const i of t){try{const t=n(r.resolve(e.cwd,i));if(u(e.type,t)){return i}}catch(t){}}})},791:function(t,e,n){"use strict";const r=n(58);const{stdout:i,stderr:s}=n(546);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=n(883);const c=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const u=(t,e={})=>{if(e.level>3||e.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const n=i?i.level:0;t.level=e.level===undefined?n:e.level};class ChalkClass{constructor(t){return h(t)}}const h=t=>{const e={};u(e,t);e.template=((...t)=>v(e.template,...t));Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});e.template.Instance=ChalkClass;return e.template};function Chalk(t){return h(t)}for(const[t,e]of Object.entries(r)){l[t]={get(){const n=y(this,d(e.open,e.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:n});return n}}}l.visible={get(){const t=y(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of f){l[t]={get(){const{level:e}=this;return function(...n){const i=d(r.color[c[e]][t](...n),r.color.close,this._styler);return y(this,i,this._isEmpty)}}}}for(const t of f){const e="bg"+t[0].toUpperCase()+t.slice(1);l[e]={get(){const{level:e}=this;return function(...n){const i=d(r.bgColor[c[e]][t](...n),r.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const p=Object.defineProperties(()=>{},{...l,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const d=(t,e,n)=>{let r;let i;if(n===undefined){r=t;i=e}else{r=n.openAll+t;i=e+n.closeAll}return{open:t,close:e,openAll:r,closeAll:i,parent:n}};const y=(t,e,n)=>{const r=(...t)=>{return m(r,t.length===1?""+t[0]:t.join(" "))};r.__proto__=p;r._generator=t;r._styler=e;r._isEmpty=n;return r};const m=(t,e)=>{if(t.level<=0||!e){return t._isEmpty?"":e}let n=t._styler;if(n===undefined){return e}const{openAll:r,closeAll:i}=n;if(e.indexOf("")!==-1){while(n!==undefined){e=o(e,n.close,n.open);n=n.parent}}const s=e.indexOf("\n");if(s!==-1){e=a(e,i,r,s)}return r+e+i};let g;const v=(t,...e)=>{const[r]=e;if(!Array.isArray(r)){return e.join(" ")}const i=e.slice(1);const s=[r.raw[0]];for(let t=1;t{return new Promise((s,o)=>{if(typeof e!=="function"){throw new TypeError("Mapper function is required")}if(!(typeof n==="number"&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const l=t[Symbol.iterator]();let u=false;let h=false;let f=0;let p=0;const d=()=>{if(u){return}const t=l.next();const n=p;p++;if(t.done){h=true;if(f===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}f++;(async()=>{try{const r=await t.value;a[n]=await e(r,n);f--;d()}catch(t){if(i){u=true;o(t)}else{c.push(t);f--;d()}}})()};for(let t=0;t0)return;e=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);next()}if(t._readableState.endEmitted)return next();t.on("merge2UnpipeEnd",onend);t.on("end",onend);t.pipe(a,{end:false});t.resume()}for(let t=0;t{let n=(t,i={})=>{let s=e.escapeInvalid&&r.isInvalidBrace(i);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((s||o)&&r.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=n(e)}}return a};return n(t)})},821:function(t,e,n){var r=n(622);var i=n(747);var s=parseInt("0777",8);t.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(t,e,n,o){if(typeof e==="function"){n=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var a=e.mode;var c=e.fs||i;if(a===undefined){a=s&~process.umask()}if(!o)o=null;var l=n||function(){};t=r.resolve(t);c.mkdir(t,a,function(n){if(!n){o=o||t;return l(null,o)}switch(n.code){case"ENOENT":mkdirP(r.dirname(t),e,function(n,r){if(n)l(n,r);else mkdirP(t,e,l,r)});break;default:c.stat(t,function(t,e){if(t||!e.isDirectory())l(n,o);else l(null,o)});break}})}mkdirP.sync=function sync(t,e,n){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var a=e.fs||i;if(o===undefined){o=s&~process.umask()}if(!n)n=null;t=r.resolve(t);try{a.mkdirSync(t,o);n=n||t}catch(i){switch(i.code){case"ENOENT":n=sync(r.dirname(t),e,n);sync(t,e,n);break;default:var c;try{c=a.statSync(t)}catch(t){throw i}if(!c.isDirectory())throw i;break}}return n}},828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(635);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:s.fs.createDirentFromStats(e,t)};if(this._settings.stats){n.stats=t}return n}_isFatalError(t){return!s.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},830:function(t,e,n){"use strict";t.exports=n(258)},835:function(t){"use strict";t.exports=((t,e=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof t!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``)}if(typeof e!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(e===0){return t}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(r,n.indent.repeat(e))})},839:function(t,e,n){"use strict";const r=n(87);const i=n(199);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(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!t.isTTY&&o!==true){return 0}const e=o?1:0;if(process.platform==="win32"){const t=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in s)||s.CI_NAME==="codeship"){return 1}return e}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 t=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return t>=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 e}return e}function getSupportLevel(t){const e=supportsColor(t);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},842:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){wrapper[e]=t[e]});return wrapper;function wrapper(){var e=new Array(arguments.length);for(var n=0;nthis._isNonFatalError(t)}_isNonFatalError(t){return r.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},851:function(t,e,n){"use strict";const r=n(622);const i="\\\\/";const s=`[^${i}]`;const o="\\.";const a="\\+";const c="\\?";const l="\\/";const u="(?=.)";const h="[^/]";const f=`(?:${l}|$)`;const p=`(?:^|${l})`;const d=`${o}{1,2}${f}`;const y=`(?!${o})`;const m=`(?!${p}${d})`;const g=`(?!${o}{0,1}${f})`;const v=`(?!${d})`;const b=`[^.${l}]`;const _=`${h}*?`;const S={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:h,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:_,START_ANCHOR:p};const w={...S,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?w:S}}},861:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(747);const o=n(862);const a=n(616);const c=n(622);const l=t.exports=((t,e,n)=>{if(typeof e==="function")n=e;if(Array.isArray(t))e=t,t={};if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?u(i,e):i.file?h(i,e,n):i.sync?d(i,e):y(i,e)});const u=(t,e)=>{const n=new i.Sync(t);const r=new o.WriteStreamSync(t.file,{mode:t.mode||438});n.pipe(r);f(n,e)};const h=(t,e,n)=>{const r=new i(t);const s=new o.WriteStream(t.file,{mode:t.mode||438});r.pipe(s);const a=new Promise((t,e)=>{s.on("error",e);s.on("close",t);r.on("error",e)});p(r,e);return n?a.then(n,n):a};const f=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")a({file:c.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const p=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return a({file:c.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>p(t,e));else t.add(n)}t.end()};const d=(t,e)=>{const n=new i.Sync(t);f(n,e);return n};const y=(t,e)=>{const n=new i(t);p(n,e);return n}},862:function(t,e,n){"use strict";const r=n(563);const i=n(614).EventEmitter;const s=n(747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const l=Symbol("_autoClose");const u=Symbol("_close");const h=Symbol("_ended");const f=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const y=Symbol("_flush");const m=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const _=Symbol("_onerror");const S=Symbol("_onopen");const w=Symbol("_onread");const E=Symbol("_onwrite");const R=Symbol("_open");const O=Symbol("_path");const k=Symbol("_pos");const x=Symbol("_queue");const A=Symbol("_read");const C=Symbol("_readSize");const P=Symbol("_reading");const M=Symbol("_remain");const T=Symbol("_size");const L=Symbol("_write");const D=Symbol("_writing");const I=Symbol("_defaultFlag");class ReadStream extends r{constructor(t,e){e=e||{};super(e);this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[f]=typeof e.fd==="number"?e.fd:null;this[O]=t;this[C]=e.readSize||16*1024*1024;this[P]=false;this[T]=typeof e.size==="number"?e.size:Infinity;this[M]=this[T];this[l]=typeof e.autoClose==="boolean"?e.autoClose:true;if(typeof this[f]==="number")this[A]();else this[R]()}get fd(){return this[f]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){s.open(this[O],"r",(t,e)=>this[S](t,e))}[S](t,e){if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[A]()}}[g](){return Buffer.allocUnsafe(Math.min(this[C],this[M]))}[A](){if(!this[P]){this[P]=true;const t=this[g]();if(t.length===0)return process.nextTick(()=>this[w](null,0,t));s.read(this[f],t,0,t.length,null,(t,e,n)=>this[w](t,e,n))}}[w](t,e,n){this[P]=false;if(t)this[_](t);else if(this[m](e,n))this[A]()}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}[_](t){this[P]=true;this[u]();this.emit("error",t)}[m](t,e){let n=false;this[M]-=t;if(t>0)n=super.write(tthis[S](t,e))}[S](t,e){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";this[R]()}else if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[y]()}}end(t,e){if(t)this.write(t,e);this[h]=true;if(!this[D]&&!this[x].length&&typeof this[f]==="number")this[E](null,0)}write(t,e){if(typeof t==="string")t=new Buffer(t,e);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[f]===null||this[D]||this[x].length){this[x].push(t);this[b]=true;return false}this[D]=true;this[L](t);return true}[L](t){s.write(this[f],t,0,t.length,this[k],(t,e)=>this[E](t,e))}[E](t,e){if(t)this[_](t);else{if(this[k]!==null)this[k]+=e;if(this[x].length)this[y]();else{this[D]=false;if(this[h]&&!this[p]){this[p]=true;this[u]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[y](){if(this[x].length===0){if(this[h])this[E](null,0)}else if(this[x].length===1)this[L](this[x].pop());else{const t=this[x];this[x]=[];$(this[f],t,this[k],(t,e)=>this[E](t,e))}}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}}class WriteStreamSync extends WriteStream{[R](){let t;try{t=s.openSync(this[O],this[d],this[v])}catch(t){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";return this[R]()}else throw t}this[S](null,t)}[u](){if(this[l]&&typeof this[f]==="number"){try{s.closeSync(this[f])}catch(t){}this[f]=null;this.emit("close")}}[L](t){try{this[E](null,s.writeSync(this[f],t,0,t.length,this[k]))}catch(t){this[E](t,0)}}}const $=(t,e,n,r)=>{const i=(t,n)=>r(t,n,e);const s=new c;s.oncomplete=i;o.writeBuffers(t,e,n,s)};e.ReadStream=ReadStream;e.ReadStreamSync=ReadStreamSync;e.WriteStream=WriteStream;e.WriteStreamSync=WriteStreamSync},867:function(t){t.exports=require("tty")},876:function(t,e,n){"use strict";var r=n(802);var i=n(622).posix.dirname;var s=n(87).platform()==="win32";var o="/";var a=/\\/g;var c=/[\{\[].*[\/]*.*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var u=/\\([\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var n=Object.assign({flipBackslashes:true},e);if(n.flipBackslashes&&s&&t.indexOf(o)<0){t=t.replace(a,o)}if(c.test(t)){t+=o}t+="a";do{t=i(t)}while(r(t)||l.test(t));return t.replace(u,"$1")}},880:function(t){t.exports=function(t,n){var r=[];for(var i=0;i{let r=t.indexOf(e);if(r===-1){return t}const i=e.length;let s=0;let o="";do{o+=t.substr(s,r-s)+e+n;s=r+i;r=t.indexOf(e,s)}while(r!==-1);o+=t.substr(s);return o};const n=(t,e,n,r)=>{let i=0;let s="";do{const o=t[r-1]==="\r";s+=t.substr(i,(o?r-1:r)-i)+e+(o?"\r\n":"\n")+n;i=r+1;r=t.indexOf("\n",i)}while(r!==-1);s+=t.substr(i);return s};t.exports={stringReplaceAll:e,stringEncaseCRLFWithFirstIndex:n}},885:function(t,e,n){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var r=n(747);var i=r.realpath;var s=r.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=n(528);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,n){if(a){return i(t,e,n)}if(typeof e==="function"){n=e;e=null}i(t,e,function(r,i){if(newError(r)){c.realpath(t,e,n)}else{n(r,i)}})}function realpathSync(t,e){if(a){return s(t,e)}try{return s(t,e)}catch(n){if(newError(n)){return c.realpathSync(t,e)}else{throw n}}}function monkeypatch(){r.realpath=realpath;r.realpathSync=realpathSync}function unmonkeypatch(){r.realpath=i;r.realpathSync=s}},886:function(t,e,n){"use strict";var r=n(164);function fastqueue(t,e,n){if(typeof t==="function"){n=e;e=t;t=null}var i=r(Task);var s=null;var o=null;var a=0;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:n,running:running,resume:resume,idle:idle,length:length,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=s;var e=0;while(t){t=t.next;e++}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)l(i,e);return i.file&&i.sync?u(i):i.file?h(i,n):i.sync?f(i):p(i)});const l=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const u=t=>{const e=new i.Sync(t);const n=t.file;let r=true;let a;const c=s.statSync(n);const l=t.maxReadSize||16*1024*1024;const u=new o.ReadStreamSync(n,{readSize:l,size:c.size});u.pipe(e)};const h=(t,e)=>{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("close",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const f=t=>{return new i.Sync(t)};const p=t=>{return new i(t)}},892:function(t){"use strict";const e=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 n=t.exports=(t=>t?Object.keys(t).map(n=>[e.has(n)?e.get(n):n,t[n]]).reduce((t,e)=>(t[e[0]]=e[1],t),Object.create(null)):{})},896:function(t,e,n){"use strict";const r=n(921);const i=t=>{if(!((Number.isInteger(t)||t===Infinity)&&t>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const e=[];let n=0;const i=()=>{n--;if(e.length>0){e.shift()()}};const s=(t,e,...s)=>{n++;const o=r(t,...s);e(o);o.then(i,i)};const o=(r,i,...o)=>{if(nnew Promise(n=>o(t,n,...e));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>e.length}});return a};t.exports=i;t.exports.default=i},899:function(t,e,n){"use strict";const r=n(622);const i=n(789);const s=n(641);const o=Symbol("findUp.stop");t.exports=(async(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=async e=>{if(typeof t!=="function"){return i(a,e)}const n=await t(e.cwd);if(typeof n==="string"){return i([n],e)}return n};while(true){const t=await c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.sync=((t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=e=>{if(typeof t!=="function"){return i.sync(a,e)}const n=t(e.cwd);if(typeof n==="string"){return i.sync([n],e)}return n};while(true){const t=c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.exists=s;t.exports.sync.exists=s.sync;t.exports.stop=o},900:function(t,e,n){var r=n(413).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(e,n){if(!(this instanceof ReadStream))return new ReadStream(e,n);r.call(this);var i=this;this.path=e;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t);i.readable=false;return}i.fd=e;i.emit("open",e);i._read()})}function WriteStream(e,n){if(!(this instanceof WriteStream))return new WriteStream(e,n);r.call(this);this.path=e;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},903:function(t){t.exports=require("zlib")},920:function(t){t.exports=runParallel;function runParallel(t,e){var n,r,i;var s=true;if(Array.isArray(t)){n=[];r=t.length}else{i=Object.keys(t);n={};r=i.length}function done(t){function end(){if(e)e(t,n);e=null}if(s)process.nextTick(end);else end()}function each(t,e,i){n[t]=i;if(--r===0||e){done(e)}}if(!r){done(null)}else if(i){i.forEach(function(e){t[e](function(t,n){each(e,t,n)})})}else{t.forEach(function(t,e){t(function(t,n){each(e,t,n)})})}s=false}},921:function(t){"use strict";const e=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=e;t.exports.default=e},932:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=e.exec(t);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},945:function(t,e,n){const r=n(331);const i=n(365);const s={};const o=Object.keys(r);function wrapRaw(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}const r=t(e);if(typeof r==="object"){for(let t=r.length,e=0;e{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const e=i(t);const n=Object.keys(e);n.forEach(n=>{const r=e[n];s[t][n]=wrapRounded(r);s[t][n].raw=wrapRaw(r)})});t.exports=s},948:function(t,e,n){const r=n(357);const i=n(622);const s=n(747);let o=undefined;try{o=n(700)}catch(t){}const a={nosort:true,silent:true};let c=0;const l=process.platform==="win32";const u=t=>{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(e=>{t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||a};const h=(t,e,n)=>{if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");u(e);let i=0;let s=null;let a=0;const l=t=>{s=s||t;if(--a===0)n(s)};const h=(t,r)=>{if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(t=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&if(t,e,n),i*100)}if(r.code==="EMFILE"&&cf(t,e,n),c++)}if(r.code==="ENOENT")r=null}c=0;l(r)};f(t,e,n)})};if(e.disableGlob||!o.hasMagic(t))return h(null,[t]);e.lstat(t,(n,r)=>{if(!n)return h(null,[t]);o(t,e.glob,h)})};const f=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.lstat(t,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&l)p(t,e,r,n);if(i&&i.isDirectory())return y(t,e,r,n);e.unlink(t,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return l?p(t,e,r,n):y(t,e,r,n);if(r.code==="EISDIR")return y(t,e,r,n)}return n(r)})})};const p=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");if(n)r(n instanceof Error);e.chmod(t,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else e.stat(t,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())y(t,e,n,i);else e.unlink(t,i)})})};const d=(t,e,n)=>{r(t);r(e);if(n)r(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw n}let i;try{i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw n}if(i.isDirectory())v(t,e,n);else e.unlinkSync(t)};const y=(t,e,n,i)=>{r(t);r(e);if(n)r(n instanceof Error);r(typeof i==="function");e.rmdir(t,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))m(t,e,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const m=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.readdir(t,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return e.rmdir(t,n);let a;s.forEach(r=>{h(i.join(t,r),e,r=>{if(a)return;if(r)return n(a=r);if(--o===0)e.rmdir(t,n)})})})};const g=(t,e)=>{e=e||{};u(e);r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r(e,"rimraf: missing options");r.equal(typeof e,"object","rimraf: options should be object");let n;if(e.disableGlob||!o.hasMagic(t)){n=[t]}else{try{e.lstatSync(t);n=[t]}catch(r){n=o.sync(t,e.glob)}}if(!n.length)return;for(let t=0;t{r(t);r(e);if(n)r(n instanceof Error);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")b(t,e)}};const b=(t,e)=>{r(t);r(e);e.readdirSync(t).forEach(n=>g(i.join(t,n),e));const n=l?100:1;let s=0;do{let r=true;try{const i=e.rmdirSync(t,e);r=false;return i}finally{if(++ss;const c=r===s&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},955:function(t,e,n){const r=process.env.__FAKE_PLATFORM__||process.platform;const i=r==="win32";const s=global.__FAKE_TESTING_FS__||n(747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:c,UV_FS_O_FILEMAP:l=0}=s.constants;const u=i&&!!l;const h=512*1024;const f=l|a|o|c;t.exports=!u?()=>"w":t=>t{let n=(t,s={})=>{let o=i.isInvalidBrace(s);let a=t.invalid===true&&e.escapeInvalid===true;let c=o===true||a===true;let l=e.escapeInvalid===true?"\\":"";let u="";if(t.isOpen===true){return l+t.value}if(t.isClose===true){return l+t.value}if(t.type==="open"){return c?l+t.value:"("}if(t.type==="close"){return c?l+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":c?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let n=i.reduce(t.nodes);let s=r(...n,{...e,wrap:false,toRegex:true});if(s.length!==0){return n.length>1&&s.length>1?`(${s})`:s}}if(t.nodes){for(let e of t.nodes){u+=n(e,t)}}return u};return n(t)};t.exports=s},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(468);const i=n(25);const s=n(69);e.Settings=s.default;function stat(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.stat=stat;function statSync(t,e){const n=getSettings(e);return i.read(t,n)}e.statSync=statSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},998:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\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(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return s.get(t)||t}function parseArguments(t,e){const n=[];const s=e.trim().split(/\s*,\s*/g);let o;for(const e of s){if(!isNaN(e)){n.push(Number(e))}else if(o=e.match(r)){n.push(o[2].replace(i,(t,e,n)=>e?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const t of Object.keys(n)){if(Array.isArray(n[t])){if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}if(n[t].length>0){r=r[t].apply(r,n[t])}else{r=r[t]}}}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})}},function(t){"use strict";!function(){t.nmd=function(t){t.paths=[];if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});return t}}();!function(){t.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();!function(){var e=Object.prototype.hasOwnProperty;t.d=function(t,n,r){if(!e.call(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r})}}}();!function(){t.t=function(e,n){if(n&1)e=this(e);if(n&8)return e;if(n&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);t.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(n&2&&typeof e!="string")for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r}}();!function(){t.n=function(e){var n=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};t.d(n,"a",n);return n}}()}); \ No newline at end of file +module.exports=function(t,e){"use strict";var n={};function __webpack_require__(e){if(n[e]){return n[e].exports}var r=n[e]={i:e,l:false,exports:{}};t[e].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(241)}e(__webpack_require__);return startup()}({3:function(t){"use strict";const e=["|","<",">","?",":"];const n=e.map(t=>String.fromCharCode(61440+t.charCodeAt(0)));const r=new Map(e.map((t,e)=>[t,n[e]]));const i=new Map(n.map((t,n)=>[t,e[n]]));t.exports={encode:t=>e.reduce((t,e)=>t.split(e).join(r.get(e)),t),decode:t=>n.reduce((t,e)=>t.split(e).join(i.get(e)),t)}},10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;if(this._settings.absolute){e=r.path.makeAbsolute(this._settings.cwd,e);e=r.path.unixify(e)}if(this._settings.markDirectories&&t.dirent.isDirectory()){e+="/"}if(!this._settings.objectMode){return e}return Object.assign(Object.assign({},t),{path:e})}}e.default=EntryTransformer},13:function(t,e,n){var r=n(350);var i=n(240);var s={};var o=Object.keys(r);function wrapRaw(t){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){var e=function(e){if(e===undefined||e===null){return e}if(arguments.length>1){e=Array.prototype.slice.call(arguments)}var n=t(e);if(typeof n==="object"){for(var r=n.length,i=0;ie?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const[t,e]of Object.entries(n)){if(!Array.isArray(e)){continue}if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}r=e.length>0?r[t](...e):r[t]}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})},24:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype;t.prototype=new n;t.prototype.constructor=t}}}},25:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e){const n=e.fs.lstatSync(t);if(!n.isSymbolicLink()||!e.followSymbolicLink){return n}try{const r=e.fs.statSync(t);if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}return r}catch(t){if(!e.throwErrorOnBrokenSymbolicLink){return n}throw t}}e.read=read},33:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(413);const i=n(203);const s=n(248);class ProviderStream extends s.default{constructor(){super(...arguments);this._reader=new i.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const i=this.api(e,t,n);const s=new r.Readable({objectMode:true,read:()=>{}});i.once("error",t=>s.emit("error",t)).on("data",t=>s.emit("data",n.transform(t))).once("end",()=>s.emit("end"));s.once("close",()=>i.destroy());return s}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderStream},35:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(162);e.fs=r},55:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class DeepFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e}getFilter(t,e,n){const r=this._getMaxPatternDepth(e);const i=this._getNegativePatternsRe(n);return e=>this._filter(t,e,i,r)}_getMaxPatternDepth(t){const e=t.some(r.pattern.hasGlobStar);return e?Infinity:r.pattern.getMaxNaivePatternsDepth(t)}_getNegativePatternsRe(t){const e=t.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,n,r){const i=this._getEntryDepth(t,e.path);if(this._isSkippedByDeep(i)){return false}if(this._isSkippedByMaxPatternDepth(i,r)){return false}if(this._isSkippedSymbolicLink(e)){return false}return this._isSkippedByNegativePatterns(e,n)}_getEntryDepth(t,e){const n=t.split("/").length;const r=e.split("/").length;return r-(t===""?0:n)}_isSkippedByDeep(t){return t>=this._settings.deep}_isSkippedByMaxPatternDepth(t,e){return!this._settings.baseNameMatch&&e!==Infinity&&t>e}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByNegativePatterns(t,e){return!r.pattern.matchAny(t.path,e)}}e.default=DeepFilter},58:function(t,e,n){"use strict";t=n.nmd(t);const r=(t,e)=>(...n)=>{const r=t(...n);return`[${r+e}m`};const i=(t,e)=>(...n)=>{const r=t(...n);return`[${38+e};5;${r}m`};const s=(t,e)=>(...n)=>{const r=t(...n);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};const o=t=>t;const a=(t,e,n)=>[t,e,n];const c=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{const r=n();Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let l;const u=(t,e,r,i)=>{if(l===undefined){l=n(945)}const s=i?10:0;const o={};for(const[n,i]of Object.entries(l)){const a=n==="ansi16"?"ansi":n;if(n===e){o[a]=t(r,s)}else if(typeof i==="object"){o[a]=t(i[e],s)}}return o};function assembleStyles(){const t=new Map;const e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright;e.bgColor.bgGray=e.bgColor.bgBlackBright;e.color.grey=e.color.blackBright;e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[n,r]of Object.entries(e)){for(const[n,i]of Object.entries(r)){e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false})}Object.defineProperty(e,"codes",{value:t,enumerable:false});e.color.close="";e.bgColor.close="";c(e.color,"ansi",()=>u(r,"ansi16",o,false));c(e.color,"ansi256",()=>u(i,"ansi256",o,false));c(e.color,"ansi16m",()=>u(s,"rgb",a,false));c(e.bgColor,"ansi",()=>u(r,"ansi16",o,true));c(e.bgColor,"ansi256",()=>u(i,"ansi256",o,true));c(e.bgColor,"ansi16m",()=>u(s,"rgb",a,true));return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},62:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(813);function merge(t){const e=r(t);t.forEach(t=>{t.once("error",t=>e.emit("error",t))});e.once("close",()=>propagateCloseEventToSources(t));e.once("end",()=>propagateCloseEventToSources(t));return e}e.merge=merge;function propagateCloseEventToSources(t){t.forEach(t=>t.emit("close"))}},63:function(t,e,n){const r=n(903).constants||{ZLIB_VERNUM:4736};t.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},r))},69:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(192);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=r.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},76:function(t,e,n){"use strict";const{Transform:r}=n(413);class ObjectTransform extends r{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(t){super();this._filter=t}_transform(t,e,n){if(this._filter(t)){this.push(t)}n()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(t,e,n){if(!this._pushed.has(t)){this.push(t);this._pushed.add(t)}n()}}t.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},82:function(t){t.exports=require("console")},87:function(t){t.exports=require("os")},93:function(t,e,n){"use strict";const r=n(360);const i=n(574);const s=n(839).stdout;const o=n(998);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const l=new Set(["gray"]);const u=Object.create(null);function applyOptions(t,e){e=e||{};const n=s?s.level:0;t.level=e.level===undefined?n:e.level;t.enabled="enabled"in e?e.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const e={};applyOptions(e,t);e.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[e.template].concat(t))};Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=Chalk;return e.template}applyOptions(this,t)}if(a){i.blue.open=""}for(const t of Object.keys(i)){i[t].closeRe=new RegExp(r(i[t].close),"g");u[t]={get(){const e=i[t];return build.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}}}u.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(r(i.color.close),"g");for(const t of Object.keys(i.color.ansi)){if(l.has(t)){continue}u[t]={get(){const e=this.level;return function(){const n=i.color[c[e]][t].apply(null,arguments);const r={open:n,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}}i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const t of Object.keys(i.bgColor.ansi)){if(l.has(t)){continue}const e="bg"+t[0].toUpperCase()+t.slice(1);u[e]={get(){const e=this.level;return function(){const n=i.bgColor[c[e]][t].apply(null,arguments);const r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}}const h=Object.defineProperties(()=>{},u);function build(t,e,n){const r=function(){return applyStyle.apply(r,arguments)};r._styles=t;r._empty=e;const i=this;Object.defineProperty(r,"level",{enumerable:true,get(){return i.level},set(t){i.level=t}});Object.defineProperty(r,"enabled",{enumerable:true,get(){return i.enabled},set(t){i.enabled=t}});r.hasGrey=this.hasGrey||n==="gray"||n==="grey";r.__proto__=h;return r}function applyStyle(){const t=arguments;const e=t.length;let n=String(arguments[0]);if(e===0){return""}if(e>1){for(let r=1;r{},destroy:this._reader.destroy.bind(this._reader)})}read(){this._reader.onError(t=>{this._stream.emit("error",t)});this._reader.onEntry(t=>{this._stream.push(t)});this._reader.onEnd(()=>{this._stream.push(null)});this._reader.read();return this._stream}}e.default=StreamProvider},104:function(t,e,n){"use strict";const r=n(87);t.exports=r.homedir()||r.tmpdir()},106:function(t,e,n){"use strict";const r=n(835);const i=n(292);const s=t=>t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(t){if(!Array.isArray(t)){throw new TypeError(`Expected input to be an Array, got ${typeof t}`)}t=[...t].map(t=>{if(t instanceof Error){return t}if(t!==null&&typeof t==="object"){return Object.assign(new Error(t.message),t)}return new Error(t)});let e=t.map(t=>{return typeof t.stack==="string"?s(i(t.stack)):String(t)}).join("\n");e="\n"+r(e,4);super(e);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:t})}*[Symbol.iterator](){for(const t of this._errors){yield t}}}t.exports=AggregateError},112:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(622);const s=n(599);const o=n(802);const a=n(493);const c=n(564);const l=n(634);const u=n(550);const h=n(948);const f=n(806);const p=r(h);const d={glob:false,unlink:c.unlink,unlinkSync:c.unlinkSync,chmod:c.chmod,chmodSync:c.chmodSync,stat:c.stat,statSync:c.statSync,lstat:c.lstat,lstatSync:c.lstatSync,rmdir:c.rmdir,rmdirSync:c.rmdirSync,readdir:c.readdir,readdirSync:c.readdirSync};function safeCheck(t,e){if(l(t)){throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.")}if(!u(t,e)){throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}}function normalizePatterns(t){t=Array.isArray(t)?t:[t];t=t.map(t=>{if(process.platform==="win32"&&o(t)===false){return a(t)}return t});return t}t.exports=(async(t,{force:e,dryRun:n,cwd:r=process.cwd(),...o}={})=>{o={expandDirectories:false,onlyFiles:false,followSymbolicLinks:false,cwd:r,...o};t=normalizePatterns(t);const a=(await s(t,o)).sort((t,e)=>e.localeCompare(t));const c=async t=>{t=i.resolve(r,t);if(!e){safeCheck(t,r)}if(!n){await p(t,d)}return t};const l=await f(a,c,o);l.sort((t,e)=>t.localeCompare(e));return l});t.exports.sync=((t,{force:e,dryRun:n,cwd:r=process.cwd(),...o}={})=>{o={expandDirectories:false,onlyFiles:false,followSymbolicLinks:false,cwd:r,...o};t=normalizePatterns(t);const a=s.sync(t,o).sort((t,e)=>e.localeCompare(t));const c=a.map(t=>{t=i.resolve(r,t);if(!e){safeCheck(t,r)}if(!n){h.sync(t,d)}return t});c.sort((t,e)=>t.localeCompare(e));return c})},125:function(t,e,n){"use strict";const r=n(728);const i=n(622);class Pax{constructor(t,e){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=e||false}encode(){const t=this.encodeBody();if(t==="")return null;const e=Buffer.byteLength(t);const n=512*Math.ceil(1+e/512);const s=Buffer.allocUnsafe(n);for(let t=0;t<512;t++){s[t]=0}new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:e,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(s);s.write(t,512,e,"utf8");for(let t=e+512;t=Math.pow(10,i))i+=1;const s=i+r;return s+n}}Pax.parse=((t,e,n)=>new Pax(s(o(t),e),n));const s=(t,e)=>e?Object.keys(t).reduce((e,n)=>(e[n]=t[n],e),e):t;const o=t=>t.replace(/\n$/,"").split("\n").reduce(a,Object.create(null));const a=(t,e)=>{const n=parseInt(e,10);if(n!==Buffer.byteLength(e)+1)return t;e=e.substr((n+" ").length);const r=e.split("=");const i=r.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;const s=r.join("=");t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s;return t};t.exports=Pax},129:function(t){t.exports=require("child_process")},133:function(t,e,n){e.alphasort=alphasort;e.alphasorti=alphasorti;e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var r=n(622);var i=n(314);var s=n(932);var o=i.Minimatch;function alphasorti(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function alphasort(t,e){return t.localeCompare(e)}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var n=t.replace(/(\/\*\*)+$/,"");e=new o(n,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,n){if(!n)n={};if(n.matchBase&&-1===e.indexOf("/")){if(n.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!n.silent;t.pattern=e;t.strict=n.strict!==false;t.realpath=!!n.realpath;t.realpathCache=n.realpathCache||Object.create(null);t.follow=!!n.follow;t.dot=!!n.dot;t.mark=!!n.mark;t.nodir=!!n.nodir;if(t.nodir)t.mark=true;t.sync=!!n.sync;t.nounique=!!n.nounique;t.nonull=!!n.nonull;t.nosort=!!n.nosort;t.nocase=!!n.nocase;t.stat=!!n.stat;t.noprocess=!!n.noprocess;t.absolute=!!n.absolute;t.maxLength=n.maxLength||Infinity;t.cache=n.cache||Object.create(null);t.statCache=n.statCache||Object.create(null);t.symlinks=n.symlinks||Object.create(null);setupIgnores(t,n);t.changedCwd=false;var i=process.cwd();if(!ownProp(n,"cwd"))t.cwd=i;else{t.cwd=r.resolve(n.cwd);t.changedCwd=t.cwd!==i}t.root=n.root||r.resolve(t.cwd,"/");t.root=r.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=s(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!n.nomount;n.nonegate=true;n.nocomment=true;t.minimatch=new o(e,n);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var n=e?[]:Object.create(null);for(var r=0,i=t.matches.length;r{const n=getNaiveDepth(e);return n>t?n:t},0)}e.getMaxNaivePatternsDepth=getMaxNaivePatternsDepth;function makeRe(t,e){return s.makeRe(t,e)}e.makeRe=makeRe;function convertPatternsToRe(t,e){return t.map(t=>makeRe(t,e))}e.convertPatternsToRe=convertPatternsToRe;function matchAny(t,e){const n=t.replace(/^\.[\\/]/,"");return e.some(t=>t.test(n))}e.matchAny=matchAny},137:function(t,e,n){t.exports=rimraf;rimraf.sync=rimrafSync;var r=n(357);var i=n(622);var s=n(747);var o=undefined;try{o=n(700)}catch(t){}var a=parseInt("666",8);var c={nosort:true,silent:true};var l=0;var u=process.platform==="win32";function defaults(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(e){t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||c}function rimraf(t,e,n){if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");defaults(e);var i=0;var s=null;var a=0;if(e.disableGlob||!o.hasMagic(t))return afterGlob(null,[t]);e.lstat(t,function(n,r){if(!n)return afterGlob(null,[t]);o(t,e.glob,afterGlob)});function next(t){s=s||t;if(--a===0)n(s)}function afterGlob(t,r){if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(function(t){rimraf_(t,e,function CB(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i{if(r(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(r(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...n};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let o=String(s.relaxZeros);let a=String(s.shorthand);let c=String(s.capture);let l=String(s.wrap);let u=t+":"+e+"="+o+a+c+l;if(i.cache.hasOwnProperty(u)){return i.cache[u].result}let h=Math.min(t,e);let f=Math.max(t,e);if(Math.abs(h-f)===1){let n=t+"|"+e;if(s.capture){return`(${n})`}if(s.wrap===false){return n}return`(?:${n})`}let p=hasPadding(t)||hasPadding(e);let d={min:t,max:e,a:h,b:f};let y=[];let m=[];if(p){d.isPadded=p;d.maxLen=String(d.max).length}if(h<0){let t=f<0?Math.abs(f):1;m=splitToPatterns(t,Math.abs(h),d,s);h=d.a=0}if(f>=0){y=splitToPatterns(h,f,d,s)}d.negatives=m;d.positives=y;d.result=collatePatterns(m,y,s);if(s.capture===true){d.result=`(${d.result})`}else if(s.wrap!==false&&y.length+m.length>1){d.result=`(?:${d.result})`}i.cache[u]=d;return d.result};function collatePatterns(t,e,n){let r=filterPatterns(t,e,"-",false,n)||[];let i=filterPatterns(e,t,"",false,n)||[];let s=filterPatterns(t,e,"-?",true,n)||[];let o=r.concat(s).concat(i);return o.join("|")}function splitToRanges(t,e){let n=1;let r=1;let i=countNines(t,n);let s=new Set([e]);while(t<=i&&i<=e){s.add(i);n+=1;i=countNines(t,n)}i=countZeros(e+1,r)-1;while(t1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(n.isPadded){l=padZeros(e,n,r)}c.string=l+c.pattern+toQuantifier(c.count);s.push(c);o=e+1;a=c}return s}function filterPatterns(t,e,n,r,i){let s=[];for(let i of t){let{string:t}=i;if(!r&&!contains(e,"string",t)){s.push(n+t)}if(r&&contains(e,"string",t)){s.push(n+t)}}return s}function zip(t,e){let n=[];for(let r=0;re?1:e>t?-1:0}function contains(t,e,n){return t.some(t=>t[e]===n)}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,n=""]=t;if(n||e>1){return`{${e+(n?","+n:"")}}`}return""}function toCharacterClass(t,e,n){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,n){if(!e.isPadded){return t}let r=Math.abs(e.maxLen-String(t).length);let i=n.relaxZeros!==false;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${r}}`:`0{${r}}`}}}i.cache={};i.clearCache=(()=>i.cache={});t.exports=i},160:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(747);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},162:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},164:function(t){"use strict";function reusify(t){var e=new t;var n=e;function get(){var r=e;if(r.next){e=r.next}else{e=new t;n=e}r.next=null;return r}function release(t){n.next=t;n=t}return{get:get,release:release}}t.exports=reusify},172:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(406);class SyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}e.default=SyncProvider},177:function(t,e,n){"use strict";const r=n(622);const i=n(439);const s=t=>t.length>1?`{${t.join(",")}}`:t[0];const o=(t,e)=>{const n=t[0]==="!"?t.slice(1):t;return r.isAbsolute(n)?n:r.join(e,n)};const a=(t,e)=>{if(r.extname(t)){return`**/${t}`}return`**/${t}.${s(e)}`};const c=(t,e)=>{if(e.files&&!Array.isArray(e.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``)}if(e.extensions&&!Array.isArray(e.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``)}if(e.files&&e.extensions){return e.files.map(n=>r.posix.join(t,a(n,e.extensions)))}if(e.files){return e.files.map(e=>r.posix.join(t,`**/${e}`))}if(e.extensions){return[r.posix.join(t,`**/*.${s(e.extensions)}`)]}return[r.posix.join(t,"**")]};t.exports=(async(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const n=await Promise.all([].concat(t).map(async t=>{const n=await i.isDirectory(o(t,e.cwd));return n?c(t,e):t}));return[].concat.apply([],n)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const n=[].concat(t).map(t=>i.isDirectorySync(o(t,e.cwd))?c(t,e):t);return[].concat.apply([],n)})},188:function(t,e,n){try{var r=n(669);if(typeof r.inherits!=="function")throw"";t.exports=r.inherits}catch(e){t.exports=n(24)}},190:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(416);class Reader{constructor(t,e){this._root=t;this._settings=e;this._root=r.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}e.default=Reader},192:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(747);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},199:function(t){"use strict";t.exports=((t,e)=>{e=e||process.argv;const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1?true:r{return this._getEntry(n[r],t[r],e).then(t=>{if(t!==null&&e.entryFilter(t)){i.push(t)}if(r===n.length-1){i.end()}o()}).catch(o)});for(let t=0;tthis._makeEntry(t,e)).catch(t=>{if(n.errorFilter(t)){return null}throw t})}_getStat(t){return new Promise((e,n)=>{this._stat(t,this._fsStatSettings,(t,r)=>{return t===null?e(r):n(t)})})}}e.default=ReaderStream},209:function(t,e,n){"use strict";function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=_interopDefault(n(747));var i=_interopDefault(n(622));var s=_interopDefault(n(104));var o=_interopDefault(n(313));var a=_interopDefault(n(614));var c=_interopDefault(n(93));var l=n(483);var u=_interopDefault(n(211));var h=_interopDefault(n(129));const f="tmp";const p="degit.json";class DegitError extends Error{constructor(t,e){super(t);Object.assign(this,e)}}function tryRequire(t,e){try{if(e&&e.clearCache===true){delete require.cache[require.resolve(t)]}return require(t)}catch(t){return null}}function exec(t){return new Promise((e,n)=>{h.exec(t,(t,r,i)=>{if(t){n(t);return}e({stdout:r,stderr:i})})})}function mkdirp(t){const e=i.dirname(t);if(e===t)return;mkdirp(e);try{r.mkdirSync(t)}catch(t){if(t.code!=="EEXIST")throw t}}function fetch(t,e){return new Promise((n,i)=>{u.get(t,t=>{const s=t.statusCode;if(s>=400){i({code:s,message:t.statusMessage})}else if(s>=300){fetch(t.headers.location,e).then(n,i)}else{t.pipe(r.createWriteStream(e)).on("finish",()=>n()).on("error",i)}}).on("error",i)})}function stashFiles(t,e){const n=i.join(t,f);l.rimrafSync(n);mkdirp(n);r.readdirSync(e).forEach(t=>{const s=i.join(e,t);const o=i.join(n,t);const a=r.lstatSync(s).isDirectory();if(a){l.copydirSync(s).to(o);l.rimrafSync(s)}else{r.copyFileSync(s,o);r.unlinkSync(s)}})}function unstashFiles(t,e){const n=i.join(t,f);r.readdirSync(n).forEach(t=>{const s=i.join(n,t);const o=i.join(e,t);const a=r.lstatSync(s).isDirectory();if(a){l.copydirSync(s).to(o);l.rimrafSync(s)}else{if(t!=="degit.json"){r.copyFileSync(s,o)}r.unlinkSync(s)}});l.rimrafSync(n)}const d=i.join(s,".degit");function degit(t,e){return new Degit(t,e)}class Degit extends a{constructor(t,e={}){super();this.src=t;this.cache=e.cache;this.force=e.force;this.verbose=e.verbose;this.repo=parse(t);this._hasStashed=false;this.directiveActions={clone:async(t,e,n)=>{if(this._hasStashed===false){stashFiles(t,e);this._hasStashed=true}const r=Object.assign({force:true},{cache:n.cache,verbose:n.verbose});const i=degit(n.src,r);i.on("info",t=>{console.error(c.cyan(`> ${t.message.replace("options.","--")}`))});i.on("warn",t=>{console.error(c.magenta(`! ${t.message.replace("options.","--")}`))});await i.clone(e).catch(t=>{console.error(c.red(`! ${t.message}`));process.exit(1)})},remove:this.remove.bind(this)}}_getDirectives(t){const e=i.resolve(t,p);const n=tryRequire(e,{clearCache:true})||false;if(n){r.unlinkSync(e)}return n}async clone(t){this._checkDirIsEmpty(t);const e=this.repo;const n=i.join(d,e.site,e.user,e.name);const s=tryRequire(i.join(n,"map.json"))||{};const o=this.cache?this._getHashFromCache(e,s):await this._getHash(e,s);if(!o){throw new DegitError(`could not find commit hash for ${e.ref}`,{code:"MISSING_REF",ref:e.ref})}const a=`${n}/${o}.tar.gz`;const l=e.site==="gitlab"?`${e.url}/repository/archive.tar.gz?ref=${o}`:e.site==="bitbucket"?`${e.url}/get/${o}.tar.gz`:`${e.url}/archive/${o}.tar.gz`;try{if(!this.cache){try{r.statSync(a);this._verbose({code:"FILE_EXISTS",message:`${a} already exists locally`})}catch(t){mkdirp(i.dirname(a));this._verbose({code:"DOWNLOADING",message:`downloading ${l} to ${a}`});await fetch(l,a)}}}catch(t){throw new DegitError(`could not download ${l}`,{code:"COULD_NOT_DOWNLOAD",url:l,original:t})}updateCache(n,e,o,s);this._verbose({code:"EXTRACTING",message:`extracting ${a} to ${t}`});mkdirp(t);await untar(a,t);this._info({code:"SUCCESS",message:`cloned ${c.bold(e.user+"/"+e.name)}#${c.bold(e.ref)}${t!=="."?` to ${t}`:""}`,repo:e,dest:t});const u=this._getDirectives(t);if(u){for(const e of u){await this.directiveActions[e.action](n,t,e)}if(this._hasStashed===true){unstashFiles(n,t)}}}remove(t,e,n){let s=n.files;if(!Array.isArray(s)){s=[s]}const o=s.map(t=>{const n=i.resolve(e,t);if(r.existsSync(n)){const e=r.lstatSync(n).isDirectory();if(e){l.rimrafSync(n);return t+"/"}else{r.unlinkSync(n);return t}}else{this._warn({code:"FILE_DOES_NOT_EXIST",message:`action wants to remove ${c.bold(t)} but it does not exist`});return null}}).filter(t=>t);if(o.length>0){this._info({code:"REMOVED",message:`removed: ${c.bold(o.map(t=>c.bold(t)).join(", "))}`})}}_checkDirIsEmpty(t){try{const e=r.readdirSync(t);if(e.length>0){if(this.force){this._info({code:"DEST_NOT_EMPTY",message:`destination directory is not empty. Using options.force, continuing`})}else{throw new DegitError(`destination directory is not empty, aborting. Use options.force to override`,{code:"DEST_NOT_EMPTY"})}}else{this._verbose({code:"DEST_IS_EMPTY",message:`destination directory is empty`})}}catch(t){if(t.code!=="ENOENT")throw t}}_info(t){this.emit("info",t)}_warn(t){this.emit("warn",t)}_verbose(t){if(this.verbose)this._info(t)}async _getHash(t,e){try{const n=await fetchRefs(t);return this._selectRef(n,t.ref)}catch(n){this._warn(n);this._verbose(n.original);return this._getHashFromCache(t,e)}}_getHashFromCache(t,e){if(t.ref in e){const n=e[t.ref];this._info({code:"USING_CACHE",message:`using cached commit hash ${n}`});return n}}_selectRef(t,e){for(const n of t){if(n.name===e){this._verbose({code:"FOUND_MATCH",message:`found matching commit hash: ${n.hash}`});return n.hash}}if(e.length<8)return null;for(const n of t){if(n.hash.startsWith(e))return n.hash}}}const y=new Set(["github","gitlab","bitbucket","git.sr.ht"]);function parse(t){const e=/^(?:https:\/\/([^/]+)\/|git@([^/]+)[:/]|([^/]+)[:/])?([^/\s]+)\/([^/\s#]+)(?:#(.+))?/.exec(t);if(!e){throw new DegitError(`could not parse ${t}`,{code:"BAD_SRC"})}const n=(e[1]||e[2]||e[3]||"github").replace(/\.(com|org)$/,"");if(!y.has(n)){throw new DegitError(`degit supports GitHub, GitLab, Sourcehut and BitBucket`,{code:"UNSUPPORTED_HOST"})}const r=e[4];const i=e[5].replace(/\.git$/,"");const s=e[6]||"master";const o=`https://${n}.${n==="bitbucket"?"org":n==="git.sr.ht"?"":"com"}/${r}/${i}`;return{site:n,user:r,name:i,ref:s,url:o}}async function untar(t,e){return o.extract({file:t,strip:1,C:e})}async function fetchRefs(t){try{const{stdout:e}=await exec(`git ls-remote ${t.url}`);return e.split("\n").filter(Boolean).map(t=>{const[e,n]=t.split("\t");if(n==="HEAD"){return{type:"HEAD",hash:e}}const r=/refs\/(\w+)\/(.+)/.exec(n);if(!r)throw new DegitError(`could not parse ${n}`,{code:"BAD_REF"});return{type:r[1]==="heads"?"branch":r[1]==="refs"?"ref":r[1],name:r[2],hash:e}})}catch(e){throw new DegitError(`could not fetch remote ${t.url}`,{code:"COULD_NOT_FETCH",url:t.url,original:e})}}function updateCache(t,e,n,s){if(s[e.ref]===n)return;const o=s[e.ref];if(o){let e=false;for(const t in s){if(s[t]===n){e=true;break}}if(!e){try{r.unlinkSync(i.join(t,`${o}.tar.gz`))}catch(t){}}}s[e.ref]=n;r.writeFileSync(i.join(t,"map.json"),JSON.stringify(s,null," "))}t.exports=degit},210:function(t,e,n){"use strict";const r=n(622);const i=process.platform==="win32";const{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=n(851);e.isObject=(t=>t!==null&&typeof t==="object"&&!Array.isArray(t));e.hasRegexChars=(t=>a.test(t));e.isRegexChar=(t=>t.length===1&&e.hasRegexChars(t));e.escapeRegex=(t=>t.replace(c,"\\$1"));e.toPosixSlashes=(t=>t.replace(s,"/"));e.removeBackslashes=(t=>{return t.replace(o,t=>{return t==="\\"?"":t})});e.supportsLookbehinds=(()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false});e.isWindows=(t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return i===true||r.sep==="\\"});e.escapeLast=((t,n,r)=>{const i=t.lastIndexOf(n,r);if(i===-1)return t;if(t[i-1]==="\\")return e.escapeLast(t,n,i-1);return t.slice(0,i)+"\\"+t.slice(i)});e.removePrefix=((t,e={})=>{let n=t;if(n.startsWith("./")){n=n.slice(2);e.prefix="./"}return n});e.wrapOutput=((t,e={},n={})=>{const r=n.contains?"":"^";const i=n.contains?"":"$";let s=`${r}(?:${t})${i}`;if(e.negated===true){s=`(?:^(?!${s}).*$)`}return s})},211:function(t){t.exports=require("https")},220:function(t,e,n){"use strict";const r=n(747);const i=n(622);const s=r.lchown?"lchown":"chown";const o=r.lchownSync?"lchownSync":"chownSync";const a=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=a?(t,e,n,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else r.chown(t,e,n,i)}:(t,e,n,r)=>r;const l=a?(t,e,n)=>{try{return r[o](t,e,n)}catch(i){if(i.code!=="EISDIR")throw i;r.chownSync(t,e,n)}}:(t,e,n)=>r[o](t,e,n);const u=process.version;let h=(t,e,n)=>r.readdir(t,e,n);let f=(t,e)=>r.readdirSync(t,e);if(/^v4\./.test(u))h=((t,e,n)=>r.readdir(t,n));const p=(t,e,n,o,a)=>{if(typeof e==="string")return r.lstat(i.resolve(t,e),(r,i)=>{if(r)return a(r);i.name=e;p(t,i,n,o,a)});if(e.isDirectory()){d(i.resolve(t,e.name),n,o,l=>{if(l)return a(l);const u=i.resolve(t,e.name);r[s](u,n,o,c(u,n,o,a))})}else{const l=i.resolve(t,e.name);r[s](l,n,o,c(l,n,o,a))}};const d=(t,e,n,i)=>{h(t,{withFileTypes:true},(o,a)=>{if(o&&o.code!=="ENOTDIR"&&o.code!=="ENOTSUP")return i(o);if(o||!a.length)return r[s](t,e,n,c(t,e,n,i));let l=a.length;let u=null;const h=o=>{if(u)return;if(o)return i(u=o);if(--l===0)return r[s](t,e,n,c(t,e,n,i))};a.forEach(r=>p(t,r,e,n,h))})};const y=(t,e,n,s)=>{if(typeof e==="string"){const n=r.lstatSync(i.resolve(t,e));n.name=e;e=n}if(e.isDirectory())m(i.resolve(t,e.name),n,s);l(i.resolve(t,e.name),n,s)};const m=(t,e,n)=>{let r;try{r=f(t,{withFileTypes:true})}catch(r){if(r&&r.code==="ENOTDIR"&&r.code!=="ENOTSUP")return l(t,e,n);throw r}if(r.length)r.forEach(r=>y(t,r,e,n));return l(t,e,n)};t.exports=d;d.sync=m},226:function(t,e,n){"use strict";const r=n(210);const{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:h,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:d,CHAR_QUESTION_MARK:y,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=n(851);const b=t=>{return t===u||t===o};t.exports=((t,e)=>{const n=e||{};const _=t.length-1;let S=-1;let w=0;let E=0;let R=false;let O=false;let k=false;let x=0;let A;let C;let P=false;const M=()=>S>=_;const T=()=>{A=C;return t.charCodeAt(++S)};while(S<_){C=T();let e;if(C===o){O=true;e=T();if(e===h){P=true}continue}if(P===true||C===h){x++;while(!M()&&(e=T())){if(e===o){O=true;e=T();continue}if(e===h){x++;continue}if(!P&&e===c&&(e=T())===c){R=true;break}if(!P&&e===a){R=true;break}if(e===m){x--;if(x===0){P=false;break}}}}if(C===u){if(A===c&&S===w+1){w+=2;continue}E=S+1;continue}if(C===i){R=true;break}if(C===i||C===y){R=true;break}if(C===p){while(!M()&&(e=T())){if(e===o){O=true;e=T();continue}if(e===v){R=true;break}}}const r=C===d||C===s||C===l;if(r&&t.charCodeAt(S+1)===f){R=true;break}if(!n.nonegate&&C===l&&S===w){k=true;w++;continue}if(n.noparen!==true&&C===f){while(!M()&&(C=T())){if(C===o){O=true;C=T();continue}if(C===g){R=true;break}}}if(R){break}}if(n.noext===true){R=false}let L="";const D=t;let I=t;let $="";if(w>0){L=t.slice(0,w);t=t.slice(w);E-=w}if(I&&R===true&&E>0){I=t.slice(0,E);$=t.slice(E)}else if(R===true){I="";$=t}else{I=t}if(I&&I!==""&&I!=="/"&&I!==t){if(b(I.charCodeAt(I.length-1))){I=I.slice(0,-1)}}if(n.unescape===true){if($)$=r.removeBackslashes($);if(I&&O===true){I=r.removeBackslashes(I)}}return{prefix:L,input:D,base:I,glob:$,negated:k,isGlob:R}})},232:function(t,e,n){"use strict";const r=n(896);class EndError extends Error{constructor(t){super();this.value=t}}const i=async(t,e)=>e(await t);const s=async t=>{const e=await Promise.all(t);if(e[1]===true){throw new EndError(e[0])}return false};const o=async(t,e,n)=>{n={concurrency:Infinity,preserveOrder:true,...n};const o=r(n.concurrency);const a=[...t].map(t=>[t,o(i,t,e)]);const c=r(n.preserveOrder?1:Infinity);try{await Promise.all(a.map(t=>c(s,t)))}catch(t){if(t instanceof EndError){return t.value}throw t}};t.exports=o;t.exports.default=o},240:function(t,e,n){var r=n(350);function buildGraph(){var t={};var e=Object.keys(r);for(var n=e.length,i=0;i{if(!a().existsSync("./gridsome.config.js")){console.log(i().red("Not in root of a Gridsome project!"));process.exit(126)}};var u=n(591);var h=n.n(u);var f=async({"--html":t=false,"--vue":e=false}={})=>{l();if(!a().existsSync("./src")){Object(c.log)(i().blue("Creating src directory"));a().mkdirSync("./src")}if(!(t||e)){console.log(i().yellow("Please pass --html and/or --vue."));process.exit(126)}const n=await h()(__dirname);if(t){if(a().existsSync("./src/index.html")){Object(c.log)(i().red("index.html already exists!"))}else{a().copyFileSync(`${n}/templates/index.html`,"./src/index.html");Object(c.log)(i().green("index.html created successfully."))}}if(e){if(a().existsSync("./src/App.vue")){Object(c.log)(i().red("App.vue already exists!"))}else{a().copyFileSync(`${n}/templates/App.vue`,"./src/App.vue");Object(c.log)(i().green("App.vue created successfully."))}}};var p=n(671);var d=n.n(p);var y=async({"--name":t=null,"--component":e=false,"--template":n=false,"--page":r=false,"--layout":s=false}={})=>{l();if(!(e||r||n||s)){console.log(i().bold.red("Please provide one of the filetype options."));process.exit(126)}if(!t){console.log(i().bold.red("--name option must be provided."));process.exit(126)}const o={component:e,template:n,page:r,layout:s};const u=await h()(__dirname);for(let[e,n]of Object.entries(o)){if(n){let n=d()(t);if(a().existsSync(`./src/${e}s/${n}.vue`)){Object(c.log)(i().red(`${n}.vue already exists!`));process.exit(126)}else{a().copyFileSync(`${u}/templates/${e}.vue`,`./src/${e}s/${n}.vue`);Object(c.log)(i().green(`src/${e}s/${n}.vue created successfully.`))}}}};var m=n(112);var g=n.n(m);var v=async()=>{l();const t=await g()(["src/{pages,components,layouts,templates}/README.md","src/pages/{Index,About}.vue","src/layouts/Default.vue","!./README.md"]);if(t.length>0){console.log(i().green("Deleted files:\n",t.join("\n")))}else{console.log(i().yellow("No files to delete."))}y({"--layout":true,"--name":"Default"});y({"--page":true,"--name":"Index"})};var b=n(209);var _=n.n(b);var S=({"--repo":t="brandonpittman/gridsome-starter-default","--dest":e="gridsome-starter-default"}={})=>{let n=_()(t,{cache:false,force:true,verbose:true});if(!e){e=t.split("/")[1]}n.clone(e).then(()=>{console.log(i().bold.green(`\nCloned ${t} to ${e}.\n`));console.log(i().underline("Run the following command:\n"));console.log(`cd ${e} && npm install && gridsome develop`)})};n.d(e,"default",function(){return w});var w=function({args:t,help:e}){if(t["--version"]){Object(c.log)(s.version)}const n=["init","scaffold","override","fresh"];const r=t._[0];if(!r){Object(c.log)(e);return}switch(r){case"init":S(t);break;case"scaffold":y(t);break;case"override":f(t);break;case"fresh":v();break;default:Object(c.log)(i().bold.red(`\n${r} is not a recognized command.\n`));Object(c.log)(i().underline("Available commands:"));for(const t of n){Object(c.log)(`${t}`)}process.exit(126)}}},248:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(55);const s=n(677);const o=n(844);const a=n(10);class Provider{constructor(t){this._settings=t;this.errorFilter=new o.default(this._settings);this.entryFilter=new s.default(this._settings,this._getMicromatchOptions());this.deepFilter=new i.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}e.default=Provider},258:function(t,e,n){"use strict";const r=n(622);const i=n(226);const s=n(683);const o=n(210);const a=n(851);const c=(t,e,n=false)=>{if(Array.isArray(t)){const r=t.map(t=>c(t,e,n));return t=>{for(const e of r){const n=e(t);if(n)return n}return false}}if(typeof t!=="string"||t===""){throw new TypeError("Expected pattern to be a non-empty string")}const r=e||{};const i=o.isWindows(e);const s=c.makeRe(t,e,false,true);const a=s.state;delete s.state;let l=()=>false;if(r.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};l=c(r.ignore,t,n)}const u=(n,o=false)=>{const{isMatch:u,match:h,output:f}=c.test(n,s,e,{glob:t,posix:i});const p={glob:t,state:a,regex:s,posix:i,input:n,output:f,match:h,isMatch:u};if(typeof r.onResult==="function"){r.onResult(p)}if(u===false){p.isMatch=false;return o?p:false}if(l(n)){if(typeof r.onIgnore==="function"){r.onIgnore(p)}p.isMatch=false;return o?p:false}if(typeof r.onMatch==="function"){r.onMatch(p)}return o?p:true};if(n){u.state=a}return u};c.test=((t,e,n,{glob:r,posix:i}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const s=n||{};const a=s.format||(i?o.toPosixSlashes:null);let l=t===r;let u=l&&a?a(t):t;if(l===false){u=a?a(t):t;l=u===r}if(l===false||s.capture===true){if(s.matchBase===true||s.basename===true){l=c.matchBase(t,e,n,i)}else{l=e.exec(u)}}return{isMatch:!!l,match:l,output:u}});c.matchBase=((t,e,n,i=o.isWindows(n))=>{const s=e instanceof RegExp?e:c.makeRe(e,n);return s.test(r.basename(t))});c.isMatch=((t,e,n)=>c(e,n)(t));c.parse=((t,e)=>s(t,e));c.scan=((t,e)=>i(t,e));c.makeRe=((t,e,n=false,r=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}const i=e||{};const o=i.contains?"":"^";const a=i.contains?"":"$";let l={negated:false,fastpaths:true};let u="";let h;if(t.startsWith("./")){t=t.slice(2);u=l.prefix="./"}if(i.fastpaths!==false&&(t[0]==="."||t[0]==="*")){h=s.fastpaths(t,e)}if(h===void 0){l=c.parse(t,e);l.prefix=u+(l.prefix||"");h=l.output}if(n===true){return h}let f=`${o}(?:${h})${a}`;if(l&&l.negated===true){f=`^(?!${f}).*$`}const p=c.toRegex(f,e);if(r===true){p.state=l}return p});c.toRegex=((t,e)=>{try{const n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}});c.constants=a;t.exports=c},266:function(t,e,n){"use strict";const r=n(815);const{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:h,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:y,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=n(605);const b=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let n=e||{};let b=typeof n.maxLength==="number"?Math.min(i,n.maxLength):i;if(t.length>b){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`)}let _={type:"root",input:t,nodes:[]};let S=[_];let w=_;let E=_;let R=0;let O=t.length;let k=0;let x=0;let A;let C={};const P=()=>t[k++];const M=t=>{if(t.type==="text"&&E.type==="dot"){E.type="text"}if(E&&E.type==="text"&&t.type==="text"){E.value+=t.value;return}w.nodes.push(t);t.parent=w;t.prev=E;E=t;return t};M({type:"bos"});while(k0){if(w.ranges>0){w.ranges=0;let t=w.nodes.shift();w.nodes=[t,{type:"text",value:r(w)}]}M({type:"comma",value:A});w.commas++;continue}if(A===c&&x>0&&w.commas===0){let t=w.nodes;if(x===0||t.length===0){M({type:"text",value:A});continue}if(E.type==="dot"){w.range=[];E.value+=A;E.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;E.type="text";continue}w.ranges++;w.args=[];continue}if(E.type==="range"){t.pop();let e=t[t.length-1];e.value+=E.value+A;E=e;w.ranges--;continue}M({type:"dot",value:A});continue}M({type:"text",value:A})}do{w=S.pop();if(w.type!=="root"){w.nodes.forEach(t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}});let t=S[S.length-1];let e=t.nodes.indexOf(w);t.nodes.splice(e,1,...w.nodes)}}while(S.length>0);M({type:"eos"});return _};t.exports=b},268:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(761);const i=n(248);class ProviderSync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=this.api(e,t,n);return r.map(n.transform)}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderSync},277:function(t,e,n){var r=n(842);t.exports=r(once);t.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(t){var e=function(){if(e.called)return e.value;e.called=true;return e.value=t.apply(this,arguments)};e.called=false;return e}function onceStrict(t){var e=function(){if(e.called)throw new Error(e.onceError);e.called=true;return e.value=t.apply(this,arguments)};var n=t.name||"Function wrapped with `once`";e.onceError=n+" shouldn't be called more than once";e.called=false;return e}},281:function(t,e,n){var r=n(619);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(t){}var a=process.chdir;process.chdir=function(t){s=null;a.call(process,t)};t.exports=patch;function patch(t){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(!t.lchmod){t.lchmod=function(t,e,n){if(n)process.nextTick(n)};t.lchmodSync=function(){}}if(!t.lchown){t.lchown=function(t,e,n,r){if(r)process.nextTick(r)};t.lchownSync=function(){}}if(o==="win32"){t.rename=function(e){return function(n,r,i){var s=Date.now();var o=0;e(n,r,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){t.stat(r,function(t,s){if(t&&t.code==="ENOENT")e(n,r,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}}(t.rename)}t.read=function(e){function read(n,r,i,s,o,a){var c;if(a&&typeof a==="function"){var l=0;c=function(u,h,f){if(u&&u.code==="EAGAIN"&&l<10){l++;return e.call(t,n,r,i,s,o,c)}a.apply(this,arguments)}}return e.call(t,n,r,i,s,o,c)}read.__proto__=e;return read}(t.read);t.readSync=function(e){return function(n,r,i,s,o){var a=0;while(true){try{return e.call(t,n,r,i,s,o)}catch(t){if(t.code==="EAGAIN"&&a<10){a++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){if(e){if(i)i(e);return}t.fchmod(r,n,function(e){t.close(r,function(t){if(i)i(e||t)})})})};t.lchmodSync=function(e,n){var i=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n);var s=true;var o;try{o=t.fchmodSync(i,n);s=false}finally{if(s){try{t.closeSync(i)}catch(t){}}else{t.closeSync(i)}}return o}}function patchLutimes(t){if(r.hasOwnProperty("O_SYMLINK")){t.lutimes=function(e,n,i,s){t.open(e,r.O_SYMLINK,function(e,r){if(e){if(s)s(e);return}t.futimes(r,n,i,function(e){t.close(r,function(t){if(s)s(e||t)})})})};t.lutimesSync=function(e,n,i){var s=t.openSync(e,r.O_SYMLINK);var o;var a=true;try{o=t.futimesSync(s,n,i);a=false}finally{if(a){try{t.closeSync(s)}catch(t){}}else{t.closeSync(s)}}return o}}else{t.lutimes=function(t,e,n,r){if(r)process.nextTick(r)};t.lutimesSync=function(){}}}function chmodFix(e){if(!e)return e;return function(n,r,i){return e.call(t,n,r,function(t){if(chownErOk(t))t=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(e){if(!e)return e;return function(n,r){try{return e.call(t,n,r)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(e){if(!e)return e;return function(n,r,i,s){return e.call(t,n,r,i,function(t){if(chownErOk(t))t=null;if(s)s.apply(this,arguments)})}}function chownFixSync(e){if(!e)return e;return function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!chownErOk(t))throw t}}}function statFix(e){if(!e)return e;return function(n,r,i){if(typeof r==="function"){i=r;r=null}function callback(t,e){if(e){if(e.uid<0)e.uid+=4294967296;if(e.gid<0)e.gid+=4294967296}if(i)i.apply(this,arguments)}return r?e.call(t,n,r,callback):e.call(t,n,callback)}}function statFixSync(e){if(!e)return e;return function(n,r){var i=r?e.call(t,n,r):e.call(t,n);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var e=!process.getuid||process.getuid()!==0;if(e){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},286:function(t,e,n){"use strict";const r=n(669);const i=n(786);const s=n(830);const o=n(210);const a=t=>typeof t==="string"&&(t===""||t==="./");const c=(t,e,n)=>{e=[].concat(e);t=[].concat(t);let r=new Set;let i=new Set;let o=new Set;let a=0;let c=t=>{o.add(t.output);if(n&&n.onResult){n.onResult(t)}};for(let o=0;o!r.has(t));if(n&&u.length===0){if(n.failglob===true){throw new Error(`No matches found for "${e.join(", ")}"`)}if(n.nonull===true||n.nullglob===true){return n.unescape?e.map(t=>t.replace(/\\/g,"")):e}}return u};c.match=c;c.matcher=((t,e)=>s(t,e));c.isMatch=((t,e,n)=>s(e,n)(t));c.any=c.isMatch;c.not=((t,e,n={})=>{e=[].concat(e).map(String);let r=new Set;let i=[];let s=t=>{if(n.onResult)n.onResult(t);i.push(t.output)};let o=c(t,e,{...n,onResult:s});for(let t of i){if(!o.includes(t)){r.add(t)}}return[...r]});c.contains=((t,e,n)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${r.inspect(t)}"`)}if(Array.isArray(e)){return e.some(e=>c.contains(t,e,n))}if(typeof e==="string"){if(a(t)||a(e)){return false}if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e)){return true}}return c.isMatch(t,e,{...n,contains:true})});c.matchKeys=((t,e,n)=>{if(!o.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let r=c(Object.keys(t),e,n);let i={};for(let e of r)i[e]=t[e];return i});c.some=((t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=s(String(t),n);if(r.some(t=>e(t))){return true}}return false});c.every=((t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=s(String(t),n);if(!r.every(t=>e(t))){return false}}return true});c.all=((t,e,n)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${r.inspect(t)}"`)}return[].concat(e).every(e=>s(e,n)(t))});c.capture=((t,e,n)=>{let r=o.isWindows(n);let i=s.makeRe(String(t),{...n,capture:true});let a=i.exec(r?o.toPosixSlashes(e):e);if(a){return a.slice(1).map(t=>t===void 0?"":t)}});c.makeRe=((...t)=>s.makeRe(...t));c.scan=((...t)=>s.scan(...t));c.parse=((t,e)=>{let n=[];for(let r of[].concat(t||[])){for(let t of i(String(r),e)){n.push(s.parse(t,e))}}return n});c.braces=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(e&&e.nobrace===true||!/\{.*\}/.test(t)){return[t]}return i(t,e)});c.braceExpand=((t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return c.braces(t,{...e,expand:true})});t.exports=c},292:function(t,e,n){"use strict";const r=n(87);const i=/\s+at.*(?:\(|\s)(.*)\)?/;const s=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;const o=typeof r.homedir==="undefined"?"":r.homedir();t.exports=((t,e)=>{e=Object.assign({pretty:false},e);return t.replace(/\\/g,"/").split("\n").filter(t=>{const e=t.match(i);if(e===null||!e[1]){return true}const n=e[1];if(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")){return false}return!s.test(n)}).filter(t=>t.trim()!=="").map(t=>{if(e.pretty){return t.replace(i,(t,e)=>t.replace(e,e.replace(o,"~")))}return t}).join("\n")})},293:function(t){t.exports=require("buffer")},298:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},304:function(t){t.exports=require("string_decoder")},305:function(t){"use strict";t.exports=balanced;function balanced(t,e,n){if(t instanceof RegExp)t=maybeMatch(t,n);if(e instanceof RegExp)e=maybeMatch(e,n);var r=range(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function maybeMatch(t,e){var n=e.match(t);return n?n[0]:null}balanced.range=range;function range(t,e,n){var r,i,s,o,a;var c=n.indexOf(t);var l=n.indexOf(e,c+1);var u=c;if(c>=0&&l>0){r=[];s=n.length;while(u>=0&&!a){if(u==c){r.push(u);c=n.indexOf(t,u+1)}else if(r.length==1){a=[r.pop(),l]}else{i=r.pop();if(i=0?c:l}if(r.length){a=[s,o]}}return a}},312:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function flatten(t){return t.reduce((t,e)=>[].concat(t,e),[])}e.flatten=flatten},313:function(t,e,n){"use strict";e.c=e.create=n(861);e.r=e.replace=n(412);e.t=e.list=n(616);e.u=e.update=n(325);e.x=e.extract=n(889);e.Pack=n(433);e.Unpack=n(774);e.Parse=n(762);e.ReadEntry=n(712);e.WriteEntry=n(419);e.Header=n(728);e.Pax=n(125);e.types=n(409)},314:function(t,e,n){t.exports=minimatch;minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(622)}catch(t){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=n(580);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce(function(t,e){t[e]=true;return t},{})}var f=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(n,r,i){return minimatch(n,t,e)}}function ext(t,e){t=t||{};e=e||{};var n={};Object.keys(e).forEach(function(t){n[t]=e[t]});Object.keys(t).forEach(function(e){n[e]=t[e]});return n}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var n=function minimatch(n,r,i){return e.minimatch(n,r,ext(t,i))};n.Minimatch=function Minimatch(n,r){return new e.Minimatch(n,ext(t,r))};return n};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,n){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!n)n={};if(!n.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,n).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(r.sep!=="/"){t=t.split(r.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,n);n=this.globParts=n.map(function(t){return t.split(f)});this.debug(this.pattern,n);n=n.map(function(t,e,n){return t.map(this.parse,this)},this);this.debug(this.pattern,n);n=n.filter(function(t){return t.indexOf(false)===-1});this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var n=this.options;var r=0;if(n.nonegate)return;for(var i=0,s=t.length;i1024*64){throw new TypeError("pattern is too long")}var n=this.options;if(!n.noglobstar&&t==="**")return i;if(t==="")return"";var r="";var s=!!n.nocase;var l=false;var u=[];var f=[];var d;var y=false;var m=-1;var g=-1;var v=t.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var b=this;function clearStateChar(){if(d){switch(d){case"*":r+=c;s=true;break;case"?":r+=a;s=true;break;default:r+="\\"+d;break}b.debug("clearStateChar %j %j",d,r);d=false}}for(var _=0,S=t.length,w;_-1;C--){var P=f[C];var M=r.slice(0,P.reStart);var T=r.slice(P.reStart,P.reEnd-8);var L=r.slice(P.reEnd-8,P.reEnd);var D=r.slice(P.reEnd);L+=D;var I=M.split("(").length-1;var $=D;for(_=0;_=0;o--){s=t[o];if(s)break}for(o=0;o>> no match, partial?",t,h,e,f);if(h===a)return true}return false}var d;if(typeof l==="string"){if(r.nocase){d=u.toLowerCase()===l.toLowerCase()}else{d=u===l}this.debug("string match",l,u,d)}else{d=u.match(l);this.debug("pattern match",l,u,d)}if(!d)return false}if(s===a&&o===c){return true}else if(s===a){return n}else if(o===c){var y=s===a-1&&t[s]==="";return y}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},325:function(t,e,n){"use strict";const r=n(892);const i=n(412);const s=t.exports=((t,e,n)=>{const s=r(t);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);o(s);return i(s,e,n)});const o=t=>{const e=t.filter;if(!t.mtimeCache)t.mtimeCache=new Map;t.filter=e?(n,r)=>e(n,r)&&!(t.mtimeCache.get(n)>r.mtime):(e,n)=>!(t.mtimeCache.get(e)>n.mtime)}},328:function(t,e,n){"use strict";const r=n(821);const i=n(747);const s=n(622);const o=n(220);class SymlinkError extends Error{constructor(t,e){super("Cannot extract through symbolic link");this.path=e;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,e){super(e+": Cannot cd into '"+t+"'");this.path=t;this.code=e}get name(){return"CwdError"}}const a=t.exports=((t,e,n)=>{const a=e.umask;const l=e.mode|448;const u=(l&a)!==0;const h=e.uid;const f=e.gid;const p=typeof h==="number"&&typeof f==="number"&&(h!==e.processUid||f!==e.processGid);const d=e.preserve;const y=e.unlink;const m=e.cache;const g=e.cwd;const v=(e,r)=>{if(e)n(e);else{m.set(t,true);if(r&&p)o(r,h,f,t=>v(t));else if(u)i.chmod(t,l,n);else n()}};if(m&&m.get(t)===true)return v();if(t===g)return i.stat(t,(e,n)=>{if(e||!n.isDirectory())e=new CwdError(t,e&&e.code||"ENOTDIR");v(e)});if(d)return r(t,l,v);const b=s.relative(g,t);const _=b.split(/\/|\\/);c(g,_,l,m,y,g,null,v)});const c=(t,e,n,r,s,o,a,u)=>{if(!e.length)return u(null,a);const h=e.shift();const f=t+"/"+h;if(r.get(f))return c(f,e,n,r,s,o,a,u);i.mkdir(f,n,l(f,e,n,r,s,o,a,u))};const l=(t,e,n,r,o,a,u,h)=>f=>{if(f){if(f.path&&s.dirname(f.path)===a&&(f.code==="ENOTDIR"||f.code==="ENOENT"))return h(new CwdError(a,f.code));i.lstat(t,(s,p)=>{if(s)h(s);else if(p.isDirectory())c(t,e,n,r,o,a,u,h);else if(o)i.unlink(t,s=>{if(s)return h(s);i.mkdir(t,n,l(t,e,n,r,o,a,u,h))});else if(p.isSymbolicLink())return h(new SymlinkError(t,t+"/"+e.join("/")));else h(f)})}else{u=u||t;c(t,e,n,r,o,a,u,h)}};const u=t.exports.sync=((t,e)=>{const n=e.umask;const a=e.mode|448;const c=(a&n)!==0;const l=e.uid;const u=e.gid;const h=typeof l==="number"&&typeof u==="number"&&(l!==e.processUid||u!==e.processGid);const f=e.preserve;const p=e.unlink;const d=e.cache;const y=e.cwd;const m=e=>{d.set(t,true);if(e&&h)o.sync(e,l,u);if(c)i.chmodSync(t,a)};if(d&&d.get(t)===true)return m();if(t===y){let e=false;let n="ENOTDIR";try{e=i.statSync(t).isDirectory()}catch(t){n=t.code}finally{if(!e)throw new CwdError(t,n)}m();return}if(f)return m(r.sync(t,a));const g=s.relative(y,t);const v=g.split(/\/|\\/);let b=null;for(let t=v.shift(),e=y;t&&(e+="/"+t);t=v.shift()){if(d.get(e))continue;try{i.mkdirSync(e,a);b=b||e;d.set(e,true)}catch(t){if(t.path&&s.dirname(t.path)===y&&(t.code==="ENOTDIR"||t.code==="ENOENT"))return new CwdError(y,t.code);const n=i.lstatSync(e);if(n.isDirectory()){d.set(e,true);continue}else if(p){i.unlinkSync(e);i.mkdirSync(e,a);b=b||e;d.set(e,true);continue}else if(n.isSymbolicLink())return new SymlinkError(e,e+"/"+v.join("/"))}}return m(b)})},330:function(t,e,n){var r=n(842);var i=Object.create(null);var s=n(277);t.exports=r(inflight);function inflight(t,e){if(i[t]){i[t].push(e);return null}else{i[t]=[e];return makeres(t)}}function makeres(t){return s(function RES(){var e=i[t];var n=e.length;var r=slice(arguments);try{for(var s=0;sn){e.splice(0,n);process.nextTick(function(){RES.apply(null,r)})}else{delete i[t]}}})}function slice(t){var e=t.length;var n=[];for(var r=0;r1){i-=1}}return[i*360,s*100,l*100]};s.rgb.hwb=function(t){const e=t[0];const n=t[1];let r=t[2];const i=s.rgb.hsl(t)[0];const o=1/255*Math.min(e,Math.min(n,r));r=1-1/255*Math.max(e,Math.max(n,r));return[i,o*100,r*100]};s.rgb.cmyk=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const i=Math.min(1-e,1-n,1-r);const s=(1-e-i)/(1-i)||0;const o=(1-n-i)/(1-i)||0;const a=(1-r-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function comparativeDistance(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}s.rgb.keyword=function(t){const e=i[t];if(e){return e}let n=Infinity;let s;for(const e of Object.keys(r)){const i=r[e];const o=comparativeDistance(t,i);if(o.04045?((e+.055)/1.055)**2.4:e/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124+n*.3576+r*.1805;const s=e*.2126+n*.7152+r*.0722;const o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};s.rgb.lab=function(t){const e=s.rgb.xyz(t);let n=e[0];let r=e[1];let i=e[2];n/=95.047;r/=100;i/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16;const a=500*(n-r);const c=200*(r-i);return[o,a,c]};s.hsl.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;let i;let s;let o;if(n===0){o=r*255;return[o,o,o]}if(r<.5){i=r*(1+n)}else{i=r+n-r*n}const a=2*r-i;const c=[0,0,0];for(let t=0;t<3;t++){s=e+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){o=a+(i-a)*6*s}else if(2*s<1){o=i}else if(3*s<2){o=a+(i-a)*(2/3-s)*6}else{o=a}c[t]=o*255}return c};s.hsl.hsv=function(t){const e=t[0];let n=t[1]/100;let r=t[2]/100;let i=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;const o=(r+n)/2;const a=r===0?2*i/(s+i):2*n/(r+n);return[e,a*100,o*100]};s.hsv.rgb=function(t){const e=t[0]/60;const n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6;const s=e-Math.floor(e);const o=255*r*(1-n);const a=255*r*(1-n*s);const c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};s.hsv.hsl=function(t){const e=t[0];const n=t[1]/100;const r=t[2]/100;const i=Math.max(r,.01);let s;let o;o=(2-n)*r;const a=(2-n)*i;s=n*i;s/=a<=1?a:2-a;s=s||0;o/=2;return[e,s*100,o*100]};s.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100;let r=t[2]/100;const i=n+r;let s;if(i>1){n/=i;r/=i}const o=Math.floor(6*e);const a=1-r;s=6*e-o;if((o&1)!==0){s=1-s}const c=n+s*(a-n);let l;let u;let h;switch(o){default:case 6:case 0:l=a;u=c;h=n;break;case 1:l=c;u=a;h=n;break;case 2:l=n;u=a;h=c;break;case 3:l=n;u=c;h=a;break;case 4:l=c;u=n;h=a;break;case 5:l=a;u=n;h=c;break}return[l*255,u*255,h*255]};s.cmyk.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;const i=t[3]/100;const s=1-Math.min(1,e*(1-i)+i);const o=1-Math.min(1,n*(1-i)+i);const a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};s.xyz.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;let i;let s;let o;i=e*3.2406+n*-1.5372+r*-.4986;s=e*-.9689+n*1.8758+r*.0415;o=e*.0557+n*-.204+r*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*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]};s.xyz.lab=function(t){let e=t[0];let n=t[1];let r=t[2];e/=95.047;n/=100;r/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16;const s=500*(e-n);const o=200*(n-r);return[i,s,o]};s.lab.xyz=function(t){const e=t[0];const n=t[1];const r=t[2];let i;let s;let o;s=(e+16)/116;i=n/500+s;o=s-r/200;const a=s**3;const c=i**3;const l=o**3;s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};s.lab.lch=function(t){const e=t[0];const n=t[1];const r=t[2];let i;const s=Math.atan2(r,n);i=s*360/2/Math.PI;if(i<0){i+=360}const o=Math.sqrt(n*n+r*r);return[e,o,i]};s.lch.lab=function(t){const e=t[0];const n=t[1];const r=t[2];const i=r/360*2*Math.PI;const s=n*Math.cos(i);const o=n*Math.sin(i);return[e,s,o]};s.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=e===null?s.rgb.hsv(t)[2]:e;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(o===2){a+=60}return a};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const e=t[0];const n=t[1];const r=t[2];if(e===n&&n===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}const i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};s.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7){if(t>50){e+=3.5}e=e/10.5*255;return[e,e,e]}const n=(~~(t>50)+1)*.5;const r=(e&1)*n*255;const i=(e>>1&1)*n*255;const s=(e>>2&1)*n*255;return[r,i,s]};s.ansi256.rgb=function(t){if(t>=232){const e=(t-232)*10+8;return[e,e,e]}t-=16;let e;const n=Math.floor(t/36)/5*255;const r=Math.floor((e=t%36)/6)/5*255;const i=e%6/5*255;return[n,r,i]};s.rgb.hex=function(t){const e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}let n=e[0];if(e[0].length===3){n=n.split("").map(t=>{return t+t}).join("")}const r=parseInt(n,16);const i=r>>16&255;const s=r>>8&255;const o=r&255;return[i,s,o]};s.rgb.hcg=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const i=Math.max(Math.max(e,n),r);const s=Math.min(Math.min(e,n),r);const o=i-s;let a;let c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===e){c=(n-r)/o%6}else if(i===n){c=2+(r-e)/o}else{c=4+(e-n)/o}c/=6;c%=1;return[c*360,o*100,a*100]};s.hsl.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=n<.5?2*e*n:2*e*(1-n);let i=0;if(r<1){i=(n-.5*r)/(1-r)}return[t[0],r*100,i*100]};s.hsv.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=e*n;let i=0;if(r<1){i=(n-r)/(1-r)}return[t[0],r*100,i*100]};s.hcg.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;if(n===0){return[r*255,r*255,r*255]}const i=[0,0,0];const s=e%1*6;const o=s%1;const a=1-o;let 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-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};s.hcg.hsv=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);let i=0;if(r>0){i=e/r}return[t[0],i*100,r*100]};s.hcg.hsl=function(t){const e=t[1]/100;const n=t[2]/100;const r=n*(1-e)+.5*e;let i=0;if(r>0&&r<.5){i=e/(2*r)}else if(r>=.5&&r<1){i=e/(2*(1-r))}return[t[0],i*100,r*100]};s.hcg.hwb=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};s.hwb.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=1-n;const i=r-e;let s=0;if(i<1){s=(r-i)/(1-i)}return[t[0],i*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255;const n=(e<<16)+(e<<8)+e;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},340:function(t,e){"use strict";const n=e.encode=((t,e)=>{if(!Number.isSafeInteger(t))throw Error("cannot encode number outside of javascript safe integer range");else if(t<0)i(t,e);else r(t,e);return e});const r=(t,e)=>{e[0]=128;for(var n=e.length;n>1;n--){e[n-1]=t&255;t=Math.floor(t/256)}};const i=(t,e)=>{e[0]=255;var n=false;t=t*-1;for(var r=e.length;r>1;r--){var i=t&255;t=Math.floor(t/256);if(n)e[r-1]=c(i);else if(i===0)e[r-1]=0;else{n=true;e[r-1]=l(i)}}};const s=e.parse=(t=>{var e=t[t.length-1];var n=t[0];var r;if(n===128)r=a(t.slice(1,t.length));else if(n===255)r=o(t);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r});const o=t=>{var e=t.length;var n=0;var r=false;for(var i=e-1;i>-1;i--){var s=t[i];var o;if(r)o=c(s);else if(s===0)o=s;else{r=true;o=l(s)}if(o!==0)n-=o*Math.pow(256,e-i-1)}return n};const a=t=>{var e=t.length;var n=0;for(var r=e-1;r>-1;r--){var i=t[r];if(i!==0)n+=i*Math.pow(256,e-r-1)}return n};const c=t=>(255^t)&255;const l=t=>(255^t)+1&255},350:function(t,e,n){var r=n(698);var i={};for(var s in r){if(r.hasOwnProperty(s)){i[r[s]]=s}}var o=t.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 l=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:l})}}o.rgb.hsl=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i=Math.min(e,n,r);var s=Math.max(e,n,r);var o=s-i;var a;var c;var l;if(s===i){a=0}else if(e===s){a=(n-r)/o}else if(n===s){a=2+(r-e)/o}else if(r===s){a=4+(e-n)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=(i+s)/2;if(s===i){c=0}else if(l<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,l*100]};o.rgb.hsv=function(t){var e;var n;var r;var i;var s;var o=t[0]/255;var a=t[1]/255;var c=t[2]/255;var l=Math.max(o,a,c);var u=l-Math.min(o,a,c);var h=function(t){return(l-t)/6/u+1/2};if(u===0){i=s=0}else{s=u/l;e=h(o);n=h(a);r=h(c);if(o===l){i=r-n}else if(a===l){i=1/3+e-r}else if(c===l){i=2/3+n-e}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,l*100]};o.rgb.hwb=function(t){var e=t[0];var n=t[1];var r=t[2];var i=o.rgb.hsl(t)[0];var s=1/255*Math.min(e,Math.min(n,r));r=1-1/255*Math.max(e,Math.max(n,r));return[i,s*100,r*100]};o.rgb.cmyk=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i;var s;var o;var a;a=Math.min(1-e,1-n,1-r);i=(1-e-a)/(1-a)||0;s=(1-n-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}o.rgb.keyword=function(t){var e=i[t];if(e){return e}var n=Infinity;var s;for(var o in r){if(r.hasOwnProperty(o)){var a=r[o];var c=comparativeDistance(t,a);if(c.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=e*.4124+n*.3576+r*.1805;var s=e*.2126+n*.7152+r*.0722;var o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(t){var e=o.rgb.xyz(t);var n=e[0];var r=e[1];var i=e[2];var s;var a;var c;n/=95.047;r/=100;i/=108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*r-16;a=500*(n-r);c=200*(r-i);return[s,a,c]};o.hsl.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;var i;var s;var o;var a;var c;if(n===0){c=r*255;return[c,c,c]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}i=2*r-s;a=[0,0,0];for(var l=0;l<3;l++){o=e+1/3*-(l-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[l]=c*255}return a};o.hsl.hsv=function(t){var e=t[0];var n=t[1]/100;var r=t[2]/100;var i=n;var s=Math.max(r,.01);var o;var a;r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;a=(r+n)/2;o=r===0?2*i/(s+i):2*n/(r+n);return[e,o*100,a*100]};o.hsv.rgb=function(t){var e=t[0]/60;var n=t[1]/100;var r=t[2]/100;var i=Math.floor(e)%6;var s=e-Math.floor(e);var o=255*r*(1-n);var a=255*r*(1-n*s);var c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};o.hsv.hsl=function(t){var e=t[0];var n=t[1]/100;var r=t[2]/100;var i=Math.max(r,.01);var s;var o;var a;a=(2-n)*r;s=(2-n)*i;o=n*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[e,o*100,a*100]};o.hwb.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;var i=n+r;var s;var o;var a;var c;if(i>1){n/=i;r/=i}s=Math.floor(6*e);o=1-r;a=6*e-s;if((s&1)!==0){a=1-a}c=n+a*(o-n);var l;var u;var h;switch(s){default:case 6:case 0:l=o;u=c;h=n;break;case 1:l=c;u=o;h=n;break;case 2:l=n;u=o;h=c;break;case 3:l=n;u=c;h=o;break;case 4:l=c;u=n;h=o;break;case 5:l=o;u=n;h=c;break}return[l*255,u*255,h*255]};o.cmyk.rgb=function(t){var e=t[0]/100;var n=t[1]/100;var r=t[2]/100;var i=t[3]/100;var s;var o;var a;s=1-Math.min(1,e*(1-i)+i);o=1-Math.min(1,n*(1-i)+i);a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(t){var e=t[0]/100;var n=t[1]/100;var r=t[2]/100;var i;var s;var o;i=e*3.2406+n*-1.5372+r*-.4986;s=e*-.9689+n*1.8758+r*.0415;o=e*.0557+n*-.204+r*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(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;e/=95.047;n/=100;r/=108.883;e=e>.008856?Math.pow(e,1/3):7.787*e+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=116*n-16;s=500*(e-n);o=200*(n-r);return[i,s,o]};o.lab.xyz=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;s=(e+16)/116;i=n/500+s;o=s-r/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var l=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;i=Math.atan2(r,n);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(n*n+r*r);return[e,o,s]};o.lch.lab=function(t){var e=t[0];var n=t[1];var r=t[2];var i;var s;var o;o=r/360*2*Math.PI;i=n*Math.cos(o);s=n*Math.sin(o);return[e,i,s]};o.rgb.ansi16=function(t){var e=t[0];var n=t[1];var r=t[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(t)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(t){return o.rgb.ansi16(o.hsv.rgb(t),t[2])};o.rgb.ansi256=function(t){var e=t[0];var n=t[1];var r=t[2];if(e===n&&n===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};o.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7){if(t>50){e+=3.5}e=e/10.5*255;return[e,e,e]}var n=(~~(t>50)+1)*.5;var r=(e&1)*n*255;var i=(e>>1&1)*n*255;var s=(e>>2&1)*n*255;return[r,i,s]};o.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n;var r=Math.floor(t/36)/5*255;var i=Math.floor((n=t%36)/6)/5*255;var s=n%6/5*255;return[r,i,s]};o.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);var n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}var n=e[0];if(e[0].length===3){n=n.split("").map(function(t){return t+t}).join("")}var r=parseInt(n,16);var i=r>>16&255;var s=r>>8&255;var o=r&255;return[i,s,o]};o.rgb.hcg=function(t){var e=t[0]/255;var n=t[1]/255;var r=t[2]/255;var i=Math.max(Math.max(e,n),r);var s=Math.min(Math.min(e,n),r);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===e){c=(n-r)/o%6}else if(i===n){c=2+(r-e)/o}else{c=4+(e-n)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=1;var i=0;if(n<.5){r=2*e*n}else{r=2*e*(1-n)}if(r<1){i=(n-.5*r)/(1-r)}return[t[0],r*100,i*100]};o.hsv.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=e*n;var i=0;if(r<1){i=(n-r)/(1-r)}return[t[0],r*100,i*100]};o.hcg.rgb=function(t){var e=t[0]/360;var n=t[1]/100;var r=t[2]/100;if(n===0){return[r*255,r*255,r*255]}var i=[0,0,0];var s=e%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-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};o.hcg.hsv=function(t){var e=t[1]/100;var n=t[2]/100;var r=e+n*(1-e);var i=0;if(r>0){i=e/r}return[t[0],i*100,r*100]};o.hcg.hsl=function(t){var e=t[1]/100;var n=t[2]/100;var r=n*(1-e)+.5*e;var i=0;if(r>0&&r<.5){i=e/(2*r)}else if(r>=.5&&r<1){i=e/(2*(1-r))}return[t[0],i*100,r*100]};o.hcg.hwb=function(t){var e=t[1]/100;var n=t[2]/100;var r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};o.hwb.hcg=function(t){var e=t[1]/100;var n=t[2]/100;var r=1-n;var i=r-e;var s=0;if(i<1){s=(r-i)/(1-i)}return[t[0],i*100,s*100]};o.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};o.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};o.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};o.gray.hsl=o.gray.hsv=function(t){return[0,0,t[0]]};o.gray.hwb=function(t){return[0,100,t[0]]};o.gray.cmyk=function(t){return[0,0,0,t[0]]};o.gray.lab=function(t){return[t[0],0,0]};o.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255;var n=(e<<16)+(e<<8)+e;var r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},357:function(t){t.exports=require("assert")},360:function(t){"use strict";var e=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(e,"\\$&")}},365:function(t,e,n){const r=n(331);function buildGraph(){const t={};const e=Object.keys(r);for(let n=e.length,r=0;r{return[...new Set([].concat(...t))]})},378:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);const s=n(622);const o=n(730);const a=n(708);const c=n(493);const l=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=r(i.readFile);const h=t=>e=>{if(e.startsWith("!")){return"!"+s.posix.join(t,e.slice(1))}return s.posix.join(t,e)};const f=(t,e)=>{const n=c(s.relative(e.cwd,s.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(t=>!t.startsWith("#")).map(h(n))};const p=t=>{return t.reduce((t,e)=>{t.add(f(e.content,{cwd:e.cwd,fileName:e.filePath}));return t},a())};const d=(t,e)=>{if(s.isAbsolute(e)){if(e.startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return s.join(t,e)};const y=(t,e)=>{return n=>t.ignores(c(s.relative(e,d(e,n))))};const m=async(t,e)=>{const n=s.join(e,t);const r=await u(n,"utf8");return{cwd:e,filePath:n,content:r}};const g=(t,e)=>{const n=s.join(e,t);const r=i.readFileSync(n,"utf8");return{cwd:e,filePath:n,content:r}};const v=({ignore:t=[],cwd:e=process.cwd()}={})=>{return{ignore:t,cwd:e}};t.exports=(async t=>{t=v(t);const e=await o("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=await Promise.all(e.map(e=>m(e,t.cwd)));const r=p(n);return y(r,t.cwd)});t.exports.sync=(t=>{t=v(t);const e=o.sync("**/.gitignore",{ignore:l.concat(t.ignore),cwd:t.cwd});const n=e.map(e=>g(e,t.cwd));const r=p(n);return y(r,t.cwd)})},385:function(t,e){"use strict";e.isInteger=(t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false});e.find=((t,e)=>t.nodes.find(t=>t.type===e));e.exceedsLimit=((t,n,r=1,i)=>{if(i===false)return false;if(!e.isInteger(t)||!e.isInteger(n))return false;return(Number(n)-Number(t))/Number(r)>=i});e.escapeNode=((t,e=0,n)=>{let r=t.nodes[e];if(!r)return;if(n&&r.type===n||r.type==="open"||r.type==="close"){if(r.escaped!==true){r.value="\\"+r.value;r.escaped=true}}});e.encloseBrace=(t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false});e.isInvalidBrace=(t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false});e.isOpenOrClose=(t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true});e.reduce=(t=>t.reduce((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t},[]));e.flatten=((...t)=>{const e=[];const n=t=>{for(let r=0;r{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{if(t!==null){this._handleError(t)}})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(n!==null){return e(n,undefined)}for(const e of r){this._handleEntry(e,t.base)}e(null,undefined)})}_handleError(t){if(!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const n=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=AsyncReader},397:function(t){"use strict";t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},406:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(675);const i=n(416);const s=n(190);class SyncReader extends s.default{constructor(){super(...arguments);this._scandir=r.scandirSync;this._storage=new Set;this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const n=this._scandir(t,this._settings.fsScandirSettings);for(const t of n){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!i.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const n=t.path;if(e!==undefined){t.path=i.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(n,t.path)}}_pushToStorage(t){this._storage.add(t)}}e.default=SyncReader},409:function(t,e){"use strict";e.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"]]);e.code=new Map(Array.from(e.name).map(t=>[t[1],t[0]]))},412:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(762);const o=n(747);const a=n(862);const c=n(616);const l=n(622);const u=n(728);const h=t.exports=((t,e,n)=>{const i=r(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);return i.sync?f(i,e):d(i,e,n)});const f=(t,e)=>{const n=new i.Sync(t);let r=true;let s;let a;try{try{s=o.openSync(t.file,"r+")}catch(e){if(e.code==="ENOENT")s=o.openSync(t.file,"w+");else throw e}const i=o.fstatSync(s);const c=Buffer.alloc(512);t:for(a=0;ai.size)break;a+=n;if(t.mtimeCache)t.mtimeCache.set(e.path,e.mtime)}r=false;p(t,n,a,s,e)}finally{if(r)try{o.closeSync(s)}catch(t){}}};const p=(t,e,n,r,i)=>{const s=new a.WriteStreamSync(t.file,{fd:r,start:n});e.pipe(s);y(e,i)};const d=(t,e,n)=>{e=Array.from(e);const r=new i(t);const s=(e,n,r)=>{const i=(t,n)=>{if(t)o.close(e,e=>r(t));else r(null,n)};let s=0;if(n===0)return i(null,0);let a=0;const c=Buffer.alloc(512);const l=(r,h)=>{if(r)return i(r);a+=h;if(a<512&&h)return o.read(e,c,a,c.length-a,s+a,l);if(s===0&&c[0]===31&&c[1]===139)return i(new Error("cannot append to compressed archives"));if(a<512)return i(null,s);const f=new u(c);if(!f.cksumValid)return i(null,s);const p=512*Math.ceil(f.size/512);if(s+p+512>n)return i(null,s);s+=p+512;if(s>=n)return i(null,s);if(t.mtimeCache)t.mtimeCache.set(f.path,f.mtime);a=0;o.read(e,c,0,512,s,l)};o.read(e,c,0,512,s,l)};const c=new Promise((n,i)=>{r.on("error",i);let c="r+";const l=(u,h)=>{if(u&&u.code==="ENOENT"&&c==="r+"){c="w+";return o.open(t.file,c,l)}if(u)return i(u);o.fstat(h,(o,c)=>{if(o)return i(o);s(h,c.size,(s,o)=>{if(s)return i(s);const c=new a.WriteStream(t.file,{fd:h,start:o});r.pipe(c);c.on("error",i);c.on("close",n);m(r,e)})})};o.open(t.file,c,l)});return n?c.then(n,n):c};const y=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")c({file:l.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const m=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return c({file:l.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>m(t,e));else t.add(n)}t.end()}},413:function(t){t.exports=require("stream")},416:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[\\/]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,n){if(t===""){return e}return t+n+e}e.joinPathSegments=joinPathSegments},417:function(t){t.exports=require("crypto")},419:function(t,e,n){"use strict";const r=n(563);const i=n(125);const s=n(728);const o=n(712);const a=n(747);const c=n(622);const l=n(409);const u=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const p=Symbol("directory");const d=Symbol("symlink");const y=Symbol("hardlink");const m=Symbol("header");const g=Symbol("read");const v=Symbol("lstat");const b=Symbol("onlstat");const _=Symbol("onread");const S=Symbol("onreadlink");const w=Symbol("openfile");const E=Symbol("onopenfile");const R=Symbol("close");const O=Symbol("mode");const k=n(477);const x=n(3);const A=n(660);const C=k(class WriteEntry extends r{constructor(t,e){e=e||{};super(e);if(typeof t!=="string")throw new TypeError("path is required");this.path=t;this.portable=!!e.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=e.maxReadSize||u;this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.preservePaths=!!e.preservePaths;this.cwd=e.cwd||process.cwd();this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(!this.preservePaths&&c.win32.isAbsolute(t)){const e=c.win32.parse(t);this.path=t.substr(e.root.length);n=e.root}this.win32=!!e.win32||process.platform==="win32";if(this.win32){this.path=x.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=e.absolute||c.resolve(this.cwd,t);if(this.path==="")this.path="./";if(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.statCache.has(this.absolute))this[b](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[b](e)})}[b](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile())t.size=0;this.type=M(t);this.emit("stat",t);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[d]();default:return this.end()}}[O](t){return A(t,this.type==="Directory",this.portable)}[m](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[O](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 i({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)}[p](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[m]();this.end()}[d](){a.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[S](e)})}[S](t){this.linkpath=t;this[m]();this.end()}[y](t){this.type="Link";this.linkpath=c.relative(this.cwd,t);this.stat.size=0;this[m]();this.end()}[f](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const e=this.linkCache.get(t);if(e.indexOf(this.cwd)===0)return this[y](e)}this.linkCache.set(t,this.absolute)}this[m]();if(this.stat.size===0)return this.end();this[w]()}[w](){a.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[E](e)})}[E](t){const e=512*Math.ceil(this.stat.size/512);const n=Math.min(e,this.maxReadSize);const r=Buffer.allocUnsafe(n);this[g](t,r,0,r.length,0,this.stat.size,e)}[g](t,e,n,r,i,s,o){a.read(t,e,n,r,i,(a,c)=>{if(a){return this[R](t,()=>this.emit("error",a))}this[_](t,e,n,r,i,s,o,c)})}[R](t,e){a.close(t,e)}[_](t,e,n,r,i,s,o,a){if(a<=0&&s>0){const e=new Error("encountered unexpected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a>s){const e=new Error("did not encounter expected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[R](t,()=>this.emit("error",e))}if(a===s){for(let t=a;tt?this.emit("error",t):this.end())}if(n>=r){e=Buffer.allocUnsafe(r);n=0}r=e.length-n;this[g](t,e,n,r,i,s,o)}});class WriteEntrySync extends C{constructor(t,e){super(t,e)}[v](){this[b](a.lstatSync(this.absolute))}[d](){this[S](a.readlinkSync(this.absolute))}[w](){this[E](a.openSync(this.absolute,"r"))}[g](t,e,n,r,i,s,o){let c=true;try{const l=a.readSync(t,e,n,r,i);this[_](t,e,n,r,i,s,o,l);c=false}finally{if(c)try{this[R](t,()=>{})}catch(t){}}}[R](t,e){a.closeSync(t);e()}}const P=k(class WriteEntryTar extends r{constructor(t,e){e=e||{};super(e);this.preservePaths=!!e.preservePaths;this.portable=!!e.portable;this.strict=!!e.strict;this.noPax=!!e.noPax;this.noMtime=!!e.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=t.path;this.mode=this[O](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:e.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=t.linkpath;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);let n=false;if(c.isAbsolute(this.path)&&!this.preservePaths){const t=c.parse(this.path);n=t.root;this.path=this.path.substr(t.root.length)}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new s({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(n){this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({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);t.pipe(this)}[O](t){return A(t,this.type==="Directory",this.portable)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=e;return super.write(t)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});C.Sync=WriteEntrySync;C.Tar=P;const M=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=C},421:function(t,e,n){"use strict";const r=n(543);const i=n(815);const s=n(385);const o=(t="",e="",n=false)=>{let r=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return n?s.flatten(e).map(t=>`{${t}}`):e}for(let i of t){if(Array.isArray(i)){for(let t of i){r.push(o(t,e,n))}}else{for(let t of e){if(n===true&&typeof t==="string")t=`{${t}}`;r.push(Array.isArray(t)?o(i,t,n):i+t)}}}return s.flatten(r)};const a=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit;let a=(t,c={})=>{t.queue=[];let l=c;let u=c.queue;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;u=l.queue}if(t.invalid||t.dollar){u.push(o(u.pop(),i(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(o(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let a=s.reduce(t.nodes);if(s.exceedsLimit(...a,e.step,n)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=r(...a,e);if(c.length===0){c=i(t,e)}u.push(o(u.pop(),c));t.nodes=[];return}let h=s.encloseBrace(t);let f=t.queue;let p=t;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;f=p.queue}for(let e=0;esuper.write(t));this.zip.on("end",t=>super.end());this.zip.on("drain",t=>this[P]());this.on("resume",t=>this.zip.resume())}else this.on("drain",this[P]);this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[p]=new l;this[v]=0;this.jobs=+t.jobs||4;this[m]=false;this[f]=false}[C](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t)this.write(t);this[f]=true;this[y]();return this}write(t){if(this[f])throw new Error("write after end");if(t instanceof s)this[S](t);else this[_](t);return this.flowing}[S](t){const e=T.resolve(this.cwd,t.path);if(this.prefix)t.path=this.prefix+"/"+t.path.replace(/^\.(\/+|$)/,"");if(!this.filter(t.path,t))t.resume();else{const n=new PackJob(t.path,e,false);n.entry=new c(t,this[x](n));n.entry.on("end",t=>this[b](n));this[v]+=1;this[p].push(n)}this[y]()}[_](t){const e=T.resolve(this.cwd,t);if(this.prefix)t=this.prefix+"/"+t.replace(/^\.(\/+|$)/,"");this[p].push(new PackJob(t,e));this[y]()}[w](t){t.pending=true;this[v]+=1;const e=this.follow?"stat":"lstat";M[e](t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)this.emit("error",e);else this[h](t,n)})}[h](t,e){this.statCache.set(t.absolute,e);t.stat=e;if(!this.filter(t.path,e))t.ignore=true;this[y]()}[E](t){t.pending=true;this[v]+=1;M.readdir(t.absolute,(e,n)=>{t.pending=false;this[v]-=1;if(e)return this.emit("error",e);this[R](t,n)})}[R](t,e){this.readdirCache.set(t.absolute,e);t.readdir=e;this[y]()}[y](){if(this[m])return;this[m]=true;for(let t=this[p].head;t!==null&&this[v]this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[k](t){this[v]+=1;try{return new this[A](t.path,this[x](t)).on("end",()=>this[b](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[P](){if(this[d]&&this[d].entry)this[d].entry.resume()}[O](t){t.piped=true;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});const e=t.entry;const n=this.zip;if(n)e.on("data",t=>{if(!n.write(t))e.pause()});else e.on("data",t=>{if(!super.write(t))e.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends D{constructor(t){super(t);this[A]=a}pause(){}resume(){}[w](t){const e=this.follow?"statSync":"lstatSync";this[h](t,M[e](t.absolute))}[E](t,e){this[R](t,M.readdirSync(t.absolute))}[O](t){const e=t.entry;const n=this.zip;if(t.readdir)t.readdir.forEach(e=>{const n=this.prefix?t.path.slice(this.prefix.length+1)||"./":t.path;const r=n==="./"?"":n.replace(/\/*$/,"/");this[_](r+e)});if(n)e.on("data",t=>{n.write(t)});else e.on("data",t=>{super[C](t)})}}D.Sync=PackSync;t.exports=D},438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},439:function(t,e,n){"use strict";const{promisify:r}=n(669);const i=n(747);async function isType(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{const s=await r(i[t])(n);return s[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,n){if(typeof n!=="string"){throw new TypeError(`Expected a string, got ${typeof n}`)}try{return i[t](n)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},442:function(t,e,n){const r=n(357);t.exports=(()=>{const t=new Map;const e=new Map;const{join:i}=n(622);const s=t=>i(t).split(/[\\\/]/).slice(0,-1).reduce((t,e)=>t.length?t.concat(i(t[t.length-1],e)):[e],[]);const o=new Set;const a=n=>{const r=e.get(n);if(!r)throw new Error("function does not have any path reservations");return{paths:r.paths.map(e=>t.get(e)),dirs:[...r.dirs].map(e=>t.get(e))}};const c=t=>{const{paths:e,dirs:n}=a(t);return e.every(e=>e[0]===t)&&n.every(e=>e[0]instanceof Set&&e[0].has(t))};const l=t=>{if(o.has(t)||!c(t))return false;o.add(t);t(()=>u(t));return true};const u=n=>{if(!o.has(n))return false;const{paths:i,dirs:s}=e.get(n);const a=new Set;i.forEach(e=>{const i=t.get(e);r.equal(i[0],n);if(i.length===1)t.delete(e);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach(t=>a.add(t))}});s.forEach(e=>{const i=t.get(e);r(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(e)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(n)});o.delete(n);a.forEach(t=>l(t));return true};const h=(n,r)=>{const i=new Set(n.map(t=>s(t)).reduce((t,e)=>t.concat(e)));e.set(r,{dirs:i,paths:n});n.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[r]);else n.push(r)});i.forEach(e=>{const n=t.get(e);if(!n)t.set(e,[new Set([r])]);else if(n[n.length-1]instanceof Set)n[n.length-1].add(r);else n.push(new Set([r]))});return l(r)};return{check:c,reserve:h}})},468:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});function read(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){return callFailureCallback(n,r)}if(!i.isSymbolicLink()||!e.followSymbolicLink){return callSuccessCallback(n,i)}e.fs.stat(t,(t,r)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){return callFailureCallback(n,t)}return callSuccessCallback(n,i)}if(e.markSymbolicLink){r.isSymbolicLink=(()=>true)}callSuccessCallback(n,r)})})}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},477:function(t){"use strict";t.exports=(t=>(class extends t{warn(t,e,n={}){if(this.file)n.file=this.file;if(this.cwd)n.cwd=this.cwd;n.code=e instanceof Error&&e.code||t;n.tarCode=t;if(!this.strict&&n.recoverable!==false){if(e instanceof Error){n=Object.assign(e,n);e=e.message}this.emit("warn",n.tarCode,e,n)}else if(e instanceof Error){this.emit("error",Object.assign(e,n))}else this.emit("error",Object.assign(new Error(`${t}: ${e}`),n))}}))},483:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=n(564);var i=n(622);var s=_interopDefault(n(821));var o=n(747);var a=_interopDefault(n(137));function resolvePath(t){return i.resolve.apply(null,t)}function normaliseArguments(t){var e=t.length;var n=true;var r=[];var i=[null];var s;for(s=0;s{const e=/^\\\\\?\\/.test(t);const n=/[^\u0000-\u0080]+/.test(t);if(e||n){return t}return t.replace(/\\/g,"/")})},507:function(t,e,n){"use strict";const r=n(357);const i=n(293).Buffer;const s=n(903);const o=e.constants=n(63);const a=n(563);const c=i.concat;const l=Symbol("_superWrite");class ZlibError extends Error{constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const y=Symbol("onError");const m=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const _=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(t,e){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this[b]=false;this[u]=t;this[h]=t.flush;this[f]=t.finishFlush;try{this[d]=new s[e](t)}catch(t){throw new ZlibError(t)}this[y]=(t=>{this[m]=true;this.close();this.emit("error",t)});this[d].on("error",t=>this[y](new ZlibError(t)));this.once("end",()=>this.close)}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[m]){r(this[d],"zlib binding closed");return this[d].reset()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this[p];this.write(Object.assign(i.alloc(0),{[h]:t}))}end(t,e,n){if(t)this.write(t,e);this.flush(this[f]);this[b]=true;return super.end(null,null,n)}get ended(){return this[b]}write(t,e,n){if(typeof e==="function")n=e,e="utf8";if(typeof t==="string")t=i.from(t,e);if(this[m])return;r(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=(()=>{});const a=this[d].close;this[d].close=(()=>{});i.concat=(t=>t);let u;try{const e=typeof t[h]==="number"?t[h]:this[h];u=this[d]._processChunk(t,e);i.concat=c}catch(t){i.concat=c;this[y](new ZlibError(t))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=this[l](i.from(u[0]));for(let t=1;t{this.flush(t);e()});try{this[d].params(t,e)}finally{this[d].flush=n}if(this[d]){this[g]=t;this[v]=e}}}}class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}const S=Symbol("_portable");class Gzip extends Zlib{constructor(t){super(t,"Gzip");this[S]=t&&!!t.portable}[l](t){if(!this[S])return super[l](t);this[S]=false;t[9]=255;return super[l](t)}}class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}class Brotli extends ZlibBase{constructor(t,e){t=t||{};t.flush=t.flush||o.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||o.BROTLI_OPERATION_FINISH;super(t,e);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}e.Deflate=Deflate;e.Inflate=Inflate;e.Gzip=Gzip;e.Gunzip=Gunzip;e.DeflateRaw=DeflateRaw;e.InflateRaw=InflateRaw;e.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){e.BrotliCompress=BrotliCompress;e.BrotliDecompress=BrotliDecompress}else{e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},522:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(203);const i=n(248);class ProviderAsync extends i.default{constructor(){super(...arguments);this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t);const n=this._getReaderOptions(t);const r=[];return new Promise((i,s)=>{const o=this.api(e,t,n);o.once("error",s);o.on("data",t=>r.push(n.transform(t)));o.once("end",()=>i(r))})}api(t,e,n){if(e.dynamic){return this._reader.dynamic(t,n)}return this._reader.static(e.patterns,n)}}e.default=ProviderAsync},528:function(t,e,n){var r=n(622);var i=process.platform==="win32";var s=n(747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(o){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=r.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var n=t,o={},a={};var u;var h;var f;var p;start();function start(){var e=l.exec(t);u=e[0].length;h=e[0];f=e[0];p="";if(i&&!a[f]){s.lstatSync(f);a[f]=true}}while(u=t.length){if(e)e[o]=t;return n(null,t)}c.lastIndex=h;var r=c.exec(t);d=f;f+=r[0];p=d+r[1];h=c.lastIndex;if(u[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return s.lstat(p,gotStat)}function gotStat(t,r){if(t)return n(t);if(!r.isSymbolicLink()){u[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(t){if(t)return n(t);s.readlink(p,function(t,e){if(!i)a[o]=e;gotTarget(t,e)})})}function gotTarget(t,i,s){if(t)return n(t);var o=r.resolve(d,i);if(e)e[s]=o;gotResolvedLink(o)}function gotResolvedLink(e){t=r.resolve(e,t.slice(h));start()}}},543:function(t,e,n){"use strict";const r=n(669);const i=n(153);const s=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const o=t=>{return e=>t===true?Number(e):String(e)};const a=t=>{return typeof t==="number"||typeof t==="string"&&t!==""};const c=t=>Number.isInteger(+t);const l=t=>{let e=`${t}`;let n=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++n]==="0");return n>0};const u=(t,e,n)=>{if(typeof t==="string"||typeof e==="string"){return true}return n.stringify===true};const h=(t,e,n)=>{if(e>0){let n=t[0]==="-"?"-":"";if(n)t=t.slice(1);t=n+t.padStart(n?e-1:e,"0")}if(n===false){return String(t)}return t};const f=(t,e)=>{let n=t[0]==="-"?"-":"";if(n){t=t.slice(1);e--}while(t.length{t.negatives.sort((t,e)=>te?1:0);t.positives.sort((t,e)=>te?1:0);let n=e.capture?"":"?:";let r="";let i="";let s;if(t.positives.length){r=t.positives.join("|")}if(t.negatives.length){i=`-(${n}${t.negatives.join("|")})`}if(r&&i){s=`${r}|${i}`}else{s=r||i}if(e.wrap){return`(${n}${s})`}return s};const d=(t,e,n,r)=>{if(n){return i(t,e,{wrap:false,...r})}let s=String.fromCharCode(t);if(t===e)return s;let o=String.fromCharCode(e);return`[${s}-${o}]`};const y=(t,e,n)=>{if(Array.isArray(t)){let e=n.wrap===true;let r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return i(t,e,n)};const m=(...t)=>{return new RangeError("Invalid range arguments: "+r.inspect(...t))};const g=(t,e,n)=>{if(n.strictRanges===true)throw m([t,e]);return[]};const v=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const b=(t,e,n=1,r={})=>{let i=Number(t);let s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===true)throw m([t,e]);return[]}if(i===0)i=0;if(s===0)s=0;let a=i>s;let c=String(t);let g=String(e);let v=String(n);n=Math.max(Math.abs(n),1);let b=l(c)||l(g)||l(v);let _=b?Math.max(c.length,g.length,v.length):0;let S=b===false&&u(t,e,r)===false;let w=r.transform||o(S);if(r.toRegex&&n===1){return d(f(t,_),f(e,_),true,r)}let E={negatives:[],positives:[]};let R=t=>E[t<0?"negatives":"positives"].push(Math.abs(t));let O=[];let k=0;while(a?i>=s:i<=s){if(r.toRegex===true&&n>1){R(i)}else{O.push(h(w(i,k),_,S))}i=a?i-n:i+n;k++}if(r.toRegex===true){return n>1?p(E,r):y(O,null,{wrap:false,...r})}return O};const _=(t,e,n=1,r={})=>{if(!c(t)&&t.length>1||!c(e)&&e.length>1){return g(t,e,r)}let i=r.transform||(t=>String.fromCharCode(t));let s=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=s>o;let l=Math.min(s,o);let u=Math.max(s,o);if(r.toRegex&&n===1){return d(l,u,false,r)}let h=[];let f=0;while(a?s>=o:s<=o){h.push(i(s,f));s=a?s-n:s+n;f++}if(r.toRegex===true){return y(h,null,{wrap:false,options:r})}return h};const S=(t,e,n,r={})=>{if(e==null&&a(t)){return[t]}if(!a(t)||!a(e)){return g(t,e,r)}if(typeof n==="function"){return S(t,e,1,{transform:n})}if(s(n)){return S(t,e,0,n)}let i={...r};if(i.capture===true)i.wrap=true;n=n||i.step||1;if(!c(n)){if(n!=null&&!s(n))return v(n,i);return S(t,e,1,n)}if(c(t)&&c(e)){return b(t,e,n,i)}return _(t,e,Math.max(Math.abs(n),1),i)};t.exports=S},546:function(t,e,n){"use strict";const r=n(87);const i=n(867);const s=n(609);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,e){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(t&&!e&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const t=r.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(t){const e=supportsColor(t,t&&t.isTTY);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},549:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);function generate(t,e){const n=getPositivePatterns(t);const i=getNegativePatternsAsPositive(t,e.ignore);const s=n.filter(t=>r.pattern.isStaticPattern(t,e));const o=n.filter(t=>r.pattern.isDynamicPattern(t,e));const a=convertPatternsToTasks(s,i,false);const c=convertPatternsToTasks(o,i,true);return a.concat(c)}e.generate=generate;function convertPatternsToTasks(t,e,n){const r=groupPatternsByBaseDirectory(t);if("."in r){const r=convertPatternGroupToTask(".",t,e,n);return[r]}return convertPatternGroupsToTasks(r,e,n)}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return r.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const n=r.pattern.getNegativePatterns(t).concat(e);const i=n.map(r.pattern.convertToPositivePattern);return i}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);if(n in t){t[n].push(e)}else{t[n]=[e]}return t},e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,n){return Object.keys(t).map(r=>{return convertPatternGroupToTask(r,t[r],e,n)})}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,n,i){return{dynamic:i,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},550:function(t,e,n){"use strict";const r=n(622);t.exports=((t,e)=>{t=r.resolve(t);e=r.resolve(e);if(process.platform==="win32"){t=t.toLowerCase();e=e.toLowerCase()}if(t===e){return false}t+=r.sep;e+=r.sep;return t.startsWith(e)})},556:function(t,e,n){t.exports=globSync;globSync.GlobSync=GlobSync;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(700).Glob;var c=n(669);var l=n(622);var u=n(357);var h=n(932);var f=n(133);var p=f.alphasort;var d=f.alphasorti;var y=f.setopts;var m=f.ownProp;var g=f.childrenIgnored;var v=f.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);y(this,t,e);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;rthis.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[e];if(!o){var a;try{a=r.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(e)}catch(t){o=a}}else{o=a}}this.statCache[e]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return f.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return f.makeAbs(this,t)}},560:function(t){t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},563:function(t,e,n){"use strict";const r=n(614);const i=n(413);const s=n(597);const o=n(304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const u=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const m=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const _=Symbol("bufferLength");const S=Symbol("bufferPush");const w=Symbol("bufferShift");const E=Symbol("objectMode");const R=Symbol("destroyed");const O=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const k=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const x=O&&Symbol.iterator||Symbol("iterator not implemented");const A=t=>t==="end"||t==="finish"||t==="prefinish";const C=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const P=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);t.exports=class Minipass extends i{constructor(t){super();this[g]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[E]=t&&t.objectMode||false;if(this[E])this[y]=null;else this[y]=t&&t.encoding||null;if(this[y]==="buffer")this[y]=null;this[m]=this[y]?new o(this[y]):null;this[a]=false;this[l]=false;this[u]=false;this[h]=false;this.writable=true;this.readable=true;this[_]=0;this[R]=false}get bufferLength(){return this[_]}get encoding(){return this[y]}set encoding(t){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[y]&&t!==this[y]&&(this[m]&&this[m].lastNeed||this[_]))throw new Error("cannot change encoding");if(this[y]!==t){this[m]=t?new o(t):null;if(this.buffer.length)this.buffer=this.buffer.map(t=>this[m].write(t))}this[y]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[E]}set objectMode(t){this[E]=this[E]||!!t}write(t,e,n){if(this[a])throw new Error("write after end");if(this[R]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof e==="function")n=e,e="utf8";if(!e)e="utf8";if(!this[E]&&!Buffer.isBuffer(t)){if(P(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(C(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(!this.objectMode&&!t.length){const t=this.flowing;if(this[_]!==0)this.emit("readable");if(n)n();return t}if(typeof t==="string"&&!this[E]&&!(e===this[y]&&!this[m].lastNeed)){t=Buffer.from(t,e)}if(Buffer.isBuffer(t)&&this[y])t=this[m].write(t);try{return this.flowing?(this.emit("data",t),this.flowing):(this[S](t),false)}finally{if(this[_]!==0)this.emit("readable");if(n)n()}}read(t){if(this[R])return null;try{if(this[_]===0||t===0||t>this[_])return null;if(this[E])t=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[_])])}return this[f](t||null,this.buffer.head.value)}finally{this[c]()}}[f](t,e){if(t===e.length||t===null)this[w]();else{this.buffer.head.value=e.slice(t);e=e.slice(0,t);this[_]-=t}this.emit("data",e);if(!this.buffer.length&&!this[a])this.emit("drain");return e}end(t,e,n){if(typeof t==="function")n=t,t=null;if(typeof e==="function")n=e,e="utf8";if(t)this.write(t,e);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[b](){if(this[R])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[R]}get flowing(){return this[g]}get paused(){return this[v]}[S](t){if(this[E])this[_]+=1;else this[_]+=t.length;return this.buffer.push(t)}[w](){if(this.buffer.length){if(this[E])this[_]-=1;else this[_]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[w]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[d](t){return t?(this.emit("data",t),this.flowing):false}pipe(t,e){if(this[R])return;const n=this[l];e=e||{};if(t===process.stdout||t===process.stderr)e.end=false;else e.end=e.end!==false;const r={dest:t,opts:e,ondrain:t=>this[b]()};this.pipes.push(r);t.on("drain",r.ondrain);this[b]();if(n&&r.opts.end)r.dest.end();return t}addListener(t,e){return this.on(t,e)}on(t,e){try{return super.on(t,e)}finally{if(t==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(A(t)&&this[l]){super.emit(t);this.removeAllListeners(t)}}}get emittedEnd(){return this[l]}[c](){if(!this[u]&&!this[l]&&!this[R]&&this.buffer.length===0&&this[a]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[u]=false}}emit(t,e){if(t!=="error"&&t!=="close"&&t!==R&&this[R])return;else if(t==="data"){if(!e)return;if(this.pipes.length)this.pipes.forEach(t=>t.dest.write(e)===false&&this.pause())}else if(t==="end"){if(this[l]===true)return;this[l]=true;this.readable=false;if(this[m]){e=this[m].end();if(e){this.pipes.forEach(t=>t.dest.write(e));super.emit("data",e)}}this.pipes.forEach(t=>{t.dest.removeListener("drain",t.ondrain);if(t.opts.end)t.dest.end()})}else if(t==="close"){this[h]=true;if(!this[l]&&!this[R])return}const n=new Array(arguments.length);n[0]=t;n[1]=e;if(arguments.length>2){for(let t=2;t{t.push(e);if(!this[E])t.dataLength+=e.length});return e.then(()=>t)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,e)=>{this.on(R,()=>e(new Error("stream destroyed")));this.on("end",()=>t());this.on("error",t=>e(t))})}[k](){const t=()=>{const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[a])return Promise.resolve({done:true});let e=null;let n=null;const r=t=>{this.removeListener("data",i);this.removeListener("end",s);n(t)};const i=t=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();e({value:t,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);e({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((t,a)=>{n=a;e=t;this.once(R,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:t}}[x](){const t=()=>{const t=this.read();const e=t===null;return{value:t,done:e}};return{next:t}}destroy(t){if(this[R]){if(t)this.emit("error",t);else this.emit(R);return this}this[R]=true;this.buffer=new s;this[_]=0;if(typeof this.close==="function"&&!this[h])this.close();if(t)this.emit("error",t);else this.emit(R);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof i||t instanceof r&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}},564:function(t,e,n){var r=n(747);var i=n(281);var s=n(900);var o=n(758);var a=n(669);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var t=a.format.apply(a,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!global[c]){var h=[];Object.defineProperty(global,c,{get:function(){return h}});r.close=function(t){function close(e,n){return t.call(r,e,function(t){if(!t){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,l,{value:t});return close}(r.close);r.closeSync=function(t){function closeSync(e){t.apply(r,arguments);retry()}Object.defineProperty(closeSync,l,{value:t});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){u(global[c]);n(357).equal(global[c].length,0)})}}t.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){t.exports=patch(r);r.__patched=true}function patch(t){i(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var e=t.readFile;t.readFile=readFile;function readFile(t,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(t,n,r);function go$readFile(t,n,r){return e(t,n,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readFile,[t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=t.writeFile;t.writeFile=writeFile;function writeFile(t,e,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(t,e,r,i);function go$writeFile(t,e,r,i){return n(t,e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[t,e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=t.appendFile;if(r)t.appendFile=appendFile;function appendFile(t,e,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(t,e,n,i);function go$appendFile(t,e,n,i){return r(t,e,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[t,e,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=t.readdir;t.readdir=readdir;function readdir(t,e,n){var r=[t];if(typeof e!=="function"){r.push(e)}else{n=e}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(t,e){if(e&&e.sort)e.sort();if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(e){return o.apply(t,e)}if(process.version.substr(0,4)==="v0.8"){var a=s(t);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=t.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var l=t.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var u=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return u},set:function(t){u=t},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:true,configurable:true});function ReadStream(t,e){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){if(t.autoClose)t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n);t.read()}})}function WriteStream(t,e){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,n){if(e){t.destroy();t.emit("error",e)}else{t.fd=n;t.emit("open",n)}})}function createReadStream(e,n){return new t.ReadStream(e,n)}function createWriteStream(e,n){return new t.WriteStream(e,n)}var f=t.open;t.open=open;function open(t,e,n,r){if(typeof n==="function")r=n,n=null;return go$open(t,e,n,r);function go$open(t,e,n,r){return f(t,e,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[t,e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return t}function enqueue(t){u("ENQUEUE",t[0].name,t[1]);global[c].push(t)}function retry(){var t=global[c].shift();if(t){u("RETRY",t[0].name,t[1]);t[0].apply(null,t[1])}}},574:function(t,e,n){"use strict";t=n.nmd(t);const r=n(13);const i=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${n+e}m`});const s=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};5;${n}m`});const o=(t,e)=>(function(){const n=t.apply(r,arguments);return`[${38+e};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const t=new Map;const e={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]}};e.color.grey=e.color.gray;for(const n of Object.keys(e)){const r=e[n];for(const n of Object.keys(r)){const i=r[n];e[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=e[n];t.set(i[0],i[1])}Object.defineProperty(e,n,{value:r,enumerable:false});Object.defineProperty(e,"codes",{value:t,enumerable:false})}const n=t=>t;const a=(t,e,n)=>[t,e,n];e.color.close="";e.bgColor.close="";e.color.ansi={ansi:i(n,0)};e.color.ansi256={ansi256:s(n,0)};e.color.ansi16m={rgb:o(a,0)};e.bgColor.ansi={ansi:i(n,10)};e.bgColor.ansi256={ansi256:s(n,10)};e.bgColor.ansi16m={rgb:o(a,10)};for(let t of Object.keys(r)){if(typeof r[t]!=="object"){continue}const n=r[t];if(t==="ansi16"){t="ansi"}if("ansi16"in n){e.color.ansi[t]=i(n.ansi16,0);e.bgColor.ansi[t]=i(n.ansi16,10)}if("ansi256"in n){e.color.ansi256[t]=s(n.ansi256,0);e.bgColor.ansi256[t]=s(n.ansi256,10)}if("rgb"in n){e.color.ansi16m[t]=o(n.rgb,0);e.bgColor.ansi16m[t]=o(n.rgb,10)}}return e}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},580:function(t,e,n){var r=n(880);var i=n(305);t.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 l="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(t){return t.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var n=i("{","}",t);if(!n)return t.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var n=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=o||c;var u=s.body.indexOf(",")>=0;if(!l&&!u){if(s.post.match(/,.*\}/)){t=s.pre+"{"+s.body+a+s.post;return expand(t)}return[t]}var h;if(l){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var f=s.post.length?expand(s.post,false):[""];return f.map(function(t){return s.pre+h[0]+t})}}}var p=s.pre;var f=s.post.length?expand(s.post,false):[""];var d;if(l){var y=numeric(h[0]);var m=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var v=h.length==3?Math.abs(numeric(h[2])):1;var b=lte;var _=m0){var O=new Array(R+1).join("0");if(w<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=r(h,function(t){return expand(t,false)})}for(var k=0;k{const e=await i("package.json",{cwd:t});return e&&r.dirname(e)};t.exports=s;t.exports.default=s;t.exports.sync=(t=>{const e=i.sync("package.json",{cwd:t});return e&&r.dirname(e)})},597:function(t,e,n){"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var e=this;if(!(e instanceof Yallist)){e=new Yallist}e.tail=null;e.head=null;e.length=0;if(t&&typeof t.forEach==="function"){t.forEach(function(t){e.push(t)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n1){n=e}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=t(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(t,e){var n;var r=this.tail;if(arguments.length>1){n=e}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=t(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var e=0,n=this.head;n!==null;e++){t[e]=n.value;n=n.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var e=0,n=this.tail;n!==null;e++){t[e]=n.value;n=n.prev}return t};Yallist.prototype.slice=function(t,e){e=e||this.length;if(e<0){e+=this.length}t=t||0;if(t<0){t+=this.length}var n=new Yallist;if(ethis.length){e=this.length}for(var r=0,i=this.head;i!==null&&rthis.length){e=this.length}for(var r=this.length,i=this.tail;i!==null&&r>e;r--){i=i.prev}for(;i!==null&&r>t;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(t,e,...n){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var r=0,i=this.head;i!==null&&rfalse;const p=t=>t[0]==="!";const d=t=>{if(!t.every(t=>typeof t==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const y=(t={})=>{if(!t.cwd){return}let e;try{e=r.statSync(t.cwd)}catch(t){return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const m=t=>t.stats instanceof r.Stats?t.path:t;const g=(t,e)=>{t=i([].concat(t));d(t);y(e);const n=[];e={ignore:[],expandDirectories:true,...e};for(const[r,i]of t.entries()){if(p(i)){continue}const s=t.slice(r).filter(p).map(t=>t.slice(1));const o={...e,ignore:e.ignore.concat(s)};n.push({pattern:i,options:o})}return n};const v=(t,e)=>{let n={};if(t.options.cwd){n.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){n={...n,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){n={...n,...t.options.expandDirectories}}return e(t.pattern,n)};const b=(t,e)=>t.options.expandDirectories?v(t,e):[t.pattern];const _=t=>{return t&&t.gitignore?l.sync({cwd:t.cwd,ignore:t.ignore}):f};const S=t=>e=>{const{options:n}=t;if(n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories){n.ignore=c.sync(n.ignore)}return{pattern:e,options:n}};t.exports=(async(t,e)=>{const n=g(t,e);const r=async()=>{return e&&e.gitignore?l({cwd:e.cwd,ignore:e.ignore}):f};const s=async()=>{const t=await Promise.all(n.map(async t=>{const e=await b(t,c);return Promise.all(e.map(S(t)))}));return i(...t)};const[o,u]=await Promise.all([r(),s()]);const h=await Promise.all(u.map(t=>a(t.pattern,t.options)));return i(...h).filter(t=>!o(m(t)))});t.exports.sync=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(S(e));return t.concat(n)},[]);const s=_(e);return r.reduce((t,e)=>i(t,a.sync(e.pattern,e.options)),[]).filter(t=>!s(t))});t.exports.stream=((t,e)=>{const n=g(t,e);const r=n.reduce((t,e)=>{const n=b(e,c.sync).map(S(e));return t.concat(n)},[]);const i=_(e);const o=new u(t=>!i(t));const l=new h;return s(r.map(t=>a.stream(t.pattern,t.options))).pipe(o).pipe(l)});t.exports.generateGlobTasks=g;t.exports.hasMagic=((t,e)=>[].concat(t).some(t=>o.hasMagic(t,e)));t.exports.gitignore=l},604:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},605:function(t){"use strict";t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},609:function(t){"use strict";t.exports=((t,e=process.argv)=>{const n=t.startsWith("-")?"":t.length===1?"-":"--";const r=e.indexOf(n+t);const i=e.indexOf("--");return r!==-1&&(i===-1||r{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)u(i,e);if(!i.noResume)l(i);return i.file&&i.sync?h(i):i.file?f(i,n):p(i)});const l=t=>{const e=t.onentry;t.onentry=e?t=>{e(t);t.resume()}:t=>t.resume()};const u=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const h=t=>{const e=p(t);const n=t.file;let r=true;let i;try{const o=s.statSync(n);const a=t.maxReadSize||16*1024*1024;if(o.size{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("end",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const p=t=>new i(t)},617:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(920);const s=n(951);const o=n(35);function read(t,e,n){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e,n)}return readdir(t,e,n)}e.read=read;function readdirWithFileTypes(t,e,n){e.fs.readdir(t,{withFileTypes:true},(r,s)=>{if(r!==null){return callFailureCallback(n,r)}const o=s.map(n=>({dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`}));if(!e.followSymbolicLinks){return callSuccessCallback(n,o)}const a=o.map(t=>makeRplTaskEntry(t,e));i(a,(t,e)=>{if(t!==null){return callFailureCallback(n,t)}callSuccessCallback(n,e)})})}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return n=>{if(!t.dirent.isSymbolicLink()){return n(null,t)}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){return n(r)}return n(null,t)}t.dirent=o.fs.createDirentFromStats(t.name,i);return n(null,t)})}}function readdir(t,e,n){e.fs.readdir(t,(s,a)=>{if(s!==null){return callFailureCallback(n,s)}const c=a.map(n=>`${t}${e.pathSegmentSeparator}${n}`);const l=c.map(t=>{return n=>r.stat(t,e.fsStatSettings,n)});i(l,(t,r)=>{if(t!==null){return callFailureCallback(n,t)}const i=[];a.forEach((t,n)=>{const s=r[n];const a={name:t,path:c[n],dirent:o.fs.createDirentFromStats(t,s)};if(e.stats){a.stats=s}i.push(a)});callSuccessCallback(n,i)})})}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},619:function(t){t.exports=require("constants")},622:function(t){t.exports=require("path")},625:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:true});class DirentFromStats{constructor(t,e){this.name=t;this.isBlockDevice=e.isBlockDevice.bind(e);this.isCharacterDevice=e.isCharacterDevice.bind(e);this.isDirectory=e.isDirectory.bind(e);this.isFIFO=e.isFIFO.bind(e);this.isFile=e.isFile.bind(e);this.isSocket=e.isSocket.bind(e);this.isSymbolicLink=e.isSymbolicLink.bind(e)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},629:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(951);const s=n(35);function read(t,e){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const n=e.fs.readdirSync(t,{withFileTypes:true});return n.map(n=>{const r={dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`};if(r.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(r.path);r.dirent=s.fs.createDirentFromStats(r.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return r})}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const n=e.fs.readdirSync(t);return n.map(n=>{const i=`${t}${e.pathSegmentSeparator}${n}`;const o=r.statSync(i,e.fsStatSettings);const a={name:n,path:i,dirent:s.fs.createDirentFromStats(n,o)};if(e.stats){a.stats=o}return a})}e.readdir=readdir},634:function(t,e,n){"use strict";const r=n(622);t.exports=(t=>{let e=process.cwd();t=r.resolve(t);if(process.platform==="win32"){e=e.toLowerCase();t=t.toLowerCase()}return t===e})},635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(312);e.array=r;const i=n(438);e.errno=i;const s=n(625);e.fs=s;const o=n(642);e.path=o;const a=n(136);e.pattern=a;const c=n(62);e.stream=c},641:function(t,e,n){"use strict";const r=n(747);const{promisify:i}=n(669);const s=i(r.access);t.exports=(async t=>{try{await s(t);return true}catch(t){return false}});t.exports.sync=(t=>{try{r.accessSync(t);return true}catch(t){return false}})},642:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=/(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return r.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape},660:function(t){"use strict";t.exports=((t,e,n)=>{t&=4095;if(n){t=(t|384)&~18}if(e){if(t&256)t|=64;if(t&32)t|=8;if(t&4)t|=1}return t})},665:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(160);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=s.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t===undefined?e:t}}e.default=Settings},669:function(t){t.exports=require("util")},671:function(t){const e=t=>t[0].toLocaleUpperCase()+t.slice(1);t.exports=(t=>{if(t===null||t===void 0)return"";if(typeof t.toString!=="function")return"";let n=t.toString().trim();if(n==="")return"";if(n.length===1)return n.toLocaleUpperCase();let r=n.match(/[a-zA-Z0-9]+/g);if(r){return r.map(t=>e(t)).join("")}return n})},675:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(617);const i=n(629);const s=n(665);e.Settings=s.default;function scandir(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.scandir=scandir;function scandirSync(t,e){const n=getSettings(e);return i.read(t,n)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},677:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(635);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const n=r.pattern.convertPatternsToRe(t,this._micromatchOptions);const i=r.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,n,i)}_filter(t,e,n){if(this._settings.unique){if(this._isDuplicateEntry(t)){return false}this._createIndexRecord(t)}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t,n)){return false}const r=this._settings.baseNameMatch?t.name:t.path;return this._isMatchToPatterns(r,e)&&!this._isMatchToPatterns(t.path,n)}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const n=r.path.makeAbsolute(this._settings.cwd,t.path);return this._isMatchToPatterns(n,e)}_isMatchToPatterns(t,e){return r.pattern.matchAny(t,e)}}e.default=EntryFilter},683:function(t,e,n){"use strict";const r=n(851);const i=n(210);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=r;const u=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map(t=>i.escapeRegex(t)).join("..")}return n};const h=(t,e)=>{return`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`};const f=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=l[t]||t;const n={...e};const f=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;let p=t.length;if(p>f){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`)}const d={type:"bos",value:"",output:n.prepend||""};const y=[d];const m=n.capture?"":"?:";const g=i.isWindows(e);const v=r.globChars(g);const b=r.extglobChars(v);const{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:w,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:O,NO_DOT_SLASH:k,NO_DOTS_SLASH:x,QMARK:A,QMARK_NO_DOT:C,STAR:P,START_ANCHOR:M}=v;const T=t=>{return`(${m}(?:(?!${M}${t.dot?R:_}).)*?)`};const L=n.dot?"":O;const D=n.dot?A:C;let I=n.bash===true?T(n):P;if(n.capture){I=`(${I})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const $={input:t,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,tokens:y};t=i.removePrefix(t,$);p=t.length;const N=[];const F=[];let B=d;let j;const G=()=>$.index===p-1;const H=$.peek=((e=1)=>t[$.index+e]);const U=$.advance=(()=>t[++$.index]);const z=()=>t.slice($.index+1);const W=(t="",e=0)=>{$.consumed+=t;$.index+=e};const Y=t=>{$.output+=t.output!=null?t.output:t.value;W(t.value)};const Z=()=>{let t=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){U();$.start++;t++}if(t%2===0){return false}$.negated=true;$.start++;return true};const V=t=>{$[t]++;F.push(t)};const Q=t=>{$[t]--;F.pop()};const X=t=>{if(B.type==="globstar"){const e=$.braces>0&&(t.type==="comma"||t.type==="brace");const n=t.extglob===true||N.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!n){$.output=$.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=I;$.output+=B.output}}if(N.length&&t.type!=="paren"&&!b[t.value]){N[N.length-1].inner+=t.value}if(t.value||t.output)Y(t);if(B&&B.type==="text"&&t.type==="text"){B.value+=t.value;return}t.prev=B;y.push(t);B=t};const K=(t,e)=>{const r={...b[e],conditions:1,inner:""};r.prev=B;r.parens=$.parens;r.output=$.output;const i=(n.capture?"(":"")+r.open;V("parens");X({type:t,value:e,output:$.output?"":E});X({type:"paren",extglob:true,value:U(),output:i});N.push(r)};const q=t=>{let e=t.close+(n.capture?")":"");if(t.type==="negate"){let r=I;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){r=T(n)}if(r!==I||G()||/^\)+$/.test(z())){e=t.close=")$))"+r}if(t.prev.type==="bos"&&G()){$.negatedExtglob=true}}X({type:"paren",extglob:true,value:j,output:e});Q("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let s=t.replace(c,(t,e,n,i,s,o)=>{if(i==="\\"){r=true;return t}if(i==="?"){if(e){return e+i+(s?A.repeat(s.length):"")}if(o===0){return D+(s?A.repeat(s.length):"")}return A.repeat(n.length)}if(i==="."){return _.repeat(n.length)}if(i==="*"){if(e){return e+i+(s?I:"")}return I}return e?t:"\\"+t});if(r===true){if(n.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,t=>{return t.length%2===0?"\\\\":t?"\\":""})}}if(s===t&&n.contains===true){$.output=t;return $}$.output=i.wrapOutput(s,$,e);return $}while(!G()){j=U();if(j==="\0"){continue}if(j==="\\"){const t=H();if(t==="/"&&n.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){j+="\\";X({type:"text",value:j});continue}const e=/^\\+/.exec(z());let r=0;if(e&&e[0].length>2){r=e[0].length;$.index+=r;if(r%2!==0){j+="\\"}}if(n.unescape===true){j=U()||""}else{j+=U()||""}if($.brackets===0){X({type:"text",value:j});continue}}if($.brackets>0&&(j!=="]"||B.value==="["||B.value==="[^")){if(n.posix!==false&&j===":"){const t=B.value.slice(1);if(t.includes("[")){B.posix=true;if(t.includes(":")){const t=B.value.lastIndexOf("[");const e=B.value.slice(0,t);const n=B.value.slice(t+2);const r=o[n];if(r){B.value=e+r;$.backtrack=true;U();if(!d.output&&y.indexOf(B)===1){d.output=E}continue}}}}if(j==="["&&H()!==":"||j==="-"&&H()==="]"){j="\\"+j}if(j==="]"&&(B.value==="["||B.value==="[^")){j="\\"+j}if(n.posix===true&&j==="!"&&B.value==="["){j="^"}B.value+=j;Y({value:j});continue}if($.quotes===1&&j!=='"'){j=i.escapeRegex(j);B.value+=j;Y({value:j});continue}if(j==='"'){$.quotes=$.quotes===1?0:1;if(n.keepQuotes===true){X({type:"text",value:j})}continue}if(j==="("){V("parens");X({type:"paren",value:j});continue}if(j===")"){if($.parens===0&&n.strictBrackets===true){throw new SyntaxError(h("opening","("))}const t=N[N.length-1];if(t&&$.parens===t.parens+1){q(N.pop());continue}X({type:"paren",value:j,output:$.parens?")":"\\)"});Q("parens");continue}if(j==="["){if(n.nobracket===true||!z().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(h("closing","]"))}j="\\"+j}else{V("brackets")}X({type:"bracket",value:j});continue}if(j==="]"){if(n.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){X({type:"text",value:j,output:"\\"+j});continue}if($.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(h("opening","["))}X({type:"text",value:j,output:"\\"+j});continue}Q("brackets");const t=B.value.slice(1);if(B.posix!==true&&t[0]==="^"&&!t.includes("/")){j="/"+j}B.value+=j;Y({value:j});if(n.literalBrackets===false||i.hasRegexChars(t)){continue}const e=i.escapeRegex(B.value);$.output=$.output.slice(0,-B.value.length);if(n.literalBrackets===true){$.output+=e;B.value=e;continue}B.value=`(${m}${e}|${B.value})`;$.output+=B.value;continue}if(j==="{"&&n.nobrace!==true){V("braces");X({type:"brace",value:j,output:"("});continue}if(j==="}"){if(n.nobrace===true||$.braces===0){X({type:"text",value:j,output:j});continue}let t=")";if($.dots===true){const e=y.slice();const r=[];for(let t=e.length-1;t>=0;t--){y.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){r.unshift(e[t].value)}}t=u(r,n);$.backtrack=true}X({type:"brace",value:j,output:t});Q("braces");continue}if(j==="|"){if(N.length>0){N[N.length-1].conditions++}X({type:"text",value:j});continue}if(j===","){let t=j;if($.braces>0&&F[F.length-1]==="braces"){t="|"}X({type:"comma",value:j,output:t});continue}if(j==="/"){if(B.type==="dot"&&$.index===$.start+1){$.start=$.index+1;$.consumed="";$.output="";y.pop();B=d;continue}X({type:"slash",value:j,output:w});continue}if(j==="."){if($.braces>0&&B.type==="dot"){if(B.value===".")B.output=_;B.type="dots";B.output+=j;B.value+=j;$.dots=true;continue}if($.braces+$.parens===0&&B.type!=="bos"&&B.type!=="slash"){X({type:"text",value:j,output:_});continue}X({type:"dot",value:j,output:_});continue}if(j==="?"){const t=B&&B.value==="(";if(!t&&n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("qmark",j);continue}if(B&&B.type==="paren"){const t=H();let e=j;if(t==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(z())){e="\\"+j}X({type:"text",value:j,output:e});continue}if(n.dot!==true&&(B.type==="slash"||B.type==="bos")){X({type:"qmark",value:j,output:C});continue}X({type:"qmark",value:j,output:A});continue}if(j==="!"){if(n.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){K("negate",j);continue}}if(n.nonegate!==true&&$.index===0){Z($);continue}}if(j==="+"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){K("plus",j);continue}if(B&&B.value==="("||n.regex===false){X({type:"plus",value:j,output:S});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||$.parens>0){X({type:"plus",value:j});continue}X({type:"plus",value:S});continue}if(j==="@"){if(n.noextglob!==true&&H()==="("&&H(2)!=="?"){X({type:"at",extglob:true,value:j,output:""});continue}X({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j="\\"+j}const t=a.exec(z());if(t){j+=t[0];$.index+=t[0].length}X({type:"text",value:j});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=j;B.output=I;$.backtrack=true;W(j);continue}let e=z();if(n.noextglob!==true&&/^\([^?]/.test(e)){K("star",j);continue}if(B.type==="star"){if(n.noglobstar===true){W(j);continue}const r=B.prev;const i=r.prev;const s=r.type==="slash"||r.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(n.bash===true&&(!s||e[0]&&e[0]!=="/")){X({type:"star",value:j,output:""});continue}const a=$.braces>0&&(r.type==="comma"||r.type==="brace");const c=N.length&&(r.type==="pipe"||r.type==="paren");if(!s&&r.type!=="paren"&&!a&&!c){X({type:"star",value:j,output:""});continue}while(e.slice(0,3)==="/**"){const n=t[$.index+4];if(n&&n!=="/"){break}e=e.slice(3);W("/**",3)}if(r.type==="bos"&&G()){B.type="globstar";B.value+=j;B.output=T(n);$.output=B.output;W(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!o&&G()){$.output=$.output.slice(0,-(r.output+B.output).length);r.output="(?:"+r.output;B.type="globstar";B.output=T(n)+(n.strictSlashes?")":"|$)");B.value+=j;$.output+=r.output+B.output;W(j);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(r.output+B.output).length);r.output="(?:"+r.output;B.type="globstar";B.output=`${T(n)}${w}|${w}${t})`;B.value+=j;$.output+=r.output+B.output;W(j+U());X({type:"slash",value:j,output:""});continue}if(r.type==="bos"&&e[0]==="/"){B.type="globstar";B.value+=j;B.output=`(?:^|${w}|${T(n)}${w})`;$.output=B.output;W(j+U());X({type:"slash",value:j,output:""});continue}$.output=$.output.slice(0,-B.output.length);B.type="globstar";B.output=T(n);B.value+=j;$.output+=B.output;W(j);continue}const r={type:"star",value:j,output:I};if(n.bash===true){r.output=".*?";if(B.type==="bos"||B.type==="slash"){r.output=L+r.output}X(r);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&n.regex===true){r.output=j;X(r);continue}if($.index===$.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){$.output+=k;B.output+=k}else if(n.dot===true){$.output+=x;B.output+=x}else{$.output+=L;B.output+=L}if(H()!=="*"){$.output+=E;B.output+=E}}X(r)}while($.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","]"));$.output=i.escapeLast($.output,"[");Q("brackets")}while($.parens>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing",")"));$.output=i.escapeLast($.output,"(");Q("parens")}while($.braces>0){if(n.strictBrackets===true)throw new SyntaxError(h("closing","}"));$.output=i.escapeLast($.output,"{");Q("braces")}if(n.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){X({type:"maybe_slash",value:"",output:`${w}?`})}if($.backtrack===true){$.output="";for(const t of $.tokens){$.output+=t.output!=null?t.output:t.value;if(t.suffix){$.output+=t.suffix}}}return $};f.fastpaths=((t,e)=>{const n={...e};const o=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=l[t]||t;const c=i.isWindows(e);const{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:d,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:v}=r.globChars(c);const b=n.dot?y:d;const _=n.dot?m:d;const S=n.capture?"":"?:";const w={negated:false,prefix:""};let E=n.bash===true?".*?":g;if(n.capture){E=`(${E})`}const R=t=>{if(t.noglobstar===true)return E;return`(${S}(?:(?!${v}${t.dot?p:u}).)*?)`};const O=t=>{switch(t){case"*":return`${b}${f}${E}`;case".*":return`${u}${f}${E}`;case"*.*":return`${b}${E}${u}${f}${E}`;case"*/*":return`${b}${E}${h}${f}${_}${E}`;case"**":return b+R(n);case"**/*":return`(?:${b}${R(n)}${h})?${_}${f}${E}`;case"**/*.*":return`(?:${b}${R(n)}${h})?${_}${E}${u}${f}${E}`;case"**/.*":return`(?:${b}${R(n)}${h})?${u}${f}${E}`;default:{const n=/^(.*?)\.(\w+)$/.exec(t);if(!n)return;const r=O(n[1],e);if(!r)return;return r+u+n[2]}}};const k=i.removePrefix(t,w);let x=O(k);if(x&&n.strictSlashes!==true){x+=`${h}?`}return x});t.exports=f},698:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},700:function(t,e,n){t.exports=glob;var r=n(747);var i=n(885);var s=n(314);var o=s.Minimatch;var a=n(188);var c=n(614).EventEmitter;var l=n(622);var u=n(357);var h=n(932);var f=n(556);var p=n(133);var d=p.alphasort;var y=p.alphasorti;var m=p.setopts;var g=p.ownProp;var v=n(330);var b=n(669);var _=p.childrenIgnored;var S=p.isIgnored;var w=n(277);function glob(t,e,n){if(typeof e==="function")n=e,e={};if(!e)e={};if(e.sync){if(n)throw new TypeError("callback provided to sync glob");return f(t,e)}return new Glob(t,e,n)}glob.sync=f;var E=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var n=Object.keys(e);var r=n.length;while(r--){t[n[r]]=e[n[r]]}return t}glob.hasMagic=function(t,e){var n=extend({},e);n.noprocess=true;var r=new Glob(t,n);var i=r.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var s=0;sthis.maxLength)return e();if(!this.stat&&g(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return e(null,s);if(i&&s==="FILE")return e()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var l=this;var u=v("stat\0"+n,lstatcb_);if(u)r.lstat(n,u);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)l._stat2(t,n,null,s,e);else l._stat2(t,n,r,i,e)})}else{l._stat2(t,n,i,s,e)}}};Glob.prototype._stat2=function(t,e,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[e]=false;return i()}var s=t.slice(-1)==="/";this.statCache[e]=r;if(e.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},708:function(t){function makeArray(t){return Array.isArray(t)?t:[t]}const e=/^\s+$/;const n=/^\\!/;const r=/^\\#/;const i=/\r?\n/g;const s=/^\.*\/|^\.+$/;const o="/";const a=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const c=(t,e,n)=>Object.defineProperty(t,e,{value:n});const l=/([0-z])-([0-z])/g;const u=t=>t.replace(l,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:"");const h=[[/\\?\s+$/,t=>t.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,e,n)=>n==="]"?`[${u(e)}]`:`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6`${e}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const n=e?`${e}[^/]+`:"[^/]*";return`${n}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=Object.create(null);const p=(t,e,n)=>{const r=f[t];if(r){return r}const i=h.reduce((e,n)=>e.replace(n[0],n[1].bind(t)),t);return f[t]=n?new RegExp(i,"i"):new RegExp(i)};const d=t=>typeof t==="string";const y=t=>t&&d(t)&&!e.test(t)&&t.indexOf("#")!==0;const m=t=>t.split(i);class IgnoreRule{constructor(t,e,n,r){this.origin=t;this.pattern=e;this.negative=n;this.regex=r}}const g=(t,e)=>{const i=t;let s=false;if(t.indexOf("!")===0){s=true;t=t.substr(1)}t=t.replace(n,"!").replace(r,"#");const o=p(t,s,e);return new IgnoreRule(i,t,s,o)};const v=(t,e)=>{throw new e(t)};const b=(t,e,n)=>{if(!d(t)){return n(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return n(`path must not be empty`,TypeError)}if(b.isNotRelative(t)){const t="`path.relative()`d";return n(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const _=t=>s.test(t);b.isNotRelative=_;b.convert=(t=>t);class Ignore{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;c(this,a,true);this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[a]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(y(t)){const e=g(t,this._ignorecase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(d(t)?m(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let n=false;let r=false;this._rules.forEach(i=>{const{negative:s}=i;if(r===s&&n!==r||s&&!n&&!r&&!e){return}const o=i.regex.test(t);if(o){n=!s;r=s}});return{ignored:n,unignored:r}}_test(t,e,n,r){const i=t&&b.convert(t);b(i,t,v);return this._t(i,e,n,r)}_t(t,e,n,r){if(t in e){return e[t]}if(!r){r=t.split(o)}r.pop();if(!r.length){return e[t]=this._testOne(t,n)}const i=this._t(r.join(o)+o,e,n,r);return e[t]=i.ignored?i:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const S=t=>new Ignore(t);const w=()=>false;const E=t=>b(t&&b.convert(t),t,w);S.isPathValid=E;S.default=S;t.exports=S;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");b.convert=t;const e=/^[a-z]:\//i;b.isNotRelative=(t=>e.test(t)||_(t))}},712:function(t,e,n){"use strict";const r=n(409);const i=n(563);const s=Symbol("slurp");t.exports=class ReadEntry extends i{constructor(t,e,n){super();this.pause();this.extended=e;this.globalExtended=n;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.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=t.path;this.mode=t.mode;if(this.mode)this.mode=this.mode&4095;this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath;this.uname=t.uname;this.gname=t.gname;if(e)this[s](e);if(n)this[s](n,true)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain;const r=this.blockRemain;this.remain=Math.max(0,n-e);this.blockRemain=Math.max(0,r-e);if(this.ignore)return true;if(n>=e)return super.write(t);return super.write(t.slice(0,n))}[s](t,e){for(let n in t){if(t[n]!==null&&t[n]!==undefined&&!(e&&n==="path"))this[n]=t[n]}}}},728:function(t,e,n){"use strict";const r=n(409);const i=n(622).posix;const s=n(340);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(t,e,n,r){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[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t))this.decode(t,e||0,n,r);else if(t)this.set(t)}decode(t,e,n,r){if(!e)e=0;if(!t||!(t.length>=e+512))throw new Error("need 512 bytes for header");this.path=l(t,e,100);this.mode=f(t,e+100,8);this.uid=f(t,e+108,8);this.gid=f(t,e+116,8);this.size=f(t,e+124,12);this.mtime=u(t,e+136,12);this.cksum=f(t,e+148,12);this[o](n);this[o](r,true);this[a]=l(t,e+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=l(t,e+157,100);if(t.slice(e+257,e+265).toString()==="ustar\x0000"){this.uname=l(t,e+265,32);this.gname=l(t,e+297,32);this.devmaj=f(t,e+329,8);this.devmin=f(t,e+337,8);if(t[e+475]!==0){const n=l(t,e+345,155);this.path=n+"/"+this.path}else{const n=l(t,e+345,130);if(n)this.path=n+"/"+this.path;this.atime=u(t,e+476,12);this.ctime=u(t,e+488,12)}}let i=8*32;for(let n=e;n=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155;const r=c(this.path||"",n);const i=r[0];const s=r[1];this.needPax=r[2];this.needPax=w(t,e,100,i)||this.needPax;this.needPax=m(t,e+100,8,this.mode)||this.needPax;this.needPax=m(t,e+108,8,this.uid)||this.needPax;this.needPax=m(t,e+116,8,this.gid)||this.needPax;this.needPax=m(t,e+124,12,this.size)||this.needPax;this.needPax=_(t,e+136,12,this.mtime)||this.needPax;t[e+156]=this[a].charCodeAt(0);this.needPax=w(t,e+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",e+257,8);this.needPax=w(t,e+265,32,this.uname)||this.needPax;this.needPax=w(t,e+297,32,this.gname)||this.needPax;this.needPax=m(t,e+329,8,this.devmaj)||this.needPax;this.needPax=m(t,e+337,8,this.devmin)||this.needPax;this.needPax=w(t,e+345,n,s)||this.needPax;if(t[e+475]!==0)this.needPax=w(t,e+345,155,s)||this.needPax;else{this.needPax=w(t,e+345,130,s)||this.needPax;this.needPax=_(t,e+476,12,this.atime)||this.needPax;this.needPax=_(t,e+488,12,this.ctime)||this.needPax}let o=8*32;for(let n=e;n{const n=100;let r=t;let s="";let o;const a=i.parse(t).root||".";if(Buffer.byteLength(r)n&&Buffer.byteLength(s)<=e)o=[r.substr(0,n-1),s,true];else{r=i.join(i.basename(s),r);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[t.substr(0,n-1),"",true]}return o};const l=(t,e,n)=>t.slice(e,e+n).toString("utf8").replace(/\0.*/,"");const u=(t,e,n)=>h(f(t,e,n));const h=t=>t===null?null:new Date(t*1e3);const f=(t,e,n)=>t[e]&128?s.parse(t.slice(e,e+n)):d(t,e,n);const p=t=>isNaN(t)?null:t;const d=(t,e,n)=>p(parseInt(t.slice(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const m=(t,e,n,r)=>r===null?false:r>y[n]||r<0?(s.encode(r,t.slice(e,e+n)),true):(g(t,e,n,r),false);const g=(t,e,n,r)=>t.write(v(r,n),e,n,"ascii");const v=(t,e)=>b(Math.floor(t).toString(8),e);const b=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0";const _=(t,e,n,r)=>r===null?false:m(t,e,n,r.getTime()/1e3);const S=new Array(156).join("\0");const w=(t,e,n,r)=>r===null?false:(t.write(r+S,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);t.exports=Header},730:function(t,e,n){"use strict";const r=n(549);const i=n(522);const s=n(33);const o=n(268);const a=n(422);const c=n(635);function FastGlob(t,e){try{assertPatternsInput(t)}catch(t){return Promise.reject(t)}const n=getWorks(t,i.default,e);return Promise.all(n).then(c.array.flatten)}(function(t){function sync(t,e){assertPatternsInput(t);const n=getWorks(t,o.default,e);return c.array.flatten(n)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const n=getWorks(t,s.default,e);return c.stream.merge(n)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const n=[].concat(t);const i=new a.default(e);return r.generate(n,i)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const n=new a.default(e);return c.pattern.isDynamicPattern(t,n)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,n){const i=[].concat(t);const s=new a.default(n);const o=r.generate(i,s);const c=new e(s);return o.map(c.read,c)}function assertPatternsInput(t){if([].concat(t).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(t){return typeof t==="string"}t.exports=FastGlob},736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(739);const i=n(102);const s=n(172);const o=n(768);e.Settings=o.default;function walk(t,e,n){if(typeof e==="function"){return new r.default(t,getSettings()).read(e)}new r.default(t,getSettings(e)).read(n)}e.walk=walk;function walkSync(t,e){const n=getSettings(e);const r=new s.default(t,n);return r.read()}e.walkSync=walkSync;function walkStream(t,e){const n=getSettings(e);const r=new i.default(t,n);return r.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(389);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new r.default(this._root,this._settings);this._storage=new Set}read(t){this._reader.onError(e=>{callFailureCallback(t,e)});this._reader.onEntry(t=>{this._storage.add(t)});this._reader.onEnd(()=>{callSuccessCallback(t,[...this._storage])});this._reader.read()}}e.default=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},747:function(t){t.exports=require("fs")},758:function(t){"use strict";t.exports=clone;function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}},761:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(977);const i=n(736);const s=n(828);class ReaderSync extends s.default{constructor(){super(...arguments);this._walkSync=i.walkSync;this._statSync=r.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const n=[];for(const r of t){const t=this._getFullEntryPath(r);const i=this._getEntry(t,r,e);if(i===null||!e.entryFilter(i)){continue}n.push(i)}return n}_getEntry(t,e,n){try{const r=this._getStat(t);return this._makeEntry(r,e)}catch(t){if(n.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=ReaderSync},762:function(t,e,n){"use strict";const r=n(477);const i=n(622);const s=n(728);const o=n(614);const a=n(597);const c=1024*1024;const l=n(712);const u=n(125);const h=n(507);const f=Buffer.from([31,139]);const p=Symbol("state");const d=Symbol("writeEntry");const y=Symbol("readEntry");const m=Symbol("nextEntry");const g=Symbol("processEntry");const v=Symbol("extendedHeader");const b=Symbol("globalExtendedHeader");const _=Symbol("meta");const S=Symbol("emitMeta");const w=Symbol("buffer");const E=Symbol("queue");const R=Symbol("ended");const O=Symbol("emittedEnd");const k=Symbol("emit");const x=Symbol("unzip");const A=Symbol("consumeChunk");const C=Symbol("consumeChunkSub");const P=Symbol("consumeBody");const M=Symbol("consumeMeta");const T=Symbol("consumeHeader");const L=Symbol("consuming");const D=Symbol("bufferConcat");const I=Symbol("maybeEnd");const $=Symbol("writing");const N=Symbol("aborted");const F=Symbol("onDone");const B=Symbol("sawValidEntry");const j=Symbol("sawNullBlock");const G=Symbol("sawEOF");const H=t=>true;t.exports=r(class Parser extends o{constructor(t){t=t||{};super(t);this.file=t.file||"";this[B]=null;this.on(F,t=>{if(this[p]==="begin"||this[B]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(t.ondone)this.on(F,t.ondone);else this.on(F,t=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||c;this.filter=typeof t.filter==="function"?t.filter:H;this.writable=true;this.readable=false;this[E]=new a;this[w]=null;this[y]=null;this[d]=null;this[p]="begin";this[_]="";this[v]=null;this[b]=null;this[R]=false;this[x]=null;this[N]=false;this[j]=false;this[G]=false;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(typeof t.onentry==="function")this.on("entry",t.onentry)}[T](t,e){if(this[B]===null)this[B]=false;let n;try{n=new s(t,e,this[v],this[b])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock){if(this[j]){this[G]=true;if(this[p]==="begin")this[p]="header";this[k]("eof")}else{this[j]=true;this[k]("nullBlock")}}else{this[j]=false;if(!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(t)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{const t=this[d]=new l(n,this[v],this[b]);if(!this[B]){if(t.remain){const e=()=>{if(!t.invalid)this[B]=true};t.on("end",e)}else{this[B]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[k]("ignoredEntry",t);this[p]="ignore";t.resume()}else if(t.size>0){this[_]="";t.on("data",t=>this[_]+=t);this[p]="meta"}}else{this[v]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[k]("ignoredEntry",t);this[p]=t.remain?"ignore":"header";t.resume()}else{if(t.remain)this[p]="body";else{this[p]="header";t.end()}if(!this[y]){this[E].push(t);this[m]()}else this[E].push(t)}}}}}}[g](t){let e=true;if(!t){this[y]=null;e=false}else if(Array.isArray(t))this.emit.apply(this,t);else{this[y]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",t=>this[m]());e=false}}return e}[m](){do{}while(this[g](this[E].shift()));if(!this[E].length){const t=this[y];const e=!t||t.flowing||t.size===t.remain;if(e){if(!this[$])this.emit("drain")}else t.once("drain",t=>this.emit("drain"))}}[P](t,e){const n=this[d];const r=n.blockRemain;const i=r>=t.length&&e===0?t:t.slice(e,e+r);n.write(i);if(!n.blockRemain){this[p]="header";this[d]=null;n.end()}return i.length}[M](t,e){const n=this[d];const r=this[P](t,e);if(!this[d])this[S](n);return r}[k](t,e,n){if(!this[E].length&&!this[y])this.emit(t,e,n);else this[E].push([t,e,n])}[S](t){this[k]("meta",this[_]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[_],this[v],false);break;case"GlobalExtendedHeader":this[b]=u.parse(this[_],this[b],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[_].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[_].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[N]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[N])return;if(this[x]===null&&t){if(this[w]){t=Buffer.concat([this[w],t]);this[w]=null}if(t.lengththis[A](t));this[x].on("error",t=>this.abort(t));this[x].on("end",t=>{this[R]=true;this[A]()});this[$]=true;const n=this[x][e?"end":"write"](t);this[$]=false;return n}}this[$]=true;if(this[x])this[x].write(t);else this[A](t);this[$]=false;const e=this[E].length?false:this[y]?this[y].flowing:true;if(!e&&!this[E].length)this[y].once("drain",t=>this.emit("drain"));return e}[D](t){if(t&&!this[N])this[w]=this[w]?Buffer.concat([this[w],t]):t}[I](){if(this[R]&&!this[O]&&!this[N]&&!this[L]){this[O]=true;const t=this[d];if(t&&t.blockRemain){const e=this[w]?this[w].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t});if(this[w])t.write(this[w]);t.end()}this[k](F)}}[A](t){if(this[L])this[D](t);else if(!t&&!this[w])this[I]();else{this[L]=true;if(this[w]){this[D](t);const e=this[w];this[w]=null;this[C](e)}else{this[C](t)}while(this[w]&&this[w].length>=512&&!this[N]&&!this[G]){const t=this[w];this[w]=null;this[C](t)}this[L]=false}if(!this[w]||this[R])this[I]()}[C](t){let e=0;let n=t.length;while(e+512<=n&&!this[N]&&!this[G]){switch(this[p]){case"begin":case"header":this[T](t,e);e+=512;break;case"ignore":case"body":e+=this[P](t,e);break;case"meta":e+=this[M](t,e);break;default:throw new Error("invalid state: "+this[p])}}if(e{throw new Error("sync function called cb somehow?!?")};const j=(t,e)=>{if(process.platform!=="win32")return o.unlink(t,e);const n=t+".DELETE."+N.randomBytes(16).toString("hex");o.rename(t,n,t=>{if(t)return e(t);o.unlink(n,e)})};const G=t=>{if(process.platform!=="win32")return o.unlinkSync(t);const e=t+".DELETE."+N.randomBytes(16).toString("hex");o.renameSync(t,e);o.unlinkSync(e)};const H=(t,e,n)=>t===t>>>0?t:e===e>>>0?e:n;class Unpack extends s{constructor(t){if(!t)t={};t.ondone=(t=>{this[M]=true;this[T]()});super(t);this.reservations=f();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[A]=0;this[M]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!t.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=t.forceChown===true;this.win32=!!t.win32||process.platform==="win32";this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=c.resolve(t.cwd||process.cwd());this.strip=+t.strip||0;this.processUmask=process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",t=>this[p](t))}warn(t,e,n={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")n.recoverable=false;return super.warn(t,e,n)}[T](){if(this[M]&&this[A]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](t){if(this.strip){const e=t.path.split(/\/|\\/);if(e.length=this.strip)t.linkpath=e.slice(this.strip).join("/")}}if(!this.preservePaths){const e=t.path;if(e.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:e});return false}if(c.win32.isAbsolute(e)){const n=c.win32.parse(e);t.path=e.substr(n.root.length);const r=n.root;this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e})}}if(this.win32){const e=c.win32.parse(t.path);t.path=e.root===""?h.encode(t.path):e.root+h.encode(t.path.substr(e.root.length))}if(c.isAbsolute(t.path))t.absolute=t.path;else t.absolute=c.resolve(this.cwd,t.path);return true}[p](t){if(!this[O](t))return t.resume();r.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode)t.mode=t.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](t);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](t)}}[x](t,e){if(t.name==="CwdError")this.emit("error",t);else{this.warn("TAR_ENTRY_ERROR",t,{entry:e});this[P]();e.resume()}}[k](t,e,n){l(t,{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:e},n)}[D](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[I](t){return H(this.uid,t.uid,this.processUid)}[$](t){return H(this.gid,t.gid,this.processGid)}[v](t,e){const n=t.mode&4095||this.fmode;const r=new a.WriteStream(t.absolute,{flags:F(t.size),mode:n,autoClose:false});r.on("error",e=>this[x](e,t));let i=1;const s=n=>{if(n)return this[x](n,t);if(--i===0){o.close(r.fd,n=>{e();n?this[x](n,t):this[P]()})}};r.on("finish",e=>{const n=t.absolute;const a=r.fd;if(t.mtime&&!this.noMtime){i++;const e=t.atime||new Date;const r=t.mtime;o.futimes(a,e,r,t=>t?o.utimes(n,e,r,e=>s(e&&t)):s())}if(this[D](t)){i++;const e=this[I](t);const r=this[$](t);o.fchown(a,e,r,t=>t?o.chown(n,e,r,e=>s(e&&t)):s())}s()});const c=this.transform?this.transform(t)||t:t;if(c!==t){c.on("error",e=>this[x](e,t));t.pipe(c)}c.pipe(r)}[b](t,e){const n=t.mode&4095||this.dmode;this[k](t.absolute,n,n=>{if(n){e();return this[x](n,t)}let r=1;const i=n=>{if(--r===0){e();this[P]();t.resume()}};if(t.mtime&&!this.noMtime){r++;o.utimes(t.absolute,t.atime||new Date,t.mtime,i)}if(this[D](t)){r++;o.chown(t.absolute,this[I](t),this[$](t),i)}i()})}[E](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[S](t,e){this[_](t,t.linkpath,"symlink",e)}[w](t,e){this[_](t,c.resolve(this.cwd,t.linkpath),"link",e)}[C](){this[A]++}[P](){this[A]--;this[T]()}[L](t){this[P]();t.resume()}[m](t,e){return t.type==="File"&&!this.unlink&&e.isFile()&&e.nlink<=1&&process.platform!=="win32"}[d](t){this[C]();const e=[t.path];if(t.linkpath)e.push(t.linkpath);this.reservations.reserve(e,e=>this[y](t,e))}[y](t,e){this[k](c.dirname(t.absolute),this.dmode,n=>{if(n){e();return this[x](n,t)}o.lstat(t.absolute,(n,r)=>{if(r&&(this.keep||this.newer&&r.mtime>t.mtime)){this[L](t);e()}else if(n||this[m](t,r)){this[g](null,t,e)}else if(r.isDirectory()){if(t.type==="Directory"){if(!t.mode||(r.mode&4095)===t.mode)this[g](null,t,e);else o.chmod(t.absolute,t.mode,n=>this[g](n,t,e))}else o.rmdir(t.absolute,n=>this[g](n,t,e))}else j(t.absolute,n=>this[g](n,t,e))})})}[g](t,e,n){if(t)return this[x](t,e);switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[v](e,n);case"Link":return this[w](e,n);case"SymbolicLink":return this[S](e,n);case"Directory":case"GNUDumpDir":return this[b](e,n)}}[_](t,e,n,r){o[n](e,t.absolute,e=>{if(e)return this[x](e,t);r();this[P]();t.resume()})}}class UnpackSync extends Unpack{constructor(t){super(t)}[d](t){const e=this[k](c.dirname(t.absolute),this.dmode,B);if(e)return this[x](e,t);try{const n=o.lstatSync(t.absolute);if(this.keep||this.newer&&n.mtime>t.mtime)return this[L](t);else if(this[m](t,n))return this[g](null,t,B);else{try{if(n.isDirectory()){if(t.type==="Directory"){if(t.mode&&(n.mode&4095)!==t.mode)o.chmodSync(t.absolute,t.mode)}else o.rmdirSync(t.absolute)}else G(t.absolute);return this[g](null,t,B)}catch(e){return this[x](e,t)}}}catch(e){return this[g](null,t,B)}}[v](t,e){const n=t.mode&4095||this.fmode;const r=e=>{let n;try{o.closeSync(s)}catch(t){n=t}if(e||n)this[x](e||n,t)};let i;let s;try{s=o.openSync(t.absolute,F(t.size),n)}catch(t){return r(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",e=>this[x](e,t));t.pipe(a)}a.on("data",t=>{try{o.writeSync(s,t,0,t.length)}catch(t){r(t)}});a.on("end",e=>{let n=null;if(t.mtime&&!this.noMtime){const e=t.atime||new Date;const r=t.mtime;try{o.futimesSync(s,e,r)}catch(i){try{o.utimesSync(t.absolute,e,r)}catch(t){n=i}}}if(this[D](t)){const e=this[I](t);const r=this[$](t);try{o.fchownSync(s,e,r)}catch(i){try{o.chownSync(t.absolute,e,r)}catch(t){n=n||i}}}r(n)})}[b](t,e){const n=t.mode&4095||this.dmode;const r=this[k](t.absolute,n);if(r)return this[x](r,t);if(t.mtime&&!this.noMtime){try{o.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(r){}}if(this[D](t)){try{o.chownSync(t.absolute,this[I](t),this[$](t))}catch(r){}}t.resume()}[k](t,e){try{return l.sync(t,{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:e})}catch(t){return t}}[_](t,e,n,r){try{o[n+"Sync"](e,t.absolute);t.resume()}catch(e){return this[x](e,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},786:function(t,e,n){"use strict";const r=n(815);const i=n(968);const s=n(421);const o=n(266);const a=(t,e={})=>{let n=[];if(Array.isArray(t)){for(let r of t){let t=a.create(r,e);if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}else{n=[].concat(a.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){n=[...new Set(n)]}return n};a.parse=((t,e={})=>o(t,e));a.stringify=((t,e={})=>{if(typeof t==="string"){return r(a.parse(t,e),e)}return r(t,e)});a.compile=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}return i(t,e)});a.expand=((t,e={})=>{if(typeof t==="string"){t=a.parse(t,e)}let n=s(t,e);if(e.noempty===true){n=n.filter(Boolean)}if(e.nodupes===true){n=[...new Set(n)]}return n});a.create=((t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?a.compile(t,e):a.expand(t,e)});t.exports=a},789:function(t,e,n){"use strict";const r=n(622);const i=n(747);const{promisify:s}=n(669);const o=n(232);const a=s(i.stat);const c=s(i.lstat);const l={directory:"isDirectory",file:"isFile"};function checkType({type:t}){if(t in l){return}throw new Error(`Invalid type specified: ${t}`)}const u=(t,e)=>t===undefined||e[l[t]]();t.exports=(async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:true,...e};checkType(e);const n=e.allowSymlinks?a:c;return o(t,async t=>{try{const i=await n(r.resolve(e.cwd,t));return u(e.type,i)}catch(t){return false}},e)});t.exports.sync=((t,e)=>{e={cwd:process.cwd(),allowSymlinks:true,type:"file",...e};checkType(e);const n=e.allowSymlinks?i.statSync:i.lstatSync;for(const i of t){try{const t=n(r.resolve(e.cwd,i));if(u(e.type,t)){return i}}catch(t){}}})},791:function(t,e,n){"use strict";const r=n(58);const{stdout:i,stderr:s}=n(546);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=n(883);const c=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const u=(t,e={})=>{if(e.level>3||e.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const n=i?i.level:0;t.level=e.level===undefined?n:e.level};class ChalkClass{constructor(t){return h(t)}}const h=t=>{const e={};u(e,t);e.template=((...t)=>v(e.template,...t));Object.setPrototypeOf(e,Chalk.prototype);Object.setPrototypeOf(e.template,e);e.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});e.template.Instance=ChalkClass;return e.template};function Chalk(t){return h(t)}for(const[t,e]of Object.entries(r)){l[t]={get(){const n=y(this,d(e.open,e.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:n});return n}}}l.visible={get(){const t=y(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of f){l[t]={get(){const{level:e}=this;return function(...n){const i=d(r.color[c[e]][t](...n),r.color.close,this._styler);return y(this,i,this._isEmpty)}}}}for(const t of f){const e="bg"+t[0].toUpperCase()+t.slice(1);l[e]={get(){const{level:e}=this;return function(...n){const i=d(r.bgColor[c[e]][t](...n),r.bgColor.close,this._styler);return y(this,i,this._isEmpty)}}}}const p=Object.defineProperties(()=>{},{...l,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const d=(t,e,n)=>{let r;let i;if(n===undefined){r=t;i=e}else{r=n.openAll+t;i=e+n.closeAll}return{open:t,close:e,openAll:r,closeAll:i,parent:n}};const y=(t,e,n)=>{const r=(...t)=>{return m(r,t.length===1?""+t[0]:t.join(" "))};r.__proto__=p;r._generator=t;r._styler=e;r._isEmpty=n;return r};const m=(t,e)=>{if(t.level<=0||!e){return t._isEmpty?"":e}let n=t._styler;if(n===undefined){return e}const{openAll:r,closeAll:i}=n;if(e.indexOf("")!==-1){while(n!==undefined){e=o(e,n.close,n.open);n=n.parent}}const s=e.indexOf("\n");if(s!==-1){e=a(e,i,r,s)}return r+e+i};let g;const v=(t,...e)=>{const[r]=e;if(!Array.isArray(r)){return e.join(" ")}const i=e.slice(1);const s=[r.raw[0]];for(let t=1;t{return new Promise((s,o)=>{if(typeof e!=="function"){throw new TypeError("Mapper function is required")}if(!(typeof n==="number"&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const l=t[Symbol.iterator]();let u=false;let h=false;let f=0;let p=0;const d=()=>{if(u){return}const t=l.next();const n=p;p++;if(t.done){h=true;if(f===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}f++;(async()=>{try{const r=await t.value;a[n]=await e(r,n);f--;d()}catch(t){if(i){u=true;o(t)}else{c.push(t);f--;d()}}})()};for(let t=0;t0)return;e=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);next()}if(t._readableState.endEmitted)return next();t.on("merge2UnpipeEnd",onend);t.on("end",onend);t.pipe(a,{end:false});t.resume()}for(let t=0;t{let n=(t,i={})=>{let s=e.escapeInvalid&&r.isInvalidBrace(i);let o=t.invalid===true&&e.escapeInvalid===true;let a="";if(t.value){if((s||o)&&r.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){a+=n(e)}}return a};return n(t)})},821:function(t,e,n){var r=n(622);var i=n(747);var s=parseInt("0777",8);t.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(t,e,n,o){if(typeof e==="function"){n=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var a=e.mode;var c=e.fs||i;if(a===undefined){a=s&~process.umask()}if(!o)o=null;var l=n||function(){};t=r.resolve(t);c.mkdir(t,a,function(n){if(!n){o=o||t;return l(null,o)}switch(n.code){case"ENOENT":mkdirP(r.dirname(t),e,function(n,r){if(n)l(n,r);else mkdirP(t,e,l,r)});break;default:c.stat(t,function(t,e){if(t||!e.isDirectory())l(n,o);else l(null,o)});break}})}mkdirP.sync=function sync(t,e,n){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var a=e.fs||i;if(o===undefined){o=s&~process.umask()}if(!n)n=null;t=r.resolve(t);try{a.mkdirSync(t,o);n=n||t}catch(i){switch(i.code){case"ENOENT":n=sync(r.dirname(t),e,n);sync(t,e,n);break;default:var c;try{c=a.statSync(t)}catch(t){throw i}if(!c.isDirectory())throw i;break}}return n}},828:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(622);const i=n(977);const s=n(635);class Reader{constructor(t){this._settings=t;this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:s.fs.createDirentFromStats(e,t)};if(this._settings.stats){n.stats=t}return n}_isFatalError(t){return!s.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e.default=Reader},830:function(t,e,n){"use strict";t.exports=n(258)},835:function(t){"use strict";t.exports=((t,e=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof t!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``)}if(typeof e!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(e===0){return t}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(r,n.indent.repeat(e))})},839:function(t,e,n){"use strict";const r=n(87);const i=n(199);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(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(t&&!t.isTTY&&o!==true){return 0}const e=o?1:0;if(process.platform==="win32"){const t=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in s)||s.CI_NAME==="codeship"){return 1}return e}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 t=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return t>=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 e}return e}function getSupportLevel(t){const e=supportsColor(t);return translateLevel(e)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},842:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){wrapper[e]=t[e]});return wrapper;function wrapper(){var e=new Array(arguments.length);for(var n=0;nthis._isNonFatalError(t)}_isNonFatalError(t){return r.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e.default=ErrorFilter},851:function(t,e,n){"use strict";const r=n(622);const i="\\\\/";const s=`[^${i}]`;const o="\\.";const a="\\+";const c="\\?";const l="\\/";const u="(?=.)";const h="[^/]";const f=`(?:${l}|$)`;const p=`(?:^|${l})`;const d=`${o}{1,2}${f}`;const y=`(?!${o})`;const m=`(?!${p}${d})`;const g=`(?!${o}{0,1}${f})`;const v=`(?!${d})`;const b=`[^.${l}]`;const _=`${h}*?`;const S={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:l,ONE_CHAR:u,QMARK:h,END_ANCHOR:f,DOTS_SLASH:d,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:_,START_ANCHOR:p};const w={...S,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const E={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?w:S}}},861:function(t,e,n){"use strict";const r=n(892);const i=n(433);const s=n(747);const o=n(862);const a=n(616);const c=n(622);const l=t.exports=((t,e,n)=>{if(typeof e==="function")n=e;if(Array.isArray(t))e=t,t={};if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?u(i,e):i.file?h(i,e,n):i.sync?d(i,e):y(i,e)});const u=(t,e)=>{const n=new i.Sync(t);const r=new o.WriteStreamSync(t.file,{mode:t.mode||438});n.pipe(r);f(n,e)};const h=(t,e,n)=>{const r=new i(t);const s=new o.WriteStream(t.file,{mode:t.mode||438});r.pipe(s);const a=new Promise((t,e)=>{s.on("error",e);s.on("close",t);r.on("error",e)});p(r,e);return n?a.then(n,n):a};const f=(t,e)=>{e.forEach(e=>{if(e.charAt(0)==="@")a({file:c.resolve(t.cwd,e.substr(1)),sync:true,noResume:true,onentry:e=>t.add(e)});else t.add(e)});t.end()};const p=(t,e)=>{while(e.length){const n=e.shift();if(n.charAt(0)==="@")return a({file:c.resolve(t.cwd,n.substr(1)),noResume:true,onentry:e=>t.add(e)}).then(n=>p(t,e));else t.add(n)}t.end()};const d=(t,e)=>{const n=new i.Sync(t);f(n,e);return n};const y=(t,e)=>{const n=new i(t);p(n,e);return n}},862:function(t,e,n){"use strict";const r=n(563);const i=n(614).EventEmitter;const s=n(747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const l=Symbol("_autoClose");const u=Symbol("_close");const h=Symbol("_ended");const f=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const y=Symbol("_flush");const m=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const _=Symbol("_onerror");const S=Symbol("_onopen");const w=Symbol("_onread");const E=Symbol("_onwrite");const R=Symbol("_open");const O=Symbol("_path");const k=Symbol("_pos");const x=Symbol("_queue");const A=Symbol("_read");const C=Symbol("_readSize");const P=Symbol("_reading");const M=Symbol("_remain");const T=Symbol("_size");const L=Symbol("_write");const D=Symbol("_writing");const I=Symbol("_defaultFlag");class ReadStream extends r{constructor(t,e){e=e||{};super(e);this.writable=false;if(typeof t!=="string")throw new TypeError("path must be a string");this[f]=typeof e.fd==="number"?e.fd:null;this[O]=t;this[C]=e.readSize||16*1024*1024;this[P]=false;this[T]=typeof e.size==="number"?e.size:Infinity;this[M]=this[T];this[l]=typeof e.autoClose==="boolean"?e.autoClose:true;if(typeof this[f]==="number")this[A]();else this[R]()}get fd(){return this[f]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){s.open(this[O],"r",(t,e)=>this[S](t,e))}[S](t,e){if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[A]()}}[g](){return Buffer.allocUnsafe(Math.min(this[C],this[M]))}[A](){if(!this[P]){this[P]=true;const t=this[g]();if(t.length===0)return process.nextTick(()=>this[w](null,0,t));s.read(this[f],t,0,t.length,null,(t,e,n)=>this[w](t,e,n))}}[w](t,e,n){this[P]=false;if(t)this[_](t);else if(this[m](e,n))this[A]()}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}[_](t){this[P]=true;this[u]();this.emit("error",t)}[m](t,e){let n=false;this[M]-=t;if(t>0)n=super.write(tthis[S](t,e))}[S](t,e){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";this[R]()}else if(t)this[_](t);else{this[f]=e;this.emit("open",e);this[y]()}}end(t,e){if(t)this.write(t,e);this[h]=true;if(!this[D]&&!this[x].length&&typeof this[f]==="number")this[E](null,0)}write(t,e){if(typeof t==="string")t=new Buffer(t,e);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[f]===null||this[D]||this[x].length){this[x].push(t);this[b]=true;return false}this[D]=true;this[L](t);return true}[L](t){s.write(this[f],t,0,t.length,this[k],(t,e)=>this[E](t,e))}[E](t,e){if(t)this[_](t);else{if(this[k]!==null)this[k]+=e;if(this[x].length)this[y]();else{this[D]=false;if(this[h]&&!this[p]){this[p]=true;this[u]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[y](){if(this[x].length===0){if(this[h])this[E](null,0)}else if(this[x].length===1)this[L](this[x].pop());else{const t=this[x];this[x]=[];$(this[f],t,this[k],(t,e)=>this[E](t,e))}}[u](){if(this[l]&&typeof this[f]==="number"){s.close(this[f],t=>this.emit("close"));this[f]=null}}}class WriteStreamSync extends WriteStream{[R](){let t;try{t=s.openSync(this[O],this[d],this[v])}catch(t){if(this[I]&&this[d]==="r+"&&t&&t.code==="ENOENT"){this[d]="w";return this[R]()}else throw t}this[S](null,t)}[u](){if(this[l]&&typeof this[f]==="number"){try{s.closeSync(this[f])}catch(t){}this[f]=null;this.emit("close")}}[L](t){try{this[E](null,s.writeSync(this[f],t,0,t.length,this[k]))}catch(t){this[E](t,0)}}}const $=(t,e,n,r)=>{const i=(t,n)=>r(t,n,e);const s=new c;s.oncomplete=i;o.writeBuffers(t,e,n,s)};e.ReadStream=ReadStream;e.ReadStreamSync=ReadStreamSync;e.WriteStream=WriteStream;e.WriteStreamSync=WriteStreamSync},867:function(t){t.exports=require("tty")},876:function(t,e,n){"use strict";var r=n(802);var i=n(622).posix.dirname;var s=n(87).platform()==="win32";var o="/";var a=/\\/g;var c=/[\{\[].*[\/]*.*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var u=/\\([\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var n=Object.assign({flipBackslashes:true},e);if(n.flipBackslashes&&s&&t.indexOf(o)<0){t=t.replace(a,o)}if(c.test(t)){t+=o}t+="a";do{t=i(t)}while(r(t)||l.test(t));return t.replace(u,"$1")}},880:function(t){t.exports=function(t,n){var r=[];for(var i=0;i{let r=t.indexOf(e);if(r===-1){return t}const i=e.length;let s=0;let o="";do{o+=t.substr(s,r-s)+e+n;s=r+i;r=t.indexOf(e,s)}while(r!==-1);o+=t.substr(s);return o};const n=(t,e,n,r)=>{let i=0;let s="";do{const o=t[r-1]==="\r";s+=t.substr(i,(o?r-1:r)-i)+e+(o?"\r\n":"\n")+n;i=r+1;r=t.indexOf("\n",i)}while(r!==-1);s+=t.substr(i);return s};t.exports={stringReplaceAll:e,stringEncaseCRLFWithFirstIndex:n}},885:function(t,e,n){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var r=n(747);var i=r.realpath;var s=r.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=n(528);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,n){if(a){return i(t,e,n)}if(typeof e==="function"){n=e;e=null}i(t,e,function(r,i){if(newError(r)){c.realpath(t,e,n)}else{n(r,i)}})}function realpathSync(t,e){if(a){return s(t,e)}try{return s(t,e)}catch(n){if(newError(n)){return c.realpathSync(t,e)}else{throw n}}}function monkeypatch(){r.realpath=realpath;r.realpathSync=realpathSync}function unmonkeypatch(){r.realpath=i;r.realpathSync=s}},886:function(t,e,n){"use strict";var r=n(164);function fastqueue(t,e,n){if(typeof t==="function"){n=e;e=t;t=null}var i=r(Task);var s=null;var o=null;var a=0;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:n,running:running,resume:resume,idle:idle,length:length,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=s;var e=0;while(t){t=t.next;e++}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t{if(typeof t==="function")n=t,e=null,t={};else if(Array.isArray(t))e=t,t={};if(typeof e==="function")n=e,e=null;if(!e)e=[];else e=Array.from(e);const i=r(t);if(i.sync&&typeof n==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof n==="function")throw new TypeError("callback only supported with file option");if(e.length)l(i,e);return i.file&&i.sync?u(i):i.file?h(i,n):i.sync?f(i):p(i)});const l=(t,e)=>{const n=new Map(e.map(t=>[t.replace(/\/+$/,""),true]));const r=t.filter;const i=(t,e)=>{const r=e||a.parse(t).root||".";const s=t===r?false:n.has(t)?n.get(t):i(a.dirname(t),r);n.set(t,s);return s};t.filter=r?(t,e)=>r(t,e)&&i(t.replace(/\/+$/,"")):t=>i(t.replace(/\/+$/,""))};const u=t=>{const e=new i.Sync(t);const n=t.file;let r=true;let a;const c=s.statSync(n);const l=t.maxReadSize||16*1024*1024;const u=new o.ReadStreamSync(n,{readSize:l,size:c.size});u.pipe(e)};const h=(t,e)=>{const n=new i(t);const r=t.maxReadSize||16*1024*1024;const a=t.file;const c=new Promise((t,e)=>{n.on("error",e);n.on("close",t);s.stat(a,(t,i)=>{if(t)e(t);else{const t=new o.ReadStream(a,{readSize:r,size:i.size});t.on("error",e);t.pipe(n)}})});return e?c.then(e,e):c};const f=t=>{return new i.Sync(t)};const p=t=>{return new i(t)}},892:function(t){"use strict";const e=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 n=t.exports=(t=>t?Object.keys(t).map(n=>[e.has(n)?e.get(n):n,t[n]]).reduce((t,e)=>(t[e[0]]=e[1],t),Object.create(null)):{})},896:function(t,e,n){"use strict";const r=n(921);const i=t=>{if(!((Number.isInteger(t)||t===Infinity)&&t>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const e=[];let n=0;const i=()=>{n--;if(e.length>0){e.shift()()}};const s=(t,e,...s)=>{n++;const o=r(t,...s);e(o);o.then(i,i)};const o=(r,i,...o)=>{if(nnew Promise(n=>o(t,n,...e));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>e.length}});return a};t.exports=i;t.exports.default=i},899:function(t,e,n){"use strict";const r=n(622);const i=n(789);const s=n(641);const o=Symbol("findUp.stop");t.exports=(async(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=async e=>{if(typeof t!=="function"){return i(a,e)}const n=await t(e.cwd);if(typeof n==="string"){return i([n],e)}return n};while(true){const t=await c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.sync=((t,e={})=>{let n=r.resolve(e.cwd||"");const{root:s}=r.parse(n);const a=[].concat(t);const c=e=>{if(typeof t!=="function"){return i.sync(a,e)}const n=t(e.cwd);if(typeof n==="string"){return i.sync([n],e)}return n};while(true){const t=c({...e,cwd:n});if(t===o){return}if(t){return r.resolve(n,t)}if(n===s){return}n=r.dirname(n)}});t.exports.exists=s;t.exports.sync.exists=s.sync;t.exports.stop=o},900:function(t,e,n){var r=n(413).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(e,n){if(!(this instanceof ReadStream))return new ReadStream(e,n);r.call(this);var i=this;this.path=e;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}t.open(this.path,this.flags,this.mode,function(t,e){if(t){i.emit("error",t);i.readable=false;return}i.fd=e;i.emit("open",e);i._read()})}function WriteStream(e,n){if(!(this instanceof WriteStream))return new WriteStream(e,n);r.call(this);this.path=e;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},903:function(t){t.exports=require("zlib")},920:function(t){t.exports=runParallel;function runParallel(t,e){var n,r,i;var s=true;if(Array.isArray(t)){n=[];r=t.length}else{i=Object.keys(t);n={};r=i.length}function done(t){function end(){if(e)e(t,n);e=null}if(s)process.nextTick(end);else end()}function each(t,e,i){n[t]=i;if(--r===0||e){done(e)}}if(!r){done(null)}else if(i){i.forEach(function(e){t[e](function(t,n){each(e,t,n)})})}else{t.forEach(function(t,e){t(function(t,n){each(e,t,n)})})}s=false}},921:function(t){"use strict";const e=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=e;t.exports.default=e},932:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=e.exec(t);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},945:function(t,e,n){const r=n(331);const i=n(365);const s={};const o=Object.keys(r);function wrapRaw(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function wrapRounded(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}const r=t(e);if(typeof r==="object"){for(let t=r.length,e=0;e{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const e=i(t);const n=Object.keys(e);n.forEach(n=>{const r=e[n];s[t][n]=wrapRounded(r);s[t][n].raw=wrapRaw(r)})});t.exports=s},948:function(t,e,n){const r=n(357);const i=n(622);const s=n(747);let o=undefined;try{o=n(700)}catch(t){}const a={nosort:true,silent:true};let c=0;const l=process.platform==="win32";const u=t=>{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(e=>{t[e]=t[e]||s[e];e=e+"Sync";t[e]=t[e]||s[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||a};const h=(t,e,n)=>{if(typeof e==="function"){n=e;e={}}r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(e,"rimraf: invalid options argument provided");r.equal(typeof e,"object","rimraf: options should be object");u(e);let i=0;let s=null;let a=0;const l=t=>{s=s||t;if(--a===0)n(s)};const h=(t,r)=>{if(t)return n(t);a=r.length;if(a===0)return n();r.forEach(t=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&if(t,e,n),i*100)}if(r.code==="EMFILE"&&cf(t,e,n),c++)}if(r.code==="ENOENT")r=null}c=0;l(r)};f(t,e,n)})};if(e.disableGlob||!o.hasMagic(t))return h(null,[t]);e.lstat(t,(n,r)=>{if(!n)return h(null,[t]);o(t,e.glob,h)})};const f=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.lstat(t,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&l)p(t,e,r,n);if(i&&i.isDirectory())return y(t,e,r,n);e.unlink(t,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return l?p(t,e,r,n):y(t,e,r,n);if(r.code==="EISDIR")return y(t,e,r,n)}return n(r)})})};const p=(t,e,n,i)=>{r(t);r(e);r(typeof i==="function");if(n)r(n instanceof Error);e.chmod(t,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else e.stat(t,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())y(t,e,n,i);else e.unlink(t,i)})})};const d=(t,e,n)=>{r(t);r(e);if(n)r(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw n}let i;try{i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw n}if(i.isDirectory())v(t,e,n);else e.unlinkSync(t)};const y=(t,e,n,i)=>{r(t);r(e);if(n)r(n instanceof Error);r(typeof i==="function");e.rmdir(t,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))m(t,e,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const m=(t,e,n)=>{r(t);r(e);r(typeof n==="function");e.readdir(t,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return e.rmdir(t,n);let a;s.forEach(r=>{h(i.join(t,r),e,r=>{if(a)return;if(r)return n(a=r);if(--o===0)e.rmdir(t,n)})})})};const g=(t,e)=>{e=e||{};u(e);r(t,"rimraf: missing path");r.equal(typeof t,"string","rimraf: path should be a string");r(e,"rimraf: missing options");r.equal(typeof e,"object","rimraf: options should be object");let n;if(e.disableGlob||!o.hasMagic(t)){n=[t]}else{try{e.lstatSync(t);n=[t]}catch(r){n=o.sync(t,e.glob)}}if(!n.length)return;for(let t=0;t{r(t);r(e);if(n)r(n instanceof Error);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")b(t,e)}};const b=(t,e)=>{r(t);r(e);e.readdirSync(t).forEach(n=>g(i.join(t,n),e));const n=l?100:1;let s=0;do{let r=true;try{const i=e.rmdirSync(t,e);r=false;return i}finally{if(++ss;const c=r===s&&i>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||c},955:function(t,e,n){const r=process.env.__FAKE_PLATFORM__||process.platform;const i=r==="win32";const s=global.__FAKE_TESTING_FS__||n(747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:c,UV_FS_O_FILEMAP:l=0}=s.constants;const u=i&&!!l;const h=512*1024;const f=l|a|o|c;t.exports=!u?()=>"w":t=>t{let n=(t,s={})=>{let o=i.isInvalidBrace(s);let a=t.invalid===true&&e.escapeInvalid===true;let c=o===true||a===true;let l=e.escapeInvalid===true?"\\":"";let u="";if(t.isOpen===true){return l+t.value}if(t.isClose===true){return l+t.value}if(t.type==="open"){return c?l+t.value:"("}if(t.type==="close"){return c?l+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":c?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let n=i.reduce(t.nodes);let s=r(...n,{...e,wrap:false,toRegex:true});if(s.length!==0){return n.length>1&&s.length>1?`(${s})`:s}}if(t.nodes){for(let e of t.nodes){u+=n(e,t)}}return u};return n(t)};t.exports=s},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});const r=n(468);const i=n(25);const s=n(69);e.Settings=s.default;function stat(t,e,n){if(typeof e==="function"){return r.read(t,getSettings(),e)}r.read(t,getSettings(e),n)}e.stat=stat;function statSync(t,e){const n=getSettings(e);return i.read(t,n)}e.statSync=statSync;function getSettings(t={}){if(t instanceof s.default){return t}return new s.default(t)}},998:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\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(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return s.get(t)||t}function parseArguments(t,e){const n=[];const s=e.trim().split(/\s*,\s*/g);let o;for(const e of s){if(!isNaN(e)){n.push(Number(e))}else if(o=e.match(r)){n.push(o[2].replace(i,(t,e,n)=>e?unescape(e):n))}else{throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`)}}return n}function parseStyle(t){n.lastIndex=0;const e=[];let r;while((r=n.exec(t))!==null){const t=r[1];if(r[2]){const n=parseArguments(t,r[2]);e.push([t].concat(n))}else{e.push([t])}}return e}function buildStyle(t,e){const n={};for(const t of e){for(const e of t.styles){n[e[0]]=t.inverse?null:e.slice(1)}}let r=t;for(const t of Object.keys(n)){if(Array.isArray(n[t])){if(!(t in r)){throw new Error(`Unknown Chalk style: ${t}`)}if(n[t].length>0){r=r[t].apply(r,n[t])}else{r=r[t]}}}return r}t.exports=((t,n)=>{const r=[];const i=[];let s=[];n.replace(e,(e,n,o,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const e=s.join("");s=[];i.push(r.length===0?e:buildStyle(t,r)(e));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(t,r)(s.join("")));s=[];r.pop()}else{s.push(l)}});i.push(s.join(""));if(r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return i.join("")})}},function(t){"use strict";!function(){t.nmd=function(t){t.paths=[];if(!t.children)t.children=[];Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}});return t}}();!function(){t.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();!function(){var e=Object.prototype.hasOwnProperty;t.d=function(t,n,r){if(!e.call(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r})}}}();!function(){t.t=function(e,n){if(n&1)e=this(e);if(n&8)return e;if(n&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);t.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(n&2&&typeof e!="string")for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r}}();!function(){t.n=function(e){var n=e&&e.__esModule?function getDefault(){return e["default"]}:function getModuleExports(){return e};t.d(n,"a",n);return n}}()}); \ No newline at end of file diff --git a/package.json b/package.json index 4ff7464..fa98998 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridtastic", - "version": "0.2.17", + "version": "0.2.18", "description": "A suite of helpers to augment the Gridsome CLI.", "main": "./dist/main/index.js", "bin": {