UNPKG

@postar/cli

Version:

一个前端项目脚手架工具,专注于团队开发效率提升和规范统一,让项目初始化更简单、更规范。

3 lines 1.42 MB
#!/usr/bin/env node /*! For license information please see postar-cli.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["postar-cli"]=t():e["postar-cli"]=t()}(global,(()=>(()=>{var e={130:(e,t,n)=>{"use strict";const i=n(14635).fromPromise,r=n(16928),o=n(26289),a=n(58006),{pathExists:s}=n(13640),{areIdentical:c}=n(15838);e.exports={createLink:i((async function(e,t){let n,i;try{n=await o.lstat(t)}catch{}try{i=await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(n&&c(i,n))return;const u=r.dirname(t);await s(u)||await a.mkdirs(u),await o.link(e,t)})),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=r.dirname(t);return o.existsSync(i)||a.mkdirsSync(i),o.linkSync(e,t)}}},250:e=>{"use strict";e.exports=Math.pow},253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var i=n(76692),r=n(42848),o=n(80249);t.fromEventPattern=function e(t,n,a){return a?e(t,n).pipe(o.mapOneOrManyArgs(a)):new i.Observable((function(e){var i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)},o=t(i);return r.isFunction(n)?function(){return n(i,o)}:void 0}))}},384:(e,t,n)=>{var i=n(61869),r=n(17799),o=n(39023),a=n(28379),s=n(3827),c=n(75129).Readable,u=n(75129).Writable,p=n(13193).StringDecoder,l=n(74327),d=parseInt("755",8),f=parseInt("644",8),m=a(1024),h=function(){},b=function(e,t){(t&=511)&&e.push(m.slice(0,512-t))};var v=function(e){u.call(this),this.written=0,this._to=e,this._destroyed=!1};o.inherits(v,u),v.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var g=function(){u.call(this),this.linkname="",this._decoder=new p("utf-8"),this._destroyed=!1};o.inherits(g,u),g.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},g.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var x=function(){u.call(this),this._destroyed=!1};o.inherits(x,u),x.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},x.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var y=function(e){if(!(this instanceof y))return new y(e);c.call(this,e),this._drain=h,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(y,c),y.prototype.entry=function(e,t,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(n=t,t=null),n||(n=h);var o=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&i.S_IFMT){case i.S_IFBLK:return"block-device";case i.S_IFCHR:return"character-device";case i.S_IFDIR:return"directory";case i.S_IFIFO:return"fifo";case i.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?d:f),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=s(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),b(o,e.size),process.nextTick(n),new x;if("symlink"===e.type&&!e.linkname){var a=new g;return r(a,(function(t){if(t)return o.destroy(),n(t);e.linkname=a.linkname,o._encode(e),n()})),a}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(n),new x;var c=new v(this);return this._stream=c,r(c,(function(t){return o._stream=null,t?(o.destroy(),n(t)):c.written!==e.size?(o.destroy(),n(new Error("size mismatch"))):(b(o,e.size),o._finalizing&&o.finalize(),void n())})),c}},y.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(m),this.push(null))},y.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},y.prototype._encode=function(e){if(!e.pax){var t=l.encode(e);if(t)return void this.push(t)}this._encodePax(e)},y.prototype._encodePax=function(e){var t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(n)),this.push(t),b(this,t.length),n.size=e.size,n.type=e.type,this.push(l.encode(n))},y.prototype._read=function(e){var t=this._drain;this._drain=h,t()},e.exports=y},596:(e,t,n)=>{var i=n(82525),r=n(27556),o=n(19183),a=n(92982),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,o(e)),e=r(e);return t}:a;e.exports=s},626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var i=n(76692),r=n(35599),o=n(86367),a=n(70100);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=r.async);var s=-1;return null!=t&&(o.isScheduler(t)?n=t:s=t),new i.Observable((function(t){var i=a.isValidDate(e)?+e-n.now():e;i<0&&(i=0);var r=0;return n.schedule((function(){t.closed||(t.next(r++),0<=s?this.schedule(void 0,s):t.complete())}),i)}))}},932:e=>{"use strict";e.exports=require("process")},1304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},1379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var i=n(36519),r=n(56685),o=n(78853);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.popScheduler(e);return o.operate((function(t,r){(n?i.concat(e,t,n):i.concat(e,t)).subscribe(r)}))}},1399:(e,t,n)=>{var i=n(2203);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=n(23033)).Stream=i||t,t.Readable=t,t.Writable=n(92553),t.Duplex=n(35707),t.Transform=n(50141),t.PassThrough=n(75271),t.finished=n(32339),t.pipeline=n(35481))},1458:(e,t)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},1558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var i=n(55735),r=n(72981),o=n(8539),a=n(10056),s=n(43384);t.elementAt=function(e,t){if(e<0)throw new i.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(r.filter((function(t,n){return n===e})),s.take(1),n?a.defaultIfEmpty(t):o.throwIfEmpty((function(){return new i.ArgumentOutOfRangeError})))}}},1607:(e,t,n)=>{var i=n(35317).spawn;e.exports=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);var o=(n=n||{}).git||"git",a=["clone"];n.shallow&&(a.push("--depth"),a.push("1")),a.push("--"),a.push(e),a.push(t),i(o,a).on("close",(function(e){0==e?n.checkout?function(){var e=["checkout",n.checkout],a=i(o,e,{cwd:t});a.on("close",(function(e){0==e?r&&r():r&&r(new Error("'git checkout' failed with status "+e))}))}():r&&r():r&&r(new Error("'git clone' failed with status "+e))}))}},1729:(e,t,n)=>{const i=n(79896),r=n(16928),o=n(98253),{colors:a}=n(50876);e.exports={formatTargetDir:function(e){return e.trim().replace(/\/+$/g,"")},emptyDir:function(e){if(i.existsSync(e))for(const t of i.readdirSync(e))".git"!==t&&i.rmSync(r.resolve(e,t),{recursive:!0,force:!0})},addBackOption:function(e){return[...e,new o.Separator,{name:a.yellow("返回"),value:"BACK"}]},formatMessage:function(e){return a.cyan(e)},showSelectionHistory:function(e,t){console.clear(),t.team&&(console.log(a.blue("✔ 选择的团队:"),t.team.name),console.log()),"team"!==e&&t.type&&(console.log(a.red("✔ 选择的项目类型:"),t.type.type),console.log()),"team"!==e&&"type"!==e&&t.framework&&(console.log(a.green("✔ 选择的框架:"),t.framework.framework),console.log()),"team"!==e&&"type"!==e&&"framework"!==e&&t.template&&(console.log(a.yellow("✔ 选择的模板:"),t.template.name),console.log())}}},1814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var i=n(30451);t.distinctUntilKeyChanged=function(e,t){return i.distinctUntilChanged((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}},1818:e=>{"use strict";e.exports=JSON.parse('{"name":"seek-bzip","version":"1.0.6","contributors":["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],"description":"a pure-JavaScript Node.JS module for random-access decoding bzip2 data","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/cscott/seek-bzip.git"},"license":"MIT","bin":{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},"directories":{"test":"test"},"dependencies":{"commander":"^2.8.1"},"devDependencies":{"fibers":"~1.0.6","mocha":"~2.2.5"},"scripts":{"test":"mocha"}}')},2052:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var i=n(70869),r=n(42848);t.switchMapTo=function(e,t){return r.isFunction(t)?i.switchMap((function(){return e}),t):i.switchMap((function(){return e}))}},2203:e=>{"use strict";e.exports=require("stream")},2275:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},2738:(e,t,n)=>{"use strict";var i=n(56095),r=n(46084),o=n(57811);function a(e,t){if(!e)return i.reject(new Error("Expected a stream"));var n,a,s=(t=r({maxBuffer:1/0},t)).maxBuffer,c=new i((function(i,r){function c(e){e&&(e.bufferedData=n.getBufferedValue()),r(e)}n=o(t),e.once("error",c),e.pipe(n),n.on("data",(function(){n.getBufferedLength()>s&&r(new Error("maxBuffer exceeded"))})),n.once("error",c),n.on("end",i),a=function(){e.unpipe&&e.unpipe(n)}}));return c.then(a,a),c.then((function(){return n.getBufferedValue()}))}e.exports=a,e.exports.buffer=function(e,t){return a(e,r({},t,{encoding:"buffer"}))},e.exports.array=function(e,t){return a(e,r({},t,{array:!0}))}},2858:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),i=new RegExp("("+t+")+","gi");function r(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],r(n),r(i))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],i=1;i<t.length;i++)t=(e=r(t,i).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},2908:(e,t,n)=>{"use strict";var i=n(71628).Buffer;function r(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,"base64"===this.enc?this.encoder=c:"cesu8"===this.enc&&(this.enc="utf8",this.encoder=u,"💩"!==i.from("eda0bdedb2a9","hex").toString()&&(this.decoder=p,this.defaultCharUnicode=t.defaultCharUnicode))}e.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:r},r.prototype.encoder=s,r.prototype.decoder=a;var o=n(13193).StringDecoder;function a(e,t){o.call(this,t.enc)}function s(e,t){this.enc=t.enc}function c(e,t){this.prevStr=""}function u(e,t){}function p(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}o.prototype.end||(o.prototype.end=function(){}),a.prototype=o.prototype,s.prototype.write=function(e){return i.from(e,this.enc)},s.prototype.end=function(){},c.prototype.write=function(e){var t=(e=this.prevStr+e).length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),i.from(e,"base64")},c.prototype.end=function(){return i.from(this.prevStr,"base64")},u.prototype.write=function(e){for(var t=i.alloc(3*e.length),n=0,r=0;r<e.length;r++){var o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=192+(o>>>6),t[n++]=128+(63&o)):(t[n++]=224+(o>>>12),t[n++]=128+(o>>>6&63),t[n++]=128+(63&o))}return t.slice(0,n)},u.prototype.end=function(){},p.prototype.write=function(e){for(var t=this.acc,n=this.contBytes,i=this.accBytes,r="",o=0;o<e.length;o++){var a=e[o];128!=(192&a)?(n>0&&(r+=this.defaultCharUnicode,n=0),a<128?r+=String.fromCharCode(a):a<224?(t=31&a,n=1,i=1):a<240?(t=15&a,n=2,i=1):r+=this.defaultCharUnicode):n>0?(t=t<<6|63&a,i++,0===--n&&(r+=2===i&&t<128&&t>0||3===i&&t<2048?this.defaultCharUnicode:String.fromCharCode(t))):r+=this.defaultCharUnicode}return this.acc=t,this.contBytes=n,this.accBytes=i,r},p.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}},3063:(e,t,n)=>{"use strict";const i=n(16928),r=n(70627),o=n(20798),a=n(26612),s=n(8694),c=n(31405),u=n(85580),p=n(35969),l=n(90599),d=p(r),f=(e,t)=>d.realpath(e).catch((n=>{const r=i.dirname(e);return f(r,t)})).then((n=>{if(0!==n.indexOf(t))throw new Error("Refusing to create a directory outside the output path.");return u(e).then(d.realpath)})),m=(e,t,n)=>((e,t)=>0===t.plugins.length?Promise.resolve([]):Promise.all(t.plugins.map((n=>n(e,t)))).then((e=>e.reduce(((e,t)=>e.concat(t))))))(e,n).then((e=>(n.strip>0&&(e=e.map((e=>(e.path=l(e.path,n.strip),e))).filter((e=>"."!==e.path))),"function"==typeof n.filter&&(e=e.filter(n.filter)),"function"==typeof n.map&&(e=e.map(n.map)),t?Promise.all(e.map((e=>{const n=i.join(t,e.path),r=e.mode&~process.umask(),o=new Date;return"directory"===e.type?u(t).then((e=>d.realpath(e))).then((e=>f(n,e))).then((()=>d.utimes(n,o,e.mtime))).then((()=>e)):u(t).then((e=>d.realpath(e))).then((e=>f(i.dirname(n),e).then((()=>e)))).then((t=>"file"===e.type?((e,t)=>d.readlink(e).catch((e=>null)).then((e=>{if(e)throw new Error("Refusing to write into a symlink");return t})))(n,t):t)).then((e=>d.realpath(i.dirname(n)).then((t=>{if(0!==t.indexOf(e))throw new Error("Refusing to write outside output directory: "+t)})))).then((()=>"link"===e.type||"symlink"===e.type&&"win32"===process.platform?d.link(e.linkname,n):"symlink"===e.type?d.symlink(e.linkname,n):d.writeFile(n,e.data,{mode:r}))).then((()=>"file"===e.type&&d.utimes(n,o,e.mtime))).then((()=>e))}))):e)));e.exports=(e,t,n)=>{if("string"!=typeof e&&!Buffer.isBuffer(e))return Promise.reject(new TypeError("Input file required"));"object"==typeof t&&(n=t,t=null),n=Object.assign({plugins:[o(),a(),s(),c()]},n);return("string"==typeof e?d.readFile(e):Promise.resolve(e)).then((e=>m(e,t,n)))}},3198:(e,t,n)=>{"use strict";const i=n(2203).PassThrough;e.exports=e=>{const t=(e=Object.assign({},e)).array;let n=e.encoding;const r="buffer"===n;let o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);let a=0;const s=[],c=new i({objectMode:o});return n&&c.setEncoding(n),c.on("data",(e=>{s.push(e),o?a=s.length:a+=e.length})),c.getBufferedValue=()=>t?s:r?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}},3431:(e,t,n)=>{var i=n(88295),r=n(24856),o=n(9169),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=a},3511:(e,t,n)=>{var i=n(89754),r=n(35351),o=n(73069);e.exports=function(e){return o(e)?i(e):r(e)}},3591:e=>{"use strict";const t=(e,t)=>function(){const n=t.promiseModule,i=new Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];return new n(((n,r)=>{t.errorFirst?i.push((function(e,i){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),r(t)):n(t)}else e?r(e):n(i)})):i.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)})),e.apply(this,i)}))};e.exports=(e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);const i=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let r;r="function"==typeof e?function(){return n.excludeMain?e.apply(this,arguments):t(e,n).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const a=e[o];r[o]="function"==typeof a&&i(o)?t(a,n):a}return r}},3644:(e,t,n)=>{var i=n(51855);e.exports=function(e){return function(t){return i(t,e)}}},3827:e=>{e.exports=function(e,n){if(Buffer.isBuffer(e))return e;if("string"==typeof e)return t(e,n);if(Array.isArray(e))return t(e);throw new Error("Input should be a buffer or a string")};var t=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(e,t){return new Buffer(e,t)}},3899:(e,t,n)=>{var i=n(38309),r=n(77583);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,a,e,s))}},4113:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return r(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,i=t._hasValue,r=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;n?e.error(o):(a||s)&&(i&&e.next(r),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,i=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,i),e.prototype.complete.call(this))},t}(n(80357).Subject);t.AsyncSubject=o},4136:(e,t,n)=>{var i=n(31200);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},4185:function(e,t,n){"use strict";var i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var o=n(86367),a=n(76692),s=n(66706),c=n(80249),u=n(75630),p=n(4113);t.bindCallbackInternals=function e(t,n,l,d){if(l){if(!o.isScheduler(l))return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return e(t,n,d).apply(this,i).pipe(c.mapOneOrManyArgs(l))};d=l}return d?function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return e(t,n).apply(this,i).pipe(s.subscribeOn(d),u.observeOn(d))}:function(){for(var e=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var c=new p.AsyncSubject,u=!0;return new a.Observable((function(a){var s=c.subscribe(a);if(u){u=!1;var p=!1,l=!1;n.apply(e,r(r([],i(o)),[function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var i=e.shift();if(null!=i)return void c.error(i)}c.next(1<e.length?e:e[0]),l=!0,p&&c.complete()}])),l&&c.complete(),p=!0}return s}))}}},4262:(e,t,n)=>{"use strict";var i=n(24682);e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError;return t=i(t),e.replace(new RegExp("^"+t+"|"+t+"$","g"),"")}},4482:e=>{"use strict";e.exports=require("electron")},4506:(e,t,n)=>{var i=n(86330),r=n(52363),o=n(9169),a=n(25874),s=n(86830);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):i(e):s(e)}},4709:(e,t,n)=>{e.exports=f,f.GlobSync=m;var i=n(68831),r=n(18782),o=(r.Minimatch,n(99632).Glob,n(39023),n(16928)),a=n(42613),s=n(91806),c=n(17219),u=c.setopts,p=c.ownProp,l=c.childrenIgnored,d=c.isIgnored;function f(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(u(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}m.prototype._finish=function(){if(a.ok(this instanceof m),this.realpath){var e=this;this.matches.forEach((function(t,n){var r=e.matches[n]=Object.create(null);for(var o in t)try{o=e._makeAbs(o),r[i.realpathSync(o,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;r[e._makeAbs(o)]=!0}}))}c.finish(this)},m.prototype._process=function(e,t,n){a.ok(this instanceof m);for(var i,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t);case 0:i=null;break;default:i=e.slice(0,o).join("/")}var c,u=e.slice(o);null===i?c=".":s(i)||s(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(i&&s(i)||(i="/"+i),c=i):c=i;var p=this._makeAbs(c);l(this,c)||(u[0]===r.GLOBSTAR?this._processGlobStar(i,c,p,u,t,n):this._processReaddir(i,c,p,u,t,n))},m.prototype._processReaddir=function(e,t,n,i,r,a){var s=this._readdir(n,a);if(s){for(var c=i[0],u=!!this.minimatch.negate,p=c._glob,l=this.dot||"."===p.charAt(0),d=[],f=0;f<s.length;f++){if("."!==(b=s[f]).charAt(0)||l)(u&&!e?!b.match(c):b.match(c))&&d.push(b)}var m=d.length;if(0!==m)if(1!==i.length||this.mark||this.stat){i.shift();for(f=0;f<m;f++){var h;b=d[f];h=e?[e,b]:[b],this._process(h.concat(i),r,a)}}else{this.matches[r]||(this.matches[r]=Object.create(null));for(var f=0;f<m;f++){var b=d[f];e&&(b="/"!==e.slice(-1)?e+"/"+b:e+b),"/"!==b.charAt(0)||this.nomount||(b=o.join(this.root,b)),this._emitMatch(r,b)}}}},m.prototype._emitMatch=function(e,t){if(!d(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var i=this.cache[n];if("DIR"===i||Array.isArray(i))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},m.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var i=n&&n.isSymbolicLink();return this.symlinks[e]=i,i||!n||n.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},m.prototype._readdir=function(e,t){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e);if(p(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},m.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,t},m.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=t.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},m.prototype._processGlobStar=function(e,t,n,i,r,o){var a=this._readdir(n,o);if(a){var s=i.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,r,!1);var p=a.length;if(!this.symlinks[n]||!o)for(var l=0;l<p;l++){if("."!==a[l].charAt(0)||this.dot){var d=c.concat(a[l],s);this._process(d,r,!0);var f=c.concat(a[l],i);this._process(f,r,!0)}}}},m.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&s(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},m.prototype._stat=function(e){var t=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return i;if(n&&"FILE"===i)return!1}var r=this.statCache[t];if(!r){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(t)}catch(e){r=o}else r=o}this.statCache[t]=r;i=!0;return r&&(i=r.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,(!n||"FILE"!==i)&&i},m.prototype._mark=function(e){return c.mark(this,e)},m.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},4725:(e,t,n)=>{var i=n(54965),r=n(98232),o=n(96574),a=o&&o.isMap,s=a?r(a):i;e.exports=s},4895:(e,t,n)=>{"use strict";const i=n(86181),r=n(57709),o={info:i.blue("ℹ"),success:i.green("✔"),warning:i.yellow("⚠"),error:i.red("✖")},a={info:i.blue("i"),success:i.green("√"),warning:i.yellow("‼"),error:i.red("×")};e.exports=r()?o:a},5156:(e,t,n)=>{const{InvalidArgumentError:i}=n(10723);function r(e){let t,n;const i=e.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(t=i.shift()),n=i.shift(),!t&&/^-[^-]$/.test(n)&&(t=n,n=void 0),{shortFlag:t,longFlag:n}}t.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const n=r(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.name().replace(/^no-/,"").split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.splitOptionFlags=r,t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach((e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)})),this.negativeOptions.forEach(((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)}))}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return!0;const i=this.negativeOptions.get(n).presetArg,r=void 0!==i&&i;return t.negate===(r===e)}}},5783:(e,t,n)=>{"use strict";const i=n(14635).fromPromise;e.exports={move:i(n(62690)),moveSync:n(24164)}},5793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var i=n(12295),r=null;t.errorContext=function(e){if(i.config.useDeprecatedSynchronousErrorHandling){var t=!r;if(t&&(r={errorThrown:!1,error:null}),e(),t){var n=r,o=n.errorThrown,a=n.error;if(r=null,o)throw a}}else e()},t.captureError=function(e){i.config.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=e)}},5933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var i=n(67258);t.EmptyError=i.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},5940:(e,t,n)=>{var i=n(79270);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},5979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var i=n(68072),r=n(31584);t.shareReplay=function(e,t,n){var o,a,s,c,u=!1;return e&&"object"==typeof e?(o=e.bufferSize,c=void 0===o?1/0:o,a=e.windowTime,t=void 0===a?1/0:a,u=void 0!==(s=e.refCount)&&s,n=e.scheduler):c=null!=e?e:1/0,r.share({connector:function(){return new i.ReplaySubject(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},6185:e=>{e.exports=function(e,t){var n="";e=(e=e||"Run the trap, drop the bass").split("");var i={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=i[e]||[" "],r=Math.floor(Math.random()*t.length);n+=void 0!==i[e]?i[e][r]:e})),n}},6273:(e,t,n)=>{"use strict";var i=n(70857),r=n(68001),o=process.env,a=void 0;function s(e){var t=function(e){if(!1===a)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;var t=a?1:0;if("win32"===process.platform){var n=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var s=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}r("no-color")||r("no-colors")||r("color=false")?a=!1:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(a=!0),"FORCE_COLOR"in o&&(a=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},6499:(e,t,n)=>{var i=n(29778),r=n(77583);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},6821:e=>{e.exports=function(){this.__data__=[],this.size=0}},6865:e=>{"use strict";const t=e=>[...e].map((e=>e.charCodeAt(0))),n=t("META-INF/mozilla.rsa"),i=t("[Content_Types].xml"),r=t("_rels/.rels");e.exports=e=>{const o=e instanceof Uint8Array?e:new Uint8Array(e);if(!(o&&o.length>1))return null;const a=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;n<e.length;n++)if(t.mask){if(e[n]!==(t.mask[n]&o[n+t.offset]))return!1}else if(e[n]!==o[n+t.offset])return!1;return!0},s=(e,n)=>a(t(e),n);if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(a([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(a([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((a([73,73,42,0])||a([77,77,0,42]))&&a([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(a([73,73,42,0])||a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(a([80,75,3,4])){if(a([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(a(n,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};if(a(i,{offset:30})||a(r,{offset:30})){const e=e=>e.findIndex(((e,t,n)=>80===n[t]&&75===n[t+1]&&3===n[t+2]&&4===n[t+3])),t=e(o.subarray(4,2004));if(-1!==t){const n=e(o.subarray(t+8,t+8+1e3));if(-1!==n){const e=8+t+n+30;if(s("word/",{offset:e}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(s("ppt/",{offset:e}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(s("xl/",{offset:e}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(a([80,75])&&(3===o[2]||5===o[2]||7===o[2])&&(4===o[3]||6===o[3]||8===o[3]))return{ext:"zip",mime:"application/zip"};if(a([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(a([82,97,114,33,26,7])&&(0===o[6]||1===o[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([51,103,112,53])||a([0,0,0])&&a([102,116,121,112],{offset:4})&&(a([109,112,52,49],{offset:8})||a([109,112,52,50],{offset:8})||a([105,115,111,109],{offset:8})||a([105,115,111,50],{offset:8})||a([109,109,112,52],{offset:8})||a([77,52,86],{offset:8})||a([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(a([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(a([26,69,223,163])){const e=o.subarray(4,4100),t=e.findIndex(((e,t,n)=>66===n[t]&&130===n[t+1]));if(-1!==t){const n=t+3,i=t=>[...t].every(((t,i)=>e[n+i]===t.charCodeAt(0)));if(i("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(i("webm"))return{ext:"webm",mime:"video/webm"}}}if(a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([82,73,70,70])){if(a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(a([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/x-wav"};if(a([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(a([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(a([0,0,1,186])||a([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(a([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let e=0;e<2&&e<o.length-16;e++){if(a([73,68,51],{offset:e})||a([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(a([255,228],{offset:e,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(a([255,248],{offset:e,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(a([255,240],{offset:e,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32]))return{ext:"m4a",mime:"audio/m4a"};if(a([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(a([79,103,103,83]))return a([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:a([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:a([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:a([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:a([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(a([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(a([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(a([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(a([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(a([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((67===o[0]||70===o[0])&&a([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(a([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(a([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8})))return{ext:"eot",mime:"application/octet-stream"};if(a([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(a([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(a([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(a([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(a([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(a([37,33]))return{ext:"ps",mime:"application/postscript"};if(a([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(a([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(a([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(a([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(a([77,83,67,70])||a([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(a([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(a([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(a([31,160])||a([31,157]))return{ext:"Z",mime:"application/x-compress"};if(a([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(a([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(a([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(a([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(a([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(a([0,0,0,12,106,80,32,32,13,10,135,10])){if(a([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(a([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(a([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(a([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(a([70,79,82,77,0]))return{ext:"aif",mime:"audio/aiff"};if(s("<?xml "))return{ext:"xml",mime:"application/xml"};if(a([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(a([102,116,121,112],{offset:4})){if(a([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(a([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(a([104,101,105,99],{offset:8})||a([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(a([104,101,118,99],{offset:8})||a([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return a([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:null}},6876:(e,t,n)=>{"use strict";var i=n(71628).Buffer,r=n(65314),o=e.exports;o.encodings=null,o.defaultCharUnicode="�",o.defaultCharSingleByte="?",o.encode=function(e,t,n){e=""+(e||"");var r=o.getEncoder(t,n),a=r.write(e),s=r.end();return s&&s.length>0?i.concat([a,s]):a},o.decode=function(e,t,n){"string"==typeof e&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),e=i.from(""+(e||""),"binary"));var r=o.getDecoder(t,n),a=r.write(e),s=r.end();return s?a+s:a},o.encodingExists=function(e){try{return o.getCodec(e),!0}catch(e){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(e){o.encodings||(o.encodings=n(17753));for(var t=o._canonicalizeEncoding(e),i={};;){var r=o._codecDataCache[t];if(r)return r;var a=o.encodings[t];switch(typeof a){case"string":t=a;break;case"object":for(var s in a)i[s]=a[s];i.encodingName||(i.encodingName=t),t=a.type;break;case"function":return i.encodingName||(i.encodingName=t),r=new a(i,o),o._codecDataCache[i.encodingName]=r,r;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+t+"')")}}},o._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(e,t){var n=o.getCodec(e),i=new n.encoder(t,n);return n.bomAware&&t&&t.addBOM&&(i=new r.PrependBOM(i,t)),i},o.getDecoder=function(e,t){var n=o.getCodec(e),i=new n.decoder(t,n);return!n.bomAware||t&&!1===t.stripBOM||(i=new r.StripBOM(i,t)),i};var a="undefined"!=typeof process&&process.versions&&process.versions.node;if(a){var s=a.split(".").map(Number);(s[0]>0||s[1]>=10)&&n(35681)(o),n(74387)(o)}},6902:(e,t,n)=>{var i=n(85532),r=n(3511);e.exports=function(e,t){return e&&i(t,r(t),e)}},7164:(e,t,n)=>{var i=n(39023),r=n(35714);function o(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1,this.reset=function(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1},this.nextByte=function(e){return this.nextIndex>=e.fRawLength?(this.done=!0,-1):255&e.fRawInput[this.nextIndex++]}}function a(){}function s(e,t){e.index=e.nextIndex,e.error=!1;var n=0,i=0,r=0;return(n=e.charValue=e.nextByte(t))<0?e.done=!0:n<=141||(i=e.nextByte(t),e.charValue=e.charValue<<8|i,n>=161&&n<=254?i<161&&(e.error=!0):142!=n?143==n&&(r=e.nextByte(t),e.charValue=e.charValue<<8|r,r<161&&(e.error=!0)):i<161&&(e.error=!0)),0==e.done}a.prototype.match=function(e){var t,n=0,i=0,a=0,s=0,c=0,u=new o;e:{for(u.reset();this.nextChar(u,e);){if(s++,u.error)a++;else{var p=4294967295&u.charValue;p<=255?0:(n++,null!=this.commonChars&&function e(t,n,i,r){if(r<i)return-1;var o=Math.floor(i+r>>>1);return n>t[o]?e(t,n,o+1,r):n<t[o]?e(t,n,i,o-1):o}(t=this.commonChars,p,0,t.length-1)>=0&&i++)}if(a>=2&&5*a>=n)break e}if(n<=10&&0==a)c=0==n&&s<10?0:10;else if(n<20*a)c=0;else if(null==this.commonChars)(c=30+n-20*a)>100&&(c=100);else{var l=90/Math.log(parseFloat(n)/4);c=Math.floor(Math.log(i+1)*l+10),c=Math.min(c,100)}}return 0==c?null:new r(e,this,c)},a.prototype.nextChar=function(e,t){},e.exports.sjis=function(){this.name=function(){return"Shift-JIS"},this.language=function(){return"ja"},this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314],this.nextChar=function(e,t){var n;if(e.index=e.nextIndex,e.error=!1,(n=e.charValue=e.nextByte(t))<0)return!1;if(n<=127||n>160&&n<=223)return!0;var i=e.nextByte(t);return!(i<0)&&(e.charValue=n<<8|i,i>=64&&i<=127||i>=128&&i<=255||(e.error=!0),!0)}},i.inherits(e.exports.sjis,a),e.exports.big5=function(){this.name=function(){return"Big5"},this.language=function(){return"zh"},this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271],this.nextChar=function(e,t){e.index=e.nextIndex,e.error=!1;var n=e.charValue=e.nextByte(t);if(n<0)return!1;if(n<=127||255==n)return!0;var i=e.nextByte(t);return!(i<0)&&(e.charValue=e.charValue<<8|i,(i<64||127==i||255==i)&&(e.error=!0),!0)}},i.inherits(e.exports.big5,a),e.exports.euc_jp=function(){this.name=function(){return"EUC-JP"},this.language=function(){return"ja"},this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=s},i.inherits(e.exports.euc_jp,a),e.exports.euc_kr=function(){this.name=function(){return"EUC-KR"},this.language=function(){return"ko"},this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=s},i.inherits(e.exports.euc_kr,a),e.exports.gb_18030=function(){this.name=function(){return"GB18030"},this.language=function(){return"zh"},this.nextChar=function(e,t){e.index=e.nextIndex,e.error=!1;var n=0,i=0,r=0,o=0;e:if((n=e.charValue=e.nextByte(t))<0)e.done=!0;else if(!(n<=128))if(i=e.nextByte(t),e.charValue=e.charValue<<8|i,n>=129&&n<=254){if(i>=64&&i<=126||i>=80&&i<=254)break e;if(i>=48&&i<=57&&(r=e.nextByte(t))>=129&&r<=254&&(o=e.nextByte(t))>=48&&o<=57){e.charValue=e.charValue<<16|r<<8|o;break e}e.error=!0}else;return 0==e.done},this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]},i.inherits(e.exports.gb_18030,a)},7221:(e,t,n)=>{var i=n(9438),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},7222:e=>{"use strict";e.exports=function(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}},7223:(e,t,n)=>{var i=n(99400);e.exports=function(e){return e==e&&!i(e)}},7578:(e,t,n)=>{var i=n(7962);e.exports=function(e){var t=!1;return i((function(){t=!0})),function(n,r){t?e(n,r):i((function(){e(n,r)}))}}},7581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var i=n(78853);t.finalize=function(e){return i.operate((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}},7642:(e,t)=>{"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},7939:e=>{function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(r){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||r,e.pending-=1,e.waiting.length>0&&e.pending<e.max)i(e,e.waiting.shift());else if(0===e.pending){var o=e.listeners;e.listeners=[],o.forEach(n)}};function n(t){t(e.error)}}function i(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?i(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},7962:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"