utilitas 1989.10.21 → 1989.10.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see utilitas.lite.mjs.LICENSE.txt */
2
- (()=>{var e,t,r,n,i,o,a,s,u={9142:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=9142,e.exports=t},8508:(e,t,r)=>{var n=r(4155);function i(e){this._db=e,this._operations=[],this._written=!1}i.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},i.prototype.put=function(e,t){this._checkWritten();var r=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(r)throw r;if(r=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw r;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},i.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},i.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},i.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void n.nextTick(t)},e.exports=i},3538:(e,t,r)=>{var n=r(4155);function i(e){this.db=e,this._ended=!1,this._nexting=!1}i.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next((function(){t._nexting=!1,e.apply(null,arguments)})):void n.nextTick((function(){t._nexting=!1,e()})))},i.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void n.nextTick(e))},e.exports=i},2554:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(7915),a=r(3538),s=r(8508);function u(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}u.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);n.nextTick(t)},u.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);n.nextTick(e)},u.prototype.get=function(e,t,r){var i;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("get() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?r(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,r):void n.nextTick((function(){r(new Error("NotFound"))})))},u.prototype.put=function(e,t,r,i){var o;if("function"==typeof r&&(i=r),"function"!=typeof i)throw new Error("put() requires a callback argument");return(o=this._checkKeyValue(e,"key",this._isBuffer))||(o=this._checkKeyValue(t,"value",this._isBuffer))?i(o):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||n.browser||(t=String(t)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(e,t,r,i):void n.nextTick(i))},u.prototype.del=function(e,t,r){var i;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("del() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?r(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,r):void n.nextTick(r))},u.prototype.batch=function(e,t,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return r(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var i,o,a=0,s=e.length;a<s;a++)if("object"==typeof(i=e[a])){if(o=this._checkKeyValue(i.type,"type",this._isBuffer))return r(o);if(o=this._checkKeyValue(i.key,"key",this._isBuffer))return r(o);if("put"==i.type&&(o=this._checkKeyValue(i.value,"value",this._isBuffer)))return r(o)}if("function"==typeof this._batch)return this._batch(e,t,r);n.nextTick(r)},u.prototype.approximateSize=function(e,t,r){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,r);n.nextTick((function(){r(null,0)}))},u.prototype._setupIteratorOptions=function(e){var t=this;return e=o(e),["start","end","gt","gte","lt","lte"].forEach((function(r){e[r]&&t._isBuffer(e[r])&&0===e[r].length&&delete e[r]})),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},u.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new a(this)},u.prototype._chainedBatch=function(){return new s(this)},u.prototype._isBuffer=function(e){return i.isBuffer(e)},u.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.NI=u,e.exports.YI=a},7915:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},9282:(e,t,r)=>{"use strict";var n=r(4155),i=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a,s,u=r(2136).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,l=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(5961),g=r(9539).inspect,y=r(9539).types,b=y.isPromise,v=y.isRegExp,m=Object.assign?Object.assign:r(8091).assign,w=Object.is?Object.is:r(609);function E(){var e=r(9158);a=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var _=!1,S=e.exports=R,k={};function O(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function x(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[R,t.length].concat(t))}S.fail=function e(t,r,o,a,s){var u,c=arguments.length;if(0===c)u="Failed";else if(1===c)o=t,t=void 0;else{if(!1===_){_=!0;var f=n.emitWarning?n.emitWarning:i.warn.bind(i);f("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(a="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(l.message=o);var h=new d(l);throw u&&(h.message=u,h.generatedMessage=!0),h},S.AssertionError=d,S.ok=R,S.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&O({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},S.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&O({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)||O({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)||O({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)||O({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)&&O({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var j=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&v(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function A(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new j(e,i),u=new j(t,i,e),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}O({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function T(e,t,r,n){if("function"!=typeof t){if(v(t))return t.test(e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===a&&E(),s.forEach((function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||A(e,t,i,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function B(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return k}function M(e){return b(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!M(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!M(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return k})).catch((function(e){return e}))}))}function L(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new f("error",["Object","Error","Function","RegExp"],r);if(t===k){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";O({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!T(t,r,n,e))throw t}function P(e,t,r,n){if(t!==k){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";O({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[N,t.length].concat(t))}S.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];L.apply(void 0,[e,B(t)].concat(n))},S.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(t).then((function(t){return L.apply(void 0,[e,t].concat(n))}))},S.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];P.apply(void 0,[e,B(t)].concat(n))},S.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(t).then((function(t){return P.apply(void 0,[e,t].concat(n))}))},S.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var n=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},S.strict=m(N,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},5961:(e,t,r)=>{"use strict";var n=r(4155);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},u(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,r){return f=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&l(i,r.prototype),i},f.apply(null,arguments)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(9539).inspect,g=r(2136).codes.ERR_INVALID_ARG_TYPE;function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",v="",m="",w="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var k=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new g("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,f=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,h(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(b="",v="",w="",m=""):(b="",v="",w="",m="")),"object"===p(c)&&null!==c&&"object"===p(f)&&null!==f&&"stack"in c&&c instanceof Error&&"stack"in f&&f instanceof Error&&(c=_(c),f=_(f)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,h(t).call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=S(e),f=c.split("\n"),l=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var g=f[0].length+l[0].length;if(g<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][h]===l[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var _=f[f.length-1],k=l[l.length-1];_===k&&(h++<2?s="\n ".concat(_).concat(s):i=_,f.pop(),l.pop(),0!==f.length&&0!==l.length);)_=f[f.length-1],k=l[l.length-1];var O=Math.max(f.length,l.length);if(0===O){var x=c.split("\n");if(x.length>30)for(x[26]="".concat(b,"...").concat(w);x.length>27;)x.pop();return"".concat(E.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(s="\n".concat(b,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var R=0,j=E[r]+"\n".concat(v,"+ actual").concat(w," ").concat(m,"- expected").concat(w),A=" ".concat(b,"...").concat(w," Lines skipped");for(h=0;h<O;h++){var T=h-a;if(f.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(l[h-2]),R++),o+="\n ".concat(l[h-1]),R++),a=h,i+="\n".concat(m,"-").concat(w," ").concat(l[h]),R++;else if(l.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(f[h-2]),R++),o+="\n ".concat(f[h-1]),R++),a=h,o+="\n".concat(v,"+").concat(w," ").concat(f[h]),R++;else{var B=l[h],M=f[h],I=M!==B&&(!y(M,",")||M.slice(0,-1)!==B);I&&y(B,",")&&B.slice(0,-1)===M&&(I=!1,M+=","),I?(T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(f[h-2]),R++),o+="\n ".concat(f[h-1]),R++),a=h,o+="\n".concat(v,"+").concat(w," ").concat(M),i+="\n".concat(m,"-").concat(w," ").concat(B),R+=2):(o+=i,i="",1!==T&&0!==h||(o+="\n ".concat(M),R++))}if(R>20&&h<O-2)return"".concat(j).concat(A,"\n").concat(o,"\n").concat(b,"...").concat(w).concat(i,"\n")+"".concat(b,"...").concat(w)}return"".concat(j).concat(u?A:"","\n").concat(o).concat(i).concat(s).concat(d)}(c,f,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=E[o],k=S(c).split("\n");if("notStrictEqual"===o&&"object"===p(c)&&null!==c&&(d=E.notStrictEqualObject),k.length>30)for(k[26]="".concat(b,"...").concat(w);k.length>27;)k.pop();r=1===k.length?a(this,h(t).call(this,"".concat(d," ").concat(k[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(k.join("\n"),"\n")))}else{var O=S(c),x="",R=E[o];"notDeepEqual"===o||"notEqual"===o?(O="".concat(E[o],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):(x="".concat(S(f)),O.length>512&&(O="".concat(O.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===o||"equal"===o?O="".concat(R,"\n\n").concat(O,"\n\nshould equal\n\n"):x=" ".concat(o," ").concat(x)),r=a(this,h(t).call(this,"".concat(O).concat(x)))}return Error.stackTraceLimit=l,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=f,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),u),r.stack,r.name="AssertionError",a(r)}var r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(r.prototype,u),t}(u(Error));e.exports=k},2136:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){function a(r,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,i(a).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,o,s))),u.code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,r),a}(r);u[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,u,c,l;if(void 0===a&&(a=r(9282)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var h=("number"!=typeof l&&(l=0),l+".".length>(c=e).length||-1===c.indexOf(".",l)?"argument":"property");u='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(f(t,"type"))}return u+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(9539));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(9282)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(360);function l(e){return e.call.bind(e)}var h=l(Object.prototype.hasOwnProperty),p=l(Object.prototype.propertyIsEnumerable),d=l(Object.prototype.toString),g=r(9539).types,y=g.isAnyArrayBuffer,b=g.isArrayBufferView,v=g.isDate,m=g.isMap,w=g.isRegExp,E=g.isSet,_=g.isNativeError,S=g.isBoxedPrimitive,k=g.isNumberObject,O=g.isStringObject,x=g.isBooleanObject,R=g.isBigIntObject,j=g.isSymbolObject,A=g.isFloat32Array,T=g.isFloat64Array;function B(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(B).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function I(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function L(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==i(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var a,s,c,l,h=d(e);if(h!==d(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=M(e),g=M(t);return p.length===g.length&&N(e,t,r,n,1,p)}if("[object Object]"===h&&(!m(e)&&m(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(c=e,l=t,!(o?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(_(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!A(e)&&!T(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===I(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var B=M(e),L=M(t);return B.length===L.length&&N(e,t,r,n,0,B)}if(E(e))return!(!E(t)||e.size!==t.size)&&N(e,t,r,n,2);if(m(e))return!(!m(t)||e.size!==t.size)&&N(e,t,r,n,3);if(y(e)){if(s=t,(a=e).byteLength!==s.byteLength||0!==I(new Uint8Array(a),new Uint8Array(s)))return!1}else if(S(e)&&!function(e,t){return k(e)?k(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):x(e)?x(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return N(e,t,r,n,0)}function P(e,t){return t.filter((function(t){return p(e,t)}))}function N(e,t,r,n,i,o){if(5===arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!h(t,o[s]))return!1;if(r&&5===arguments.length){var u=c(e);if(0!==u.length){var f=0;for(s=0;s<u.length;s++){var l=u[s];if(p(e,l)){if(!p(t,l))return!1;o.push(l),f++}else if(p(t,l))return!1}var d=c(t);if(u.length!==d.length&&P(t,d).length!==f)return!1}else{var g=c(t);if(0!==g.length&&0!==P(t,g).length)return!1}}if(0===o.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(e);if(void 0!==y){var b=n.val2.get(t);if(void 0!==b)return y===b}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var v=q(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),v}function C(e,t,r,n){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(L(t,s,r,n))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,r){var n=D(r);return null!=n?n:t.has(n)&&!e.has(n)}function F(e,t,r,n,i){var o=D(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!L(n,a,!1,i))&&!e.has(o)&&L(n,a,!1,i)}function W(e,t,r,n,i,o){for(var s=a(e),u=0;u<s.length;u++){var c=s[u];if(L(r,c,i,o)&&L(n,t.get(c),i,o))return e.delete(c),!0}return!1}function q(e,t,r,o,u,c){var f=0;if(2===c){if(!function(e,t,r,n){for(var o=null,s=a(e),u=0;u<s.length;u++){var c=s[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!t.has(c)){if(r)return!1;if(!U(e,t,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var f=a(t),l=0;l<f.length;l++){var h=f[l];if("object"===i(h)&&null!==h){if(!C(o,h,r,n))return!1}else if(!r&&!e.has(h)&&!C(o,h,r,n))return!1}return 0===o.size}return!0}(e,t,r,u))return!1}else if(3===c){if(!function(e,t,r,o){for(var a=null,u=s(e),c=0;c<u.length;c++){var f=n(u[c],2),l=f[0],h=f[1];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var p=t.get(l);if(void 0===p&&!t.has(l)||!L(h,p,r,o)){if(r)return!1;if(!F(e,t,l,h,o))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var d=s(t),g=0;g<d.length;g++){var y=n(d[g],2),b=(l=y[0],y[1]);if("object"===i(l)&&null!==l){if(!W(a,e,l,b,r,o))return!1}else if(!(r||e.has(l)&&L(e.get(l),b,!1,o)||W(a,e,l,b,!1,o)))return!1}return 0===a.size}return!0}(e,t,r,u))return!1}else if(1===c)for(;f<e.length;f++){if(!h(e,f)){if(h(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var p=l[f];if(!h(t,p)||!L(e[p],t[p],r,u))return!1}return l.length===Object.keys(t).length}if(!h(t,f)||!L(e[f],t[f],r,u))return!1}for(f=0;f<o.length;f++){var d=o[f];if(!L(e[d],t[d],r,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2240:(e,t,r)=>{"use strict";var n=r(8764).Buffer,i=r(1518);function o(e,t){return void 0===t&&(t="utf8"),n.isBuffer(e)?s(e.toString("base64")):s(n.from(e,t).toString("base64"))}function a(e){return e=e.toString(),i.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function s(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var u=o;u.encode=o,u.decode=function(e,t){return void 0===t&&(t="utf8"),n.from(a(e),"base64").toString(t)},u.toBase64=a,u.fromBase64=s,u.toBuffer=function(e){return n.from(a(e),"base64")},t.default=u},1518:(e,t,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,r=t%4;if(!r)return e;var i=t,o=4-r,a=t+o,s=n.alloc(a);for(s.write(e);o--;)s.write("=",i++);return s.toString()}},5772:(e,t,r)=>{e.exports=r(2240).default,e.exports.default=e.exports},22:(e,t,r)=>{var n=r(8764).Buffer,i=r(7631).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else n.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){n.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}r(9539).inherits(o,i),o.prototype._offset=function(e){for(var t,r=0,n=0;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length))return[n,e-r];r=t}},o.prototype.append=function(e){return this._bufs.push(n.isBuffer(e)?e:new n(e)),this.length+=e.length,this},o.prototype._write=function(e,t,r){this.append(e),r&&r()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return e||new n(0);if(i<=0)return e||new n(0);var o,a,s=!!e,u=this._offset(r),c=i-r,f=c,l=s&&t||0,h=u[1];if(0===r&&i==this.length){if(!s)return n.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(f<=this._bufs[u[0]].length-h)return s?this._bufs[u[0]].copy(e,t,h,h+f):this._bufs[u[0]].slice(h,h+f);for(s||(e=new n(c)),a=u[0];a<this._bufs.length;a++){if(!(f>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,l,h,h+f);break}this._bufs[a].copy(e,l,h),l+=o,f-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){o.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}}(t)}(),e.exports=o},430:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6510:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(2813),s=r(9850);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},4586:(e,t,r)=>{e.exports=o;var n=r(4059),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},2813:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(430),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(5159).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(5159).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},4059:(e,t,r)=>{e.exports=a;var n=r(6510),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9850:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(6510);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},7631:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(2813)).Stream=i,t.Readable=t,t.Writable=r(9850),t.Duplex=r(6510),t.Transform=r(4059),t.PassThrough=r(4586),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},5159:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},3384:(e,t,r)=>{var n=r(9558),i=r(4918),o=r(9942),a=i("level-filesystem",{db:n});e.exports=o(a)},5420:(e,t,r)=>{var n=r(8764).Buffer,i=Object.prototype.toString,o=void 0!==n&&"function"==typeof n.alloc&&"function"==typeof n.allocUnsafe&&"function"==typeof n.from;e.exports=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?n.from(e.slice(t,t+r)):new n(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?n.from(e,t):new n(e,t)}(e,t):o?n.from(e):new n(e);var a}},8764:(e,t,r)=>{"use strict";var n=r(5108);const i=r(9742),o=r(645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function u(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return f(e,t,r)}function f(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=u(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?u(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return l(e),u(e<0?0:0|g(e))}function p(e){const t=e.length<0?0:0|g(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function g(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function E(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(J(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return K(G(t,e.length-r),e,r,n)}function S(e,t,r,n){return K(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return K(Y(t),e,r,n)}function O(e,t,r,n){return K(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}(n)}t.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return f(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}(e,t,r)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(Z(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):b.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==f[e]){o=u[e],a=f[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const j=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=X[e[n]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function N(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||L(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||L(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const F={};function W(e,t,r){F[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function $(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||V(t,e.length-(r+1))}(n,i,o)}function z(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),W("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),W("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Y(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},1924:(e,t,r)=>{"use strict";var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);if(u&&c){var r=u(t,"length");r.configurable&&c(t,"length",{value:1+f(0,e.length-(arguments.length-1))})}return t};var l=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l},6313:(e,t,r)=>{"use strict";var n=r(8764).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,r,o){var a=[],s=[],u=void 0!==n;return void 0===t&&(t=!0),void 0===r&&(r=1/0),function e(r,c){if(null===r)return null;if(0==c)return r;var f,l,h,p,d;if("object"!=typeof r)return r;if(d=r,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))f=[];else if("object"==typeof(p=r)&&"[object RegExp]"===i(p))f=new RegExp(r.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(r)),r.lastIndex&&(f.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))f=new Date(r.getTime());else{if(u&&n.isBuffer(r))return f=new n(r.length),r.copy(f),f;void 0===o?(l=Object.getPrototypeOf(r),f=Object.create(l)):(f=Object.create(o),l=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(f)}for(var y in r){var b;l&&(b=Object.getOwnPropertyDescriptor(l,y)),b&&null==b.set||(f[y]=e(r[y],c-1))}return f}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},2517:(e,t,r)=>{var n=r(5108),i={};e.exports=i,i.themes={};var o=r(9539),a=i.styles=r(5784),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);i.supportsColor=r(6561).supportsColor,void 0===i.enabled&&(i.enabled=!1!==i.supportsColor()),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},i.stylize=function(e,t){if(!i.enabled)return e+"";var r=a[t];return!r&&t in i?i[t](e):r.open+e+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function f(e){var t=function e(){return d.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,h=(l={},a.grey=a.gray,Object.keys(a).forEach((function(e){a[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(a[e].close),"g"),l[e]={get:function(){return f(this._styles.concat(e))}}})),l),p=s((function(){}),h);function d(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:o.inspect(e)})).join(" ");if(!i.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),n=this._styles,s=n.length;s--;){var c=a[n[s]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(u,(function(e){return c.close+e+c.open})))}return t}i.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){i[t]=function(r){if("object"==typeof e[t]){var n=r;for(var o in e[t])n=i[e[t][o]](n);return n}return i[e[t]](r)}}(t);else n.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var g=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var y in i.trap=r(5117),i.zalgo=r(1492),i.maps={},i.maps.america=r(6260)(i),i.maps.zebra=r(3270)(i),i.maps.rainbow=r(5920)(i),i.maps.random=r(2449)(i),i.maps)!function(e){i[e]=function(t){return g(i.maps[e],t)}}(y);s(i,function(){var e={};return Object.keys(h).forEach((function(t){e[t]={get:function(){return f([t])}}})),e}())},5117:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={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=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},1492:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var u=["up","mid","down"];for(var c in u)for(var f=u[c],l=0;l<=n[f];l++)t[f]&&(s+=r[f][i(r[f].length)])}return s}(e,t)}},6260:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},5920:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},2449:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},3270:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},5784:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},4340:(e,t,r)=>{"use strict";var n=r(4155);e.exports=function(e,t){var r=(t=t||n.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(i+e);return-1!==o&&(-1===r||o<r)}},6561:(e,t,r)=>{"use strict";var n=r(4155),i=r(2970),o=r(4340),a=n.env,s=void 0;function u(e){var t=function(e){if(!1===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===n.platform){var r=i.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in a}))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}o("no-color")||o("no-colors")||o("color=false")?s=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:u,stdout:u(n.stdout),stderr:u(n.stderr)}},4431:(e,t,r)=>{var n=r(2517);e.exports=n},6890:(e,t,r)=>{var n=r(8764).Buffer,i=r(8473).Writable,o=r(5717),a=r(5420);if("undefined"==typeof Uint8Array)var s=r(1666).U2;else s=Uint8Array;function u(e,t){if(!(this instanceof u))return new u(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var r=e.encoding,n=!1;r?"u8"!==(r=String(r).toLowerCase())&&"uint8"!==r||(r="uint8array"):n=!0,i.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=n,t&&this.on("finish",(function(){t(this.getBody())})),this.body=[]}function c(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=u,o(u,i),u.prototype._write=function(e,t,r){this.body.push(e),r()},u.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return n.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},u.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++)t.push.apply(t,e[r]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"string"==typeof i||n.isBuffer(i)?t.push(i):c(i)?t.push(a(i)):t.push(a(String(i)))}return t=n.isBuffer(e[0])?(t=n.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];n.isBuffer(i)?t.push(i):c(i)?t.push(a(i)):t.push(a(String(i)))}return n.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,r=0;r<e.length;r++)"string"==typeof e[r]&&(e[r]=a(e[r])),t+=e[r].length;for(var n=new s(t),i=(r=0,0);r<e.length;r++)for(var o=e[r],u=0;u<o.length;u++)n[i++]=o[u];return n}(this.body):this.body):[]},Array.isArray},5108:(e,t,r)=>{var n=r(9539),i=r(9282);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){u[e]=o()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var r=o()-t;a.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,n.format.apply(null,t))}},"assert"]],f=0;f<c.length;f++){var l=c[f],h=l[0],p=l[1];a[p]||(a[p]=h)}e.exports=a},6497:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8764).Buffer.isBuffer},6944:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(9539),a=r(2554).NI;function s(e){a.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}o.inherits(s,a),s.prototype.setDb=function(e){this._db=e,this._operations.forEach((function(t){e[t.method].apply(e,t.args)}))},s.prototype._open=function(e,t){return n.nextTick(t)},s.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach((function(e){s.prototype["_"+e]=function(){this._operation(e,arguments)}})),s.prototype._isBuffer=function(e){return i.isBuffer(e)},s.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=s},4289:(e,t,r)=>{"use strict";var n=r(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};f.supportsDescriptors=!!u,e.exports=f},6555:(e,t,r)=>{var n=r(233);function i(e,t,r){t&&"string"!=typeof t&&(t=t.message||t.name),n(this,{type:e,name:e,cause:"string"!=typeof t?t:r,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,r){return function(e,t,r){var n=function(r,o){i.call(this,t,r,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,n)};return n.prototype=r?new r:new o,n}(e,t,r)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},7138:(e,t,r)=>{var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},n.forEach((function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t})),e.exports.custom=r(6555)(e.exports),e.exports.create=e.exports.custom.createError},8091:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},7187:(e,t,r)=>{"use strict";var n,i=r(5108),o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var o,a,s,u;if(f(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function g(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):b(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var c=u.length,f=b(u,c);for(r=0;r<c;++r)a(f[r],this,t)}return!0},u.prototype.addListener=function(e,t){return h(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return h(this,e,t,!0)},u.prototype.once=function(e,t){return f(t),this.on(e,d(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,d(this,e,t)),this},u.prototype.removeListener=function(e,t){var r,n,i,o,a;if(f(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},u.prototype.listeners=function(e){return g(this,e,!0)},u.prototype.rawListeners=function(e){return g(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},9804:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(t+o);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var t=o.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return o.apply(e,s.concat(r.call(arguments)))},c=Math.max(0,o.length-s.length),f=[],l=0;l<c;l++)f.push("$"+l);if(a=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(u),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},5673:(e,t,r)=>{var n=r(8764).Buffer,i=r(4155),o=r(6272),a=r(9941),s=r(8673),u=new n(0),c=function(){},f=function(e){return"function"==typeof e?e:function(t){t(null,e)}},l=function(e,t){var r=!1,n=!1;return e._read=function(){r=!0},e.destroy=function(){n=!0},t((function(t,o){if(t)return e.emit("error",t);var a=function(){for(var t;null!==(t=o.read());)r=!1,e.push(t)};if(o.on("readable",(function(){r&&a()})),o.on("end",(function(){a(),e.push(null)})),o.on("error",(function(t){e.emit("error",t)})),o.on("close",(function(){a(),i.nextTick((function(){e.emit("close")}))})),e._read=function(){r=!0,a()},e.destroy=function(){n||(n=!0,o.destroy&&o.destroy())},n)return n=!1,void e.destroy();r&&a()})),e},h=function(e,t){var r=c,n=!1;return e._write=function(e,t,n){r=n},e.destroy=function(){n=!0},e.write(u),t((function(t,i){if(t)return e.emit("error",t);i.on("close",(function(){e.emit("close")})),i.on("error",(function(t){e.emit("error",t)})),e._write=function(e,t,r){if(e===u)return r();i.write(e,t,r)};var o=e.emit;if(i.on("finish",(function(){o.call(e,"finish")})),e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},n)return n=!1,void e.destroy();r()})),e};t.readable=function(e,r){return 1===arguments.length?t.readable(null,e):(e||(e={}),l(new a(e),f(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),f(r)))},t.duplex=function(e,r,n){if(2===arguments.length)return t.duplex(null,e,r);e||(e={});var i=new s(e);return h(i,f(r)),l(i,f(n)),i}},3419:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8673:(e,t,r)=>{e.exports=r(5410)},5410:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(3558),s=r(9315);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},8449:(e,t,r)=>{e.exports=o;var n=r(2590),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},3558:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(3419),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(6250).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(6250).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},2590:(e,t,r)=>{e.exports=a;var n=r(5410),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9315:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5410);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},9941:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(3558)).Stream=i,t.Readable=t,t.Writable=r(9315),t.Duplex=r(5410),t.Transform=r(2590),t.PassThrough=r(8449),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},6272:(e,t,r)=>{e.exports=r(9315)},6250:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},f=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=r(1405)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return g[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),m=r(7642),w=v.call(Function.call,Array.prototype.concat),E=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),S=v.call(Function.call,String.prototype.slice),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,x=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,k,(function(e,t,r,i){n[n.length]=r?_(i,O,"$1"):t||e})),n},R=function(e,t){var r,n=e;if(m(b,n)&&(n="%"+(r=b[n])[0]+"%"),m(g,n)){var o=g[n];if(o===p&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=x(e),n=r.length>0?r[0]:"",o=R("%"+n+"%",t),s=o.name,c=o.value,f=!1,l=o.alias;l&&(n=l[0],E(r,w([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=S(d,0,1),b=S(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&p||(f=!0),m(g,s="%"+(n+="."+d)+"%"))c=g[s];else if(null!=c){if(!(d in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=m(c,d),c=c[d];p&&!f&&(g[s]=c)}}return c}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9043:function(e,t,r){var n,i;!function(o,a,s){"use strict";n=function(){var e=function(e){throw e},t=function(){},r={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},n=function(e,t){for(var n in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),r)this[n]=void 0!==e[n]?e[n]:r[n];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter((function(e){return e in i}));this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:n,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var r="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(r+=" with error code "+e.target.errorCode),t=new Error(r)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var r=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=r.objectStore(this.storeName);var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(!r)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),n.splice(n.indexOf(r),1)}else t=!0,this.onError(new Error('Cannot create new index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))}),this),n.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+n.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var r={autoIncrement:this.autoIncrement};null!==this.keyPath&&(r.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,r)}var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(r||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(this.store.deleteIndex(r),this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),n.splice(n.indexOf(r),1)}else this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})}),this),n.length&&n.forEach((function(e){this.store.deleteIndex(e)}),this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var r=this.idb.deleteDatabase(this.dbName);r.onsuccess=e,r.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(r,n,i,o){null!==this.keyPath&&(o=i,i=n,n=r),o||(o=e),i||(i=t);var a,s=!1,u=null,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);return c.oncomplete=function(){(s?i:o)(u)},c.onabort=o,c.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(n),a=c.objectStore(this.storeName).put(n)):a=c.objectStore(this.storeName).put(n,r),a.onsuccess=function(e){s=!0,u=e.target.result},a.onerror=o,c},get:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var u=s.objectStore(this.storeName).get(r);return u.onsuccess=function(e){o=!0,a=e.target.result},u.onerror=i,s},remove:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var u=s.objectStore(this.storeName).delete(r);return u.onsuccess=function(e){o=!0,a=e.target.result},u.onerror=i,s},batch:function(r,n,i){if(i||(i=e),n||(n=t),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("dataArray argument must be of type Array."));else if(0===r.length)return n(!0);var o=r.length,a=!1,s=!1,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);u.oncomplete=function(){(s?n:i)(s)},u.onabort=i,u.onerror=i;var c=function(){0!=--o||a||(a=!0,s=!0)};return r.forEach((function(e){var t=e.type,r=e.key,n=e.value,o=function(e){u.abort(),a||(a=!0,i(e,t,r))};if("remove"==t){var s=u.objectStore(this.storeName).delete(r);s.onsuccess=c,s.onerror=o}else if("put"==t){var f;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),f=u.objectStore(this.storeName).put(n)):f=u.objectStore(this.storeName).put(n,r),f.onsuccess=c,f.onerror=o}}),this),u},putBatch:function(e,t,r){var n=e.map((function(e){return{type:"put",value:e}}));return this.batch(n,t,r)},upsertBatch:function(r,n,i,o){"function"==typeof n&&(o=i=n,n={}),o||(o=e),i||(i=t),n||(n={}),"[object Array]"!=Object.prototype.toString.call(r)&&o(new Error("dataArray argument must be of type Array."));var a=n.keyField||this.keyPath,s=r.length,u=!1,c=!1,f=0,l=this.db.transaction([this.storeName],this.consts.READ_WRITE);l.oncomplete=function(){c?i(r):o(!1)},l.onabort=o,l.onerror=o;var h=function(e){r[f++][a]=e.target.result,0!=--s||u||(u=!0,c=!0)};return r.forEach((function(e){var t,r=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=l.objectStore(this.storeName).put(e)):t=l.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){l.abort(),u||(u=!0,o(e))}}),this),l},removeBatch:function(e,t,r){var n=e.map((function(e){return{type:"remove",key:e}}));return this.batch(n,t,r)},getBatch:function(r,n,i,o){if(i||(i=e),n||(n=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("keyArray argument must be of type Array."));else if(0===r.length)return n([]);var a=[],s=r.length,u=!1,c=null,f=this.db.transaction([this.storeName],this.consts.READ_ONLY);f.oncomplete=function(){(u?n:i)(c)},f.onabort=i,f.onerror=i;var l=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0==--s&&(u=!0,c=a)};return r.forEach((function(e){var t=f.objectStore(this.storeName).get(e);t.onsuccess=l,t.onerror=function(e){c=e,i(e),f.abort()}}),this),f},getAll:function(r,n){n||(n=e),r||(r=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,r,n):this._getAllCursor(i,o,r,n),i},_getAllNative:function(e,t,r,n){var i=!1,o=null;e.oncomplete=function(){(i?r:n)(o)},e.onabort=n,e.onerror=n;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=n},_getAllCursor:function(e,t,r,n){var i=[],o=!1,a=null;e.oncomplete=function(){(o?r:n)(a)},e.onabort=n,e.onerror=n;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=n},clear:function(r,n){n||(n=e),r||(r=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?r:n)(o)},a.onabort=n,a.onerror=n;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=n,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every((function(r){if("multiEntry"==r&&void 0===e[r]&&!1===t[r])return!0;if("keyPath"==r&&"[object Array]"==Object.prototype.toString.call(t[r])){var n=t.keyPath,i=e.keyPath;if("string"==typeof i)return n.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==n.length)return!1;for(var o=0,a=n.length;o<a;o++)if(!(i.contains&&i.contains(n[o])||i.indexOf(-1!==n[o])))return!1;return!0}return t[r]==e[r]}))},iterate:function(t,r){var n="desc"==(r=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},r||{})).order.toLowerCase()?"PREV":"NEXT";r.filterDuplicates&&(n+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[r.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);r.index&&(s=s.index(r.index));var u=0;o.oncomplete=function(){i?r.onEnd?r.onEnd():t(null):r.onError(null)},o.onabort=r.onError,o.onerror=r.onError;var c=s.openCursor(r.keyRange,this.consts[n]);return c.onerror=r.onError,c.onsuccess=function(e){var n=e.target.result;if(n)if(r.offset)n.advance(r.offset),r.offset=0;else{var a=t(n.value,n,o);r.allowItemRejection&&!1===a||u++,r.autoContinue&&(u+r.offset<r.limit?n.continue():i=!0)}else i=!0},o},query:function(e,t){var r=[],n=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(r,n)},this.iterate((function(e){n++;var i=!t.filter||t.filter(e);return!1!==i&&r.push(e),i}),t)},count:function(t,r){var n=(r=a({index:null,keyRange:null},r||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:n)(o)},s.onabort=n,s.onerror=n;var u=s.objectStore(this.storeName);r.index&&(u=u.index(r.index));var c=u.count(r.keyRange);return c.onsuccess=function(e){i=!0,o=e.target.result},c.onError=n,s},makeKeyRange:function(e){var t,r=void 0!==e.lower,n=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case r&&n:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case r:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case n:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var r,n;for(r in t)(n=t[r])!==o[r]&&n!==e[r]&&(e[r]=n);return e}return n.prototype=i,n.version=i.version,n},void 0===(i=n.call(t,r,t,e))||(e.exports=i)}()},645:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=d,a/=256,c-=8);e[r+p-d]|=128*g}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),i=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},8662:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(6410)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),i=r(4289),o=r(8611),a=r(9415),s=r(3194),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),i=r(9415);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5692:(e,t,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),s=r(6410)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),f=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},l=o("String.prototype.slice"),h={},p=r(882),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=d(t),n=p(r,Symbol.toStringTag);if(!n){var i=d(r);n=p(i,Symbol.toStringTag)}h[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=l(a(e),8,-1);return f(c,t)>-1}return!!p&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},5452:e=>{var t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=n.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(r.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var r,i=n.call(e);if(i!==n.call(t))return!1;if("[object Object]"===i){for(r in e)if(!a.equal(e[r],t[r]))return!1;return!0}if("[object Array]"===i){if((r=e.length)!==t.length)return!1;for(;--r;)if(!a.equal(e[r],t[r]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var r=typeof t[e];return"object"===r?!!t[e]:!o[r]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===n.call(e),r=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||r},a.array=function(e){return"[object Array]"===n.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&r.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===n.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===n.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===n.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===n.call(e)},a.number=function(e){return"[object Number]"===n.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var r=a.infinite(e),n=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return r||n||o&&e%t==0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e<t[r])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e>t[r])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,r){if(i(e)||i(t)||i(r))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(r))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(r)||e>=t&&e<=r},a.object=function(e){return e&&"[object Object]"===n.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===n.call(e)},a.string=function(e){return"[object String]"===n.call(e)}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},5086:(e,t,r)=>{var n=r(8764).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},9334:(e,t,r)=>{var n=r(8764).Buffer,i=r(4155),o=r(7785),a=r(2638),s=r(1753),u=r(9539),c=r(778),f=new n(0),l={encode:function(e){return"string"==typeof e?e=new n(e):e},decode:function(e){return n.isBuffer(e)?e:new n(e)},buffer:!0,type:"raw"},h=function(){},p=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},d=t.blockSize||65536,g=t.batch||100,y=new n(d);e.put("\0","ignore",h);var b={},v=function(e,t){if(!(this instanceof v))return new v(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),o.call(this)};u.inherits(v,o),v.prototype._init=function(e){this.blockIndex=e/d|0,this.blockOffset=e-this.blockIndex*d,this.blockLength=this.blockOffset},v.prototype._flush=function(t){if(!this.batch.length)return t();var r=this.batch[this.batch.length-1].key,n=this.batch;if(this.batch=[],!this.truncate)return e.batch(n,t);this.truncate=!1,this._truncate(n,r,t)},v.prototype._truncate=function(t,r,n){n=c(n);var i=[],o=e.createKeyStream({start:r,end:this.name+"ÿÿ"});o.on("error",n),o.on("data",(function(e){i.push({type:"del",key:e})})),o.on("end",(function(){i.push.apply(i,t),e.batch(i,n)}))},v.prototype._writeBlock=function(t){var r=1===this.blocks.length?this.blocks[0]:n.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+p(i),u=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:l}),!t&&a.batch.length<g?r():a._flush(r)};return!o&&r.length===d||!o&&!this.append?u(r,!1,t):void function(t,r,i,o,a){var s=function(){--b[t].locks||delete b[t]},u=function(e){if(e.locks++,!e.block&&!r)return e.block=i,void a(null,e.block,s);var t,u,c;e.block||(e.block=new n(d)),e.block.length<r+i.length&&(e.block=(t=e.block,u=r+i.length,c=new n(u),t.copy(c),c)),i.copy(e.block,r),!o&&r+i.length<e.block.length&&(e.block=e.block.slice(0,r+i.length)),a(null,e.block,s)};if(b[t])return u(b[t]);e.get(t,{valueEncoding:l},(function(e,r){if(e&&!e.notFound)return a(e);b[t]||(b[t]={locks:0,block:r}),u(b[t])}))}(s,o,r,this.append,(function(e,r,n){if(e)return t(e);u(r,!0,(function(e){n(),t(e)}))}))},v.prototype._initAppend=function(e,t,n){var i=this;this._shouldInitAppend=!1,r.size(this.name,(function(r,o){if(r)return n(r);i._init(o),i._write(e,t,n)}))},v.prototype._write=function(e,t,r){if(!e.length||this._destroyed)return r();if(this._shouldInitAppend)return this._initAppend(e,t,r);var n,i=this,o=d-this.blockLength,a=function(e){return e?r(e):n?i._write(n,t,r):void r()};if(e.length>o&&(n=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},v.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=f),this.write(f,(function(){t._writeBlock((function(e){if(e)return t.emit("error",e);t._flush((function(e){if(e)return t.emit("error",e);o.prototype.end.apply(t,r)}))}))}))};var m=function(t,r){r||(r={});var n=this,i=r.start||0,o=i/d|0,s=i-o*d,u=t+"ÿ"+p(o);this.name=t,this._missing=("number"==typeof r.end?r.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:u,end:t+"ÿÿ",valueEncoding:l});var c=function(e){return u=t+"ÿ"+p(++o),!(!n._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>n._missing&&(e=e.slice(0,n._missing)),n._missing-=e.length,n._pause(!n.push(e)),!n._missing))};this._reader.on("data",(function(e){for(;e.key>u;)if(!c(y))return;c(e.value)})),this._reader.on("error",(function(e){n.emit("error",e)})),this._reader.on("end",(function(){n.push(null)})),a.call(this)};return u.inherits(m,a),m.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},m.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},m.prototype._read=function(){this._pause(!1)},r.remove=function(t,r){r=c(r||h);var n=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",r),i.on("data",(function(e){n.push({type:"del",key:e})})),i.on("end",(function(){e.batch(n,r)}))},r.size=function(t,r){s.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:l},(function(e,n,i){return e&&"range not found"===e.message?r(null,0):e?r(e):n.slice(0,t.length+1)!==t+"ÿ"?r(null,0):void r(null,parseInt(n.toString().slice(t.length+1),16)*d+i.length)}))},r.write=function(e,t,n,i){if("function"==typeof n)return r.write(e,t,null,n);n||(n={}),i||(i=h);var o=r.createWriteStream(e,n);o.on("error",i),o.on("finish",(function(){i()})),o.write(t),o.end()},r.read=function(e,t,i){if("function"==typeof t)return r.read(e,null,t);t||(t={});var o=r.createReadStream(e,t),a=[];o.on("error",i),o.on("data",(function(e){a.push(e)})),o.on("end",(function(){i(null,1===a.length?a[0]:n.concat(a))}))},r.createReadStream=function(e,t){return new m(e,t)},r.createWriteStream=function(e,t){return new v(e,t)},r}},9141:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9435:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(7496),s=r(91);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},1474:(e,t,r)=>{e.exports=o;var n=r(4987),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},7496:(e,t,r)=>{var n=r(4155);e.exports=h;var i=r(9141),o=r(8764).Buffer;h.ReadableState=l;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);c.inherits=r(5717);var f=r(6297);function l(e,t){var n=r(9435),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(981).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(r(9435),!(this instanceof h))return new h(e);this._readableState=new l(e,this),this.readable=!0,u.call(this)}function p(e,t,r,i,o){var a=function(e,t){var r=null;return c.isBuffer(t)||c.isString(t)||c.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(c.isNullOrUndefined(r))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||i||(r=t.decoder.write(r)),o||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}f=f&&f.debuglog?f.debuglog("stream"):function(){},c.inherits(h,u),h.prototype.push=function(e,t){var r=this._readableState;return c.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),p(this,r,e,t,!1)},h.prototype.unshift=function(e){return p(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=r(981).s),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var d=8388608;function g(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||c.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=d)e=d;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick((function(){b(e)})):b(e))}function b(e){f("emit readable"),e.emit("readable"),v(e)}function v(e){var t=e._readableState;if(f("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function m(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}h.prototype.read=function(e){f("read",e);var t=this._readableState,r=e;if((!c.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):y(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&w(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),(t.ended||t.reading)&&f("reading or ended",i=!1),i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=g(r,t)),n=e>0?m(e,t):null,c.isNull(n)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),c.isNull(n)||this.emit("data",n),n},h.prototype._read=function(e){this.emit("error",new Error("not implemented"))},h.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?h:c;function u(e){f("onunpipe"),e===r&&h()}function c(){f("onend"),e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,v(e))}}(r);function h(){f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",h),r.removeListener("data",p),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function p(t){f("ondata"),!1===e.write(t)&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function d(t){f("onerror",t),b(),e.removeListener("error",d),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",g),b()}function b(){f("unpipe"),r.unpipe(e)}return e.on("drain",l),r.on("data",p),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(d):e._events.error=[d,e._events.error]:e.on("error",d),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(f("pipe resume"),r.resume()),e},h.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},h.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&y(this);else{var o=this;n.nextTick((function(){f("readable nexttick read 0"),o.read(0)}))}}return r},h.prototype.addListener=h.prototype.on,h.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,e.reading||(f("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick((function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),v(e),t.flowing&&!t.reading&&e.read(0)}(e,t)})))}(this,e)),this},h.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(f("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){f("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)c.isFunction(e[i])&&c.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(t,r){for(var i=0,o=t.length;i<o;i++)a=t[i],e.on(a,n.emit.bind(n,a));var a}(["error","close","destroy","pause","resume"]),n._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},n},h._fromList=m},4987:(e,t,r)=>{e.exports=a;var n=r(9435),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var o=n.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,i.isNullOrUndefined(r)||e.push(r),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",(function(){i.isFunction(this._flush)?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},91:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var i=r(9435),o=(e=e||{}).highWaterMark,a=e.objectMode?16:16384;this.highWaterMark=o||0===o?o:a,this.objectMode=!!e.objectMode,t instanceof i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){t.pendingcb--,o(i)})):(t.pendingcb--,o(i)),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,r,i,t,o);else{var a=p(0,r);a||r.corked||r.bufferProcessing||!r.buffer.length||h(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function c(e){var t=r(9435);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),g(e,t)}function h(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var r=[],n=0;n<t.buffer.length;n++)r.push(t.buffer[n].callback);t.pendingcb++,f(e,t,!0,t.length,t.buffer,"",(function(e){for(var n=0;n<r.length;n++)t.pendingcb--,r[n](e)})),t.buffer=[]}else{for(n=0;n<t.buffer.length;n++){var i=t.buffer[n],o=i.chunk,a=i.encoding,s=i.callback,u=t.objectMode?1:o.length;if(f(e,t,!1,u,o,a,s),t.writing){n++;break}}n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}t.bufferProcessing=!1}function p(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var r=p(0,t);return r&&(0===t.pendingcb?(d(e,t),t.finished=!0,e.emit("finish")):d(e,t)),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var a=this._writableState,u=!1;return o.isFunction(t)&&(r=t,t=null),o.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),o.isFunction(r)||(r=function(){}),a.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,i){var a=!0;if(!(o.isBuffer(r)||o.isString(r)||o.isNullOrUndefined(r)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){i(s)})),a=!1}return a}(this,a,e,r)&&(a.pendingcb++,u=function(e,t,r,n,a){r=function(e,t,r){return!e.objectMode&&!1!==e.decodeStrings&&o.isString(t)&&(t=new i(t,r)),t}(t,r,n),o.isBuffer(r)&&(n="buffer");var u=t.objectMode?1:r.length;t.length+=u;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new s(r,n,a)):f(e,t,!1,u,r,n,a),c}(this,a,e,t,r)),u},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||h(this,e))},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,r){var i=this._writableState;o.isFunction(e)?(r=e,e=null,t=null):o.isFunction(t)&&(r=t,t=null),o.isNullOrUndefined(e)||this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,g(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},2638:(e,t,r)=>{var n=r(4155);(t=e.exports=r(7496)).Stream=r(2830),t.Readable=t,t.Writable=r(91),t.Duplex=r(9435),t.Transform=r(4987),t.PassThrough=r(1474),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},7785:(e,t,r)=>{e.exports=r(91)},981:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},2950:(e,t,r)=>{var n=r(7138);Object.keys(n.code).forEach((function(e){var r=n.code[e];t[e]=function(t){var n=new Error(e+", "+r.description+(t?" '"+t+"'":""));return n.errno=r.errno,n.code=e,n.path=t,n}}))},9942:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(5673),a=r(2296),s=r(9334),u=r(1753),c=r(778),f=r(9530),l=r(2950),h=r(8781),p=r(6975),d=function(e,t,r){n.nextTick((function(){e(t,r)}))},g=function(){};e.exports=function(e,t){var r={};e=a(e);var y=s(e.sublevel("blobs"),t),b=h(e.sublevel("stats")),v=e.sublevel("links"),m=p(),w=[],E=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=f(777)),n||(n=g),b.follow(e,(function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(l.EEXIST(i)):void b.put(i,{type:"directory",mode:t,size:4096},m.cb(i,n))}))},r.rmdir=function(e,t){t||(t=g),b.follow(e,(function(e,n,i){if(e)return t(e);r.readdir(i,(function(e,r){return e?t(e):r.length?t(l.ENOTEMPTY(i)):void b.del(i,m.cb(i,t))}))}))},r.readdir=function(e,t){b.follow(e,(function(e,r,n){return e?t(e):r?r.isDirectory()?void b.list(n,t):t(l.ENOTDIR(n)):t(l.ENOENT(n))}))};var _=function(e,t,r){t(e,(function(e,t,n){if(e)return r(e);if(!t.isFile())return r(null,t);var i=t&&t.blob||n;y.size(i,(function(e,n){if(e)return r(e);t.size=n,r(null,t)}))}))};r.stat=function(e,t){_(e,b.follow,t)},r.lstat=function(e,t){_(e,b.get,t)},r.exists=function(e,t){b.follow(e,(function(e){t(!e)}))};var S=function(e,t,r,n){n||(n=g),t(e,(function(e,t,i){if(e)return n(e);b.update(i,{mode:r},m.cb(i,n))}))};r.chmod=function(e,t,r){S(e,b.follow,t,r)},r.lchmod=function(e,t,r){S(e,b.get,t,r)};var k=function(e,t,r,n,i){i||(i=g),t(e,(function(e,t,o){if(e)return i(e);b.update(o,{uid:r,gid:n},m.cb(o,i))}))};return r.chown=function(e,t,r,n){k(e,b.follow,t,r,n)},r.lchown=function(e,t,r,n){k(e,b.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=g),b.follow(e,(function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),b.update(o,a,m.cb(o,n))}))},r.rename=function(e,t,n){n||(n=g),b.follow(e,(function(e,i,o){if(e)return n(e);var a=function(){n=m.cb(t,m.cb(o,n)),b.put(t,i,(function(e){if(e)return n(e);b.del(o,n)}))};b.follow(t,(function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(l.EISDIR(o)):void(t.isDirectory()?r.readdir(s,(function(e,t){return e?n(e):t.length?n(l.ENOTEMPTY(o)):void a()})):a()):a()}))}))},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);b.follow(e,(function(e,t,r){if(e)return n(e);n(null,r)}))},r.writeFile=function(e,t,n,o){if("function"==typeof n)return r.writeFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),o||(o=g),i.isBuffer(t)||(t=new i(t,n.encoding||"utf-8"));var a=n.flags||"w";n.append="w"!==a[0],b.follow(e,(function(e,r,i){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(l.EISDIR(i));if(r&&"x"===a[1])return o(l.EEXIST(i));var s=r&&r.blob||i;b.writable(i,(function(e){if(e)return o(e);y.write(s,t,n,(function(e){if(e)return o(e);b.put(i,{ctime:r&&r.ctime,mtime:new Date,mode:n.mode||f(666),type:"file"},m.cb(i,o))}))}))}))},r.appendFile=function(e,t,n,i){if("function"==typeof n)return r.appendFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",r.writeFile(e,t,n,i)},r.unlink=function(e,t){t||(t=g),b.get(e,(function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(l.EISDIR(n));var i=function(e){u(v,{start:e+"ÿ",end:e+"ÿÿ"},(function(r){if(r)return y.remove(e,t);t()}))};b.del(n,m.cb(n,(function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void v.del(r.link,(function(e){if(e)return t(e);i(o)}))):void v.del(n+"ÿ",(function(e){if(e)return t(e);i(n)}));var o})))}))},r.readFile=function(e,t,n){if("function"==typeof t)return r.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,b.follow(e,(function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(l.EISDIR(i));var o=r&&r.blob||i;y.read(o,(function(e,r){if(e)return n(e);n(null,t.encoding?r.toString(t.encoding):r)}))}))},r.createReadStream=function(e,t){t||(t={});var r=!1,i=o.readable((function(o){b.follow(e,(function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(l.EISDIR(s));var u=a&&a.blob||s,c=y.createReadStream(u,t);i.emit("open"),c.on("end",(function(){n.nextTick((function(){r||i.emit("close")}))})),o(null,c)}))}));return i.on("close",(function(){r=!0})),i},r.createWriteStream=function(e,t){t||(t={});var r=t.flags||"w",n=!1,i=t.mode||f(666);t.append="a"===r[0];var a=o.writable((function(o){b.follow(e,(function(e,s,u){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(l.EISDIR(u));if(s&&"x"===r[1])return o(l.EEXIST(u));var c=s&&s.blob||u;b.writable(c,(function(e){if(e)return o(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};b.put(u,r,(function(e){if(e)return o(e);var i=y.createWriteStream(c,t);a.emit("open"),i.on("finish",(function(){r.mtime=new Date,b.put(u,r,(function(){m.change(u),n||a.emit("close")}))})),o(null,i)}))}))}))}));return a.on("close",(function(){n=!0})),a},r.truncate=function(e,t,r){b.follow(e,(function(e,n,o){if(e)return r(e);var a=n&&n.blob||o;y.size(a,(function(e,n){if(e)return r(e);b.writable(o,(function(e){if(e)return r(e);if(r=c(m.cb(o,r)),!t)return y.remove(a,r);var s=y.createWriteStream(a,{start:n<t?t-1:t});s.on("error",r),s.on("finish",r),n<t&&s.write(new i([0])),s.end()}))}))}))},r.watchFile=function(e,t,n){return"function"==typeof t?r.watchFile(e,null,t):m.watch(b.normalize(e),n)},r.unwatchFile=function(e,t){m.unwatch(b.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):m.watcher(b.normalize(e),n)},r.notify=function(e){m.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);b.follow(e,(function(e,r,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],u=r&&r.blob||o,c={key:o,blob:u,mode:n||f(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&r?i(l.EEXIST(o)):r&&r.isDirectory()?i(l.EISDIR(o)):void y.size(u,(function(e,t){if(e)return i(e);c.append&&(c.writePos=t),b.writable(o,(function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=w.indexOf(null);-1===t&&(t=10+w.push(w.length+10)-1),c.fd=t,w[t]=c,m.change(o),i(null,c.fd)},n=function(e){return e?i(e):r?t():void b.put(u,{ctime:r&&r.ctime,type:"file"},t)};if(!c.append&&c.writable)return y.remove(u,n);n()}))}))}))},r.close=function(e,t){var r=w[e];if(!r)return d(t,l.EBADF());w[e]=null,d(m.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=w[e];if(o||(o=g),!a||!a.writable)return d(o,l.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(r,r+n);a.writePos=i+s.length,y.write(a.blob,s,{start:i,append:!0},(function(e){if(e)return o(e);o(null,n,t)}))},r.read=function(e,t,n,i,o,a){var s=w[e];if(a||(a=g),!s||!s.readable)return d(a,l.EBADF());null===o&&(o=r.readPos||0),y.read(s.blob,{start:o,end:o+i-1},(function(e,s){if(e)return a(e);var u=s.slice(0,i);u.copy(t,n),r.readPos=o+u.length,a(null,u.length,t)}))},r.fsync=function(e,t){var r=w[e];if(t||(t=g),!r||!r.writable)return d(t,l.EBADF());d(t)},r.ftruncate=function(e,t,n){var i=w[e];if(n||(n=g),!i)return d(n,l.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=w[e];if(i||(i=g),!o)return d(i,l.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=w[e];if(n||(n=g),!i)return d(n,l.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=w[e];if(i||(i=g),!o)return d(i,l.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=w[e];if(!n)return d(t,l.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=g),b.follow(e,(function(e,n,i){if(e)return r(e);b.get(t,(function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(l.EEXIST(t)):void b.put(t,{type:"symlink",target:i,mode:f(777)},r)}))}))},r.readlink=function(e,t){b.get(e,(function(r,n){return r?t(r):n.target?void t(null,n.target):t(l.EINVAL(e))}))},r.link=function(e,t,r){r||(r=g),b.follow(e,(function(e,n,i){return e?r(e):n.isFile()?void b.get(t,(function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(l.EEXIST(t));var a=i+"ÿ"+ ++E;v.put(i+"ÿ",i,(function(e){if(e)return r(e);v.put(a,i,(function(e){if(e)return r(e);b.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)}))}))})):r(l.EINVAL(i))}))},r}},8225:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7517:(e,t,r)=>{var n=r(8225);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(n(r))for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}},8781:(e,t,r)=>{var n=r(4155),i=r(6470),o=r(778),a=r(6890),s=r(9530),u=r(6705),c=r(7517),f=r(2950),l=u({type:"directory",mode:s(777),size:4096}),h=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=i.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},p=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=h,t.get=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,null,l,"/"));e.get(p(t),{valueEncoding:"json"},(function(e,n){return e&&e.notFound?r(f.ENOENT(t),null,t):e?r(e,null,t):void r(null,u(n),t)}))},t.writable=function(e,r){if("/"===(e=h(e)))return n.nextTick(r.bind(null,f.EPERM(e)));t.follow(i.dirname(e),(function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(f.ENOTDIR(e))}))},t.list=function(t,r){t=h(t);var n=p("/"===t?t:t+"/"),i=e.createKeyStream({start:n,end:n+"ÿ"});r=o(r),i.on("error",r),i.pipe(a({encoding:"object"},(function(e){e=e.map((function(e){return e.split("/").pop()})),r(null,e)})))},t.follow=function(e,r){!function(e,r){var n="/",o=e.split("/").slice(1),a=function(){t.get(i.join(n,o.shift()),(function(t,i,s){return t?r(t,i,e):(n=i.target||s,o.length?void a():r(null,i,s))}))};a()}(h(e),(function e(n,i,o){return n?r(n,null,o):i.target?t.get(i.target,e):void r(null,u(i),o)}))},t.update=function(e,r,n){t.get(e,(function(e,i,o){return e?n(e):"/"===o?n(f.EPERM(o)):void t.put(o,c(i,r),n)}))},t.put=function(r,n,i){t.writable(r,(function(t,r){if(t)return i(t);e.put(p(r),u(n),{valueEncoding:"json"},i)}))},t.del=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,f.EPERM(t)));e.del(p(t),r)},t}},6705:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},r=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};r.prototype.isDirectory=function(){return"directory"===this.type},r.prototype.isFile=function(){return"file"===this.type},r.prototype.isBlockDevice=function(){return!1},r.prototype.isCharacterDevice=function(){return!1},r.prototype.isSymbolicLink=function(){return"symlink"===this.type},r.prototype.isFIFO=function(){return!1},r.prototype.isSocket=function(){return!1},e.exports=function(e){return new r(e)}},6975:(e,t,r)=>{var n=r(7187);e.exports=function(){var e={},t=new n.EventEmitter;return t.watch=function(t,r){return e[t]||(e[t]=new n.EventEmitter,e[t].setMaxListeners(0)),r&&e[t].on("change",r),e[t]},t.watcher=function(e,r){var i=new n.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),r&&i.on("change",r),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,r){e[t]&&(r?e[t].removeListener("change",r):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(r){e[r]&&e[r].emit("change"),t.emit("change",r)},t.cb=function(e,r){return function(n,i){e&&t.change(e),r&&r(n,i)}},t}},767:e=>{e.exports=function(e){var t=e.reverse,r=e.end,n=e.start,i=[n,r];return null!=n&&null!=r&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},1798:(e,t,r)=>{var n=r(1889);e.exports=function(e){if(!e.hooks){var t=[],r=[];e.hooks={post:function(e,r){r||(r=e,e="");var i={test:n.checker(e),hook:r};return t.push(i),u(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:n.checker(e),hook:t,safe:!1!==e.safe};return r.push(i),u(r,i)},posthooks:t,prehooks:r},e.on("put",(function(e,t){c({type:"put",key:e,value:t})})),e.on("del",(function(e,t){c({type:"del",key:e,value:t})})),e.on("batch",(function(e){e.forEach(c)}));var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,r,n){return f(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return f(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return f(!0,e,t,r)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function u(e,t){return function(){var r=e.indexOf(t);return!!~r&&(e.splice(r,1),!0)}}function c(e){e&&e.type&&t.forEach((function(t){t.test(e.key)&&t.hook(e)}))}function f(t,n,u,c){try{n.forEach((function e(t,i){r.forEach((function(r){if(r.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete n[i];var a=s(t.prefix)||s(o)||r.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,r.safe&&r.test(String(t.key)))throw new Error("prehook cannot insert into own range");var u=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),c=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return u&&(t.keyEncoding=u),c&&(t.valueEncoding=c),n.push(t),e(t,n.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};r.hook.call(o,t,o.add,n)}}))}))}catch(e){return(c||u)(e)}if(1==(n=n.filter((function(e){return e&&e.type}))).length&&!t){var f=n[0];return"put"==f.type?i.call(e,f.key,f.value,u,c):o.call(e,f.key,u,c)}return a.call(e,n,u,c)}}},9558:(e,t,r)=>{var n=r(8764).Buffer;e.exports=l;var i=r(9043),o=r(2554).NI,a=r(9539),s=r(3016),u=r(5086),c=r(6093),f=r(5054);function l(e){if(!(this instanceof l))return new l(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(l,o),l.prototype._open=function(e,t){var r=this,n={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,r.idb)},onError:function(e){t&&t(e)}};c(n,e),this.IDBOptions=n,this.idb=new i(n)},l.prototype._get=function(e,t,r){this.idb.get(e,(function(i){if(void 0===i)return r(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?f(i):new n(String(i))),r(null,i,e)}),r)},l.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},l.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=f(new Uint8Array(t)));var o=this.convertEncoding(e,t,r);n.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,(function(){i()}),i)},l.prototype.convertEncoding=function(e,t,r){if(r.raw)return{key:e,value:t};if(t){var n=t.toString();"NaN"===n&&(t="NaN")}var i=r.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=n),o},l.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},l.prototype._batch=function(e,t,r){var n,i,o,a,s=[];if(0===e.length)return setTimeout(r,0);for(n=0;n<e.length;n++){o={},a=e[n],s[n]=o;var u=this.convertEncoding(a.key,a.value,t);for(i in a.key=u.key,a.value=u.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,(function(){r()}),r)},l.prototype._close=function(e){this.idb.db.close(),e()},l.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},l.prototype._isBuffer=function(e){return n.isBuffer(e)},l.destroy=function(e,t){if("object"==typeof e)var r=e.IDBOptions.storePrefix||"IDBWrapper-",n=e.location;else r="IDBWrapper-",n=e;var i=indexedDB.deleteDatabase(r+n);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},l.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):u(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},3016:(e,t,r)=>{var n=r(5108),i=r(9539),o=r(2554).YI,a=r(2303);function s(e,t){t||(t={}),this.options=t,o.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=a.lowerBound(t),n=a.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:a.lowerBoundExclusive(t),excludeUpper:a.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=s,i.inherits(s,o),s.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate((function(){e.onItem.apply(e,arguments)}),{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){n.log("horrible error",e)}})},s.prototype.onItem=function(e,t,r){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var n=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(n=!1),n&&this.callback(!1,t.key,t.value),t&&t.continue()},s.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},3732:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===r.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t};e.exports=function(e,r){if(!n(r))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,u=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===u?r(a?e.charAt(i):e[i],i,e):r.call(u,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===u?r(e[o],o,e):r.call(u,e[o],o,e))}},9693:(e,t,r)=>{e.exports=Object.keys||r(3533)},426:e=>{var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},3533:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(3732),a=r(426),s=!{toString:null}.propertyIsEnumerable("toString"),u=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),f=a(e),l=[];if(!t&&!r&&!f)throw new TypeError("Object.keys called on a non-object");if(f)o(e,(function(e){l.push(e)}));else{var h,p=u&&r;for(h in e)p&&"prototype"===h||!n.call(e,h)||l.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(c,(function(t){g&&"constructor"===t||!n.call(e,t)||l.push(t)}))}return l},e.exports=t}()},4992:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6093:(e,t,r)=>{var n=r(9693),i=r(4992);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},1753:(e,t,r)=>{var n=r(767);function i(e,t,r){var n,i,o;t.limit=t.reverse?2:1,n=e.createReadStream(t),i=function(e,n){if(t.reverse&&n&&t.start&&n.key.toString()>t.start)return!1;"error"==e?r(n):"end"==e?r(new Error("range not found"),null,null):r(null,n.key,n.value)},o=[],["data","error","end"].forEach((function(e){function t(t){!1!==i(e,t)&&o.forEach((function(e){e()}))}n.on(e,t),o.push((function(){n.removeListener(e,t)}))}))}(t=e.exports=i).first=function(e,t,r){return r||(r=t,t={}),t.reverse=!1,i(e,n(t),r)},t.last=function(e,t,r){return r||(r=t,t={}),t.start,t.reverse=!0,i(e,n(t),(function(n,o,a){if(n){var s=t.start;t.start=null,i(e,t,(function(e,i,o){if(!i)return r(n,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?r(e,i,o):r(n,null,null)}))}else r(n,o,a)}))}},6338:e=>{function t(e,t,r,n){var i={type:e,key:t,value:r,options:n};return n&&n.prefix&&(i.prefix=n.prefix,delete n.prefix),this._operations.push(i),this}function r(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var n=r.prototype;n.clear=function(){this._operations=[]},n.write=function(e){this._sdb.batch(this._operations,e)},e.exports=r},2296:(e,t,r)=>{var n=r(4155),i=(r(7187).EventEmitter,n.nextTick,r(7202)),o=r(6338),a=r(7780),s=r(1798);e.exports=function(e,t){function r(){}r.prototype=e;var n=new r;if(n.sublevel)return n;var u=(t=t||{}).sep=t.sep||"ÿ";function c(e){return function(t){return(t=a(t=t||{})).reverse?t.start=t.start||u:t.end=t.end||u,e.call(n,t)}}n._options=t,s(n),n.sublevels={},n.sublevel=function(e,t){return n.sublevels[e]?n.sublevels[e]:new i(n,e,t||this._options)},n.methods={},n.prefix=function(e){return""+(e||"")},n.pre=function(e,t){return t||(t=e,e={max:u}),n.hooks.pre(e,t)},n.post=function(e,t){return t||(t=e,e={max:u}),n.hooks.post(e,t)},n.readStream=n.createReadStream=c(n.createReadStream),n.keyStream=n.createKeyStream=c(n.createKeyStream),n.valuesStream=n.createValueStream=c(n.createValueStream);var f=n.batch;return n.batch=function(e,t,r){if(!Array.isArray(e))return new o(n);e.forEach((function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))})),f.call(n,e,t,r)},n}},7780:(e,t,r)=>{var n=r(6313);e.exports=function(e){var t=(e=n(e)).reverse,r=e.max||e.end,i=e.min||e.start,o=[i,r];return null!=i&&null!=r&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},1012:(e,t,r)=>{e.exports=Object.keys||r(4784)},4784:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(5452),o=r(9804),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return a&&o(s,(function(t){n.call(e,t)&&r.push(t)})),r},e.exports=t}()},3312:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},1686:(e,t,r)=>{var n=r(1012),i=r(3312);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},7202:(e,t,r)=>{var n=r(5108),i=r(7187).EventEmitter,o=r(9539).inherits,a=r(1889),s=r(7780),u=r(1686),c=r(6338);function f(e,t,r){if("string"==typeof r&&(n.error("db.sublevel(name, seperator<string>) is depreciated"),n.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof f))return new f(e,t,r);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(r=r||{}).sep=r.sep||"ÿ",this._parent=e,this._options=r,this.options=r,this._prefix=t,this._root=h(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var i=this;this.hooks={pre:function(){return i.pre.apply(i,arguments)},post:function(){return i.post.apply(i,arguments)}}}o(f,i);var l=f.prototype;function h(e){return e._parent?h(e._parent):e}l._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},l._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:u(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new f(this,e,t||this._options)},l.put=function(e,t,r,n){var i=this._getOptsAndCb(r,n);this._root.put(this.prefix(e),t,i.opts,i.cb)},l.get=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.get(this.prefix(e),n.opts,n.cb)},l.del=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.del(this.prefix(e),n.opts,n.cb)},l.batch=function(e,t,r){if(!Array.isArray(e))return new c(this);var n=this,i=this._getOptsAndCb(t,r);e.forEach((function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||n).prefix(e.key),e.prefix&&(e.prefix=null)})),this._root.batch(e,i.opts,i.cb)},l._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},l._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},l.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},l.keyStream=l.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},l.valueStream=l.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},l.readStream=l.createReadStream=function(e){e=e||{};var t=h(this),r=this.prefix(),n=a.prefix(e,r);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach((function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}))}(n,u(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var o;if(o=i.read)i.read=function(e){var t=o.call(this,e);return t&&(t=t.substring(r.length)),t};else{var s=i.emit;i.emit=function(e,t){"data"===e?s.call(this,"data",t.substring(r.length)):s.call(this,e,t)}}return i}return!1===n.keys||((o=i.read)?i.read=function(e){var t=o.call(this,e);return t&&(t.key=t.key.substring(r.length)),t}:i.on("data",(function(e){e.key=e.key.substring(r.length)}))),i},l.writeStream=l.createWriteStream=function(){var e=h(this),t=this.prefix(),r=e.createWriteStream.apply(e,arguments),n=r.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return r.write=s?function(e){return e.key=t+e.key,n.call(r,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),n.call(r,e)},r},l.approximateSize=function(){var e=h(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=a.prefix(e,this.prefix(),this._options.sep);var r=h(this._parent),n=this.prefix();return r.hooks.pre(s(e),(function(e,r,i){t({key:e.key.substring(n.length),value:e.value,type:e.type},(function(e,t){r(e,e.prefix?t:t||n)}),i)}))},l.post=function(e,t){t||(t=e,e=null);var r=h(this._parent),n=this.prefix();return e=a.prefix(e,n,this._options.sep),r.hooks.post(s(e),(function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})}))},e.exports=f},8133:(e,t,r)=>{var n=r(3368),i=r(6667).WriteError,o=n.getOptions,a=n.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,r){r=o(this._levelup,r);var a=n.encodeKey(e,r),s=n.encodeValue(t,r);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var r=n.encodeKey(e,t);try{this.batch.del(r)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:r}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,r=this.ops;try{this.batch.write((function(n){if(n)return a(t,new i(n),e);t.emit("batch",r),e&&e()}))}catch(e){throw new i(e)}},e.exports=s},6667:(e,t,r)=>{var n=r(7138).create,i=n("LevelUPError"),o=n("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:n("InitializationError",i),OpenError:n("OpenError",i),ReadError:n("ReadError",i),WriteError:n("WriteError",i),NotFoundError:o,EncodingError:n("EncodingError",i)}},4918:(e,t,r)=>{var n=r(4155),i=r(7187).EventEmitter,o=r(9539).inherits,a=r(7357),s=r(115),u=r(6944),c=r(6667).WriteError,f=r(6667).ReadError,l=r(6667).NotFoundError,h=r(6667).OpenError,p=r(6667).EncodingError,d=r(6667).InitializationError,g=r(3209),y=r(3028),b=r(3368),v=r(8133),m=b.getOptions,w=b.defaultOptions,E=b.getLevelDOWN,_=b.dispatchError;function S(e,t){return"function"==typeof e?e:t}function k(e,t,r){if(!(this instanceof k))return new k(e,t,r);var o;if(i.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(r=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(o=new d("Must provide a location for the database"),r)return n.nextTick((function(){r(o)}));throw o}t=m(this,t),this.options=a(w,t),this._status="new",s(this,"location",e,"e"),this.open(r)}function O(e){return function(t,r){E()[e](t,r||function(){})}}o(k,i),k.prototype.open=function(e){var t,r,i=this;return this.isOpen()?(e&&n.nextTick((function(){e(null,i)})),this):this._isOpening()?e&&this.once("open",(function(){e(null,i)})):(this.emit("opening"),this._status="opening",this.db=new u(this.location),t=this.options.db||E(),void(r=t(this.location)).open(this.options,(function(t){if(t)return _(i,new h(t),e);i.db.setDb(r),i.db=r,i._status="open",e&&e(null,i),i.emit("open"),i.emit("ready")})))},k.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close((function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)})),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return n.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",(function(){t.close(e)}))}},k.prototype.isOpen=function(){return"open"==this._status},k.prototype._isOpening=function(){return"opening"==this._status},k.prototype.isClosed=function(){return/^clos/.test(this._status)},k.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=S(t,r))?_(this,new f("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=b.getOptions(this,t),n=b.encodeKey(e,t),t.asBuffer=b.isValueAsBuffer(t),void this.db.get(n,t,(function(n,o){if(n)return n=/notfound/i.test(n)?new l("Key not found in database ["+e+"]",n):new f(n),_(i,n,r);if(r){try{o=b.decodeValue(o,t)}catch(e){return r(new p(e))}r(null,o)}}))):_(this,new f("Database is not open"),r)},k.prototype.put=function(e,t,r,n){var i,o,a=this;return n=S(r,n),null==e||null==t?_(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=m(this,r),i=b.encodeKey(e,r),o=b.encodeValue(t,r),void this.db.put(i,o,r,(function(r){if(r)return _(a,new c(r),n);a.emit("put",e,t),n&&n()}))):_(this,new c("Database is not open"),n)},k.prototype.del=function(e,t,r){var n,i=this;return r=S(t,r),null==e?_(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=m(this,t),n=b.encodeKey(e,t),void this.db.del(n,t,(function(t){if(t)return _(i,new c(t),r);i.emit("del",e),r&&r()}))):_(this,new c("Database is not open"),r)},k.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=S(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=m(this,t),n=t.keyEncoding,i=t.valueEncoding,o=e.map((function(e){if(void 0===e.type||void 0===e.key)return{};var r,o=e.keyEncoding||n,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(r={type:e.type,key:b.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=b.encodeValue(e.value,t,e)),r):e})),void this.db.batch(o,t,(function(t){if(t)return _(a,new c(t),r);a.emit("batch",e),r&&r()}))):_(this,new c("Database is not open"),r):_(this,new c("batch() requires an array argument"),r)):new v(this)},k.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?_(this,new f("approximateSize() requires start, end and callback arguments"),r):(n=b.encodeKey(e,this.options),i=b.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,(function(e,t){if(e)return _(o,new h(e),r);r&&r(null,t)})):_(this,new c("Database is not open"),r))},k.prototype.readStream=k.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,(function(e){return t.db.iterator(e)}))},k.prototype.keyStream=k.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},k.prototype.valueStream=k.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},k.prototype.writeStream=k.prototype.createWriteStream=function(e){return new y(a(e),this)},k.prototype.toString=function(){return"LevelUP"},e.exports=k,e.exports.copy=b.copy,e.exports.destroy=O("destroy"),e.exports.repair=O("repair")},3209:(e,t,r)=>{var n=r(1892).Readable,i=r(9539).inherits,o=r(7357),a=r(6667).EncodingError,s=r(3368),u={keys:!0,values:!0},c=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},f=function(e){return s.decodeKey(e,this._options)},l=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,r){if(!(this instanceof p))return new p(e,t,r);n.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(u,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?c:this._options.keys?f:this._options.values?l:h;var i=this;this._db.isOpen()?this._iterator=r(this._options):this._db.once("ready",(function(){i._destroyed||(i._iterator=r(i._options))}))}i(p,n),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",(function(){e.call(t)}));t._destroyed||t._iterator.next((function(e,r,n){if(e||void 0===r&&void 0===n)return e||t._destroyed||t.push(null),t._cleanup(e);try{n=t._makeData(r,n)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(n)}))},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end((function(){t._iterator=null,t.emit("close")})):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},3368:(e,t,r)=>{var n,i,o=r(8764).Buffer,a=r(4155),s=r(7357),u=r(6667).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],f={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},l=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},c.forEach((function(r){t[r]||(t[r]={encode:function(t){return e(t)?t:new o(t,r)},decode:function(e){return a.browser?e.toString(r):e},buffer:!0,type:r})})),t}(),h=(i={},c.forEach((function(e){i[e]={valueEncoding:e}})),i);function p(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return l[r]||r}function d(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return l[r]||r}e.exports={defaultOptions:f,copy:function(e,t,r){e.readStream().pipe(t.writeStream()).on("close",r||function(){}).on("error",r||function(e){throw e})},getOptions:function(e,t){var r="string"==typeof t;return!r&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),s(e&&e.options||{},r?h[t]||h[f.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(3619).v6.ct,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(4093).version}catch(e){throw new u(i)}if(!r(1695).satisfies(e,t))throw new u("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(131)}catch(e){throw new u(i)}},dispatchError:function(e,t,r){return"function"==typeof r?r(t):e.emit("error",t)},encodeKey:function(e,t,r){return p(t,r).encode(e)},encodeValue:function(e,t,r){return d(t,r).encode(e)},isValueAsBuffer:function(e,t){return d(e,t).buffer},isKeyAsBuffer:function(e,t){return p(e,t).buffer},decodeValue:function(e,t){return d(t).decode(e)},decodeKey:function(e,t){return p(t).decode(e)}}},3028:(e,t,r)=>{var n=r(4155),i=r(2830).Stream,o=r(9539).inherits,a=r(7357),s=r(22),u=r.g.setImmediate||n.nextTick,c=r(3368).getOptions,f={type:"put"};function l(e,t){if(!(this instanceof l))return new l(e,t);i.call(this),this._options=a(f,c(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var r=this,n=function(){r.writable&&(r._status="ready",r.emit("ready"),r._process())};t.isOpen()?u(n):t.once("ready",n)}o(l,i),l.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},l.prototype.end=function(e){var t=this;e&&this.write(e),u((function(){t._end=!0,t._process()}))},l.prototype.destroy=function(){this.writable=!1,this.end()},l.prototype.destroySoon=function(){this.end()},l.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},l.prototype._processDelayed=function(){var e=this;u((function(){e._process()}))},l.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map((function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}})),(function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}})),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},l.prototype._write=function(e){var t=e.path||e.props.path,r=this;t&&e.pipe(s((function(e,n){if(e)return r.writable=!1,r.emit("error",e);r._options.fstreamRoot&&t.indexOf(r._options.fstreamRoot)>-1&&(t=t.substr(r._options.fstreamRoot.length+1)),r.write({key:t,value:n.slice(0)})})))},l.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=l},5238:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},115:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},2422:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(6810),s=r(4160);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},8264:(e,t,r)=>{e.exports=o;var n=r(1036),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},6810:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(5238),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(5951).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(5951).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},1036:(e,t,r)=>{e.exports=a;var n=r(2422),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},4160:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(2422);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},1892:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(6810)).Stream=i,t.Readable=t,t.Writable=r(4160),t.Duplex=r(2422),t.Transform=r(1036),t.PassThrough=r(8264),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},5951:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},7357:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},2303:(e,t,r)=>{var n=r(8764).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(n.isBuffer(e)){for(var r=Math.min(e.length,t.length),i=0;i<r;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},u=t.lowerBound=function(e,t){var r=s(e);return r?e[r]:t},c=t.lowerBoundInclusive=function(e){return!o(e,"gt")},f=t.upperBoundInclusive=function(e){return!o(e,"lt")},l=t.lowerBoundExclusive=function(e){return!c(e)},h=t.upperBoundExclusive=function(e){return!f(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var r=p(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):u(e,t)},t.end=function(e,t){return e.reverse?u(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?f(e):c(e)},t.endInclusive=function(e){return e.reverse?c(e):f(e)},t.toLtgt=function(e,r,n,i,a){r=r||{},n=n||g;var s=arguments.length>3,u=t.lowerBoundKey(e),c=t.upperBoundKey(e);return u?"gt"===u?r.gt=n(e.gt,!1):r.gte=n(e[u],!1):s&&(r.gte=n(i,!1)),c?"lt"===c?r.lt=n(e.lt,!0):r.lte=n(e[c],!0):s&&(r.lte=n(a,!0)),null!=e.reverse&&(r.reverse=!!e.reverse),o(r,"max")&&delete r.max,o(r,"min")&&delete r.min,o(r,"start")&&delete r.start,o(r,"end")&&delete r.end,r},t.contains=function(e,r,n){n=n||t.compare;var o=u(e);if(i(o)&&((a=n(r,o))<0||0===a&&l(e)))return!1;var a,s=d(e);return!i(s)||!((a=n(r,s))>0||0===a&&h(e))},t.filter=function(e,r){return function(n){return t.contains(e,n,r)}}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),i=r(5559),o=r(4244),a=r(5624),s=r(2281),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),i=r(4289);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)h.push(String(y));else for(var b in e)d&&"prototype"===b||!i.call(e,b)||h.push(String(b));if(u)for(var v=function(e){if("undefined"==typeof window||!p)return l(e);try{return l(e)}catch(e){return!1}}(e),m=0;m<f.length;++m)v&&"constructor"===f[m]||!i.call(e,f[m])||h.push(f[m]);return h}}e.exports=n},2215:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1414),o=Object.keys,a=o?function(e){return o(e)}:r(8987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},9530:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},778:(e,t,r)=>{var n=r(2479);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},2970:(e,t,r)=>{e.exports=r(2970)},6470:(e,t,r)=>{"use strict";var n=r(4155);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=o(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,o=n-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=o<u?o:u,f=-1,l=0;l<=c;++l){if(l===c){if(u>c){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else o>c&&(47===e.charCodeAt(r+l)?f=l:0===l&&(f=0));break}var h=e.charCodeAt(r+l);if(h!==t.charCodeAt(s+l))break;47===h&&(f=l)}var p="";for(l=r+f+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+f):(s+=f,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===u&&(a=!1,u=r+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return n===o?o=u:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var a=-1,s=0,u=-1,c=!0,f=e.length-1,l=0;f>=r;--f)if(47!==(n=e.charCodeAt(f)))-1===u&&(c=!1,u=f+1),46===n?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){s=f+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=0===s&&o?e.slice(1,u):e.slice(s,u)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},8212:(e,t,r)=>{"use strict";var n=r(4155);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return n.nextTick(e);case 2:return n.nextTick((function(){e.call(null,t)}));case 3:return n.nextTick((function(){e.call(null,t,r)}));case 4:return n.nextTick((function(){e.call(null,t,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return n.nextTick((function(){e.apply(null,o)}))}}}:e.exports=n},4155:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function l(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&h())}function h(){if(!c){var e=a(l);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},233:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},2587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var f,l,h,p,d=e[c].replace(a,"%20"),g=d.indexOf(n);g>=0?(f=d.substr(0,g),l=d.substr(g+1)):(f=d,l=""),h=decodeURIComponent(f),p=decodeURIComponent(l),t(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6753:(e,t,r)=>{"use strict";var n=r(8212),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(6497));o.inherits=r(5717);var a=r(9481),s=r(4229);o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},2725:(e,t,r)=>{"use strict";e.exports=o;var n=r(4605),i=Object.create(r(6497));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n=r(4155),i=r(8212);e.exports=m;var o,a=r(5826);m.ReadableState=v,r(7187).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(2503),c=r(3545).Buffer,f=r.g.Uint8Array||function(){},l=Object.create(r(6497));l.inherits=r(5717);var h=r(4616),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,g=r(5057),y=r(1195);l.inherits(m,u);var b=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(6753));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function m(e){if(o=o||r(6753),!(this instanceof m))return new m(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):E(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):x(e,a)):E(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),x(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},m.prototype.unshift=function(e){return w(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return d||(d=r(2553).s),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){p("emit readable"),e.emit("readable"),T(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){p("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?v:c;function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",(function t(n,i){p("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",d),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}));var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",f);var l=!1,h=!1;function d(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!l&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function g(t){p("onerror",t),v(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),v()}function b(){p("onfinish"),e.removeListener("close",y),v()}function v(){p("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?a(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",b),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},m.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(j,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(A,e,t))}(this,e)),this},m.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=B},4605:(e,t,r)=>{"use strict";e.exports=a;var n=r(6753),i=Object.create(r(6497));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},4229:(e,t,r)=>{"use strict";var n=r(4155),i=r(8212);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var u=Object.create(r(6497));u.inherits=r(5717);var c,f={deprecate:r(4927)},l=r(2503),h=r(3545).Buffer,p=r.g.Uint8Array||function(){},d=r(1195);function g(){}function y(e,t){a=a||r(6753),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,o);else{var a=E(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?s(m,e,r,a,o):m(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||r(6753),!(c.call(b,this)||this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=E(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,l),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===b&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=g),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}},5057:(e,t,r)=>{"use strict";var n=r(3545).Buffer,i=r(6854);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},1195:(e,t,r)=>{"use strict";var n=r(8212);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},2503:(e,t,r)=>{e.exports=r(7187).EventEmitter},3545:(e,t,r)=>{var n=r(8764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725)},2830:(e,t,r)=>{e.exports=i;var n=r(7187).EventEmitter;function i(){n.call(this)}r(5717)(i,n),i.Readable=r(6577),i.Writable=r(323),i.Duplex=r(8656),i.Transform=r(4473),i.PassThrough=r(2366),i.finished=r(1086),i.pipeline=r(6472),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},8106:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,u;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+".".length>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},8656:(e,t,r)=>{"use strict";var n=r(4155),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(6577),a=r(323);r(5717)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2366:(e,t,r)=>{"use strict";e.exports=i;var n=r(4473);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(5717)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},6577:(e,t,r)=>{"use strict";var n,i=r(4155);e.exports=O,O.ReadableState=k,r(7187).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(3630),u=r(8764).Buffer,c=r.g.Uint8Array||function(){},f=r(964);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,p,d=r(9686),g=r(1029),y=r(94).getHighWaterMark,b=r(8106).q,v=b.ERR_INVALID_ARG_TYPE,m=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,E=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(O,s);var _=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(8656),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(2553).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function O(e){if(n=n||r(8656),!(this instanceof O))return new O(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)_(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?_(e,new E):R(e,s,t,!0);else if(s.ended)_(e,new m);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?R(e,s,t,!1):M(e,s)):R(e,s,t,!1)}else n||(s.reading=!1,M(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=g.destroy,O.prototype._undestroy=g.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},O.prototype.unshift=function(e){return x(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){l||(l=r(2553).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function W(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):T(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){_(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?g:u;function u(){o("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",(function t(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",l),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==W(n.pipes,e))&&!f&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===a(e,"error")&&_(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||i.nextTick(P,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<S.length;a++)e.on(S[a],this.emit.bind(this,S[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(828)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=D,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===p&&(p=r(1265)),p(O,e,t)})},4473:(e,t,r)=>{"use strict";e.exports=f;var n=r(8106).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(8656);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(5717)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},323:(e,t,r)=>{"use strict";var n,i=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=O,O.WritableState=k;var a,s={deprecate:r(4927)},u=r(3630),c=r(8764).Buffer,f=r.g.Uint8Array||function(){},l=r(1029),h=r(94).getHighWaterMark,p=r(8106).q,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,E=p.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function S(){}function k(e,t,a){n=n||r(8656),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(B,e,t),e._writableState.errorEmitted=!0,_(e,n)):(o(n),e._writableState.errorEmitted=!0,_(e,n),B(e,t))}(e,r,n,t,o);else{var a=A(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?i.nextTick(R,e,r,a,o):R(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(n=n||r(8656));if(!t&&!a.call(O,this))return new O(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),B(e,t)}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(x(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(O,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===O&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},O.prototype.pipe=function(){_(this,new b)},O.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new w;_(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(_(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},828:(e,t,r)=>{"use strict";var n,i=r(4155);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(1086),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[l]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function y(e){i.nextTick(g,e)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[c]?r(e[c]):t(d(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[p].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),b);e.exports=function(e){var t,r=Object.create(v,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[p].read();n?(r[l]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[l]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[f]=!0})),e.on("readable",y.bind(null,r)),r}},9686:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(8764).Buffer,s=r(9862).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&o(t.prototype,r),e}()},1029:(e,t,r)=>{"use strict";var n=r(4155);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},1086:(e,t,r)=>{"use strict";var n=r(8106).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",f),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",f),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},1265:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6472:(e,t,r)=>{"use strict";var n,i=r(8106).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(1086)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}function l(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=l(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},94:(e,t,r)=>{"use strict";var n=r(8106).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},3630:(e,t,r)=>{e.exports=r(7187).EventEmitter},1889:(e,t)=>{var r=t.range=function(e){return null==e?{}:"string"==typeof r?{min:r,max:r+"ÿ"}:e},n=(t.prefix=function(e,r,n){var i={};return n=n||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=r,i.max=r+n,i.inner=function(t){var n=t.substring(r.length);return e.test?e.test(n):e(n)}):"object"==typeof e&&(i.min=r+(e.min||e.start||""),i.max=r+(e.max||e.end||n||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var r=e.min||e.start,n=e.max||e.end;return t=String(t),(!r||t>=r)&&(!n||t<=n)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return n(t)(e)}},2553:(e,t,r)=>{"use strict";var n=r(396).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},396:(e,t,r)=>{var n=r(8764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},5054:(e,t,r)=>{var n=r(8764).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},1666:(e,t)=>{var r,n,i,o=void 0,a=(r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return r.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}),s=Math.LN2,u=Math.abs,c=Math.floor,f=Math.log,l=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,r=g(e);for(t=0;t<r.length;t+=1)i(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function y(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){i(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}function b(e,t){var r=32-t;return e<<r>>r}function v(e,t){var r=32-t;return e<<r>>>r}function m(e){return[255&e]}function w(e){return b(e[0],8)}function E(e){return[255&e]}function _(e){return v(e[0],8)}function S(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function O(e){return b(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function R(e){return v(e[0]<<8|e[1],16)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return b(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function T(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function B(e){return v(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function M(e,t,r){var n,i,o,a,p,d,g,y=(1<<t-1)-1;function b(e){var t=c(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,r-1),n=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e==-1/0?1:0):(n=e<0,(e=u(e))>=h(2,1-y)?(i=l(c(f(e)/s),1023),(o=b(e/h(2,i)*h(2,r)))/h(2,r)>=2&&(i+=1,o=1),i>y?(i=(1<<t)-1,o=0):(i+=y,o-=h(2,r))):(i=0,o=b(e/h(2,1-y-r)))),p=[],a=r;a;a-=1)p.push(o%2?1:0),o=c(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=c(i/2);for(p.push(n?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function I(e,t,r){var n,i,o,a,s,u,c,f,l=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)l.push(o%2?1:0),o>>=1;return l.reverse(),a=l.join(""),s=(1<<t-1)-1,u=parseInt(a.substring(0,1),2)?-1:1,c=parseInt(a.substring(1,1+t),2),f=parseInt(a.substring(1+t),2),c===(1<<t)-1?0!==f?NaN:u*(1/0):c>0?u*h(2,c-s)*(1+f/h(2,r)):0!==f?u*h(2,-(s-1))*(f/h(2,r)):u<0?-0:0}function L(e){return I(e,11,52)}function P(e){return M(e,11,52)}function N(e){return I(e,8,23)}function C(e){return M(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.eT=t.eT||e;var r=function(){};function n(t,n,i){var s;return s=function(t,r,n){var i,o,u,c;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===s)for(i=arguments[0],this.length=i.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,i._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(o=arguments[0],this.length=a.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)c=o[u],this._setter(u,Number(c));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=s,d(this),y(this)},s.prototype=new r,s.prototype.BYTES_PER_ELEMENT=t,s.prototype._pack=n,s.prototype._unpack=i,s.BYTES_PER_ELEMENT=t,s.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},s.prototype.get=s.prototype._getter,s.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},s.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,u,c,f,l,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(f=this.byteOffset+i*this.BYTES_PER_ELEMENT,l=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,u=r.byteOffset;s<l;s+=1,u+=1)h[s]=r.buffer._bytes[u];for(s=0,c=f;s<l;s+=1,c+=1)this.buffer._bytes[c]=h[s]}else for(s=0,u=r.byteOffset,c=f;s<l;s+=1,u+=1,c+=1)this.buffer._bytes[c]=r.buffer._bytes[u]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)u=n[s],this._setter(i+s,Number(u))}},s.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},s}var i=n(1,m,w),s=n(1,E,_),u=n(1,S,_),c=n(2,k,O),f=n(2,x,R),l=n(4,j,A),h=n(4,T,B),p=n(4,C,N),g=n(8,P,L);t.iq=t.iq||i,t.U2=t.U2||s,t.we=t.we||u,t.M2=t.M2||c,t.HA=t.HA||f,t.ZV=t.ZV||l,t._R=t._R||h,t.$L=t.$L||p,t.I=t.I||g}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.HA([4660]),18===e(new t.U2(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.eT(0);else if(!(e instanceof t.eT||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.eT(0),this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(r){return function(i,o){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,u=new t.U2(this.buffer,i,r.BYTES_PER_ELEMENT),c=[];for(s=0;s<r.BYTES_PER_ELEMENT;s+=1)c.push(e(u,s));return Boolean(o)===Boolean(n)&&c.reverse(),e(new r(new t.U2(c).buffer),0)}}function s(r){return function(i,o,s){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var u,c=new r([o]),f=new t.U2(c.buffer),l=[];for(u=0;u<r.BYTES_PER_ELEMENT;u+=1)l.push(e(f,u));Boolean(s)===Boolean(n)&&l.reverse(),new t.U2(this.buffer,i,r.BYTES_PER_ELEMENT).set(l)}}i.prototype.getUint8=o(t.U2),i.prototype.getInt8=o(t.iq),i.prototype.getUint16=o(t.HA),i.prototype.getInt16=o(t.M2),i.prototype.getUint32=o(t._R),i.prototype.getInt32=o(t.ZV),i.prototype.getFloat32=o(t.$L),i.prototype.getFloat64=o(t.I),i.prototype.setUint8=s(t.U2),i.prototype.setInt8=s(t.iq),i.prototype.setUint16=s(t.HA),i.prototype.setInt16=s(t.M2),i.prototype.setUint32=s(t._R),i.prototype.setInt32=s(t.ZV),i.prototype.setFloat32=s(t.$L),i.prototype.setFloat64=s(t.I),t.VO=t.VO||i}()},2511:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=/^xn--/,f=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function g(e){throw RangeError(h[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function b(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(l,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=u)e=p(e/35);return p(n+36*e/(e+38))}function _(e){var t,r,n,i,o,a,c,f,l,h,d,y=[],b=e.length,v=0,w=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&g("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<b;){for(o=v,a=1,c=u;i>=b&&g("invalid-input"),((f=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||f>p((s-v)/a))&&g("overflow"),v+=f*a,!(f<(l=c<=_?1:c>=_+26?26:c-_));c+=u)a>p(s/(h=u-l))&&g("overflow"),a*=h;_=E(v-o,t=y.length+1,0==o),p(v/t)>s-w&&g("overflow"),w+=p(v/t),v%=t,y.splice(v++,0,w)}return m(y)}function S(e){var t,r,n,i,o,a,c,f,l,h,y,b,m,_,S,k=[];for(b=(e=v(e)).length,t=128,r=0,o=72,a=0;a<b;++a)(y=e[a])<128&&k.push(d(y));for(n=i=k.length,i&&k.push("-");n<b;){for(c=s,a=0;a<b;++a)(y=e[a])>=t&&y<c&&(c=y);for(c-t>p((s-r)/(m=n+1))&&g("overflow"),r+=(c-t)*m,t=c,a=0;a<b;++a)if((y=e[a])<t&&++r>s&&g("overflow"),y==t){for(f=r,l=u;!(f<(h=l<=o?1:l>=o+26?26:l-o));l+=u)S=f-h,_=u-h,k.push(d(w(h+S%_,0))),f=p(S/_);k.push(d(w(f,0))),o=E(r,m,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:m},decode:_,encode:S,toASCII:function(e){return b(e,(function(e){return f.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return b(e,(function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),i=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return i.isString(e)&&(e=m(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),l=["%","/","?",";","#"].concat(f),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function m(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var m=e=c.join(s);if(m=m.trim(),!r&&1===e.split("#").length){var w=u.exec(m);if(w)return this.path=m,this.href=m,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(m);if(E){var _=(E=E[0]).toLowerCase();this.protocol=_,m=m.substr(E.length)}if(r||E||m.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===m.substr(0,2);!S||E&&y[E]||(m=m.substr(2),this.slashes=!0)}if(!y[E]&&(S||E&&!b[E])){for(var k,O,x=-1,R=0;R<h.length;R++)-1!==(j=m.indexOf(h[R]))&&(-1===x||j<x)&&(x=j);for(-1!==(O=-1===x?m.lastIndexOf("@"):m.lastIndexOf("@",x))&&(k=m.slice(0,O),m=m.slice(O+1),this.auth=decodeURIComponent(k)),x=-1,R=0;R<l.length;R++){var j;-1!==(j=m.indexOf(l[R]))&&(-1===x||j<x)&&(x=j)}-1===x&&(x=m.length),this.host=m.slice(0,x),m=m.slice(x),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var T=this.hostname.split(/\./),B=(R=0,T.length);R<B;R++){var M=T[R];if(M&&!M.match(p)){for(var I="",L=0,P=M.length;L<P;L++)M.charCodeAt(L)>127?I+="x":I+=M[L];if(!I.match(p)){var N=T.slice(0,R),C=T.slice(R+1),D=M.match(d);D&&(N.push(D[1]),C.unshift(D[2])),C.length&&(m="/"+C.join(".")+m),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!g[_])for(R=0,B=f.length;R<B;R++){var W=f[R];if(-1!==m.indexOf(W)){var q=encodeURIComponent(W);q===W&&(q=escape(W)),m=m.split(W).join(q)}}var $=m.indexOf("#");-1!==$&&(this.hash=m.substr($),m=m.slice(0,$));var z=m.indexOf("?");if(-1!==z?(this.search=m.substr(z),this.query=m.substr(z+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,z)):t&&(this.search="",this.query={}),m&&(this.pathname=m),b[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var V=this.search||"";this.path=U+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(r[f]=e[f])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var l=Object.keys(e),h=0;h<l.length;h++){var p=l[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",v=r.search||"";r.path=g+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=w||m||r.host&&e.pathname,_=E,S=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===S[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search))return k&&(r.hostname=r.host=S.shift(),(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift())),r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=S.slice(-1)[0],x=(r.host||e.host||S.length>1)&&("."===O||".."===O)||""===O,R=0,j=S.length;j>=0;j--)"."===(O=S[j])?S.splice(j,1):".."===O?(S.splice(j,1),R++):R&&(S.splice(j,1),R--);if(!E&&!_)for(;R--;R)S.unshift("..");!E||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),x&&"/"!==S.join("/").substr(-1)&&S.push("");var A,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);return k&&(r.hostname=r.host=T?"":S.length?S.shift():"",(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift())),(E=E||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function i(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),i=r(8662),o=r(6430),a=r(5692);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===f(e)}function v(e){return"[object Set]"===f(e)}function m(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function E(e){return"[object ArrayBuffer]"===f(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===f(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(m.working?m(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),t.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===f(e)}function R(e){return void 0!==O&&(void 0===x.working&&(x.working=x(new O)),x.working?x(e):e instanceof O)}function j(e){return y(e,l)}function A(e){return y(e,h)}function T(e){return y(e,p)}function B(e){return u&&y(e,d)}function M(e){return c&&y(e,g)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=j,t.isStringObject=A,t.isBooleanObject=T,t.isBigIntObject=B,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return j(e)||A(e)||T(e)||B(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),i=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},a=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(f(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])v(s)||!S(s)?o+=" "+s:o+=" "+f(s);return o},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?i.trace(r):i.error(r),o=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if(n.env.NODE_DEBUG){var c=n.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function f(e,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=f.styles[t];return r?"["+f.colors[r][0]+"m"+e+"["+f.colors[r][1]+"m":e}function h(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return w(i)||(i=p(e,i,n)),i}var o=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(w(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return d(r)}var c,f="",l=!1,h=["{","}"];return y(r)&&(l=!0,h=["[","]"]),x(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(f=" "+RegExp.prototype.toString.call(r)),k(r)&&(f=" "+Date.prototype.toUTCString.call(r)),O(r)&&(f=" "+d(r)),0!==a.length||l&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=l?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)B(t,String(a))?o.push(g(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(g(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return g(e,r,n,s,t,l)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,h)):h[0]+f+h[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),B(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function w(e){return"string"==typeof e}function E(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===R(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===R(e)}function O(e){return S(e)&&("[object Error]"===R(e)||e instanceof Error)}function x(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);i.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=y,t.isBoolean=b,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=O,t.types.isNativeError=O,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=M,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(I.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},1070:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NIL:()=>d,parse:()=>v.Z,stringify:()=>b.Z,v1:()=>n.Z,v3:()=>l,v4:()=>h.Z,v5:()=>p.Z,validate:()=>g.Z,version:()=>y});var n=r(7314);function i(e){return 14+(e+64>>>9<<4)+1}function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,i,a){return o((s=o(o(t,e),o(n,a)))<<(u=i)|s>>>32-u,r);var s,u}function s(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function c(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function f(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}const l=(0,r(2808).ZP)("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[i(t)-1]=t;for(var r=1732584193,n=-271733879,a=-1732584194,l=271733878,h=0;h<e.length;h+=16){var p=r,d=n,g=a,y=l;r=s(r,n,a,l,e[h],7,-680876936),l=s(l,r,n,a,e[h+1],12,-389564586),a=s(a,l,r,n,e[h+2],17,606105819),n=s(n,a,l,r,e[h+3],22,-1044525330),r=s(r,n,a,l,e[h+4],7,-176418897),l=s(l,r,n,a,e[h+5],12,1200080426),a=s(a,l,r,n,e[h+6],17,-1473231341),n=s(n,a,l,r,e[h+7],22,-45705983),r=s(r,n,a,l,e[h+8],7,1770035416),l=s(l,r,n,a,e[h+9],12,-1958414417),a=s(a,l,r,n,e[h+10],17,-42063),n=s(n,a,l,r,e[h+11],22,-1990404162),r=s(r,n,a,l,e[h+12],7,1804603682),l=s(l,r,n,a,e[h+13],12,-40341101),a=s(a,l,r,n,e[h+14],17,-1502002290),r=u(r,n=s(n,a,l,r,e[h+15],22,1236535329),a,l,e[h+1],5,-165796510),l=u(l,r,n,a,e[h+6],9,-1069501632),a=u(a,l,r,n,e[h+11],14,643717713),n=u(n,a,l,r,e[h],20,-373897302),r=u(r,n,a,l,e[h+5],5,-701558691),l=u(l,r,n,a,e[h+10],9,38016083),a=u(a,l,r,n,e[h+15],14,-660478335),n=u(n,a,l,r,e[h+4],20,-405537848),r=u(r,n,a,l,e[h+9],5,568446438),l=u(l,r,n,a,e[h+14],9,-1019803690),a=u(a,l,r,n,e[h+3],14,-187363961),n=u(n,a,l,r,e[h+8],20,1163531501),r=u(r,n,a,l,e[h+13],5,-1444681467),l=u(l,r,n,a,e[h+2],9,-51403784),a=u(a,l,r,n,e[h+7],14,1735328473),r=c(r,n=u(n,a,l,r,e[h+12],20,-1926607734),a,l,e[h+5],4,-378558),l=c(l,r,n,a,e[h+8],11,-2022574463),a=c(a,l,r,n,e[h+11],16,1839030562),n=c(n,a,l,r,e[h+14],23,-35309556),r=c(r,n,a,l,e[h+1],4,-1530992060),l=c(l,r,n,a,e[h+4],11,1272893353),a=c(a,l,r,n,e[h+7],16,-155497632),n=c(n,a,l,r,e[h+10],23,-1094730640),r=c(r,n,a,l,e[h+13],4,681279174),l=c(l,r,n,a,e[h],11,-358537222),a=c(a,l,r,n,e[h+3],16,-722521979),n=c(n,a,l,r,e[h+6],23,76029189),r=c(r,n,a,l,e[h+9],4,-640364487),l=c(l,r,n,a,e[h+12],11,-421815835),a=c(a,l,r,n,e[h+15],16,530742520),r=f(r,n=c(n,a,l,r,e[h+2],23,-995338651),a,l,e[h],6,-198630844),l=f(l,r,n,a,e[h+7],10,1126891415),a=f(a,l,r,n,e[h+14],15,-1416354905),n=f(n,a,l,r,e[h+5],21,-57434055),r=f(r,n,a,l,e[h+12],6,1700485571),l=f(l,r,n,a,e[h+3],10,-1894986606),a=f(a,l,r,n,e[h+10],15,-1051523),n=f(n,a,l,r,e[h+1],21,-2054922799),r=f(r,n,a,l,e[h+8],6,1873313359),l=f(l,r,n,a,e[h+15],10,-30611744),a=f(a,l,r,n,e[h+6],15,-1560198380),n=f(n,a,l,r,e[h+13],21,1309151649),r=f(r,n,a,l,e[h+4],6,-145523070),l=f(l,r,n,a,e[h+11],10,-1120210379),a=f(a,l,r,n,e[h+2],15,718787259),n=f(n,a,l,r,e[h+9],21,-343485551),r=o(r,p),n=o(n,d),a=o(a,g),l=o(l,y)}return[r,n,a,l]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(i(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}));var h=r(2045),p=r(9326);const d="00000000-0000-0000-0000-000000000000";var g=r(7738);const y=function(e){if(!(0,g.Z)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};var b=r(3958),v=r(7719)},7719:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7738);const i=function(e){if(!(0,n.Z)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},3653:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}},3958:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});for(var n=r(7738),i=[],o=0;o<256;++o)i.push((o+256).toString(16).substr(1));const a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,n.Z)(r))throw TypeError("Stringified UUID is invalid");return r}},7314:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,i,o=r(3653),a=r(3958),s=0,u=0;const c=function(e,t,r){var c=t&&r||0,f=t||new Array(16),l=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:i;if(null==l||null==h){var p=e.random||(e.rng||o.Z)();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=i=16383&(p[6]<<8|p[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:u+1,y=d-s+(g-u)/1e4;if(y<0&&void 0===e.clockseq&&(h=h+1&16383),(y<0||d>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=g,i=h;var b=(1e4*(268435455&(d+=122192928e5))+g)%4294967296;f[c++]=b>>>24&255,f[c++]=b>>>16&255,f[c++]=b>>>8&255,f[c++]=255&b;var v=d/4294967296*1e4&268435455;f[c++]=v>>>8&255,f[c++]=255&v,f[c++]=v>>>24&15|16,f[c++]=v>>>16&255,f[c++]=h>>>8|128,f[c++]=255&h;for(var m=0;m<6;++m)f[c+m]=l[m];return t||(0,a.Z)(f)}},2808:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o});var n=r(3958),i=r(7719);function o(e,t,r){function o(e,o,a,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=(0,i.Z)(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(o),u.set(e,o.length),(u=r(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){s=s||0;for(var c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.Z)(u)}try{o.name=e}catch(e){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}},2045:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3653),i=r(3958);const o=function(e,t,r){var o=(e=e||{}).random||(e.rng||n.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=o[a];return t}return(0,i.Z)(o)}},9326:(e,t,r)=>{"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}r.d(t,{Z:()=>o});const o=(0,r(2808).ZP)("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),c=new Array(u),f=0;f<u;++f){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=e[64*f+4*h]<<24|e[64*f+4*h+1]<<16|e[64*f+4*h+2]<<8|e[64*f+4*h+3];c[f]=l}c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<u;++p){for(var d=new Uint32Array(80),g=0;g<16;++g)d[g]=c[p][g];for(var y=16;y<80;++y)d[y]=i(d[y-3]^d[y-8]^d[y-14]^d[y-16],1);for(var b=r[0],v=r[1],m=r[2],w=r[3],E=r[4],_=0;_<80;++_){var S=Math.floor(_/20),k=i(b,5)+n(S,v,m,w)+E+t[S]+d[_]>>>0;E=w,w=m,m=i(v,30)>>>0,v=b,b=k}r[0]=r[0]+b>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}))},7738:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,i=function(e){return"string"==typeof e&&n.test(e)}},6430:(e,t,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),s=r(6410)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),f=o("String.prototype.slice"),l={},h=r(882),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var r=p(t),n=h(r,Symbol.toStringTag);if(!n){var i=p(r);n=h(i,Symbol.toStringTag)}l[e]=n.get}}}));var d=r(5692);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(l,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):f(a(e),8,-1))}},2479:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},651:e=>{"use strict";e.exports={}},6549:()=>{},8245:()=>{},7669:()=>{},1408:()=>{},6297:()=>{},131:()=>{},4093:()=>{},1695:()=>{},6854:()=>{},4616:()=>{},9862:()=>{},964:()=>{},5173:()=>{},8670:()=>{},4034:()=>{},1185:()=>{},6143:()=>{},6167:()=>{},9654:()=>{},6324:()=>{},6144:()=>{},7945:()=>{},1338:()=>{},934:()=>{},979:()=>{},6789:()=>{},6538:()=>{},8085:()=>{},2929:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},882:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},4685:(e,t,r)=>{"use strict";var n,i;r.a(e,(async(e,t)=>{try{var o=r(4431),a=(r(1185),r(6324),r(934),r(6538),r(6789),r(5772)),s=(r(4034),r(8670),r(6143),r(9654),r(6144)),u=(r(7945),r(979),r(6167),r(5173),r(8085),r(2929),r(1070)),c=(r(651),r(9048)),f=r(8864),l=r(769),h=r(3880),p=r(1142),d=r(966),g=r(7456),y=r(5108),b=e([d,c,f,l,h,p]);[d,c,f,l,h,p]=b.then?(await b)():b;const v=d.inBrowser()?(await Promise.resolve().then(r.t.bind(r,8764,19))).Buffer:global.Buffer,m=d.inBrowser()?window.fetch:(await Promise.resolve().then(r.t.bind(r,1338,19))).default;d.inBrowser()&&(window.utilitas={base64url:n||(n=r.t(a,2)),Buffer:v,colors:o,encryption:c,event:f,fetch:m,manifest:g.Z,math:i||(i=r.t(s,2)),shot:l,storage:h,uoid:p,utilitas:d,uuid:u},y.log(`[${g.Z.name.toUpperCase()} ${g.Z.version}](${g.Z.homepage}) is ready!`)),t()}catch(e){t(e)}}),1)},9048:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{defaultAlgorithm:()=>u,digestObject:()=>y,getSortedQueryString:()=>c,hash:()=>f,hashFile:()=>l,hexToBigInt:()=>b,random:()=>d,randomString:()=>g,sha256:()=>h,sha256File:()=>p});var i=r(966),o=r(6549),a=r(3384),s=e([i]);i=(s.then?(await s)():s)[0];const u="sha256",c=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map((r=>t.append(r,(0,i.ensureString)(e[r])))),t.toString()},f=(e,t=u)=>o.createHash(t).update(e).digest("hex"),l=(e,t=u)=>new Promise((r=>{const n=o.createHash(t);a.createReadStream(e).on("data",(e=>n.update(e))).on("end",(()=>r(n.digest("hex"))))})),h=e=>f(e),p=async e=>await l(e),d=e=>o.randomBytes(e),g=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,d(r).toString(t).substring(0,e)},y=(e,t)=>f(c(e),t),b=e=>(e=`0x${(0,i.ensureString)(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10));n()}catch(e){n(e)}}))},8864:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{bulk:()=>w,default:()=>_,end:()=>E,list:()=>p,load:()=>m,loop:()=>v});var i=r(2045),o=r(966),a=r(3384),s=r(6470),u=e([o]);o=(u.then?(await u)():u)[0];const c=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/event.mjs"),f={},l=e=>1e3*(isNaN(e=Number(e))?0:e),h=e=>f[e].lock=0,p=()=>f;let d=null;const g=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!f[t]||!f[t].silent||r.force||e instanceof Error)&&o.modLog(e,o.basename(c)+(t?` > ${t}`:""),r)},y=(e,t,r)=>f[e].lock+r>t?f[e].lock:!(f[e].lock=t),b=async()=>{const e=Date.now();for(let t in f)if(f[t].lastRun+f[t].interval<e){f[t].lastRun=e;try{if(y(t,e,f[t].timeout)){g("Locked, skipped.",t);continue}g("Emit...",t),await f[t].function()}catch(e){g(e,t)}g("Done.",t),h(t)}},v=async(e,t,r,n,a,s={})=>(d=d||g("Initialized.")||setInterval(b,1e3),g("Scheduled.",a=a||(0,i.Z)(),{force:!0}),await o.timeout(n=l(n)),f[a]={function:e,interval:l(t),timeout:l(r),delay:n,lastRun:0,lock:0,silent:!!s.silent,end:s.end},d),m=async(e,t={})=>(o.assert(e&&e.func,"Event function is required.",500),await v(e.func,e.interval,e.tout,e.delay,e.name,t)),w=async(e,t)=>{t=t||{},g(`SERVICES: ${e}`);const[n,i]=[(a.readdirSync(e)||[]).filter((e=>/\.mjs$/i.test(e)&&!e.startsWith("."))),[]];for(let o of n){const n={...await r(9142)(s.join(e,o))};n.run&&(n.name=n.name||o.replace(/^(.*)\.mjs$/i,"$1"),i.push(m(n,t)))}return await Promise.all(i)},E=async e=>{if(e&&(delete f[e],f.length))return;clearInterval(d),d=-1;const t=Date.now();for(let e in f){if(f[e].end)try{await f[e].end()}catch(e){}for(;y(e,t,f[e].timeout);)g("Waiting...",e),await o.timeout(1e3);g("End.",e)}g("Terminated.")},_=v;n()}catch(e){n(e)}}),1)},7456:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n={name:"utilitas",description:"Just another common utility for JavaScript.",version:"1989.10.21",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=16.x"},scripts:{start:"node index.mjs",debug:"node --inspect --trace-warnings debug.mjs",test:"node --inspect --trace-warnings test.mjs",updep:"npx ncu -u && npm install",gitsync:'( git commit -am "Released @ `date`" || true ) && git pull && git push',pack:"./node_modules/.bin/webpack-cli --config webpack.config.mjs",build:"npm run updep && ( git commit -am 'update dependencies' || true ) && npm version patch && node build.mjs && npm run pack",prepublishOnly:"npm run build && npm run gitsync",beta:"npm publish --tag beta"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},dependencies:{"@sentry/node":"^6.19.2",base64url:"^3.0.1",buffer:"^6.0.3",colors:"1.4.0","fast-geoip":"^1.1.64","file-type":"^17.1.1","form-data":"^4.0.0",ini:"github:Leask/ini",ioredis:"^4.28.5",jsonwebtoken:"^8.5.1","mailgun.js":"^5.0.3",mathjs:"^10.4.1",mysql2:"^2.3.3","node-fetch":"^3.2.3","node-mailjet":"^3.3.7",ping:"^0.4.1",tail:"^2.2.4",telegraf:"^4.7.0",telesignsdk:"^2.2.1",twilio:"^3.76.0",uuid:"^8.3.2"},devDependencies:{"browserify-fs":"^1.0.0","node-polyfill-webpack-plugin":"^1.1.4","webpack-cli":"^4.9.2"}}},769:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{checkVersion:()=>v,default:()=>_,get:()=>E,getCurrentIp:()=>m,getCurrentPosition:()=>w,getVersionOnNpm:()=>b});var i=r(3384),o=r(9048),a=r(8245),s=r(3880),u=r(966),c=r(6470),f=r(4155),l=e([o,s,u]);[o,s,u]=l.then?(await l)():l;const h=u.inBrowser()?(await Promise.resolve().then(r.t.bind(r,8764,19))).Buffer:global.Buffer,p=u.inBrowser()?window.fetch:(await Promise.resolve().then(r.t.bind(r,1408,19))).default,d=f.env.TMPDIR?c.join(f.env.TMPDIR,"shot"):null,g={redirect:"follow",follow:3,timeout:1e4},y=e=>e.toString("utf8"),b=async e=>{u.assert(e,"Package name is required.",400);const t=`https://registry.npmjs.org/-/package/${e}/dist-tags`,r=(await E(t,{encode:"JSON"}))?.content;return u.assert(r,"Error fetching package info.",500),u.assert("Not Found"!==r&&r.latest,"Package not found.",404),u.parseVersion(r.latest)},v=async e=>{const t=await u.which(e),r=t.versionNormalized,n=await b(t.name);return{name:t.name,curVersion:r,newVersion:n,updateAvailable:n.normalized>r.normalized}},m=async e=>{const t=await E("https://ifconfig.me/all.json",{encode:"JSON",...e||{}});return u.assert(t?.content?.ip_addr,"Error detecting IP address.",500),e?.raw?t:t.content.ip_addr},w=async()=>{const e=await p("https://geolocation-db.com/json/").then((e=>e.json()));return u.assert(e,"Network is unreachable.",500),u.assert(e.country_code,"Error detecting geolocation.",500),e},E=async(e,t)=>{u.assert(e,"URL is required."),(t=t||{}).encode=u.ensureString(t.encode,{case:"UP"});const r=u.inBrowser()?null:(0,o.sha256)(e),n=r?t.cache?.tmp||d:null,f=n?c.join(n,s.mapFilename(r)):null,[l,b]=f?["meta","content"].map((e=>c.join(f,`${r}.${e}`))):[],v=t?.refresh||!f?null:await s.readJson(l),m=t?.refresh||!f?null:await u.ignoreErrFunc((async()=>await i.promises.readFile(b))),w=v?.responseHeaders&&m?{"cache-control":"max-age=0","if-modified-since":v.responseHeaders["last-modified"],"if-none-match":v.responseHeaders.etag}:{};let[E,_,S]=[null,null,{}];const k={...g,headers:w,...t.fetch||{}};if(t.timeout){const e=new AbortController;k.signal=e.signal,E=setTimeout((()=>{e.abort()}),t.timeout)}try{_=await p(e,k)}catch(e){u.throwError(e.message.includes("aborted")?"Timed out.":e.message,500)}E&&clearTimeout(E),304===_.status&&(_.arrayBuffer=async()=>m);const[O,x]=[_.headers.get("content-type"),h.from(await _.arrayBuffer())];if(_.headers?.raw)S=_.headers.raw();else for(const[e,t]of _.headers.entries())S[e]=t;const R=await u.ignoreErrFunc((async()=>{u.extract(await a.fileTypeFromBuffer(x),"mime")}))||O,j=x.length;let A;switch(t.encode){case"BUFFER":A=x;break;case"BASE64":A=x.toString(t.encode);break;case"BASE64_DATA_URL":A=s.encodeBase64DataURL(R,x);break;case"JSON":try{A=JSON.parse(y(x))}catch(e){}break;case"TEXT":A=y(x);break;default:u.assert(!t.encode,"Invalid encoding.",400),A=y(x)}return f&&!m&&j&&200===_.status&&await u.ignoreErrFunc((async()=>({touch:await s.touchPath(f),content:await i.promises.writeFile(b,x),meta:await s.writeJson(l,{url:e,requestHeaders:w,responseHeaders:S})}))),{statusCode:_.status,statusText:_.statusText,length:j,mimeType:R,content:A,headers:S,response:_,cache:_.status>=200&&_.status<400?{meta:l,content:b}:null}},_=E;n()}catch(e){n(e)}}),1)},3880:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{assertPath:()=>x,encodeBase64DataURL:()=>M,exists:()=>L,getConfig:()=>A,getConfigFilename:()=>j,isTextFile:()=>R,legalFilename:()=>I,mapFilename:()=>y,readFile:()=>m,readIni:()=>E,readJson:()=>w,setConfig:()=>T,touchPath:()=>B,writeFile:()=>_,writeIni:()=>O,writeJson:()=>k,writeTempFile:()=>S});var i=r(2045),o=r(966),a=r(3384),s=r(7669),u=r(2970),c=r(6470),f=r(5108),l=r(8764).Buffer,h=e([o]);o=(h.then?(await h)():h)[0];const[p,d,g]=["utf8","0644","0755"],y=e=>c.join(e.substr(0,2),e.substr(2,2)),b=(e,t)=>{if(t?.throw)throw e;t?.log&&f.log(e)},v=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),m=async(e,t)=>await a.promises.readFile(e,t?.encoding||p),w=async(e,t)=>{let r={};try{r=JSON.parse(await m(e,t))}catch(e){b(e,t)}return r},E=async(e,t)=>{let r={};try{r=s.parse(await m(e,t),t)}catch(e){b(e,t)}return r},_=async(e,t,r)=>await a.promises.writeFile(e,t,r?.encoding||p),S=async(e,t)=>{let{filename:r,encoding:n,mode:o,prefix:s,suffix:f}=t||{};r=`${s||""}${r||(0,i.Z)()}${f?`.${f}`:""}`,"JSON"===String(n).toUpperCase()&&(e=v(e,t),n=null);const l=c.join(u.tmpdir(),r);return await _(l,e,{encoding:n||p}),await a.promises.chmod(l,o||d),l},k=async(e,t,r)=>await _(e,v(t,r),r),O=async(e,t,r)=>await _(e,s.stringify(t||{},r),r),x=async(e,t,r,n,i=500,s={})=>{let[u,c,f]=[null,null,null];try{u=await a.promises.stat(e)}catch(e){o.throwError(n||e.message,i,s)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c=u.isFile()?null:n||`Path is not a file: '${e}'.`;break;case"D":c=u.isDirectory()?null:n||`Path is not a directory: '${e}'.`;break;default:c=n||`Unsupported path type: '${t}'.`}o.assert(!c,c,i,s);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await a.promises.access(e,a.constants.R_OK);break;case"W":await a.promises.access(e,a.constants.R_OK|a.constants.W_OK);break;default:f=n||`Unsupported access mode: '${r}'.`}}catch(e){f=n||e.message}return o.assert(!f,f,i,s),u},R=async(e,t)=>{let[r,n]=[await a.promises.open(e,"r"),!0];for(let e=0;e<(~~t?.length||1e3);e++){const t=l.alloc(1),i=a.readSync(r.fd,t,0,1,e);if(0===i)break;if(1===i&&0===t.toString().charCodeAt()){n=!1;break}}return r.close(),n},j=async e=>{const t=(e=e||{}).config||c.join(u.homedir(),`.${(await o.which(e.pack)).name}.json`);return o.assert(t,"Error getting config filename.",500),t},A=async e=>{const t=await j(e);return{filename:t,config:await w(t)}},T=async(e,t)=>{e=e||{},o.assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t.overwrite)r=await j(t);else{const{filename:e,config:i}=await A(t);r=e,n=i}return await k(r,o.mergeAtoB(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},B=async(e,t)=>(await a.promises.mkdir(e,{recursive:!0}),await a.promises.chmod(e,t?.permissions||g),await a.promises.stat(e)),M=(e,t)=>{o.assert(e=o.trim(e),"MIME type is required.",400),o.assert(o.isBuffer(t),"Data buffer is required.",400);return`data:${e};base64,${t.toString("base64")}`},I=e=>(o.assert(e=o.ensureString(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),L=async e=>{o.assert(e=o.ensureString(e),"Path is required.",400);try{return await a.promises.stat(e)}catch(e){return null}};n()}catch(e){n(e)}}))},1142:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{bigIntToUuid:()=>p,compactUuid:()=>l,create:()=>g,default:()=>b,getRfcUrlNamespaceUuid:()=>y,getTimestampFromUuid:()=>d,uuidRegTxt:()=>f,uuidToBigInt:()=>h});var i=r(9048),o=r(966),a=r(7314),s=r(9326),u=e([i,o]);[i,o]=u.then?(await u)():u;const c=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/uoid.mjs"),f="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=e=>e.replace(/\-/gi,""),h=e=>(0,i.hexToBigInt)(l(e)),p=e=>BigInt(e).toString(16).padStart(32,"0").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),d=e=>e?Math.ceil((o.convertFrom16to10(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"$3$2$1"))-122192928e9)/1e4):0,g=e=>{(e=Object.assign({file:c,id:a.Z()},e||{})).type=e.type||o.basename(e.file),1==(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${(0,i.randomString)(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},y=e=>(o.assertUrl(e),s.Z(e,s.Z.URL)),b=g;n()}catch(e){n(e)}}),1)},966:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{arrayEqual:()=>fe,assembleApiUrl:()=>H,assembleUrl:()=>V,assert:()=>pe,assertDate:()=>ve,assertEmail:()=>de,assertFunction:()=>me,assertSet:()=>be,assertUrl:()=>ye,assertUuid:()=>ge,asyncTimeout:()=>K,base64Decode:()=>te,base64Encode:()=>ee,base64Pack:()=>ie,base64Unpack:()=>oe,basename:()=>_e,byteToHexString:()=>ue,checkInterval:()=>Ue,clone:()=>g,convertBase:()=>Z,convertFrom16to10:()=>J,distill:()=>y,ensureArray:()=>w,ensureDate:()=>k,ensureInt:()=>m,ensureString:()=>_,extract:()=>se,fullLengthLog:()=>Pe,getConfigFromStringOrArray:()=>j,getDateByUnixTimestamp:()=>je,getKeyByValue:()=>we,getRandomIndexInArray:()=>x,getRandomInt:()=>O,getRandomItemInArray:()=>R,getShortestInArray:()=>ce,getType:()=>A,getUnixTimestampByDate:()=>Ae,hexDecode:()=>ne,hexEncode:()=>re,humanReadableBoolean:()=>Me,ignoreErrFunc:()=>Fe,inBrowser:()=>p,insensitiveCompare:()=>xe,is:()=>T,isBoolean:()=>B,isBuffer:()=>M,isDate:()=>I,isError:()=>P,isFunction:()=>N,isNull:()=>U,isObject:()=>L,isSet:()=>F,isString:()=>C,isUndefined:()=>D,makeStringByLength:()=>Re,mapKeys:()=>b,matchVersion:()=>Le,mergeAtoB:()=>Oe,modLog:()=>Se,newError:()=>le,pad:()=>v,parseJson:()=>ae,parseVersion:()=>Ie,prettyJson:()=>G,purgeEmoji:()=>$e,range:()=>Ce,renderCode:()=>Ne,rotate:()=>Te,shiftTime:()=>De,split:()=>qe,throwError:()=>he,timeout:()=>Y,toExponential:()=>Be,trim:()=>S,tryUntil:()=>We,uniqueArray:()=>Ee,verifyEmail:()=>$,verifyPhone:()=>z,verifyUrl:()=>q,verifyUuid:()=>W,which:()=>ke});var i=r(3880),o=r(4431),a=r(6470),s=r(5108),u=r(8764).Buffer,c=r(4155),f=e([i]);i=(f.then?(await f)():f)[0],Object.values=Object.values||(e=>Object.keys(e).map((t=>e[t]))),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const l=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/utilitas.mjs"),h="Invalid time.",p=()=>{try{return window}catch(e){}},d={interval:1e3,maxTry:10,log:!1,error:"Operation failed.",verify:async(e,t)=>!e},g=e=>{let t=e;switch(A(e)){case"Object":t={};for(let r in e)t[r]=g(e[r]);break;case"Array":t=[],e.map((e=>{t.push(g(e))}))}return t},y=(e,t)=>{let[r,n]=[e,null];switch(A(e)){case"Object":r={};for(let i in e)F(n=y(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map((e=>{F(e=y(e,t),t)&&r.push(e)})),r=r.length?r:void 0}return r},b=(e,t,r,n)=>{let[i,o]=[e,t];switch(L(t)&&(o=e=>t[e]),me(o),A(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);pe(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=b(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map(((e,t)=>{i.push(b(e,o,r,[...n||[],t]))}))}return i},v=(e,t,r)=>{for((r=r||{}).pad=r.pad??" ",e=String(e);e.length<~~t;)e=r.right?`${e}${r.pad}`:`${r.pad}${e}`;return e},m=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=F(t.min,!0)&&r<t.min?t.min:r,r=F(t.max,!0)&&r>t.max?t.max:r,t.pad>0?v(r,t.pad,{pad:"0"}):r},w=e=>F(e,!0)?Array.isArray(e)?e:[e]:[],E=(e,t)=>L(e)?JSON.stringify(e):I(e)?e.toISOString():P(e)?t?.trace?e.stack:e.message:String(e??""),_=(e,t)=>{if(e=E(e,t),t?.case)switch(E(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;default:he(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),e},S=(e,t)=>_(e,{trim:!0,...t||{}}),k=(e,t)=>(e&&ve(e=new Date(e),t?.message),!e&&t?.required?he(h,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?Ae(e):e:null),O=e=>Math.floor(Math.random()*Math.floor(e)),x=e=>O((e||[]).length),R=e=>e[x(e)],j=e=>Array.isArray(e)?R(e):e,A=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),T=(e,t)=>A(e)===t,B=e=>T(e,"Boolean"),M=e=>T(e,"Uint8Array"),I=(e,t)=>!(!T(e,"Date")||t&&"invalid date"===e.toTimeString().toLowerCase()),L=e=>T(e,"Object"),P=e=>T(e,"Error"),N=e=>T(e,"Function"),C=e=>T(e,"String"),D=e=>T(e,"Undefined"),U=e=>T(e,"Null"),F=(e,t)=>!(D(e)||t&&U(e)),W=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e),q=e=>{const t=String(e??"");return t.length<2083&&new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},$=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),z=e=>/^\+?[0-9]{4,}$/.test(e),V=(e,t)=>{let r=[];for(let e in t||[])w(t[e]).map((t=>{r.push(`${e}=${encodeURIComponent(t)}`)}));return`${e}${r.length?`?${r.join("&")}`:""}`},H=(e,t,r)=>V(`${e}/${t}`,r),G=(e,t)=>{t=t||{};const r=JSON.stringify(e,null,2);return t.log&&s.log(r),r},Y=e=>new Promise((t=>setTimeout(t,e))),K=async(e,t,r)=>{let n=null,i=Promise.race([e,new Promise(((e,i)=>{n=setTimeout((()=>{i(new Error(r||"Timed out."))}),t)}))]);const o=await i;try{clearTimeout(n)}catch(r){}return o},Z=(e,t,r)=>parseInt(e||0,t).toString(r),J=e=>parseInt(Z(e,16,10)),X=(e,t,r)=>(t?e:u.from(e)).toString(r),Q=(e,t,r)=>{const n=u.from(e,r);return t?n:n.toString("utf8")},ee=(e,t)=>X(e,t,"base64"),te=(e,t)=>Q(e,t,"base64"),re=(e,t)=>X(e,t,"hex"),ne=(e,t)=>Q(e,t,"hex"),ie=e=>ee(JSON.stringify(e)),oe=e=>JSON.parse(te(e)),ae=(e,t={})=>{try{return JSON.parse(e)}catch(e){return t}},se=function(){let e=null;for(let t=0;t<arguments.length;t++)e=t?e?.[arguments[t]]??null:arguments[t];return e},ue=e=>Array.from(e,(e=>("0"+(255&e).toString(16)).slice(-2))).join(""),ce=e=>{let[t,r]=[0,-1];for(let n in e)(-1===r||r>e[n].length)&&(t=n,r=e[n].length);return t},fe=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),le=(e,t,r={})=>Object.assign(new Error(e),{status:t},r),he=(e,t,r)=>{throw le(e,t,r)},pe=(e,t,r,n)=>e||he(t,r,n),de=(e,t="Invalid email.",r=400,n={})=>pe($(e),t,r,n),ge=(e,t="Invalid UUID.",r=400,n={})=>pe(W(e),t,r,n),ye=(e,t="Invalid URL.",r=400,n={})=>pe(q(e),t,r,n),be=(e,t="Undefined value.",r=400,n={})=>pe(F(e),t,r,n),ve=(e,t=h,r=400,n={})=>pe(I(e,!0),t,r,n),me=(e,t="Invalid Function.",r=400,n={})=>pe(N(e),t,r,n),we=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Ee=e=>[...new Set(w(e))],_e=e=>a.basename(String(e??l)).replace(/\.[^\.]*$/,"").trim(),Se=(e,t,r)=>{r=r||[];const n=P(e);e=L(e)?JSON.stringify(e):e;const i=r.time?` ${(I(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+o.red(_e(t).toUpperCase())+o.yellow(i)+"]"+(n?"":` ${e}`)];return n&&a.push(e),s.info.apply(null,a)},ke=async e=>{const t=c.cwd();e=e||a.join(t,"package.json");const r=L(e)?e:await i.readJson(e);return r.name=r.name||a.basename(t)||"",r.versionNormalized=Ie(r.version=r.version||""),r.title=`${r.name}${r.version?" v"+r.version:""}`,r.userAgent=`${r.name}${r.version?`/${r.version}`:""}`,r},Oe=(e,t,r)=>{r=r||{},e=e||{},t=t||{};for(let n in e)D(e[n])?r.mergeUndefined&&delete t[n]:t[n]=e[n];return t},xe=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map((e=>(e=S(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e)));return n===i},Re=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},je=e=>new Date(1e3*~~e),Ae=e=>Math.round(e.getTime()/1e3),Te=(e,t,r)=>{let n=!1;switch(A(e)){case"String":e=_(e,r).split(""),n=!0;break;case"Array":break;default:he("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),n?e.join(""):e},Be=(e,t)=>Number.parseFloat(e).toExponential(t),Me=e=>["OK","OKEY","YES","AYE","ROGER","TRUE","✓","1","10-4","RIGHTO","RIGHT","GOOD","YUP","YEP","YUPPERS","YEPPERS","JA","SURE","DO","GREAT","COOL"].includes(_(e,{case:"UP"})),Ie=e=>{e=_(e,{case:"UP"});const[t,r,n]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let n in t){let i="";for(let r in t[n]){const[o,a]=Array.isArray(t[n][r])?[t[n][r][0],t[n][r][1]]:[new RegExp(`^.*(${t[n][r]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}r[n]=i}if(r.version){const e=r.version.split(".");for(;e.length<n;)e.push(0);for(;e.length;)r.normalized+=Math.pow(10,5*(n-e.length))*e.pop()}return r},Le=(e,t)=>{const[r,n]=[Ie(e),Ie(t)];return r.normalized>=n.normalized},Pe=(e,t)=>{t=t||{},e=String(e??"");const r=m(t.maxLength)||c.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=Re(n,r);s.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;s.log(`${Re(n,t)}${e}${Re(n,i)}`)}return{string:e,maxLength:r}},Ne=e=>{let t=0;const r=e.split("\n"),n=String(r.length).length;return r.map((e=>`${String(++t).padStart(n,"0")}|${e}`)).join("\n")},Ce=(e,t,r)=>{(r=r||{}).base=m(r.base,{min:0}),r.step=m(r.step,{min:1}),[e,t]=[m(e),m(t)];const[n,i]=[e<=t?1:-1,[]];for(let o=e;n>0?o<=t:o>=t;o+=r.step*n)(!r.noBoundary||o!==e&&o!==t)&&i.push(r.base+o);return i},De=(e,t)=>new Date((t??new Date).getTime()+e),Ue=(e,t)=>!((Math.round(Date.now()/1e3)+m(t))%m(e)),Fe=async(e,t)=>{try{return await e()}catch(e){t?.log&&s.error(e)}},We=async(e,t)=>{t={...d,...t||{}};let[r,n,i]=[0,null,null];do{try{pe(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&t?.log&&s.error(e),await Y(t.interval)}}while(++r<t.maxTry&&i);return i&&he(i,500),n},qe=(e,t)=>S(e,t).split(t?.separator??/[,|;\ \t\n]+/).map((e=>e.trim())).filter((e=>e.length)),$e=(e,t="")=>E(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t);n()}catch(e){n(e)}}),1)},3619:e=>{"use strict";e.exports=JSON.parse('{"v6":{"ct":"~0.10.0"}}')}},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return u[e].call(r.exports,r,r.exports,f),r.loaded=!0,r.exports}e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",n=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},i=e=>!--e.r&&e(),o=(e,t)=>e?e.push(t):i(t),f.a=(a,s,u)=>{var c,f,l,h=u&&[],p=a.exports,d=!0,g=!1,y=(t,r,n)=>{g||(g=!0,r.r+=t.length,t.map(((t,i)=>t[e](r,n))),g=!1)},b=new Promise(((e,t)=>{l=t,f=()=>(e(p),n(h),h=0)}));b[t]=p,b[e]=(e,t)=>{if(d)return i(e);c&&y(c,e,t),o(h,e),b.catch(t)},a.exports=b,s((a=>{var s;c=(a=>a.map((a=>{if(null!==a&&"object"==typeof a){if(a[e])return a;if(a.then){var s=[];a.then((e=>{u[t]=e,n(s),s=0}),(e=>{u[r]=e,n(s),s=0}));var u={};return u[e]=(e,t)=>(o(s,e),a.catch(t)),u}}var c={};return c[e]=e=>i(e),c[t]=a,c})))(a);var u=()=>c.map((e=>{if(e[r])throw e[r];return e[t]})),f=new Promise(((e,t)=>{(s=()=>e(u)).r=0,y(c,s,t)}));return s.r?f:u()}),(e=>(e&&l(b[r]=e),f()))),d=!1},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);f.r(r);var n={};a=a||[null,s({}),s([]),s(s)];for(var i=2&t&&e;"object"==typeof i&&!~a.indexOf(i);i=s(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,f.d(r,n),r},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),f(4685)})();
2
+ (()=>{var e,t,r,n,i,o,a,s,u={9142:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=9142,e.exports=t},8508:(e,t,r)=>{var n=r(4155);function i(e){this._db=e,this._operations=[],this._written=!1}i.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},i.prototype.put=function(e,t){this._checkWritten();var r=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(r)throw r;if(r=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw r;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},i.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},i.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},i.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void n.nextTick(t)},e.exports=i},3538:(e,t,r)=>{var n=r(4155);function i(e){this.db=e,this._ended=!1,this._nexting=!1}i.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next((function(){t._nexting=!1,e.apply(null,arguments)})):void n.nextTick((function(){t._nexting=!1,e()})))},i.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void n.nextTick(e))},e.exports=i},2554:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(7915),a=r(3538),s=r(8508);function u(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}u.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);n.nextTick(t)},u.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);n.nextTick(e)},u.prototype.get=function(e,t,r){var i;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("get() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?r(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,r):void n.nextTick((function(){r(new Error("NotFound"))})))},u.prototype.put=function(e,t,r,i){var o;if("function"==typeof r&&(i=r),"function"!=typeof i)throw new Error("put() requires a callback argument");return(o=this._checkKeyValue(e,"key",this._isBuffer))||(o=this._checkKeyValue(t,"value",this._isBuffer))?i(o):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||n.browser||(t=String(t)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(e,t,r,i):void n.nextTick(i))},u.prototype.del=function(e,t,r){var i;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("del() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))?r(i):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,r):void n.nextTick(r))},u.prototype.batch=function(e,t,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return r(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var i,o,a=0,s=e.length;a<s;a++)if("object"==typeof(i=e[a])){if(o=this._checkKeyValue(i.type,"type",this._isBuffer))return r(o);if(o=this._checkKeyValue(i.key,"key",this._isBuffer))return r(o);if("put"==i.type&&(o=this._checkKeyValue(i.value,"value",this._isBuffer)))return r(o)}if("function"==typeof this._batch)return this._batch(e,t,r);n.nextTick(r)},u.prototype.approximateSize=function(e,t,r){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,r);n.nextTick((function(){r(null,0)}))},u.prototype._setupIteratorOptions=function(e){var t=this;return e=o(e),["start","end","gt","gte","lt","lte"].forEach((function(r){e[r]&&t._isBuffer(e[r])&&0===e[r].length&&delete e[r]})),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},u.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new a(this)},u.prototype._chainedBatch=function(){return new s(this)},u.prototype._isBuffer=function(e){return i.isBuffer(e)},u.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.NI=u,e.exports.YI=a},7915:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},9282:(e,t,r)=>{"use strict";var n=r(4155),i=r(5108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a,s,u=r(2136).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,l=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(5961),g=r(9539).inspect,y=r(9539).types,b=y.isPromise,v=y.isRegExp,m=Object.assign?Object.assign:r(8091).assign,w=Object.is?Object.is:r(609);function E(){var e=r(9158);a=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var _=!1,S=e.exports=R,k={};function O(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function x(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[R,t.length].concat(t))}S.fail=function e(t,r,o,a,s){var u,c=arguments.length;if(0===c)u="Failed";else if(1===c)o=t,t=void 0;else{if(!1===_){_=!0;var f=n.emitWarning?n.emitWarning:i.warn.bind(i);f("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(a="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(l.message=o);var h=new d(l);throw u&&(h.message=u,h.generatedMessage=!0),h},S.AssertionError=d,S.ok=R,S.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&O({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},S.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&O({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)||O({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)||O({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)||O({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)&&O({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var j=function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&v(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])}))};function A(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new j(e,i),u=new j(t,i,e),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}O({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function T(e,t,r,n){if("function"!=typeof t){if(v(t))return t.test(e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===a&&E(),s.forEach((function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||A(e,t,i,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function B(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return k}function M(e){return b(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!M(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!M(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return k})).catch((function(e){return e}))}))}function L(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new f("error",["Object","Error","Function","RegExp"],r);if(t===k){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";O({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!T(t,r,n,e))throw t}function P(e,t,r,n){if(t!==k){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";O({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.apply(void 0,[N,t.length].concat(t))}S.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];L.apply(void 0,[e,B(t)].concat(n))},S.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(t).then((function(t){return L.apply(void 0,[e,t].concat(n))}))},S.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];P.apply(void 0,[e,B(t)].concat(n))},S.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(t).then((function(t){return P.apply(void 0,[e,t].concat(n))}))},S.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var n=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},S.strict=m(N,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},5961:(e,t,r)=>{"use strict";var n=r(4155);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},u(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,r){return f=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&l(i,r.prototype),i},f.apply(null,arguments)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(9539).inspect,g=r(2136).codes.ERR_INVALID_ARG_TYPE;function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",v="",m="",w="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var k=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new g("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,f=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,h(t).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(b="",v="",w="",m=""):(b="",v="",w="",m="")),"object"===p(c)&&null!==c&&"object"===p(f)&&null!==f&&"stack"in c&&c instanceof Error&&"stack"in f&&f instanceof Error&&(c=_(c),f=_(f)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,h(t).call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=S(e),f=c.split("\n"),l=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var g=f[0].length+l[0].length;if(g<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][h]===l[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var _=f[f.length-1],k=l[l.length-1];_===k&&(h++<2?s="\n ".concat(_).concat(s):i=_,f.pop(),l.pop(),0!==f.length&&0!==l.length);)_=f[f.length-1],k=l[l.length-1];var O=Math.max(f.length,l.length);if(0===O){var x=c.split("\n");if(x.length>30)for(x[26]="".concat(b,"...").concat(w);x.length>27;)x.pop();return"".concat(E.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(s="\n".concat(b,"...").concat(w).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var R=0,j=E[r]+"\n".concat(v,"+ actual").concat(w," ").concat(m,"- expected").concat(w),A=" ".concat(b,"...").concat(w," Lines skipped");for(h=0;h<O;h++){var T=h-a;if(f.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(l[h-2]),R++),o+="\n ".concat(l[h-1]),R++),a=h,i+="\n".concat(m,"-").concat(w," ").concat(l[h]),R++;else if(l.length<h+1)T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(f[h-2]),R++),o+="\n ".concat(f[h-1]),R++),a=h,o+="\n".concat(v,"+").concat(w," ").concat(f[h]),R++;else{var B=l[h],M=f[h],I=M!==B&&(!y(M,",")||M.slice(0,-1)!==B);I&&y(B,",")&&B.slice(0,-1)===M&&(I=!1,M+=","),I?(T>1&&h>2&&(T>4?(o+="\n".concat(b,"...").concat(w),u=!0):T>3&&(o+="\n ".concat(f[h-2]),R++),o+="\n ".concat(f[h-1]),R++),a=h,o+="\n".concat(v,"+").concat(w," ").concat(M),i+="\n".concat(m,"-").concat(w," ").concat(B),R+=2):(o+=i,i="",1!==T&&0!==h||(o+="\n ".concat(M),R++))}if(R>20&&h<O-2)return"".concat(j).concat(A,"\n").concat(o,"\n").concat(b,"...").concat(w).concat(i,"\n")+"".concat(b,"...").concat(w)}return"".concat(j).concat(u?A:"","\n").concat(o).concat(i).concat(s).concat(d)}(c,f,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=E[o],k=S(c).split("\n");if("notStrictEqual"===o&&"object"===p(c)&&null!==c&&(d=E.notStrictEqualObject),k.length>30)for(k[26]="".concat(b,"...").concat(w);k.length>27;)k.pop();r=1===k.length?a(this,h(t).call(this,"".concat(d," ").concat(k[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(k.join("\n"),"\n")))}else{var O=S(c),x="",R=E[o];"notDeepEqual"===o||"notEqual"===o?(O="".concat(E[o],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):(x="".concat(S(f)),O.length>512&&(O="".concat(O.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===o||"equal"===o?O="".concat(R,"\n\n").concat(O,"\n\nshould equal\n\n"):x=" ".concat(o," ").concat(x)),r=a(this,h(t).call(this,"".concat(O).concat(x)))}return Error.stackTraceLimit=l,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=f,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),u),r.stack,r.name="AssertionError",a(r)}var r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){i(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(r.prototype,u),t}(u(Error));e.exports=k},2136:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){function a(r,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,i(a).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,o,s))),u.code=e,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,r),a}(r);u[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,u,c,l;if(void 0===a&&(a=r(9282)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var h=("number"!=typeof l&&(l=0),l+".".length>(c=e).length||-1===c.indexOf(".",l)?"argument":"property");u='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(f(t,"type"))}return u+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(9539));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(9282)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},9158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(360);function l(e){return e.call.bind(e)}var h=l(Object.prototype.hasOwnProperty),p=l(Object.prototype.propertyIsEnumerable),d=l(Object.prototype.toString),g=r(9539).types,y=g.isAnyArrayBuffer,b=g.isArrayBufferView,v=g.isDate,m=g.isMap,w=g.isRegExp,E=g.isSet,_=g.isNativeError,S=g.isBoxedPrimitive,k=g.isNumberObject,O=g.isStringObject,x=g.isBooleanObject,R=g.isBigIntObject,j=g.isSymbolObject,A=g.isFloat32Array,T=g.isFloat64Array;function B(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(B).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function I(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function L(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==i(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var a,s,c,l,h=d(e);if(h!==d(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=M(e),g=M(t);return p.length===g.length&&N(e,t,r,n,1,p)}if("[object Object]"===h&&(!m(e)&&m(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(c=e,l=t,!(o?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(_(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!A(e)&&!T(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===I(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var B=M(e),L=M(t);return B.length===L.length&&N(e,t,r,n,0,B)}if(E(e))return!(!E(t)||e.size!==t.size)&&N(e,t,r,n,2);if(m(e))return!(!m(t)||e.size!==t.size)&&N(e,t,r,n,3);if(y(e)){if(s=t,(a=e).byteLength!==s.byteLength||0!==I(new Uint8Array(a),new Uint8Array(s)))return!1}else if(S(e)&&!function(e,t){return k(e)?k(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):x(e)?x(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return N(e,t,r,n,0)}function P(e,t){return t.filter((function(t){return p(e,t)}))}function N(e,t,r,n,i,o){if(5===arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!h(t,o[s]))return!1;if(r&&5===arguments.length){var u=c(e);if(0!==u.length){var f=0;for(s=0;s<u.length;s++){var l=u[s];if(p(e,l)){if(!p(t,l))return!1;o.push(l),f++}else if(p(t,l))return!1}var d=c(t);if(u.length!==d.length&&P(t,d).length!==f)return!1}else{var g=c(t);if(0!==g.length&&0!==P(t,g).length)return!1}}if(0===o.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(e);if(void 0!==y){var b=n.val2.get(t);if(void 0!==b)return y===b}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var v=q(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),v}function C(e,t,r,n){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(L(t,s,r,n))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function U(e,t,r){var n=D(r);return null!=n?n:t.has(n)&&!e.has(n)}function F(e,t,r,n,i){var o=D(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!L(n,a,!1,i))&&!e.has(o)&&L(n,a,!1,i)}function W(e,t,r,n,i,o){for(var s=a(e),u=0;u<s.length;u++){var c=s[u];if(L(r,c,i,o)&&L(n,t.get(c),i,o))return e.delete(c),!0}return!1}function q(e,t,r,o,u,c){var f=0;if(2===c){if(!function(e,t,r,n){for(var o=null,s=a(e),u=0;u<s.length;u++){var c=s[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!t.has(c)){if(r)return!1;if(!U(e,t,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var f=a(t),l=0;l<f.length;l++){var h=f[l];if("object"===i(h)&&null!==h){if(!C(o,h,r,n))return!1}else if(!r&&!e.has(h)&&!C(o,h,r,n))return!1}return 0===o.size}return!0}(e,t,r,u))return!1}else if(3===c){if(!function(e,t,r,o){for(var a=null,u=s(e),c=0;c<u.length;c++){var f=n(u[c],2),l=f[0],h=f[1];if("object"===i(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var p=t.get(l);if(void 0===p&&!t.has(l)||!L(h,p,r,o)){if(r)return!1;if(!F(e,t,l,h,o))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var d=s(t),g=0;g<d.length;g++){var y=n(d[g],2),b=(l=y[0],y[1]);if("object"===i(l)&&null!==l){if(!W(a,e,l,b,r,o))return!1}else if(!(r||e.has(l)&&L(e.get(l),b,!1,o)||W(a,e,l,b,!1,o)))return!1}return 0===a.size}return!0}(e,t,r,u))return!1}else if(1===c)for(;f<e.length;f++){if(!h(e,f)){if(h(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var p=l[f];if(!h(t,p)||!L(e[p],t[p],r,u))return!1}return l.length===Object.keys(t).length}if(!h(t,f)||!L(e[f],t[f],r,u))return!1}for(f=0;f<o.length;f++){var d=o[f];if(!L(e[d],t[d],r,u))return!1}return!0}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2240:(e,t,r)=>{"use strict";var n=r(8764).Buffer,i=r(1518);function o(e,t){return void 0===t&&(t="utf8"),n.isBuffer(e)?s(e.toString("base64")):s(n.from(e,t).toString("base64"))}function a(e){return e=e.toString(),i.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function s(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var u=o;u.encode=o,u.decode=function(e,t){return void 0===t&&(t="utf8"),n.from(a(e),"base64").toString(t)},u.toBase64=a,u.fromBase64=s,u.toBuffer=function(e){return n.from(a(e),"base64")},t.default=u},1518:(e,t,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,r=t%4;if(!r)return e;var i=t,o=4-r,a=t+o,s=n.alloc(a);for(s.write(e);o--;)s.write("=",i++);return s.toString()}},5772:(e,t,r)=>{e.exports=r(2240).default,e.exports.default=e.exports},22:(e,t,r)=>{var n=r(8764).Buffer,i=r(7631).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else n.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){n.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}r(9539).inherits(o,i),o.prototype._offset=function(e){for(var t,r=0,n=0;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length))return[n,e-r];r=t}},o.prototype.append=function(e){return this._bufs.push(n.isBuffer(e)?e:new n(e)),this.length+=e.length,this},o.prototype._write=function(e,t,r){this.append(e),r&&r()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return e||new n(0);if(i<=0)return e||new n(0);var o,a,s=!!e,u=this._offset(r),c=i-r,f=c,l=s&&t||0,h=u[1];if(0===r&&i==this.length){if(!s)return n.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(f<=this._bufs[u[0]].length-h)return s?this._bufs[u[0]].copy(e,t,h,h+f):this._bufs[u[0]].slice(h,h+f);for(s||(e=new n(c)),a=u[0];a<this._bufs.length;a++){if(!(f>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,l,h,h+f);break}this._bufs[a].copy(e,l,h),l+=o,f-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){o.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}}(t)}(),e.exports=o},430:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6510:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(2813),s=r(9850);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},4586:(e,t,r)=>{e.exports=o;var n=r(4059),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},2813:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(430),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(5159).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(5159).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},4059:(e,t,r)=>{e.exports=a;var n=r(6510),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9850:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(6510);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},7631:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(2813)).Stream=i,t.Readable=t,t.Writable=r(9850),t.Duplex=r(6510),t.Transform=r(4059),t.PassThrough=r(4586),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},5159:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},3384:(e,t,r)=>{var n=r(9558),i=r(4918),o=r(9942),a=i("level-filesystem",{db:n});e.exports=o(a)},5420:(e,t,r)=>{var n=r(8764).Buffer,i=Object.prototype.toString,o=void 0!==n&&"function"==typeof n.alloc&&"function"==typeof n.allocUnsafe&&"function"==typeof n.from;e.exports=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?n.from(e.slice(t,t+r)):new n(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?n.from(e,t):new n(e,t)}(e,t):o?n.from(e):new n(e);var a}},8764:(e,t,r)=>{"use strict";var n=r(5108);const i=r(9742),o=r(645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function u(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return f(e,t,r)}function f(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=u(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?u(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return l(e),u(e<0?0:0|g(e))}function p(e){const t=e.length<0?0:0|g(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function g(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function E(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(J(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return K(G(t,e.length-r),e,r,n)}function S(e,t,r,n){return K(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return K(Y(t),e,r,n)}function O(e,t,r,n){return K(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}(n)}t.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return f(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}(e,t,r)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(Z(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):b.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==f[e]){o=u[e],a=f[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const j=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=X[e[n]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function N(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||L(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||L(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const F={};function W(e,t,r){F[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function $(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||V(t,e.length-(r+1))}(n,i,o)}function z(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),W("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),W("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Y(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},1924:(e,t,r)=>{"use strict";var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);if(u&&c){var r=u(t,"length");r.configurable&&c(t,"length",{value:1+f(0,e.length-(arguments.length-1))})}return t};var l=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l},6313:(e,t,r)=>{"use strict";var n=r(8764).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,r,o){var a=[],s=[],u=void 0!==n;return void 0===t&&(t=!0),void 0===r&&(r=1/0),function e(r,c){if(null===r)return null;if(0==c)return r;var f,l,h,p,d;if("object"!=typeof r)return r;if(d=r,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))f=[];else if("object"==typeof(p=r)&&"[object RegExp]"===i(p))f=new RegExp(r.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(r)),r.lastIndex&&(f.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))f=new Date(r.getTime());else{if(u&&n.isBuffer(r))return f=new n(r.length),r.copy(f),f;void 0===o?(l=Object.getPrototypeOf(r),f=Object.create(l)):(f=Object.create(o),l=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(f)}for(var y in r){var b;l&&(b=Object.getOwnPropertyDescriptor(l,y)),b&&null==b.set||(f[y]=e(r[y],c-1))}return f}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},2517:(e,t,r)=>{var n=r(5108),i={};e.exports=i,i.themes={};var o=r(9539),a=i.styles=r(5784),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);i.supportsColor=r(6561).supportsColor,void 0===i.enabled&&(i.enabled=!1!==i.supportsColor()),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},i.stylize=function(e,t){if(!i.enabled)return e+"";var r=a[t];return!r&&t in i?i[t](e):r.open+e+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function f(e){var t=function e(){return d.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,h=(l={},a.grey=a.gray,Object.keys(a).forEach((function(e){a[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(a[e].close),"g"),l[e]={get:function(){return f(this._styles.concat(e))}}})),l),p=s((function(){}),h);function d(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:o.inspect(e)})).join(" ");if(!i.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),n=this._styles,s=n.length;s--;){var c=a[n[s]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(u,(function(e){return c.close+e+c.open})))}return t}i.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){i[t]=function(r){if("object"==typeof e[t]){var n=r;for(var o in e[t])n=i[e[t][o]](n);return n}return i[e[t]](r)}}(t);else n.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var g=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var y in i.trap=r(5117),i.zalgo=r(1492),i.maps={},i.maps.america=r(6260)(i),i.maps.zebra=r(3270)(i),i.maps.rainbow=r(5920)(i),i.maps.random=r(2449)(i),i.maps)!function(e){i[e]=function(t){return g(i.maps[e],t)}}(y);s(i,function(){var e={};return Object.keys(h).forEach((function(t){e[t]={get:function(){return f([t])}}})),e}())},5117:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={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=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},1492:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var u=["up","mid","down"];for(var c in u)for(var f=u[c],l=0;l<=n[f];l++)t[f]&&(s+=r[f][i(r[f].length)])}return s}(e,t)}},6260:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},5920:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},2449:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},3270:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},5784:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},4340:(e,t,r)=>{"use strict";var n=r(4155);e.exports=function(e,t){var r=(t=t||n.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(i+e);return-1!==o&&(-1===r||o<r)}},6561:(e,t,r)=>{"use strict";var n=r(4155),i=r(2970),o=r(4340),a=n.env,s=void 0;function u(e){var t=function(e){if(!1===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===n.platform){var r=i.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in a}))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}o("no-color")||o("no-colors")||o("color=false")?s=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:u,stdout:u(n.stdout),stderr:u(n.stderr)}},4431:(e,t,r)=>{var n=r(2517);e.exports=n},6890:(e,t,r)=>{var n=r(8764).Buffer,i=r(8473).Writable,o=r(5717),a=r(5420);if("undefined"==typeof Uint8Array)var s=r(1666).U2;else s=Uint8Array;function u(e,t){if(!(this instanceof u))return new u(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var r=e.encoding,n=!1;r?"u8"!==(r=String(r).toLowerCase())&&"uint8"!==r||(r="uint8array"):n=!0,i.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=n,t&&this.on("finish",(function(){t(this.getBody())})),this.body=[]}function c(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=u,o(u,i),u.prototype._write=function(e,t,r){this.body.push(e),r()},u.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return n.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},u.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++)t.push.apply(t,e[r]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"string"==typeof i||n.isBuffer(i)?t.push(i):c(i)?t.push(a(i)):t.push(a(String(i)))}return t=n.isBuffer(e[0])?(t=n.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];n.isBuffer(i)?t.push(i):c(i)?t.push(a(i)):t.push(a(String(i)))}return n.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,r=0;r<e.length;r++)"string"==typeof e[r]&&(e[r]=a(e[r])),t+=e[r].length;for(var n=new s(t),i=(r=0,0);r<e.length;r++)for(var o=e[r],u=0;u<o.length;u++)n[i++]=o[u];return n}(this.body):this.body):[]},Array.isArray},5108:(e,t,r)=>{var n=r(9539),i=r(9282);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){u[e]=o()},"time"],[function(e){var t=u[e];if(!t)throw new Error("No such label: "+e);delete u[e];var r=o()-t;a.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,n.format.apply(null,t))}},"assert"]],f=0;f<c.length;f++){var l=c[f],h=l[0],p=l[1];a[p]||(a[p]=h)}e.exports=a},6497:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8764).Buffer.isBuffer},6944:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(9539),a=r(2554).NI;function s(e){a.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}o.inherits(s,a),s.prototype.setDb=function(e){this._db=e,this._operations.forEach((function(t){e[t.method].apply(e,t.args)}))},s.prototype._open=function(e,t){return n.nextTick(t)},s.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach((function(e){s.prototype["_"+e]=function(){this._operation(e,arguments)}})),s.prototype._isBuffer=function(e){return i.isBuffer(e)},s.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=s},4289:(e,t,r)=>{"use strict";var n=r(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};f.supportsDescriptors=!!u,e.exports=f},6555:(e,t,r)=>{var n=r(233);function i(e,t,r){t&&"string"!=typeof t&&(t=t.message||t.name),n(this,{type:e,name:e,cause:"string"!=typeof t?t:r,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,r){return function(e,t,r){var n=function(r,o){i.call(this,t,r,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,n)};return n.prototype=r?new r:new o,n}(e,t,r)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},7138:(e,t,r)=>{var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},n.forEach((function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t})),e.exports.custom=r(6555)(e.exports),e.exports.create=e.exports.custom.createError},8091:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},7187:(e,t,r)=>{"use strict";var n,i=r(5108),o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var o,a,s,u;if(f(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,i&&i.warn&&i.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function g(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):b(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var c=u.length,f=b(u,c);for(r=0;r<c;++r)a(f[r],this,t)}return!0},u.prototype.addListener=function(e,t){return h(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return h(this,e,t,!0)},u.prototype.once=function(e,t){return f(t),this.on(e,d(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,d(this,e,t)),this},u.prototype.removeListener=function(e,t){var r,n,i,o,a;if(f(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},u.prototype.listeners=function(e){return g(this,e,!0)},u.prototype.rawListeners=function(e){return g(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},9804:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(t+o);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var t=o.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return o.apply(e,s.concat(r.call(arguments)))},c=Math.max(0,o.length-s.length),f=[],l=0;l<c;l++)f.push("$"+l);if(a=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(u),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},5673:(e,t,r)=>{var n=r(8764).Buffer,i=r(4155),o=r(6272),a=r(9941),s=r(8673),u=new n(0),c=function(){},f=function(e){return"function"==typeof e?e:function(t){t(null,e)}},l=function(e,t){var r=!1,n=!1;return e._read=function(){r=!0},e.destroy=function(){n=!0},t((function(t,o){if(t)return e.emit("error",t);var a=function(){for(var t;null!==(t=o.read());)r=!1,e.push(t)};if(o.on("readable",(function(){r&&a()})),o.on("end",(function(){a(),e.push(null)})),o.on("error",(function(t){e.emit("error",t)})),o.on("close",(function(){a(),i.nextTick((function(){e.emit("close")}))})),e._read=function(){r=!0,a()},e.destroy=function(){n||(n=!0,o.destroy&&o.destroy())},n)return n=!1,void e.destroy();r&&a()})),e},h=function(e,t){var r=c,n=!1;return e._write=function(e,t,n){r=n},e.destroy=function(){n=!0},e.write(u),t((function(t,i){if(t)return e.emit("error",t);i.on("close",(function(){e.emit("close")})),i.on("error",(function(t){e.emit("error",t)})),e._write=function(e,t,r){if(e===u)return r();i.write(e,t,r)};var o=e.emit;if(i.on("finish",(function(){o.call(e,"finish")})),e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},n)return n=!1,void e.destroy();r()})),e};t.readable=function(e,r){return 1===arguments.length?t.readable(null,e):(e||(e={}),l(new a(e),f(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),f(r)))},t.duplex=function(e,r,n){if(2===arguments.length)return t.duplex(null,e,r);e||(e={});var i=new s(e);return h(i,f(r)),l(i,f(n)),i}},3419:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8673:(e,t,r)=>{e.exports=r(5410)},5410:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(3558),s=r(9315);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},8449:(e,t,r)=>{e.exports=o;var n=r(2590),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},3558:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(3419),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(6250).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(6250).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},2590:(e,t,r)=>{e.exports=a;var n=r(5410),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},9315:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5410);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},9941:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(3558)).Stream=i,t.Readable=t,t.Writable=r(9315),t.Duplex=r(5410),t.Transform=r(2590),t.PassThrough=r(8449),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},6272:(e,t,r)=>{e.exports=r(9315)},6250:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},f=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=r(1405)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return g[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),m=r(7642),w=v.call(Function.call,Array.prototype.concat),E=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),S=v.call(Function.call,String.prototype.slice),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,x=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,k,(function(e,t,r,i){n[n.length]=r?_(i,O,"$1"):t||e})),n},R=function(e,t){var r,n=e;if(m(b,n)&&(n="%"+(r=b[n])[0]+"%"),m(g,n)){var o=g[n];if(o===p&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=x(e),n=r.length>0?r[0]:"",o=R("%"+n+"%",t),s=o.name,c=o.value,f=!1,l=o.alias;l&&(n=l[0],E(r,w([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=S(d,0,1),b=S(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&p||(f=!0),m(g,s="%"+(n+="."+d)+"%"))c=g[s];else if(null!=c){if(!(d in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=m(c,d),c=c[d];p&&!f&&(g[s]=c)}}return c}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9043:function(e,t,r){var n,i;!function(o,a,s){"use strict";n=function(){var e=function(e){throw e},t=function(){},r={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},n=function(e,t){for(var n in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),r)this[n]=void 0!==e[n]?e[n]:r[n];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter((function(e){return e in i}));this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:n,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var r="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(r+=" with error code "+e.target.errorCode),t=new Error(r)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var r=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=r.objectStore(this.storeName);var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(!r)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),n.splice(n.indexOf(r),1)}else t=!0,this.onError(new Error('Cannot create new index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))}),this),n.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+n.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var r={autoIncrement:this.autoIncrement};null!==this.keyPath&&(r.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,r)}var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(r||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(this.store.deleteIndex(r),this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),n.splice(n.indexOf(r),1)}else this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})}),this),n.length&&n.forEach((function(e){this.store.deleteIndex(e)}),this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var r=this.idb.deleteDatabase(this.dbName);r.onsuccess=e,r.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(r,n,i,o){null!==this.keyPath&&(o=i,i=n,n=r),o||(o=e),i||(i=t);var a,s=!1,u=null,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);return c.oncomplete=function(){(s?i:o)(u)},c.onabort=o,c.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(n),a=c.objectStore(this.storeName).put(n)):a=c.objectStore(this.storeName).put(n,r),a.onsuccess=function(e){s=!0,u=e.target.result},a.onerror=o,c},get:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var u=s.objectStore(this.storeName).get(r);return u.onsuccess=function(e){o=!0,a=e.target.result},u.onerror=i,s},remove:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var u=s.objectStore(this.storeName).delete(r);return u.onsuccess=function(e){o=!0,a=e.target.result},u.onerror=i,s},batch:function(r,n,i){if(i||(i=e),n||(n=t),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("dataArray argument must be of type Array."));else if(0===r.length)return n(!0);var o=r.length,a=!1,s=!1,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);u.oncomplete=function(){(s?n:i)(s)},u.onabort=i,u.onerror=i;var c=function(){0!=--o||a||(a=!0,s=!0)};return r.forEach((function(e){var t=e.type,r=e.key,n=e.value,o=function(e){u.abort(),a||(a=!0,i(e,t,r))};if("remove"==t){var s=u.objectStore(this.storeName).delete(r);s.onsuccess=c,s.onerror=o}else if("put"==t){var f;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),f=u.objectStore(this.storeName).put(n)):f=u.objectStore(this.storeName).put(n,r),f.onsuccess=c,f.onerror=o}}),this),u},putBatch:function(e,t,r){var n=e.map((function(e){return{type:"put",value:e}}));return this.batch(n,t,r)},upsertBatch:function(r,n,i,o){"function"==typeof n&&(o=i=n,n={}),o||(o=e),i||(i=t),n||(n={}),"[object Array]"!=Object.prototype.toString.call(r)&&o(new Error("dataArray argument must be of type Array."));var a=n.keyField||this.keyPath,s=r.length,u=!1,c=!1,f=0,l=this.db.transaction([this.storeName],this.consts.READ_WRITE);l.oncomplete=function(){c?i(r):o(!1)},l.onabort=o,l.onerror=o;var h=function(e){r[f++][a]=e.target.result,0!=--s||u||(u=!0,c=!0)};return r.forEach((function(e){var t,r=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=l.objectStore(this.storeName).put(e)):t=l.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){l.abort(),u||(u=!0,o(e))}}),this),l},removeBatch:function(e,t,r){var n=e.map((function(e){return{type:"remove",key:e}}));return this.batch(n,t,r)},getBatch:function(r,n,i,o){if(i||(i=e),n||(n=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("keyArray argument must be of type Array."));else if(0===r.length)return n([]);var a=[],s=r.length,u=!1,c=null,f=this.db.transaction([this.storeName],this.consts.READ_ONLY);f.oncomplete=function(){(u?n:i)(c)},f.onabort=i,f.onerror=i;var l=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0==--s&&(u=!0,c=a)};return r.forEach((function(e){var t=f.objectStore(this.storeName).get(e);t.onsuccess=l,t.onerror=function(e){c=e,i(e),f.abort()}}),this),f},getAll:function(r,n){n||(n=e),r||(r=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,r,n):this._getAllCursor(i,o,r,n),i},_getAllNative:function(e,t,r,n){var i=!1,o=null;e.oncomplete=function(){(i?r:n)(o)},e.onabort=n,e.onerror=n;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=n},_getAllCursor:function(e,t,r,n){var i=[],o=!1,a=null;e.oncomplete=function(){(o?r:n)(a)},e.onabort=n,e.onerror=n;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=n},clear:function(r,n){n||(n=e),r||(r=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?r:n)(o)},a.onabort=n,a.onerror=n;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=n,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every((function(r){if("multiEntry"==r&&void 0===e[r]&&!1===t[r])return!0;if("keyPath"==r&&"[object Array]"==Object.prototype.toString.call(t[r])){var n=t.keyPath,i=e.keyPath;if("string"==typeof i)return n.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==n.length)return!1;for(var o=0,a=n.length;o<a;o++)if(!(i.contains&&i.contains(n[o])||i.indexOf(-1!==n[o])))return!1;return!0}return t[r]==e[r]}))},iterate:function(t,r){var n="desc"==(r=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},r||{})).order.toLowerCase()?"PREV":"NEXT";r.filterDuplicates&&(n+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[r.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);r.index&&(s=s.index(r.index));var u=0;o.oncomplete=function(){i?r.onEnd?r.onEnd():t(null):r.onError(null)},o.onabort=r.onError,o.onerror=r.onError;var c=s.openCursor(r.keyRange,this.consts[n]);return c.onerror=r.onError,c.onsuccess=function(e){var n=e.target.result;if(n)if(r.offset)n.advance(r.offset),r.offset=0;else{var a=t(n.value,n,o);r.allowItemRejection&&!1===a||u++,r.autoContinue&&(u+r.offset<r.limit?n.continue():i=!0)}else i=!0},o},query:function(e,t){var r=[],n=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(r,n)},this.iterate((function(e){n++;var i=!t.filter||t.filter(e);return!1!==i&&r.push(e),i}),t)},count:function(t,r){var n=(r=a({index:null,keyRange:null},r||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:n)(o)},s.onabort=n,s.onerror=n;var u=s.objectStore(this.storeName);r.index&&(u=u.index(r.index));var c=u.count(r.keyRange);return c.onsuccess=function(e){i=!0,o=e.target.result},c.onError=n,s},makeKeyRange:function(e){var t,r=void 0!==e.lower,n=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case r&&n:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case r:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case n:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var r,n;for(r in t)(n=t[r])!==o[r]&&n!==e[r]&&(e[r]=n);return e}return n.prototype=i,n.version=i.version,n},void 0===(i=n.call(t,r,t,e))||(e.exports=i)}()},645:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=d,a/=256,c-=8);e[r+p-d]|=128*g}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2584:(e,t,r)=>{"use strict";var n=r(6410)(),i=r(1924)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},8662:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(6410)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,r)=>{"use strict";var n=r(5559),i=r(4289),o=r(8611),a=r(9415),s=r(3194),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},9415:(e,t,r)=>{"use strict";var n=r(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},3194:(e,t,r)=>{"use strict";var n=r(4289),i=r(9415);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5692:(e,t,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),s=r(6410)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),f=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},l=o("String.prototype.slice"),h={},p=r(882),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=d(t),n=p(r,Symbol.toStringTag);if(!n){var i=d(r);n=p(i,Symbol.toStringTag)}h[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=l(a(e),8,-1);return f(c,t)>-1}return!!p&&function(e){var t=!1;return n(h,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},5452:e=>{var t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=n.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(r.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var r,i=n.call(e);if(i!==n.call(t))return!1;if("[object Object]"===i){for(r in e)if(!a.equal(e[r],t[r]))return!1;return!0}if("[object Array]"===i){if((r=e.length)!==t.length)return!1;for(;--r;)if(!a.equal(e[r],t[r]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var r=typeof t[e];return"object"===r?!!t[e]:!o[r]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===n.call(e),r=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||r},a.array=function(e){return"[object Array]"===n.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&r.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===n.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===n.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===n.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===n.call(e)},a.number=function(e){return"[object Number]"===n.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var r=a.infinite(e),n=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return r||n||o&&e%t==0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e<t[r])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e>t[r])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,r){if(i(e)||i(t)||i(r))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(r))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(r)||e>=t&&e<=r},a.object=function(e){return e&&"[object Object]"===n.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===n.call(e)},a.string=function(e){return"[object String]"===n.call(e)}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},5086:(e,t,r)=>{var n=r(8764).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},9334:(e,t,r)=>{var n=r(8764).Buffer,i=r(4155),o=r(7785),a=r(2638),s=r(1753),u=r(9539),c=r(778),f=new n(0),l={encode:function(e){return"string"==typeof e?e=new n(e):e},decode:function(e){return n.isBuffer(e)?e:new n(e)},buffer:!0,type:"raw"},h=function(){},p=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},d=t.blockSize||65536,g=t.batch||100,y=new n(d);e.put("\0","ignore",h);var b={},v=function(e,t){if(!(this instanceof v))return new v(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),o.call(this)};u.inherits(v,o),v.prototype._init=function(e){this.blockIndex=e/d|0,this.blockOffset=e-this.blockIndex*d,this.blockLength=this.blockOffset},v.prototype._flush=function(t){if(!this.batch.length)return t();var r=this.batch[this.batch.length-1].key,n=this.batch;if(this.batch=[],!this.truncate)return e.batch(n,t);this.truncate=!1,this._truncate(n,r,t)},v.prototype._truncate=function(t,r,n){n=c(n);var i=[],o=e.createKeyStream({start:r,end:this.name+"ÿÿ"});o.on("error",n),o.on("data",(function(e){i.push({type:"del",key:e})})),o.on("end",(function(){i.push.apply(i,t),e.batch(i,n)}))},v.prototype._writeBlock=function(t){var r=1===this.blocks.length?this.blocks[0]:n.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+p(i),u=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:l}),!t&&a.batch.length<g?r():a._flush(r)};return!o&&r.length===d||!o&&!this.append?u(r,!1,t):void function(t,r,i,o,a){var s=function(){--b[t].locks||delete b[t]},u=function(e){if(e.locks++,!e.block&&!r)return e.block=i,void a(null,e.block,s);var t,u,c;e.block||(e.block=new n(d)),e.block.length<r+i.length&&(e.block=(t=e.block,u=r+i.length,c=new n(u),t.copy(c),c)),i.copy(e.block,r),!o&&r+i.length<e.block.length&&(e.block=e.block.slice(0,r+i.length)),a(null,e.block,s)};if(b[t])return u(b[t]);e.get(t,{valueEncoding:l},(function(e,r){if(e&&!e.notFound)return a(e);b[t]||(b[t]={locks:0,block:r}),u(b[t])}))}(s,o,r,this.append,(function(e,r,n){if(e)return t(e);u(r,!0,(function(e){n(),t(e)}))}))},v.prototype._initAppend=function(e,t,n){var i=this;this._shouldInitAppend=!1,r.size(this.name,(function(r,o){if(r)return n(r);i._init(o),i._write(e,t,n)}))},v.prototype._write=function(e,t,r){if(!e.length||this._destroyed)return r();if(this._shouldInitAppend)return this._initAppend(e,t,r);var n,i=this,o=d-this.blockLength,a=function(e){return e?r(e):n?i._write(n,t,r):void r()};if(e.length>o&&(n=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},v.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=f),this.write(f,(function(){t._writeBlock((function(e){if(e)return t.emit("error",e);t._flush((function(e){if(e)return t.emit("error",e);o.prototype.end.apply(t,r)}))}))}))};var m=function(t,r){r||(r={});var n=this,i=r.start||0,o=i/d|0,s=i-o*d,u=t+"ÿ"+p(o);this.name=t,this._missing=("number"==typeof r.end?r.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:u,end:t+"ÿÿ",valueEncoding:l});var c=function(e){return u=t+"ÿ"+p(++o),!(!n._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>n._missing&&(e=e.slice(0,n._missing)),n._missing-=e.length,n._pause(!n.push(e)),!n._missing))};this._reader.on("data",(function(e){for(;e.key>u;)if(!c(y))return;c(e.value)})),this._reader.on("error",(function(e){n.emit("error",e)})),this._reader.on("end",(function(){n.push(null)})),a.call(this)};return u.inherits(m,a),m.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},m.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},m.prototype._read=function(){this._pause(!1)},r.remove=function(t,r){r=c(r||h);var n=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",r),i.on("data",(function(e){n.push({type:"del",key:e})})),i.on("end",(function(){e.batch(n,r)}))},r.size=function(t,r){s.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:l},(function(e,n,i){return e&&"range not found"===e.message?r(null,0):e?r(e):n.slice(0,t.length+1)!==t+"ÿ"?r(null,0):void r(null,parseInt(n.toString().slice(t.length+1),16)*d+i.length)}))},r.write=function(e,t,n,i){if("function"==typeof n)return r.write(e,t,null,n);n||(n={}),i||(i=h);var o=r.createWriteStream(e,n);o.on("error",i),o.on("finish",(function(){i()})),o.write(t),o.end()},r.read=function(e,t,i){if("function"==typeof t)return r.read(e,null,t);t||(t={});var o=r.createReadStream(e,t),a=[];o.on("error",i),o.on("data",(function(e){a.push(e)})),o.on("end",(function(){i(null,1===a.length?a[0]:n.concat(a))}))},r.createReadStream=function(e,t){return new m(e,t)},r.createWriteStream=function(e,t){return new v(e,t)},r}},9141:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9435:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(7496),s=r(91);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},1474:(e,t,r)=>{e.exports=o;var n=r(4987),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},7496:(e,t,r)=>{var n=r(4155);e.exports=h;var i=r(9141),o=r(8764).Buffer;h.ReadableState=l;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);c.inherits=r(5717);var f=r(6297);function l(e,t){var n=r(9435),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(981).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(r(9435),!(this instanceof h))return new h(e);this._readableState=new l(e,this),this.readable=!0,u.call(this)}function p(e,t,r,i,o){var a=function(e,t){var r=null;return c.isBuffer(t)||c.isString(t)||c.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(c.isNullOrUndefined(r))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||i||(r=t.decoder.write(r)),o||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}f=f&&f.debuglog?f.debuglog("stream"):function(){},c.inherits(h,u),h.prototype.push=function(e,t){var r=this._readableState;return c.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),p(this,r,e,t,!1)},h.prototype.unshift=function(e){return p(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=r(981).s),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var d=8388608;function g(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||c.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=d)e=d;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick((function(){b(e)})):b(e))}function b(e){f("emit readable"),e.emit("readable"),v(e)}function v(e){var t=e._readableState;if(f("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function m(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}h.prototype.read=function(e){f("read",e);var t=this._readableState,r=e;if((!c.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):y(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&w(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),(t.ended||t.reading)&&f("reading or ended",i=!1),i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=g(r,t)),n=e>0?m(e,t):null,c.isNull(n)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),c.isNull(n)||this.emit("data",n),n},h.prototype._read=function(e){this.emit("error",new Error("not implemented"))},h.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===n.stdout||e===n.stderr?h:c;function u(e){f("onunpipe"),e===r&&h()}function c(){f("onend"),e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,v(e))}}(r);function h(){f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",h),r.removeListener("data",p),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function p(t){f("ondata"),!1===e.write(t)&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function d(t){f("onerror",t),b(),e.removeListener("error",d),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",g),b()}function b(){f("unpipe"),r.unpipe(e)}return e.on("drain",l),r.on("data",p),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(d):e._events.error=[d,e._events.error]:e.on("error",d),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(f("pipe resume"),r.resume()),e},h.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},h.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&y(this);else{var o=this;n.nextTick((function(){f("readable nexttick read 0"),o.read(0)}))}}return r},h.prototype.addListener=h.prototype.on,h.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,e.reading||(f("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick((function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),v(e),t.flowing&&!t.reading&&e.read(0)}(e,t)})))}(this,e)),this},h.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(f("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){f("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)c.isFunction(e[i])&&c.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(t,r){for(var i=0,o=t.length;i<o;i++)a=t[i],e.on(a,n.emit.bind(n,a));var a}(["error","close","destroy","pause","resume"]),n._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},n},h._fromList=m},4987:(e,t,r)=>{e.exports=a;var n=r(9435),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var o=n.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,i.isNullOrUndefined(r)||e.push(r),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",(function(){i.isFunction(this._flush)?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},91:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var i=r(9435),o=(e=e||{}).highWaterMark,a=e.objectMode?16:16384;this.highWaterMark=o||0===o?o:a,this.objectMode=!!e.objectMode,t instanceof i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){t.pendingcb--,o(i)})):(t.pendingcb--,o(i)),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,r,i,t,o);else{var a=p(0,r);a||r.corked||r.bufferProcessing||!r.buffer.length||h(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function c(e){var t=r(9435);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),g(e,t)}function h(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var r=[],n=0;n<t.buffer.length;n++)r.push(t.buffer[n].callback);t.pendingcb++,f(e,t,!0,t.length,t.buffer,"",(function(e){for(var n=0;n<r.length;n++)t.pendingcb--,r[n](e)})),t.buffer=[]}else{for(n=0;n<t.buffer.length;n++){var i=t.buffer[n],o=i.chunk,a=i.encoding,s=i.callback,u=t.objectMode?1:o.length;if(f(e,t,!1,u,o,a,s),t.writing){n++;break}}n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}t.bufferProcessing=!1}function p(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var r=p(0,t);return r&&(0===t.pendingcb?(d(e,t),t.finished=!0,e.emit("finish")):d(e,t)),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var a=this._writableState,u=!1;return o.isFunction(t)&&(r=t,t=null),o.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),o.isFunction(r)||(r=function(){}),a.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,i){var a=!0;if(!(o.isBuffer(r)||o.isString(r)||o.isNullOrUndefined(r)||t.objectMode)){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){i(s)})),a=!1}return a}(this,a,e,r)&&(a.pendingcb++,u=function(e,t,r,n,a){r=function(e,t,r){return!e.objectMode&&!1!==e.decodeStrings&&o.isString(t)&&(t=new i(t,r)),t}(t,r,n),o.isBuffer(r)&&(n="buffer");var u=t.objectMode?1:r.length;t.length+=u;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new s(r,n,a)):f(e,t,!1,u,r,n,a),c}(this,a,e,t,r)),u},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||h(this,e))},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,r){var i=this._writableState;o.isFunction(e)?(r=e,e=null,t=null):o.isFunction(t)&&(r=t,t=null),o.isNullOrUndefined(e)||this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,g(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},2638:(e,t,r)=>{var n=r(4155);(t=e.exports=r(7496)).Stream=r(2830),t.Readable=t,t.Writable=r(91),t.Duplex=r(9435),t.Transform=r(4987),t.PassThrough=r(1474),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},7785:(e,t,r)=>{e.exports=r(91)},981:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},2950:(e,t,r)=>{var n=r(7138);Object.keys(n.code).forEach((function(e){var r=n.code[e];t[e]=function(t){var n=new Error(e+", "+r.description+(t?" '"+t+"'":""));return n.errno=r.errno,n.code=e,n.path=t,n}}))},9942:(e,t,r)=>{var n=r(4155),i=r(8764).Buffer,o=r(5673),a=r(2296),s=r(9334),u=r(1753),c=r(778),f=r(9530),l=r(2950),h=r(8781),p=r(6975),d=function(e,t,r){n.nextTick((function(){e(t,r)}))},g=function(){};e.exports=function(e,t){var r={};e=a(e);var y=s(e.sublevel("blobs"),t),b=h(e.sublevel("stats")),v=e.sublevel("links"),m=p(),w=[],E=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=f(777)),n||(n=g),b.follow(e,(function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(l.EEXIST(i)):void b.put(i,{type:"directory",mode:t,size:4096},m.cb(i,n))}))},r.rmdir=function(e,t){t||(t=g),b.follow(e,(function(e,n,i){if(e)return t(e);r.readdir(i,(function(e,r){return e?t(e):r.length?t(l.ENOTEMPTY(i)):void b.del(i,m.cb(i,t))}))}))},r.readdir=function(e,t){b.follow(e,(function(e,r,n){return e?t(e):r?r.isDirectory()?void b.list(n,t):t(l.ENOTDIR(n)):t(l.ENOENT(n))}))};var _=function(e,t,r){t(e,(function(e,t,n){if(e)return r(e);if(!t.isFile())return r(null,t);var i=t&&t.blob||n;y.size(i,(function(e,n){if(e)return r(e);t.size=n,r(null,t)}))}))};r.stat=function(e,t){_(e,b.follow,t)},r.lstat=function(e,t){_(e,b.get,t)},r.exists=function(e,t){b.follow(e,(function(e){t(!e)}))};var S=function(e,t,r,n){n||(n=g),t(e,(function(e,t,i){if(e)return n(e);b.update(i,{mode:r},m.cb(i,n))}))};r.chmod=function(e,t,r){S(e,b.follow,t,r)},r.lchmod=function(e,t,r){S(e,b.get,t,r)};var k=function(e,t,r,n,i){i||(i=g),t(e,(function(e,t,o){if(e)return i(e);b.update(o,{uid:r,gid:n},m.cb(o,i))}))};return r.chown=function(e,t,r,n){k(e,b.follow,t,r,n)},r.lchown=function(e,t,r,n){k(e,b.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=g),b.follow(e,(function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),b.update(o,a,m.cb(o,n))}))},r.rename=function(e,t,n){n||(n=g),b.follow(e,(function(e,i,o){if(e)return n(e);var a=function(){n=m.cb(t,m.cb(o,n)),b.put(t,i,(function(e){if(e)return n(e);b.del(o,n)}))};b.follow(t,(function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(l.EISDIR(o)):void(t.isDirectory()?r.readdir(s,(function(e,t){return e?n(e):t.length?n(l.ENOTEMPTY(o)):void a()})):a()):a()}))}))},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);b.follow(e,(function(e,t,r){if(e)return n(e);n(null,r)}))},r.writeFile=function(e,t,n,o){if("function"==typeof n)return r.writeFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),o||(o=g),i.isBuffer(t)||(t=new i(t,n.encoding||"utf-8"));var a=n.flags||"w";n.append="w"!==a[0],b.follow(e,(function(e,r,i){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(l.EISDIR(i));if(r&&"x"===a[1])return o(l.EEXIST(i));var s=r&&r.blob||i;b.writable(i,(function(e){if(e)return o(e);y.write(s,t,n,(function(e){if(e)return o(e);b.put(i,{ctime:r&&r.ctime,mtime:new Date,mode:n.mode||f(666),type:"file"},m.cb(i,o))}))}))}))},r.appendFile=function(e,t,n,i){if("function"==typeof n)return r.appendFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",r.writeFile(e,t,n,i)},r.unlink=function(e,t){t||(t=g),b.get(e,(function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(l.EISDIR(n));var i=function(e){u(v,{start:e+"ÿ",end:e+"ÿÿ"},(function(r){if(r)return y.remove(e,t);t()}))};b.del(n,m.cb(n,(function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void v.del(r.link,(function(e){if(e)return t(e);i(o)}))):void v.del(n+"ÿ",(function(e){if(e)return t(e);i(n)}));var o})))}))},r.readFile=function(e,t,n){if("function"==typeof t)return r.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,b.follow(e,(function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(l.EISDIR(i));var o=r&&r.blob||i;y.read(o,(function(e,r){if(e)return n(e);n(null,t.encoding?r.toString(t.encoding):r)}))}))},r.createReadStream=function(e,t){t||(t={});var r=!1,i=o.readable((function(o){b.follow(e,(function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(l.EISDIR(s));var u=a&&a.blob||s,c=y.createReadStream(u,t);i.emit("open"),c.on("end",(function(){n.nextTick((function(){r||i.emit("close")}))})),o(null,c)}))}));return i.on("close",(function(){r=!0})),i},r.createWriteStream=function(e,t){t||(t={});var r=t.flags||"w",n=!1,i=t.mode||f(666);t.append="a"===r[0];var a=o.writable((function(o){b.follow(e,(function(e,s,u){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(l.EISDIR(u));if(s&&"x"===r[1])return o(l.EEXIST(u));var c=s&&s.blob||u;b.writable(c,(function(e){if(e)return o(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};b.put(u,r,(function(e){if(e)return o(e);var i=y.createWriteStream(c,t);a.emit("open"),i.on("finish",(function(){r.mtime=new Date,b.put(u,r,(function(){m.change(u),n||a.emit("close")}))})),o(null,i)}))}))}))}));return a.on("close",(function(){n=!0})),a},r.truncate=function(e,t,r){b.follow(e,(function(e,n,o){if(e)return r(e);var a=n&&n.blob||o;y.size(a,(function(e,n){if(e)return r(e);b.writable(o,(function(e){if(e)return r(e);if(r=c(m.cb(o,r)),!t)return y.remove(a,r);var s=y.createWriteStream(a,{start:n<t?t-1:t});s.on("error",r),s.on("finish",r),n<t&&s.write(new i([0])),s.end()}))}))}))},r.watchFile=function(e,t,n){return"function"==typeof t?r.watchFile(e,null,t):m.watch(b.normalize(e),n)},r.unwatchFile=function(e,t){m.unwatch(b.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):m.watcher(b.normalize(e),n)},r.notify=function(e){m.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);b.follow(e,(function(e,r,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],u=r&&r.blob||o,c={key:o,blob:u,mode:n||f(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&r?i(l.EEXIST(o)):r&&r.isDirectory()?i(l.EISDIR(o)):void y.size(u,(function(e,t){if(e)return i(e);c.append&&(c.writePos=t),b.writable(o,(function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=w.indexOf(null);-1===t&&(t=10+w.push(w.length+10)-1),c.fd=t,w[t]=c,m.change(o),i(null,c.fd)},n=function(e){return e?i(e):r?t():void b.put(u,{ctime:r&&r.ctime,type:"file"},t)};if(!c.append&&c.writable)return y.remove(u,n);n()}))}))}))},r.close=function(e,t){var r=w[e];if(!r)return d(t,l.EBADF());w[e]=null,d(m.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=w[e];if(o||(o=g),!a||!a.writable)return d(o,l.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(r,r+n);a.writePos=i+s.length,y.write(a.blob,s,{start:i,append:!0},(function(e){if(e)return o(e);o(null,n,t)}))},r.read=function(e,t,n,i,o,a){var s=w[e];if(a||(a=g),!s||!s.readable)return d(a,l.EBADF());null===o&&(o=r.readPos||0),y.read(s.blob,{start:o,end:o+i-1},(function(e,s){if(e)return a(e);var u=s.slice(0,i);u.copy(t,n),r.readPos=o+u.length,a(null,u.length,t)}))},r.fsync=function(e,t){var r=w[e];if(t||(t=g),!r||!r.writable)return d(t,l.EBADF());d(t)},r.ftruncate=function(e,t,n){var i=w[e];if(n||(n=g),!i)return d(n,l.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=w[e];if(i||(i=g),!o)return d(i,l.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=w[e];if(n||(n=g),!i)return d(n,l.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=w[e];if(i||(i=g),!o)return d(i,l.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=w[e];if(!n)return d(t,l.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=g),b.follow(e,(function(e,n,i){if(e)return r(e);b.get(t,(function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(l.EEXIST(t)):void b.put(t,{type:"symlink",target:i,mode:f(777)},r)}))}))},r.readlink=function(e,t){b.get(e,(function(r,n){return r?t(r):n.target?void t(null,n.target):t(l.EINVAL(e))}))},r.link=function(e,t,r){r||(r=g),b.follow(e,(function(e,n,i){return e?r(e):n.isFile()?void b.get(t,(function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(l.EEXIST(t));var a=i+"ÿ"+ ++E;v.put(i+"ÿ",i,(function(e){if(e)return r(e);v.put(a,i,(function(e){if(e)return r(e);b.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)}))}))})):r(l.EINVAL(i))}))},r}},8225:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7517:(e,t,r)=>{var n=r(8225);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(n(r))for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}},8781:(e,t,r)=>{var n=r(4155),i=r(6470),o=r(778),a=r(6890),s=r(9530),u=r(6705),c=r(7517),f=r(2950),l=u({type:"directory",mode:s(777),size:4096}),h=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=i.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},p=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=h,t.get=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,null,l,"/"));e.get(p(t),{valueEncoding:"json"},(function(e,n){return e&&e.notFound?r(f.ENOENT(t),null,t):e?r(e,null,t):void r(null,u(n),t)}))},t.writable=function(e,r){if("/"===(e=h(e)))return n.nextTick(r.bind(null,f.EPERM(e)));t.follow(i.dirname(e),(function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(f.ENOTDIR(e))}))},t.list=function(t,r){t=h(t);var n=p("/"===t?t:t+"/"),i=e.createKeyStream({start:n,end:n+"ÿ"});r=o(r),i.on("error",r),i.pipe(a({encoding:"object"},(function(e){e=e.map((function(e){return e.split("/").pop()})),r(null,e)})))},t.follow=function(e,r){!function(e,r){var n="/",o=e.split("/").slice(1),a=function(){t.get(i.join(n,o.shift()),(function(t,i,s){return t?r(t,i,e):(n=i.target||s,o.length?void a():r(null,i,s))}))};a()}(h(e),(function e(n,i,o){return n?r(n,null,o):i.target?t.get(i.target,e):void r(null,u(i),o)}))},t.update=function(e,r,n){t.get(e,(function(e,i,o){return e?n(e):"/"===o?n(f.EPERM(o)):void t.put(o,c(i,r),n)}))},t.put=function(r,n,i){t.writable(r,(function(t,r){if(t)return i(t);e.put(p(r),u(n),{valueEncoding:"json"},i)}))},t.del=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,f.EPERM(t)));e.del(p(t),r)},t}},6705:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},r=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};r.prototype.isDirectory=function(){return"directory"===this.type},r.prototype.isFile=function(){return"file"===this.type},r.prototype.isBlockDevice=function(){return!1},r.prototype.isCharacterDevice=function(){return!1},r.prototype.isSymbolicLink=function(){return"symlink"===this.type},r.prototype.isFIFO=function(){return!1},r.prototype.isSocket=function(){return!1},e.exports=function(e){return new r(e)}},6975:(e,t,r)=>{var n=r(7187);e.exports=function(){var e={},t=new n.EventEmitter;return t.watch=function(t,r){return e[t]||(e[t]=new n.EventEmitter,e[t].setMaxListeners(0)),r&&e[t].on("change",r),e[t]},t.watcher=function(e,r){var i=new n.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),r&&i.on("change",r),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,r){e[t]&&(r?e[t].removeListener("change",r):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(r){e[r]&&e[r].emit("change"),t.emit("change",r)},t.cb=function(e,r){return function(n,i){e&&t.change(e),r&&r(n,i)}},t}},767:e=>{e.exports=function(e){var t=e.reverse,r=e.end,n=e.start,i=[n,r];return null!=n&&null!=r&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},1798:(e,t,r)=>{var n=r(1889);e.exports=function(e){if(!e.hooks){var t=[],r=[];e.hooks={post:function(e,r){r||(r=e,e="");var i={test:n.checker(e),hook:r};return t.push(i),u(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:n.checker(e),hook:t,safe:!1!==e.safe};return r.push(i),u(r,i)},posthooks:t,prehooks:r},e.on("put",(function(e,t){c({type:"put",key:e,value:t})})),e.on("del",(function(e,t){c({type:"del",key:e,value:t})})),e.on("batch",(function(e){e.forEach(c)}));var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,r,n){return f(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return f(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return f(!0,e,t,r)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function u(e,t){return function(){var r=e.indexOf(t);return!!~r&&(e.splice(r,1),!0)}}function c(e){e&&e.type&&t.forEach((function(t){t.test(e.key)&&t.hook(e)}))}function f(t,n,u,c){try{n.forEach((function e(t,i){r.forEach((function(r){if(r.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete n[i];var a=s(t.prefix)||s(o)||r.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,r.safe&&r.test(String(t.key)))throw new Error("prehook cannot insert into own range");var u=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),c=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return u&&(t.keyEncoding=u),c&&(t.valueEncoding=c),n.push(t),e(t,n.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};r.hook.call(o,t,o.add,n)}}))}))}catch(e){return(c||u)(e)}if(1==(n=n.filter((function(e){return e&&e.type}))).length&&!t){var f=n[0];return"put"==f.type?i.call(e,f.key,f.value,u,c):o.call(e,f.key,u,c)}return a.call(e,n,u,c)}}},9558:(e,t,r)=>{var n=r(8764).Buffer;e.exports=l;var i=r(9043),o=r(2554).NI,a=r(9539),s=r(3016),u=r(5086),c=r(6093),f=r(5054);function l(e){if(!(this instanceof l))return new l(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(l,o),l.prototype._open=function(e,t){var r=this,n={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,r.idb)},onError:function(e){t&&t(e)}};c(n,e),this.IDBOptions=n,this.idb=new i(n)},l.prototype._get=function(e,t,r){this.idb.get(e,(function(i){if(void 0===i)return r(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?f(i):new n(String(i))),r(null,i,e)}),r)},l.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},l.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=f(new Uint8Array(t)));var o=this.convertEncoding(e,t,r);n.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,(function(){i()}),i)},l.prototype.convertEncoding=function(e,t,r){if(r.raw)return{key:e,value:t};if(t){var n=t.toString();"NaN"===n&&(t="NaN")}var i=r.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=n),o},l.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},l.prototype._batch=function(e,t,r){var n,i,o,a,s=[];if(0===e.length)return setTimeout(r,0);for(n=0;n<e.length;n++){o={},a=e[n],s[n]=o;var u=this.convertEncoding(a.key,a.value,t);for(i in a.key=u.key,a.value=u.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,(function(){r()}),r)},l.prototype._close=function(e){this.idb.db.close(),e()},l.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},l.prototype._isBuffer=function(e){return n.isBuffer(e)},l.destroy=function(e,t){if("object"==typeof e)var r=e.IDBOptions.storePrefix||"IDBWrapper-",n=e.location;else r="IDBWrapper-",n=e;var i=indexedDB.deleteDatabase(r+n);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},l.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):u(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},3016:(e,t,r)=>{var n=r(5108),i=r(9539),o=r(2554).YI,a=r(2303);function s(e,t){t||(t={}),this.options=t,o.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=a.lowerBound(t),n=a.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:a.lowerBoundExclusive(t),excludeUpper:a.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=s,i.inherits(s,o),s.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate((function(){e.onItem.apply(e,arguments)}),{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){n.log("horrible error",e)}})},s.prototype.onItem=function(e,t,r){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var n=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(n=!1),n&&this.callback(!1,t.key,t.value),t&&t.continue()},s.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},3732:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===r.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t};e.exports=function(e,r){if(!n(r))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,u=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===u?r(a?e.charAt(i):e[i],i,e):r.call(u,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===u?r(e[o],o,e):r.call(u,e[o],o,e))}},9693:(e,t,r)=>{e.exports=Object.keys||r(3533)},426:e=>{var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},3533:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(3732),a=r(426),s=!{toString:null}.propertyIsEnumerable("toString"),u=function(){}.propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),f=a(e),l=[];if(!t&&!r&&!f)throw new TypeError("Object.keys called on a non-object");if(f)o(e,(function(e){l.push(e)}));else{var h,p=u&&r;for(h in e)p&&"prototype"===h||!n.call(e,h)||l.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(c,(function(t){g&&"constructor"===t||!n.call(e,t)||l.push(t)}))}return l},e.exports=t}()},4992:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6093:(e,t,r)=>{var n=r(9693),i=r(4992);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},1753:(e,t,r)=>{var n=r(767);function i(e,t,r){var n,i,o;t.limit=t.reverse?2:1,n=e.createReadStream(t),i=function(e,n){if(t.reverse&&n&&t.start&&n.key.toString()>t.start)return!1;"error"==e?r(n):"end"==e?r(new Error("range not found"),null,null):r(null,n.key,n.value)},o=[],["data","error","end"].forEach((function(e){function t(t){!1!==i(e,t)&&o.forEach((function(e){e()}))}n.on(e,t),o.push((function(){n.removeListener(e,t)}))}))}(t=e.exports=i).first=function(e,t,r){return r||(r=t,t={}),t.reverse=!1,i(e,n(t),r)},t.last=function(e,t,r){return r||(r=t,t={}),t.start,t.reverse=!0,i(e,n(t),(function(n,o,a){if(n){var s=t.start;t.start=null,i(e,t,(function(e,i,o){if(!i)return r(n,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?r(e,i,o):r(n,null,null)}))}else r(n,o,a)}))}},6338:e=>{function t(e,t,r,n){var i={type:e,key:t,value:r,options:n};return n&&n.prefix&&(i.prefix=n.prefix,delete n.prefix),this._operations.push(i),this}function r(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var n=r.prototype;n.clear=function(){this._operations=[]},n.write=function(e){this._sdb.batch(this._operations,e)},e.exports=r},2296:(e,t,r)=>{var n=r(4155),i=(r(7187).EventEmitter,n.nextTick,r(7202)),o=r(6338),a=r(7780),s=r(1798);e.exports=function(e,t){function r(){}r.prototype=e;var n=new r;if(n.sublevel)return n;var u=(t=t||{}).sep=t.sep||"ÿ";function c(e){return function(t){return(t=a(t=t||{})).reverse?t.start=t.start||u:t.end=t.end||u,e.call(n,t)}}n._options=t,s(n),n.sublevels={},n.sublevel=function(e,t){return n.sublevels[e]?n.sublevels[e]:new i(n,e,t||this._options)},n.methods={},n.prefix=function(e){return""+(e||"")},n.pre=function(e,t){return t||(t=e,e={max:u}),n.hooks.pre(e,t)},n.post=function(e,t){return t||(t=e,e={max:u}),n.hooks.post(e,t)},n.readStream=n.createReadStream=c(n.createReadStream),n.keyStream=n.createKeyStream=c(n.createKeyStream),n.valuesStream=n.createValueStream=c(n.createValueStream);var f=n.batch;return n.batch=function(e,t,r){if(!Array.isArray(e))return new o(n);e.forEach((function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))})),f.call(n,e,t,r)},n}},7780:(e,t,r)=>{var n=r(6313);e.exports=function(e){var t=(e=n(e)).reverse,r=e.max||e.end,i=e.min||e.start,o=[i,r];return null!=i&&null!=r&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},1012:(e,t,r)=>{e.exports=Object.keys||r(4784)},4784:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(5452),o=r(9804),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return a&&o(s,(function(t){n.call(e,t)&&r.push(t)})),r},e.exports=t}()},3312:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},1686:(e,t,r)=>{var n=r(1012),i=r(3312);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},7202:(e,t,r)=>{var n=r(5108),i=r(7187).EventEmitter,o=r(9539).inherits,a=r(1889),s=r(7780),u=r(1686),c=r(6338);function f(e,t,r){if("string"==typeof r&&(n.error("db.sublevel(name, seperator<string>) is depreciated"),n.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof f))return new f(e,t,r);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(r=r||{}).sep=r.sep||"ÿ",this._parent=e,this._options=r,this.options=r,this._prefix=t,this._root=h(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var i=this;this.hooks={pre:function(){return i.pre.apply(i,arguments)},post:function(){return i.post.apply(i,arguments)}}}o(f,i);var l=f.prototype;function h(e){return e._parent?h(e._parent):e}l._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},l._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:u(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new f(this,e,t||this._options)},l.put=function(e,t,r,n){var i=this._getOptsAndCb(r,n);this._root.put(this.prefix(e),t,i.opts,i.cb)},l.get=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.get(this.prefix(e),n.opts,n.cb)},l.del=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.del(this.prefix(e),n.opts,n.cb)},l.batch=function(e,t,r){if(!Array.isArray(e))return new c(this);var n=this,i=this._getOptsAndCb(t,r);e.forEach((function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||n).prefix(e.key),e.prefix&&(e.prefix=null)})),this._root.batch(e,i.opts,i.cb)},l._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},l._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},l.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},l.keyStream=l.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},l.valueStream=l.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},l.readStream=l.createReadStream=function(e){e=e||{};var t=h(this),r=this.prefix(),n=a.prefix(e,r);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach((function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}))}(n,u(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var o;if(o=i.read)i.read=function(e){var t=o.call(this,e);return t&&(t=t.substring(r.length)),t};else{var s=i.emit;i.emit=function(e,t){"data"===e?s.call(this,"data",t.substring(r.length)):s.call(this,e,t)}}return i}return!1===n.keys||((o=i.read)?i.read=function(e){var t=o.call(this,e);return t&&(t.key=t.key.substring(r.length)),t}:i.on("data",(function(e){e.key=e.key.substring(r.length)}))),i},l.writeStream=l.createWriteStream=function(){var e=h(this),t=this.prefix(),r=e.createWriteStream.apply(e,arguments),n=r.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return r.write=s?function(e){return e.key=t+e.key,n.call(r,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),n.call(r,e)},r},l.approximateSize=function(){var e=h(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=a.prefix(e,this.prefix(),this._options.sep);var r=h(this._parent),n=this.prefix();return r.hooks.pre(s(e),(function(e,r,i){t({key:e.key.substring(n.length),value:e.value,type:e.type},(function(e,t){r(e,e.prefix?t:t||n)}),i)}))},l.post=function(e,t){t||(t=e,e=null);var r=h(this._parent),n=this.prefix();return e=a.prefix(e,n,this._options.sep),r.hooks.post(s(e),(function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})}))},e.exports=f},8133:(e,t,r)=>{var n=r(3368),i=r(6667).WriteError,o=n.getOptions,a=n.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,r){r=o(this._levelup,r);var a=n.encodeKey(e,r),s=n.encodeValue(t,r);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var r=n.encodeKey(e,t);try{this.batch.del(r)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:r}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,r=this.ops;try{this.batch.write((function(n){if(n)return a(t,new i(n),e);t.emit("batch",r),e&&e()}))}catch(e){throw new i(e)}},e.exports=s},6667:(e,t,r)=>{var n=r(7138).create,i=n("LevelUPError"),o=n("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:n("InitializationError",i),OpenError:n("OpenError",i),ReadError:n("ReadError",i),WriteError:n("WriteError",i),NotFoundError:o,EncodingError:n("EncodingError",i)}},4918:(e,t,r)=>{var n=r(4155),i=r(7187).EventEmitter,o=r(9539).inherits,a=r(7357),s=r(115),u=r(6944),c=r(6667).WriteError,f=r(6667).ReadError,l=r(6667).NotFoundError,h=r(6667).OpenError,p=r(6667).EncodingError,d=r(6667).InitializationError,g=r(3209),y=r(3028),b=r(3368),v=r(8133),m=b.getOptions,w=b.defaultOptions,E=b.getLevelDOWN,_=b.dispatchError;function S(e,t){return"function"==typeof e?e:t}function k(e,t,r){if(!(this instanceof k))return new k(e,t,r);var o;if(i.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(r=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(o=new d("Must provide a location for the database"),r)return n.nextTick((function(){r(o)}));throw o}t=m(this,t),this.options=a(w,t),this._status="new",s(this,"location",e,"e"),this.open(r)}function O(e){return function(t,r){E()[e](t,r||function(){})}}o(k,i),k.prototype.open=function(e){var t,r,i=this;return this.isOpen()?(e&&n.nextTick((function(){e(null,i)})),this):this._isOpening()?e&&this.once("open",(function(){e(null,i)})):(this.emit("opening"),this._status="opening",this.db=new u(this.location),t=this.options.db||E(),void(r=t(this.location)).open(this.options,(function(t){if(t)return _(i,new h(t),e);i.db.setDb(r),i.db=r,i._status="open",e&&e(null,i),i.emit("open"),i.emit("ready")})))},k.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close((function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)})),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return n.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",(function(){t.close(e)}))}},k.prototype.isOpen=function(){return"open"==this._status},k.prototype._isOpening=function(){return"opening"==this._status},k.prototype.isClosed=function(){return/^clos/.test(this._status)},k.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=S(t,r))?_(this,new f("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=b.getOptions(this,t),n=b.encodeKey(e,t),t.asBuffer=b.isValueAsBuffer(t),void this.db.get(n,t,(function(n,o){if(n)return n=/notfound/i.test(n)?new l("Key not found in database ["+e+"]",n):new f(n),_(i,n,r);if(r){try{o=b.decodeValue(o,t)}catch(e){return r(new p(e))}r(null,o)}}))):_(this,new f("Database is not open"),r)},k.prototype.put=function(e,t,r,n){var i,o,a=this;return n=S(r,n),null==e||null==t?_(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=m(this,r),i=b.encodeKey(e,r),o=b.encodeValue(t,r),void this.db.put(i,o,r,(function(r){if(r)return _(a,new c(r),n);a.emit("put",e,t),n&&n()}))):_(this,new c("Database is not open"),n)},k.prototype.del=function(e,t,r){var n,i=this;return r=S(t,r),null==e?_(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=m(this,t),n=b.encodeKey(e,t),void this.db.del(n,t,(function(t){if(t)return _(i,new c(t),r);i.emit("del",e),r&&r()}))):_(this,new c("Database is not open"),r)},k.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=S(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=m(this,t),n=t.keyEncoding,i=t.valueEncoding,o=e.map((function(e){if(void 0===e.type||void 0===e.key)return{};var r,o=e.keyEncoding||n,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(r={type:e.type,key:b.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=b.encodeValue(e.value,t,e)),r):e})),void this.db.batch(o,t,(function(t){if(t)return _(a,new c(t),r);a.emit("batch",e),r&&r()}))):_(this,new c("Database is not open"),r):_(this,new c("batch() requires an array argument"),r)):new v(this)},k.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?_(this,new f("approximateSize() requires start, end and callback arguments"),r):(n=b.encodeKey(e,this.options),i=b.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,(function(e,t){if(e)return _(o,new h(e),r);r&&r(null,t)})):_(this,new c("Database is not open"),r))},k.prototype.readStream=k.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,(function(e){return t.db.iterator(e)}))},k.prototype.keyStream=k.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},k.prototype.valueStream=k.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},k.prototype.writeStream=k.prototype.createWriteStream=function(e){return new y(a(e),this)},k.prototype.toString=function(){return"LevelUP"},e.exports=k,e.exports.copy=b.copy,e.exports.destroy=O("destroy"),e.exports.repair=O("repair")},3209:(e,t,r)=>{var n=r(1892).Readable,i=r(9539).inherits,o=r(7357),a=r(6667).EncodingError,s=r(3368),u={keys:!0,values:!0},c=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},f=function(e){return s.decodeKey(e,this._options)},l=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,r){if(!(this instanceof p))return new p(e,t,r);n.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(u,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?c:this._options.keys?f:this._options.values?l:h;var i=this;this._db.isOpen()?this._iterator=r(this._options):this._db.once("ready",(function(){i._destroyed||(i._iterator=r(i._options))}))}i(p,n),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",(function(){e.call(t)}));t._destroyed||t._iterator.next((function(e,r,n){if(e||void 0===r&&void 0===n)return e||t._destroyed||t.push(null),t._cleanup(e);try{n=t._makeData(r,n)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(n)}))},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end((function(){t._iterator=null,t.emit("close")})):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},3368:(e,t,r)=>{var n,i,o=r(8764).Buffer,a=r(4155),s=r(7357),u=r(6667).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],f={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},l=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},c.forEach((function(r){t[r]||(t[r]={encode:function(t){return e(t)?t:new o(t,r)},decode:function(e){return a.browser?e.toString(r):e},buffer:!0,type:r})})),t}(),h=(i={},c.forEach((function(e){i[e]={valueEncoding:e}})),i);function p(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return l[r]||r}function d(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return l[r]||r}e.exports={defaultOptions:f,copy:function(e,t,r){e.readStream().pipe(t.writeStream()).on("close",r||function(){}).on("error",r||function(e){throw e})},getOptions:function(e,t){var r="string"==typeof t;return!r&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),s(e&&e.options||{},r?h[t]||h[f.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(3619).v6.ct,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(4093).version}catch(e){throw new u(i)}if(!r(1695).satisfies(e,t))throw new u("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(131)}catch(e){throw new u(i)}},dispatchError:function(e,t,r){return"function"==typeof r?r(t):e.emit("error",t)},encodeKey:function(e,t,r){return p(t,r).encode(e)},encodeValue:function(e,t,r){return d(t,r).encode(e)},isValueAsBuffer:function(e,t){return d(e,t).buffer},isKeyAsBuffer:function(e,t){return p(e,t).buffer},decodeValue:function(e,t){return d(t).decode(e)},decodeKey:function(e,t){return p(t).decode(e)}}},3028:(e,t,r)=>{var n=r(4155),i=r(2830).Stream,o=r(9539).inherits,a=r(7357),s=r(22),u=r.g.setImmediate||n.nextTick,c=r(3368).getOptions,f={type:"put"};function l(e,t){if(!(this instanceof l))return new l(e,t);i.call(this),this._options=a(f,c(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var r=this,n=function(){r.writable&&(r._status="ready",r.emit("ready"),r._process())};t.isOpen()?u(n):t.once("ready",n)}o(l,i),l.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},l.prototype.end=function(e){var t=this;e&&this.write(e),u((function(){t._end=!0,t._process()}))},l.prototype.destroy=function(){this.writable=!1,this.end()},l.prototype.destroySoon=function(){this.end()},l.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},l.prototype._processDelayed=function(){var e=this;u((function(){e._process()}))},l.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map((function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}})),(function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}})),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},l.prototype._write=function(e){var t=e.path||e.props.path,r=this;t&&e.pipe(s((function(e,n){if(e)return r.writable=!1,r.emit("error",e);r._options.fstreamRoot&&t.indexOf(r._options.fstreamRoot)>-1&&(t=t.substr(r._options.fstreamRoot.length+1)),r.write({key:t,value:n.slice(0)})})))},l.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=l},5238:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},115:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},2422:(e,t,r)=>{var n=r(4155);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(6497);o.inherits=r(5717);var a=r(6810),s=r(4160);function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}o.inherits(u,a),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],u.prototype[i]||(u.prototype[i]=s.prototype[i]);var i}(i(s.prototype))},8264:(e,t,r)=>{e.exports=o;var n=r(1036),i=r(6497);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},6810:(e,t,r)=>{var n=r(4155);e.exports=l;var i=r(5238),o=r(8764).Buffer;l.ReadableState=f;var a=r(7187).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(2830),c=r(6497);function f(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(5951).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function h(e,t,r,i,a){var s=function(e,t){var r=null;return o.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?g(e):E(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||i||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&g(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(5717),c.inherits(l,u),l.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new o(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){s||(s=r(5951).s),this._readableState.decoder=new s(e),this._readableState.encoding=e};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick((function(){y(e)})):y(e))}function y(e){e.emit("readable")}function b(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(a.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,b(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=u.prototype.pipe,e.on=e.addListener=u.prototype.on,e.on("readable",(function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function w(e,t){var r,n=t.buffer,i=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=a?n.join(""):o.concat(n,i),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,f=n.length;c<f&&u<e;c++){var l=n[0],h=Math.min(e-u,l.length);a?r+=l.slice(0,h):l.copy(r,u,0,h),h<l.length?n[0]=l.slice(h):n.shift(),u+=h}}return r}function E(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g(this),null;if(0===(e=d(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=w(e,t),t.length-=r.length),0===t.length&&E(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),null===(r=e>0?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&E(this),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?l:c;function u(e){e===r&&l()}function c(){e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&b(e)}}(r);function l(){e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",f),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",l),e._writableState&&!e._writableState.needDrain||f()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),g()}function d(){e.removeListener("close",p),g()}function g(){r.unpipe(e)}return e.on("drain",f),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),o.flowing||(this.on("readable",v),o.flowing=!0,n.nextTick((function(){b(r)}))),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&g(this):this.read(0))}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},l._fromList=w},1036:(e,t,r)=>{e.exports=a;var n=r(2422),i=r(6497);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},4160:(e,t,r)=>{var n=r(4155);e.exports=c;var i=r(8764).Buffer;c.WritableState=u;var o=r(6497);o.inherits=r(5717);var a=r(2830);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick((function(){o(i)})):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=h(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(f(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),i?n.nextTick((function(){l(e,r,a,o)})):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(2422);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function f(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function l(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&p(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var r=h(0,t);return r&&(t.finished=!0,e.emit("finish")),r}o.inherits(c,a),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick((function(){r(i)}))}(this,0,r):function(e,t,r,o){var a=!0;if(!i.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick((function(){o(s)})),a=!1}return a}(this,o,e,r)&&(a=function(e,t,r,n,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new i(t,r)),t}(t,r,n),i.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new s(r,n,o)):f(e,t,a,r,n,o),u}(this,o,e,t,r)),a},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},1892:(e,t,r)=>{var n=r(4155),i=r(2830);(t=e.exports=r(6810)).Stream=i,t.Readable=t,t.Writable=r(4160),t.Duplex=r(2422),t.Transform=r(1036),t.PassThrough=r(8264),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(2830))},5951:(e,t,r)=>{var n=r(8764).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},7357:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},2303:(e,t,r)=>{var n=r(8764).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(n.isBuffer(e)){for(var r=Math.min(e.length,t.length),i=0;i<r;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},u=t.lowerBound=function(e,t){var r=s(e);return r?e[r]:t},c=t.lowerBoundInclusive=function(e){return!o(e,"gt")},f=t.upperBoundInclusive=function(e){return!o(e,"lt")},l=t.lowerBoundExclusive=function(e){return!c(e)},h=t.upperBoundExclusive=function(e){return!f(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var r=p(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):u(e,t)},t.end=function(e,t){return e.reverse?u(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?f(e):c(e)},t.endInclusive=function(e){return e.reverse?c(e):f(e)},t.toLtgt=function(e,r,n,i,a){r=r||{},n=n||g;var s=arguments.length>3,u=t.lowerBoundKey(e),c=t.upperBoundKey(e);return u?"gt"===u?r.gt=n(e.gt,!1):r.gte=n(e[u],!1):s&&(r.gte=n(i,!1)),c?"lt"===c?r.lt=n(e.lt,!0):r.lte=n(e[c],!0):s&&(r.lte=n(a,!0)),null!=e.reverse&&(r.reverse=!!e.reverse),o(r,"max")&&delete r.max,o(r,"min")&&delete r.min,o(r,"start")&&delete r.start,o(r,"end")&&delete r.end,r},t.contains=function(e,r,n){n=n||t.compare;var o=u(e);if(i(o)&&((a=n(r,o))<0||0===a&&l(e)))return!1;var a,s=d(e);return!i(s)||!((a=n(r,s))>0||0===a&&h(e))},t.filter=function(e,r){return function(n){return t.contains(e,n,r)}}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=r(4289),i=r(5559),o=r(4244),a=r(5624),s=r(2281),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},5624:(e,t,r)=>{"use strict";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),i=r(4289);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)h.push(String(y));else for(var b in e)d&&"prototype"===b||!i.call(e,b)||h.push(String(b));if(u)for(var v=function(e){if("undefined"==typeof window||!p)return l(e);try{return l(e)}catch(e){return!1}}(e),m=0;m<f.length;++m)v&&"constructor"===f[m]||!i.call(e,f[m])||h.push(f[m]);return h}}e.exports=n},2215:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1414),o=Object.keys,a=o?function(e){return o(e)}:r(8987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},9530:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},778:(e,t,r)=>{var n=r(2479);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},2970:(e,t,r)=>{e.exports=r(2970)},6470:(e,t,r)=>{"use strict";var n=r(4155);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=o(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,o=n-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=o<u?o:u,f=-1,l=0;l<=c;++l){if(l===c){if(u>c){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else o>c&&(47===e.charCodeAt(r+l)?f=l:0===l&&(f=0));break}var h=e.charCodeAt(r+l);if(h!==t.charCodeAt(s+l))break;47===h&&(f=l)}var p="";for(l=r+f+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+f):(s+=f,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===u&&(a=!1,u=r+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return n===o?o=u:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var a=-1,s=0,u=-1,c=!0,f=e.length-1,l=0;f>=r;--f)if(47!==(n=e.charCodeAt(f)))-1===u&&(c=!1,u=f+1),46===n?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){s=f+1;break}return-1===a||-1===u||0===l||1===l&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=0===s&&o?e.slice(1,u):e.slice(s,u)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},8212:(e,t,r)=>{"use strict";var n=r(4155);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return n.nextTick(e);case 2:return n.nextTick((function(){e.call(null,t)}));case 3:return n.nextTick((function(){e.call(null,t,r)}));case 4:return n.nextTick((function(){e.call(null,t,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return n.nextTick((function(){e.apply(null,o)}))}}}:e.exports=n},4155:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function l(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&h())}function h(){if(!c){var e=a(l);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},233:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},2587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var f,l,h,p,d=e[c].replace(a,"%20"),g=d.indexOf(n);g>=0?(f=d.substr(0,g),l=d.substr(g+1)):(f=d,l=""),h=decodeURIComponent(f),p=decodeURIComponent(l),t(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},2361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},7673:(e,t,r)=>{"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6753:(e,t,r)=>{"use strict";var n=r(8212),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(6497));o.inherits=r(5717);var a=r(9481),s=r(4229);o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},2725:(e,t,r)=>{"use strict";e.exports=o;var n=r(4605),i=Object.create(r(6497));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(5717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},9481:(e,t,r)=>{"use strict";var n=r(4155),i=r(8212);e.exports=m;var o,a=r(5826);m.ReadableState=v,r(7187).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(2503),c=r(3545).Buffer,f=r.g.Uint8Array||function(){},l=Object.create(r(6497));l.inherits=r(5717);var h=r(4616),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,g=r(5057),y=r(1195);l.inherits(m,u);var b=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(6753));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(2553).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function m(e){if(o=o||r(6753),!(this instanceof m))return new m(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):E(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):x(e,a)):E(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),x(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},m.prototype.unshift=function(e){return w(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return d||(d=r(2553).s),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){p("emit readable"),e.emit("readable"),T(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){p("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?v:c;function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",(function t(n,i){p("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",d),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}));var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",f);var l=!1,h=!1;function d(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!l&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function g(t){p("onerror",t),v(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),v()}function b(){p("onfinish"),e.removeListener("close",y),v()}function v(){p("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?a(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",b),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},m.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(j,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(A,e,t))}(this,e)),this},m.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=B},4605:(e,t,r)=>{"use strict";e.exports=a;var n=r(6753),i=Object.create(r(6497));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(5717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},4229:(e,t,r)=>{"use strict";var n=r(4155),i=r(8212);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var u=Object.create(r(6497));u.inherits=r(5717);var c,f={deprecate:r(4927)},l=r(2503),h=r(3545).Buffer,p=r.g.Uint8Array||function(){},d=r(1195);function g(){}function y(e,t){a=a||r(6753),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,o);else{var a=E(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?s(m,e,r,a,o):m(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||r(6753),!(c.call(b,this)||this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=E(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,l),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===b&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=g),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}},5057:(e,t,r)=>{"use strict";var n=r(3545).Buffer,i=r(6854);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},1195:(e,t,r)=>{"use strict";var n=r(8212);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},2503:(e,t,r)=>{e.exports=r(7187).EventEmitter},3545:(e,t,r)=>{var n=r(8764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8473:(e,t,r)=>{(t=e.exports=r(9481)).Stream=t,t.Readable=t,t.Writable=r(4229),t.Duplex=r(6753),t.Transform=r(4605),t.PassThrough=r(2725)},2830:(e,t,r)=>{e.exports=i;var n=r(7187).EventEmitter;function i(){n.call(this)}r(5717)(i,n),i.Readable=r(6577),i.Writable=r(323),i.Duplex=r(8656),i.Transform=r(4473),i.PassThrough=r(2366),i.finished=r(1086),i.pipeline=r(6472),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},8106:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,u;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+".".length>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},8656:(e,t,r)=>{"use strict";var n=r(4155),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(6577),a=r(323);r(5717)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2366:(e,t,r)=>{"use strict";e.exports=i;var n=r(4473);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(5717)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},6577:(e,t,r)=>{"use strict";var n,i=r(4155);e.exports=O,O.ReadableState=k,r(7187).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(3630),u=r(8764).Buffer,c=r.g.Uint8Array||function(){},f=r(964);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,p,d=r(9686),g=r(1029),y=r(94).getHighWaterMark,b=r(8106).q,v=b.ERR_INVALID_ARG_TYPE,m=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,E=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5717)(O,s);var _=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(8656),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(2553).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function O(e){if(n=n||r(8656),!(this instanceof O))return new O(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)_(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?_(e,new E):R(e,s,t,!0);else if(s.ended)_(e,new m);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?R(e,s,t,!1):M(e,s)):R(e,s,t,!1)}else n||(s.reading=!1,M(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function R(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=g.destroy,O.prototype._undestroy=g.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),x(this,e,t,!1,r)},O.prototype.unshift=function(e){return x(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){l||(l=r(2553).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function W(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):T(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){_(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?g:u;function u(){o("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",(function t(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",l),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,C(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==W(n.pipes,e))&&!f&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===a(e,"error")&&_(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||i.nextTick(P,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<S.length;a++)e.on(S[a],this.emit.bind(this,S[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(828)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=D,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===p&&(p=r(1265)),p(O,e,t)})},4473:(e,t,r)=>{"use strict";e.exports=f;var n=r(8106).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(8656);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(5717)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},323:(e,t,r)=>{"use strict";var n,i=r(4155);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=O,O.WritableState=k;var a,s={deprecate:r(4927)},u=r(3630),c=r(8764).Buffer,f=r.g.Uint8Array||function(){},l=r(1029),h=r(94).getHighWaterMark,p=r(8106).q,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,E=p.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function S(){}function k(e,t,a){n=n||r(8656),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(B,e,t),e._writableState.errorEmitted=!0,_(e,n)):(o(n),e._writableState.errorEmitted=!0,_(e,n),B(e,t))}(e,r,n,t,o);else{var a=A(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?i.nextTick(R,e,r,a,o):R(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(n=n||r(8656));if(!t&&!a.call(O,this))return new O(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function x(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),B(e,t)}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(x(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5717)(O,u),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===O&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},O.prototype.pipe=function(){_(this,new b)},O.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=S),o.ending?function(e,t){var r=new w;_(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(_(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else x(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,B(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},828:(e,t,r)=>{"use strict";var n,i=r(4155);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(1086),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[l]=null,e[s]=null,e[u]=null,t(d(r,!1)))}}function y(e){i.nextTick(g,e)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[c]?r(e[c]):t(d(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(d(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[p].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),b);e.exports=function(e){var t,r=Object.create(v,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[p].read();n?(r[l]=null,r[s]=null,r[u]=null,e(d(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[l]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[f]=!0})),e.on("readable",y.bind(null,r)),r}},9686:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(8764).Buffer,s=r(9862).inspect,u=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&o(t.prototype,r),e}()},1029:(e,t,r)=>{"use strict";var n=r(4155);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},1086:(e,t,r)=>{"use strict";var n=r(8106).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",f),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",f),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},1265:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6472:(e,t,r)=>{"use strict";var n,i=r(8106).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(1086)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function f(e,t){return e.pipe(t)}function l(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=l(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return u(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))}));return t.reduce(f)}},94:(e,t,r)=>{"use strict";var n=r(8106).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},3630:(e,t,r)=>{e.exports=r(7187).EventEmitter},1889:(e,t)=>{var r=t.range=function(e){return null==e?{}:"string"==typeof r?{min:r,max:r+"ÿ"}:e},n=(t.prefix=function(e,r,n){var i={};return n=n||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=r,i.max=r+n,i.inner=function(t){var n=t.substring(r.length);return e.test?e.test(n):e(n)}):"object"==typeof e&&(i.min=r+(e.min||e.start||""),i.max=r+(e.max||e.end||n||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var r=e.min||e.start,n=e.max||e.end;return t=String(t),(!r||t>=r)&&(!n||t<=n)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return n(t)(e)}},2553:(e,t,r)=>{"use strict";var n=r(396).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},396:(e,t,r)=>{var n=r(8764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},5054:(e,t,r)=>{var n=r(8764).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},1666:(e,t)=>{var r,n,i,o=void 0,a=(r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return r.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}),s=Math.LN2,u=Math.abs,c=Math.floor,f=Math.log,l=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,r=g(e);for(t=0;t<r.length;t+=1)i(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function y(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){i(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}function b(e,t){var r=32-t;return e<<r>>r}function v(e,t){var r=32-t;return e<<r>>>r}function m(e){return[255&e]}function w(e){return b(e[0],8)}function E(e){return[255&e]}function _(e){return v(e[0],8)}function S(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function O(e){return b(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function R(e){return v(e[0]<<8|e[1],16)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return b(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function T(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function B(e){return v(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function M(e,t,r){var n,i,o,a,p,d,g,y=(1<<t-1)-1;function b(e){var t=c(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,r-1),n=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e==-1/0?1:0):(n=e<0,(e=u(e))>=h(2,1-y)?(i=l(c(f(e)/s),1023),(o=b(e/h(2,i)*h(2,r)))/h(2,r)>=2&&(i+=1,o=1),i>y?(i=(1<<t)-1,o=0):(i+=y,o-=h(2,r))):(i=0,o=b(e/h(2,1-y-r)))),p=[],a=r;a;a-=1)p.push(o%2?1:0),o=c(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=c(i/2);for(p.push(n?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function I(e,t,r){var n,i,o,a,s,u,c,f,l=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)l.push(o%2?1:0),o>>=1;return l.reverse(),a=l.join(""),s=(1<<t-1)-1,u=parseInt(a.substring(0,1),2)?-1:1,c=parseInt(a.substring(1,1+t),2),f=parseInt(a.substring(1+t),2),c===(1<<t)-1?0!==f?NaN:u*(1/0):c>0?u*h(2,c-s)*(1+f/h(2,r)):0!==f?u*h(2,-(s-1))*(f/h(2,r)):u<0?-0:0}function L(e){return I(e,11,52)}function P(e){return M(e,11,52)}function N(e){return I(e,8,23)}function C(e){return M(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.eT=t.eT||e;var r=function(){};function n(t,n,i){var s;return s=function(t,r,n){var i,o,u,c;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===s)for(i=arguments[0],this.length=i.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,i._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(o=arguments[0],this.length=a.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)c=o[u],this._setter(u,Number(c));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=s,d(this),y(this)},s.prototype=new r,s.prototype.BYTES_PER_ELEMENT=t,s.prototype._pack=n,s.prototype._unpack=i,s.BYTES_PER_ELEMENT=t,s.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},s.prototype.get=s.prototype._getter,s.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},s.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,u,c,f,l,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(f=this.byteOffset+i*this.BYTES_PER_ELEMENT,l=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,u=r.byteOffset;s<l;s+=1,u+=1)h[s]=r.buffer._bytes[u];for(s=0,c=f;s<l;s+=1,c+=1)this.buffer._bytes[c]=h[s]}else for(s=0,u=r.byteOffset,c=f;s<l;s+=1,u+=1,c+=1)this.buffer._bytes[c]=r.buffer._bytes[u]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)u=n[s],this._setter(i+s,Number(u))}},s.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},s}var i=n(1,m,w),s=n(1,E,_),u=n(1,S,_),c=n(2,k,O),f=n(2,x,R),l=n(4,j,A),h=n(4,T,B),p=n(4,C,N),g=n(8,P,L);t.iq=t.iq||i,t.U2=t.U2||s,t.we=t.we||u,t.M2=t.M2||c,t.HA=t.HA||f,t.ZV=t.ZV||l,t._R=t._R||h,t.$L=t.$L||p,t.I=t.I||g}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.HA([4660]),18===e(new t.U2(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.eT(0);else if(!(e instanceof t.eT||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.eT(0),this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(r){return function(i,o){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,u=new t.U2(this.buffer,i,r.BYTES_PER_ELEMENT),c=[];for(s=0;s<r.BYTES_PER_ELEMENT;s+=1)c.push(e(u,s));return Boolean(o)===Boolean(n)&&c.reverse(),e(new r(new t.U2(c).buffer),0)}}function s(r){return function(i,o,s){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var u,c=new r([o]),f=new t.U2(c.buffer),l=[];for(u=0;u<r.BYTES_PER_ELEMENT;u+=1)l.push(e(f,u));Boolean(s)===Boolean(n)&&l.reverse(),new t.U2(this.buffer,i,r.BYTES_PER_ELEMENT).set(l)}}i.prototype.getUint8=o(t.U2),i.prototype.getInt8=o(t.iq),i.prototype.getUint16=o(t.HA),i.prototype.getInt16=o(t.M2),i.prototype.getUint32=o(t._R),i.prototype.getInt32=o(t.ZV),i.prototype.getFloat32=o(t.$L),i.prototype.getFloat64=o(t.I),i.prototype.setUint8=s(t.U2),i.prototype.setInt8=s(t.iq),i.prototype.setUint16=s(t.HA),i.prototype.setInt16=s(t.M2),i.prototype.setUint32=s(t._R),i.prototype.setInt32=s(t.ZV),i.prototype.setFloat32=s(t.$L),i.prototype.setFloat64=s(t.I),t.VO=t.VO||i}()},2511:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=/^xn--/,f=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function g(e){throw RangeError(h[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function b(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(l,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return y(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=u)e=p(e/35);return p(n+36*e/(e+38))}function _(e){var t,r,n,i,o,a,c,f,l,h,d,y=[],b=e.length,v=0,w=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&g("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<b;){for(o=v,a=1,c=u;i>=b&&g("invalid-input"),((f=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||f>p((s-v)/a))&&g("overflow"),v+=f*a,!(f<(l=c<=_?1:c>=_+26?26:c-_));c+=u)a>p(s/(h=u-l))&&g("overflow"),a*=h;_=E(v-o,t=y.length+1,0==o),p(v/t)>s-w&&g("overflow"),w+=p(v/t),v%=t,y.splice(v++,0,w)}return m(y)}function S(e){var t,r,n,i,o,a,c,f,l,h,y,b,m,_,S,k=[];for(b=(e=v(e)).length,t=128,r=0,o=72,a=0;a<b;++a)(y=e[a])<128&&k.push(d(y));for(n=i=k.length,i&&k.push("-");n<b;){for(c=s,a=0;a<b;++a)(y=e[a])>=t&&y<c&&(c=y);for(c-t>p((s-r)/(m=n+1))&&g("overflow"),r+=(c-t)*m,t=c,a=0;a<b;++a)if((y=e[a])<t&&++r>s&&g("overflow"),y==t){for(f=r,l=u;!(f<(h=l<=o?1:l>=o+26?26:l-o));l+=u)S=f-h,_=u-h,k.push(d(w(h+S%_,0))),f=p(S/_);k.push(d(w(f,0))),o=E(r,m,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:m},decode:_,encode:S,toASCII:function(e){return b(e,(function(e){return f.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return b(e,(function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511),i=r(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return i.isString(e)&&(e=m(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),l=["%","/","?",";","#"].concat(f),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(7673);function m(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var m=e=c.join(s);if(m=m.trim(),!r&&1===e.split("#").length){var w=u.exec(m);if(w)return this.path=m,this.href=m,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(m);if(E){var _=(E=E[0]).toLowerCase();this.protocol=_,m=m.substr(E.length)}if(r||E||m.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===m.substr(0,2);!S||E&&y[E]||(m=m.substr(2),this.slashes=!0)}if(!y[E]&&(S||E&&!b[E])){for(var k,O,x=-1,R=0;R<h.length;R++)-1!==(j=m.indexOf(h[R]))&&(-1===x||j<x)&&(x=j);for(-1!==(O=-1===x?m.lastIndexOf("@"):m.lastIndexOf("@",x))&&(k=m.slice(0,O),m=m.slice(O+1),this.auth=decodeURIComponent(k)),x=-1,R=0;R<l.length;R++){var j;-1!==(j=m.indexOf(l[R]))&&(-1===x||j<x)&&(x=j)}-1===x&&(x=m.length),this.host=m.slice(0,x),m=m.slice(x),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var T=this.hostname.split(/\./),B=(R=0,T.length);R<B;R++){var M=T[R];if(M&&!M.match(p)){for(var I="",L=0,P=M.length;L<P;L++)M.charCodeAt(L)>127?I+="x":I+=M[L];if(!I.match(p)){var N=T.slice(0,R),C=T.slice(R+1),D=M.match(d);D&&(N.push(D[1]),C.unshift(D[2])),C.length&&(m="/"+C.join(".")+m),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!g[_])for(R=0,B=f.length;R<B;R++){var W=f[R];if(-1!==m.indexOf(W)){var q=encodeURIComponent(W);q===W&&(q=escape(W)),m=m.split(W).join(q)}}var $=m.indexOf("#");-1!==$&&(this.hash=m.substr($),m=m.slice(0,$));var z=m.indexOf("?");if(-1!==z?(this.search=m.substr(z),this.query=m.substr(z+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,z)):t&&(this.search="",this.query={}),m&&(this.pathname=m),b[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var V=this.search||"";this.path=U+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(r[f]=e[f])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var l=Object.keys(e),h=0;h<l.length;h++){var p=l[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",v=r.search||"";r.path=g+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=w||m||r.host&&e.pathname,_=E,S=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===S[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search))return k&&(r.hostname=r.host=S.shift(),(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift())),r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=S.slice(-1)[0],x=(r.host||e.host||S.length>1)&&("."===O||".."===O)||""===O,R=0,j=S.length;j>=0;j--)"."===(O=S[j])?S.splice(j,1):".."===O?(S.splice(j,1),R++):R&&(S.splice(j,1),R--);if(!E&&!_)for(;R--;R)S.unshift("..");!E||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),x&&"/"!==S.join("/").substr(-1)&&S.push("");var A,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);return k&&(r.hostname=r.host=T?"":S.length?S.shift():"",(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift())),(E=E||r.host&&S.length)&&!T&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},2502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},4927:(e,t,r)=>{var n=r(5108);function i(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,r)=>{"use strict";var n=r(2584),i=r(8662),o=r(6430),a=r(5692);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===f(e)}function v(e){return"[object Set]"===f(e)}function m(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function E(e){return"[object ArrayBuffer]"===f(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===f(e)}function k(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(m.working?m(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),t.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===f(e)}function R(e){return void 0!==O&&(void 0===x.working&&(x.working=x(new O)),x.working?x(e):e instanceof O)}function j(e){return y(e,l)}function A(e){return y(e,h)}function T(e){return y(e,p)}function B(e){return u&&y(e,d)}function M(e){return c&&y(e,g)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=j,t.isStringObject=A,t.isBooleanObject=T,t.isBigIntObject=B,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return j(e)||A(e)||T(e)||B(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,r)=>{var n=r(4155),i=r(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},a=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(f(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])v(s)||!S(s)?o+=" "+s:o+=" "+f(s);return o},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?i.trace(r):i.error(r),o=!0}return e.apply(this,arguments)}};var s={},u=/^$/;if(n.env.NODE_DEBUG){var c=n.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function f(e,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=f.styles[t];return r?"["+f.colors[r][0]+"m"+e+"["+f.colors[r][1]+"m":e}function h(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return w(i)||(i=p(e,i,n)),i}var o=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(w(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return d(r)}var c,f="",l=!1,h=["{","}"];return y(r)&&(l=!0,h=["[","]"]),x(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(f=" "+RegExp.prototype.toString.call(r)),k(r)&&(f=" "+Date.prototype.toUTCString.call(r)),O(r)&&(f=" "+d(r)),0!==a.length||l&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=l?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)B(t,String(a))?o.push(g(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(g(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return g(e,r,n,s,t,l)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,h)):h[0]+f+h[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),B(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function w(e){return"string"==typeof e}function E(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===R(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===R(e)}function O(e){return S(e)&&("[object Error]"===R(e)||e instanceof Error)}function x(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(u.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);i.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5955),t.isArray=y,t.isBoolean=b,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=k,t.types.isDate=k,t.isError=O,t.types.isNativeError=O,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=r(5717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=M,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(I.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},1070:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NIL:()=>d,parse:()=>v.Z,stringify:()=>b.Z,v1:()=>n.Z,v3:()=>l,v4:()=>h.Z,v5:()=>p.Z,validate:()=>g.Z,version:()=>y});var n=r(7314);function i(e){return 14+(e+64>>>9<<4)+1}function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,i,a){return o((s=o(o(t,e),o(n,a)))<<(u=i)|s>>>32-u,r);var s,u}function s(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function c(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function f(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}const l=(0,r(2808).ZP)("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[i(t)-1]=t;for(var r=1732584193,n=-271733879,a=-1732584194,l=271733878,h=0;h<e.length;h+=16){var p=r,d=n,g=a,y=l;r=s(r,n,a,l,e[h],7,-680876936),l=s(l,r,n,a,e[h+1],12,-389564586),a=s(a,l,r,n,e[h+2],17,606105819),n=s(n,a,l,r,e[h+3],22,-1044525330),r=s(r,n,a,l,e[h+4],7,-176418897),l=s(l,r,n,a,e[h+5],12,1200080426),a=s(a,l,r,n,e[h+6],17,-1473231341),n=s(n,a,l,r,e[h+7],22,-45705983),r=s(r,n,a,l,e[h+8],7,1770035416),l=s(l,r,n,a,e[h+9],12,-1958414417),a=s(a,l,r,n,e[h+10],17,-42063),n=s(n,a,l,r,e[h+11],22,-1990404162),r=s(r,n,a,l,e[h+12],7,1804603682),l=s(l,r,n,a,e[h+13],12,-40341101),a=s(a,l,r,n,e[h+14],17,-1502002290),r=u(r,n=s(n,a,l,r,e[h+15],22,1236535329),a,l,e[h+1],5,-165796510),l=u(l,r,n,a,e[h+6],9,-1069501632),a=u(a,l,r,n,e[h+11],14,643717713),n=u(n,a,l,r,e[h],20,-373897302),r=u(r,n,a,l,e[h+5],5,-701558691),l=u(l,r,n,a,e[h+10],9,38016083),a=u(a,l,r,n,e[h+15],14,-660478335),n=u(n,a,l,r,e[h+4],20,-405537848),r=u(r,n,a,l,e[h+9],5,568446438),l=u(l,r,n,a,e[h+14],9,-1019803690),a=u(a,l,r,n,e[h+3],14,-187363961),n=u(n,a,l,r,e[h+8],20,1163531501),r=u(r,n,a,l,e[h+13],5,-1444681467),l=u(l,r,n,a,e[h+2],9,-51403784),a=u(a,l,r,n,e[h+7],14,1735328473),r=c(r,n=u(n,a,l,r,e[h+12],20,-1926607734),a,l,e[h+5],4,-378558),l=c(l,r,n,a,e[h+8],11,-2022574463),a=c(a,l,r,n,e[h+11],16,1839030562),n=c(n,a,l,r,e[h+14],23,-35309556),r=c(r,n,a,l,e[h+1],4,-1530992060),l=c(l,r,n,a,e[h+4],11,1272893353),a=c(a,l,r,n,e[h+7],16,-155497632),n=c(n,a,l,r,e[h+10],23,-1094730640),r=c(r,n,a,l,e[h+13],4,681279174),l=c(l,r,n,a,e[h],11,-358537222),a=c(a,l,r,n,e[h+3],16,-722521979),n=c(n,a,l,r,e[h+6],23,76029189),r=c(r,n,a,l,e[h+9],4,-640364487),l=c(l,r,n,a,e[h+12],11,-421815835),a=c(a,l,r,n,e[h+15],16,530742520),r=f(r,n=c(n,a,l,r,e[h+2],23,-995338651),a,l,e[h],6,-198630844),l=f(l,r,n,a,e[h+7],10,1126891415),a=f(a,l,r,n,e[h+14],15,-1416354905),n=f(n,a,l,r,e[h+5],21,-57434055),r=f(r,n,a,l,e[h+12],6,1700485571),l=f(l,r,n,a,e[h+3],10,-1894986606),a=f(a,l,r,n,e[h+10],15,-1051523),n=f(n,a,l,r,e[h+1],21,-2054922799),r=f(r,n,a,l,e[h+8],6,1873313359),l=f(l,r,n,a,e[h+15],10,-30611744),a=f(a,l,r,n,e[h+6],15,-1560198380),n=f(n,a,l,r,e[h+13],21,1309151649),r=f(r,n,a,l,e[h+4],6,-145523070),l=f(l,r,n,a,e[h+11],10,-1120210379),a=f(a,l,r,n,e[h+2],15,718787259),n=f(n,a,l,r,e[h+9],21,-343485551),r=o(r,p),n=o(n,d),a=o(a,g),l=o(l,y)}return[r,n,a,l]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(i(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}));var h=r(2045),p=r(9326);const d="00000000-0000-0000-0000-000000000000";var g=r(7738);const y=function(e){if(!(0,g.Z)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};var b=r(3958),v=r(7719)},7719:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7738);const i=function(e){if(!(0,n.Z)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},3653:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}},3958:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});for(var n=r(7738),i=[],o=0;o<256;++o)i.push((o+256).toString(16).substr(1));const a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,n.Z)(r))throw TypeError("Stringified UUID is invalid");return r}},7314:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,i,o=r(3653),a=r(3958),s=0,u=0;const c=function(e,t,r){var c=t&&r||0,f=t||new Array(16),l=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:i;if(null==l||null==h){var p=e.random||(e.rng||o.Z)();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=i=16383&(p[6]<<8|p[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:u+1,y=d-s+(g-u)/1e4;if(y<0&&void 0===e.clockseq&&(h=h+1&16383),(y<0||d>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=g,i=h;var b=(1e4*(268435455&(d+=122192928e5))+g)%4294967296;f[c++]=b>>>24&255,f[c++]=b>>>16&255,f[c++]=b>>>8&255,f[c++]=255&b;var v=d/4294967296*1e4&268435455;f[c++]=v>>>8&255,f[c++]=255&v,f[c++]=v>>>24&15|16,f[c++]=v>>>16&255,f[c++]=h>>>8|128,f[c++]=255&h;for(var m=0;m<6;++m)f[c+m]=l[m];return t||(0,a.Z)(f)}},2808:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o});var n=r(3958),i=r(7719);function o(e,t,r){function o(e,o,a,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=(0,i.Z)(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(o),u.set(e,o.length),(u=r(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){s=s||0;for(var c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.Z)(u)}try{o.name=e}catch(e){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}},2045:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3653),i=r(3958);const o=function(e,t,r){var o=(e=e||{}).random||(e.rng||n.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=o[a];return t}return(0,i.Z)(o)}},9326:(e,t,r)=>{"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}r.d(t,{Z:()=>o});const o=(0,r(2808).ZP)("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),c=new Array(u),f=0;f<u;++f){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=e[64*f+4*h]<<24|e[64*f+4*h+1]<<16|e[64*f+4*h+2]<<8|e[64*f+4*h+3];c[f]=l}c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295;for(var p=0;p<u;++p){for(var d=new Uint32Array(80),g=0;g<16;++g)d[g]=c[p][g];for(var y=16;y<80;++y)d[y]=i(d[y-3]^d[y-8]^d[y-14]^d[y-16],1);for(var b=r[0],v=r[1],m=r[2],w=r[3],E=r[4],_=0;_<80;++_){var S=Math.floor(_/20),k=i(b,5)+n(S,v,m,w)+E+t[S]+d[_]>>>0;E=w,w=m,m=i(v,30)>>>0,v=b,b=k}r[0]=r[0]+b>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}))},7738:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,i=function(e){return"string"==typeof e&&n.test(e)}},6430:(e,t,r)=>{"use strict";var n=r(9804),i=r(3083),o=r(1924),a=o("Object.prototype.toString"),s=r(6410)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),f=o("String.prototype.slice"),l={},h=r(882),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(e){if("function"==typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var r=p(t),n=h(r,Symbol.toStringTag);if(!n){var i=p(r);n=h(i,Symbol.toStringTag)}l[e]=n.get}}}));var d=r(5692);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(l,(function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}})),t}(e):f(a(e),8,-1))}},2479:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},651:e=>{"use strict";e.exports={}},6549:()=>{},8245:()=>{},7669:()=>{},1408:()=>{},6297:()=>{},131:()=>{},4093:()=>{},1695:()=>{},6854:()=>{},4616:()=>{},9862:()=>{},964:()=>{},5173:()=>{},8670:()=>{},4034:()=>{},1185:()=>{},6143:()=>{},6167:()=>{},9654:()=>{},6324:()=>{},6144:()=>{},7945:()=>{},1338:()=>{},934:()=>{},979:()=>{},6789:()=>{},6538:()=>{},8085:()=>{},2929:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},882:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},4685:(e,t,r)=>{"use strict";var n,i;r.a(e,(async(e,t)=>{try{var o=r(4431),a=(r(1185),r(6324),r(934),r(6538),r(6789),r(5772)),s=(r(4034),r(8670),r(6143),r(9654),r(6144)),u=(r(7945),r(979),r(6167),r(5173),r(8085),r(2929),r(1070)),c=(r(651),r(9048)),f=r(8864),l=r(769),h=r(3880),p=r(1142),d=r(966),g=r(7456),y=r(5108),b=e([d,c,f,l,h,p]);[d,c,f,l,h,p]=b.then?(await b)():b;const v=d.inBrowser()?(await Promise.resolve().then(r.t.bind(r,8764,19))).Buffer:global.Buffer,m=d.inBrowser()?window.fetch:(await Promise.resolve().then(r.t.bind(r,1338,19))).default;d.inBrowser()&&(window.utilitas={base64url:n||(n=r.t(a,2)),Buffer:v,colors:o,encryption:c,event:f,fetch:m,manifest:g.Z,math:i||(i=r.t(s,2)),shot:l,storage:h,uoid:p,utilitas:d,uuid:u},y.log(`[${g.Z.name.toUpperCase()} ${g.Z.version}](${g.Z.homepage}) is ready!`)),t()}catch(e){t(e)}}),1)},9048:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{defaultAlgorithm:()=>u,digestObject:()=>y,getSortedQueryString:()=>c,hash:()=>f,hashFile:()=>l,hexToBigInt:()=>b,random:()=>d,randomString:()=>g,sha256:()=>h,sha256File:()=>p});var i=r(966),o=r(6549),a=r(3384),s=e([i]);i=(s.then?(await s)():s)[0];const u="sha256",c=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map((r=>t.append(r,(0,i.ensureString)(e[r])))),t.toString()},f=(e,t=u)=>o.createHash(t).update(e).digest("hex"),l=(e,t=u)=>new Promise((r=>{const n=o.createHash(t);a.createReadStream(e).on("data",(e=>n.update(e))).on("end",(()=>r(n.digest("hex"))))})),h=e=>f(e),p=async e=>await l(e),d=e=>o.randomBytes(e),g=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,d(r).toString(t).substring(0,e)},y=(e,t)=>f(c(e),t),b=e=>(e=`0x${(0,i.ensureString)(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10));n()}catch(e){n(e)}}))},8864:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{bulk:()=>w,default:()=>_,end:()=>E,list:()=>p,load:()=>m,loop:()=>v});var i=r(2045),o=r(966),a=r(3384),s=r(6470),u=e([o]);o=(u.then?(await u)():u)[0];const c=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/event.mjs"),f={},l=e=>1e3*(isNaN(e=Number(e))?0:e),h=e=>f[e].lock=0,p=()=>f;let d=null;const g=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!f[t]||!f[t].silent||r.force||e instanceof Error)&&o.modLog(e,o.basename(c)+(t?` > ${t}`:""),r)},y=(e,t,r)=>f[e].lock+r>t?f[e].lock:!(f[e].lock=t),b=async()=>{const e=Date.now();for(let t in f)if(f[t].lastRun+f[t].interval<e){f[t].lastRun=e;try{if(y(t,e,f[t].timeout)){g("Locked, skipped.",t);continue}g("Emit...",t),await f[t].function()}catch(e){g(e,t)}g("Done.",t),h(t)}},v=async(e,t,r,n,a,s={})=>(d=d||g("Initialized.")||setInterval(b,1e3),g("Scheduled.",a=a||(0,i.Z)(),{force:!0}),await o.timeout(n=l(n)),f[a]={function:e,interval:l(t),timeout:l(r),delay:n,lastRun:0,lock:0,silent:!!s.silent,end:s.end},d),m=async(e,t={})=>(o.assert(e&&e.func,"Event function is required.",500),await v(e.func,e.interval,e.tout,e.delay,e.name,t)),w=async(e,t)=>{t=t||{},g(`SERVICES: ${e}`);const[n,i]=[(a.readdirSync(e)||[]).filter((e=>/\.mjs$/i.test(e)&&!e.startsWith("."))),[]];for(let o of n){const n={...await r(9142)(s.join(e,o))};n.run&&(n.name=n.name||o.replace(/^(.*)\.mjs$/i,"$1"),i.push(m(n,t)))}return await Promise.all(i)},E=async e=>{if(e&&(delete f[e],f.length))return;clearInterval(d),d=-1;const t=Date.now();for(let e in f){if(f[e].end)try{await f[e].end()}catch(e){}for(;y(e,t,f[e].timeout);)g("Waiting...",e),await o.timeout(1e3);g("End.",e)}g("Terminated.")},_=v;n()}catch(e){n(e)}}),1)},7456:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n={name:"utilitas",description:"Just another common utility for JavaScript.",version:"1989.10.24",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=16.x"},scripts:{start:"node index.mjs",debug:"node --inspect --trace-warnings debug.mjs",test:"node --inspect --trace-warnings test.mjs",updep:"npx ncu -u && npm install",gitsync:'( git commit -am "Released @ `date`" || true ) && git pull && git push',pack:"./node_modules/.bin/webpack-cli --config webpack.config.mjs",build:"npm run updep && ( git commit -am 'update dependencies' || true ) && npm version patch && node build.mjs && npm run pack",prepublishOnly:"npm run build && npm run gitsync",beta:"npm publish --tag beta"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},dependencies:{"@sentry/node":"^6.19.2",base64url:"^3.0.1",buffer:"^6.0.3",colors:"1.4.0","fast-geoip":"^1.1.64","file-type":"^17.1.1","form-data":"^4.0.0",ini:"github:Leask/ini",ioredis:"^4.28.5",jsonwebtoken:"^8.5.1","mailgun.js":"^5.0.3",mathjs:"^10.4.1",mysql2:"^2.3.3","node-fetch":"^3.2.3","node-mailjet":"^3.3.7",ping:"^0.4.1",tail:"^2.2.4",telegraf:"^4.7.0",telesignsdk:"^2.2.1",twilio:"^3.76.0",uuid:"^8.3.2"},devDependencies:{"browserify-fs":"^1.0.0","node-polyfill-webpack-plugin":"^1.1.4","webpack-cli":"^4.9.2"}}},769:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{checkVersion:()=>v,default:()=>_,get:()=>E,getCurrentIp:()=>m,getCurrentPosition:()=>w,getVersionOnNpm:()=>b});var i=r(3384),o=r(9048),a=r(8245),s=r(3880),u=r(966),c=r(6470),f=r(4155),l=e([o,s,u]);[o,s,u]=l.then?(await l)():l;const h=u.inBrowser()?(await Promise.resolve().then(r.t.bind(r,8764,19))).Buffer:global.Buffer,p=u.inBrowser()?window.fetch:(await Promise.resolve().then(r.t.bind(r,1408,19))).default,d=f.env.TMPDIR?c.join(f.env.TMPDIR,"shot"):null,g={redirect:"follow",follow:3,timeout:1e4},y=e=>e.toString("utf8"),b=async e=>{u.assert(e,"Package name is required.",400);const t=`https://registry.npmjs.org/-/package/${e}/dist-tags`,r=(await E(t,{encode:"JSON"}))?.content;return u.assert(r,"Error fetching package info.",500),u.assert("Not Found"!==r&&r.latest,"Package not found.",404),u.parseVersion(r.latest)},v=async e=>{const t=await u.which(e),r=t.versionNormalized,n=await b(t.name);return{name:t.name,curVersion:r,newVersion:n,updateAvailable:n.normalized>r.normalized}},m=async e=>{const t=await E("https://ifconfig.me/all.json",{encode:"JSON",...e||{}});return u.assert(t?.content?.ip_addr,"Error detecting IP address.",500),e?.raw?t:t.content.ip_addr},w=async()=>{const e=await p("https://geolocation-db.com/json/").then((e=>e.json()));return u.assert(e,"Network is unreachable.",500),u.assert(e.country_code,"Error detecting geolocation.",500),e},E=async(e,t)=>{u.assert(e,"URL is required."),(t=t||{}).encode=u.ensureString(t.encode,{case:"UP"});const r=u.inBrowser()?null:(0,o.sha256)(e),n=r?t.cache?.tmp||d:null,f=n?c.join(n,s.mapFilename(r)):null,[l,b]=f?["meta","content"].map((e=>c.join(f,`${r}.${e}`))):[],v=t?.refresh||!f?null:await s.readJson(l),m=t?.refresh||!f?null:await u.ignoreErrFunc((async()=>await i.promises.readFile(b))),w=v?.responseHeaders&&m?{"cache-control":"max-age=0","if-modified-since":v.responseHeaders["last-modified"],"if-none-match":v.responseHeaders.etag}:{};let[E,_,S]=[null,null,{}];const k={...g,headers:w,...t.fetch||{}};if(t.timeout){const e=new AbortController;k.signal=e.signal,E=setTimeout((()=>{e.abort()}),t.timeout)}try{_=await p(e,k)}catch(e){u.throwError(e.message.includes("aborted")?"Timed out.":e.message,500)}E&&clearTimeout(E),304===_.status&&(_.arrayBuffer=async()=>m);const[O,x]=[_.headers.get("content-type"),h.from(await _.arrayBuffer())];if(_.headers?.raw)S=_.headers.raw();else for(const[e,t]of _.headers.entries())S[e]=t;const R=await u.ignoreErrFunc((async()=>{u.extract(await a.fileTypeFromBuffer(x),"mime")}))||O,j=x.length;let A;switch(t.encode){case"BUFFER":A=x;break;case"BASE64":A=x.toString(t.encode);break;case"BASE64_DATA_URL":A=s.encodeBase64DataURL(R,x);break;case"JSON":try{A=JSON.parse(y(x))}catch(e){}break;case"TEXT":A=y(x);break;default:u.assert(!t.encode,"Invalid encoding.",400),A=y(x)}return f&&!m&&j&&200===_.status&&await u.ignoreErrFunc((async()=>({touch:await s.touchPath(f),content:await i.promises.writeFile(b,x),meta:await s.writeJson(l,{url:e,requestHeaders:w,responseHeaders:S})}))),{statusCode:_.status,statusText:_.statusText,length:j,mimeType:R,content:A,headers:S,response:_,cache:_.status>=200&&_.status<400?{meta:l,content:b}:null}},_=E;n()}catch(e){n(e)}}),1)},3880:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{assertPath:()=>x,encodeBase64DataURL:()=>M,exists:()=>L,getConfig:()=>A,getConfigFilename:()=>j,isTextFile:()=>R,legalFilename:()=>I,mapFilename:()=>y,readFile:()=>m,readIni:()=>E,readJson:()=>w,setConfig:()=>T,touchPath:()=>B,writeFile:()=>_,writeIni:()=>O,writeJson:()=>k,writeTempFile:()=>S});var i=r(2045),o=r(966),a=r(3384),s=r(7669),u=r(2970),c=r(6470),f=r(5108),l=r(8764).Buffer,h=e([o]);o=(h.then?(await h)():h)[0];const[p,d,g]=["utf8","0644","0755"],y=e=>c.join(e.substr(0,2),e.substr(2,2)),b=(e,t)=>{if(t?.throw)throw e;t?.log&&f.log(e)},v=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),m=async(e,t)=>await a.promises.readFile(e,t?.encoding||p),w=async(e,t)=>{let r={};try{r=JSON.parse(await m(e,t))}catch(e){b(e,t)}return r},E=async(e,t)=>{let r={};try{r=s.parse(await m(e,t),t)}catch(e){b(e,t)}return r},_=async(e,t,r)=>await a.promises.writeFile(e,t,r?.encoding||p),S=async(e,t)=>{let{filename:r,encoding:n,mode:o,prefix:s,suffix:f}=t||{};r=`${s||""}${r||(0,i.Z)()}${f?`.${f}`:""}`,"JSON"===String(n).toUpperCase()&&(e=v(e,t),n=null);const l=c.join(u.tmpdir(),r);return await _(l,e,{encoding:n||p}),await a.promises.chmod(l,o||d),l},k=async(e,t,r)=>await _(e,v(t,r),r),O=async(e,t,r)=>await _(e,s.stringify(t||{},r),r),x=async(e,t,r,n,i=500,s={})=>{let[u,c,f]=[null,null,null];try{u=await a.promises.stat(e)}catch(e){o.throwError(n||e.message,i,s)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c=u.isFile()?null:n||`Path is not a file: '${e}'.`;break;case"D":c=u.isDirectory()?null:n||`Path is not a directory: '${e}'.`;break;default:c=n||`Unsupported path type: '${t}'.`}o.assert(!c,c,i,s);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await a.promises.access(e,a.constants.R_OK);break;case"W":await a.promises.access(e,a.constants.R_OK|a.constants.W_OK);break;default:f=n||`Unsupported access mode: '${r}'.`}}catch(e){f=n||e.message}return o.assert(!f,f,i,s),u},R=async(e,t)=>{let[r,n]=[await a.promises.open(e,"r"),!0];for(let e=0;e<(~~t?.length||1e3);e++){const t=l.alloc(1),i=a.readSync(r.fd,t,0,1,e);if(0===i)break;if(1===i&&0===t.toString().charCodeAt()){n=!1;break}}return r.close(),n},j=async e=>{const t=(e=e||{}).config||c.join(u.homedir(),`.${(await o.which(e.pack)).name}.json`);return o.assert(t,"Error getting config filename.",500),t},A=async e=>{const t=await j(e);return{filename:t,config:await w(t)}},T=async(e,t)=>{e=e||{},o.assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t.overwrite)r=await j(t);else{const{filename:e,config:i}=await A(t);r=e,n=i}return await k(r,o.mergeAtoB(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},B=async(e,t)=>(await a.promises.mkdir(e,{recursive:!0}),await a.promises.chmod(e,t?.permissions||g),await a.promises.stat(e)),M=(e,t)=>{o.assert(e=o.trim(e),"MIME type is required.",400),o.assert(o.isBuffer(t),"Data buffer is required.",400);return`data:${e};base64,${t.toString("base64")}`},I=e=>(o.assert(e=o.ensureString(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),L=async e=>{o.assert(e=o.ensureString(e),"Path is required.",400);try{return await a.promises.stat(e)}catch(e){return null}};n()}catch(e){n(e)}}))},1142:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{bigIntToUuid:()=>p,compactUuid:()=>l,create:()=>g,default:()=>b,getRfcUrlNamespaceUuid:()=>y,getTimestampFromUuid:()=>d,uuidRegTxt:()=>f,uuidToBigInt:()=>h});var i=r(9048),o=r(966),a=r(7314),s=r(9326),u=e([i,o]);[i,o]=u.then?(await u)():u;const c=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/uoid.mjs"),f="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=e=>e.replace(/\-/gi,""),h=e=>(0,i.hexToBigInt)(l(e)),p=e=>BigInt(e).toString(16).padStart(32,"0").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),d=e=>e?Math.ceil((o.convertFrom16to10(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"$3$2$1"))-122192928e9)/1e4):0,g=e=>{(e=Object.assign({file:c,id:a.Z()},e||{})).type=e.type||o.basename(e.file),1==(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${(0,i.randomString)(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},y=e=>(o.assertUrl(e),s.Z(e,s.Z.URL)),b=g;n()}catch(e){n(e)}}),1)},966:(e,t,r)=>{"use strict";r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{arrayEqual:()=>fe,assembleApiUrl:()=>H,assembleUrl:()=>V,assert:()=>pe,assertDate:()=>ve,assertEmail:()=>de,assertFunction:()=>me,assertSet:()=>be,assertUrl:()=>ye,assertUuid:()=>ge,asyncTimeout:()=>K,base64Decode:()=>te,base64Encode:()=>ee,base64Pack:()=>ie,base64Unpack:()=>oe,basename:()=>_e,byteToHexString:()=>ue,checkInterval:()=>Ue,clone:()=>g,convertBase:()=>Z,convertFrom16to10:()=>J,distill:()=>y,ensureArray:()=>w,ensureDate:()=>k,ensureInt:()=>m,ensureString:()=>_,extract:()=>se,fullLengthLog:()=>Pe,getConfigFromStringOrArray:()=>j,getDateByUnixTimestamp:()=>je,getKeyByValue:()=>we,getRandomIndexInArray:()=>x,getRandomInt:()=>O,getRandomItemInArray:()=>R,getShortestInArray:()=>ce,getType:()=>A,getUnixTimestampByDate:()=>Ae,hexDecode:()=>ne,hexEncode:()=>re,humanReadableBoolean:()=>Me,ignoreErrFunc:()=>Fe,inBrowser:()=>p,insensitiveCompare:()=>xe,is:()=>T,isBoolean:()=>B,isBuffer:()=>M,isDate:()=>I,isError:()=>P,isFunction:()=>N,isNull:()=>U,isObject:()=>L,isSet:()=>F,isString:()=>C,isUndefined:()=>D,makeStringByLength:()=>Re,mapKeys:()=>b,matchVersion:()=>Le,mergeAtoB:()=>Oe,modLog:()=>Se,newError:()=>le,pad:()=>v,parseJson:()=>ae,parseVersion:()=>Ie,prettyJson:()=>G,purgeEmoji:()=>$e,range:()=>Ce,renderCode:()=>Ne,rotate:()=>Te,shiftTime:()=>De,split:()=>qe,throwError:()=>he,timeout:()=>Y,toExponential:()=>Be,trim:()=>S,tryUntil:()=>We,uniqueArray:()=>Ee,verifyEmail:()=>$,verifyPhone:()=>z,verifyUrl:()=>q,verifyUuid:()=>W,which:()=>ke});var i=r(3880),o=r(4431),a=r(6470),s=r(5108),u=r(8764).Buffer,c=r(4155),f=e([i]);i=(f.then?(await f)():f)[0],Object.values=Object.values||(e=>Object.keys(e).map((t=>e[t]))),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const l=((await Promise.resolve().then(r.t.bind(r,8575,19))).fileURLToPath||(e=>new URL("",e).pathname))("file:///Users/leask/Documents/utilitas/lib/utilitas.mjs"),h="Invalid time.",p=()=>{try{return window}catch(e){}},d={interval:1e3,maxTry:10,log:!1,error:"Operation failed.",verify:async(e,t)=>!e},g=e=>{let t=e;switch(A(e)){case"Object":t={};for(let r in e)t[r]=g(e[r]);break;case"Array":t=[],e.map((e=>{t.push(g(e))}))}return t},y=(e,t)=>{let[r,n]=[e,null];switch(A(e)){case"Object":r={};for(let i in e)F(n=y(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map((e=>{F(e=y(e,t),t)&&r.push(e)})),r=r.length?r:void 0}return r},b=(e,t,r,n)=>{let[i,o]=[e,t];switch(L(t)&&(o=e=>t[e]),me(o),A(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);pe(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=b(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map(((e,t)=>{i.push(b(e,o,r,[...n||[],t]))}))}return i},v=(e,t,r)=>{for((r=r||{}).pad=r.pad??" ",e=String(e);e.length<~~t;)e=r.right?`${e}${r.pad}`:`${r.pad}${e}`;return e},m=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=F(t.min,!0)&&r<t.min?t.min:r,r=F(t.max,!0)&&r>t.max?t.max:r,t.pad>0?v(r,t.pad,{pad:"0"}):r},w=e=>F(e,!0)?Array.isArray(e)?e:[e]:[],E=(e,t)=>L(e)?JSON.stringify(e):I(e)?e.toISOString():P(e)?t?.trace?e.stack:e.message:String(e??""),_=(e,t)=>{if(e=E(e,t),t?.case)switch(E(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;default:he(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),e},S=(e,t)=>_(e,{trim:!0,...t||{}}),k=(e,t)=>(e&&ve(e=new Date(e),t?.message),!e&&t?.required?he(h,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?Ae(e):e:null),O=e=>Math.floor(Math.random()*Math.floor(e)),x=e=>O((e||[]).length),R=e=>e[x(e)],j=e=>Array.isArray(e)?R(e):e,A=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),T=(e,t)=>A(e)===t,B=e=>T(e,"Boolean"),M=e=>T(e,"Uint8Array"),I=(e,t)=>!(!T(e,"Date")||t&&"invalid date"===e.toTimeString().toLowerCase()),L=e=>T(e,"Object"),P=e=>T(e,"Error"),N=e=>T(e,"Function"),C=e=>T(e,"String"),D=e=>T(e,"Undefined"),U=e=>T(e,"Null"),F=(e,t)=>!(D(e)||t&&U(e)),W=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e),q=e=>{const t=String(e??"");return t.length<2083&&new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},$=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),z=e=>/^\+?[0-9]{4,}$/.test(e),V=(e,t)=>{let r=[];for(let e in t||[])w(t[e]).map((t=>{r.push(`${e}=${encodeURIComponent(t)}`)}));return`${e}${r.length?`?${r.join("&")}`:""}`},H=(e,t,r)=>V(`${e}/${t}`,r),G=(e,t)=>{t=t||{};const r=JSON.stringify(e,null,2);return t.log&&s.log(r),r},Y=e=>new Promise((t=>setTimeout(t,e))),K=async(e,t,r)=>{let n=null,i=Promise.race([e,new Promise(((e,i)=>{n=setTimeout((()=>{i(new Error(r||"Timed out."))}),t)}))]);const o=await i;try{clearTimeout(n)}catch(r){}return o},Z=(e,t,r)=>parseInt(e||0,t).toString(r),J=e=>parseInt(Z(e,16,10)),X=(e,t,r)=>(t?e:u.from(e)).toString(r),Q=(e,t,r)=>{const n=u.from(e,r);return t?n:n.toString("utf8")},ee=(e,t)=>X(e,t,"base64"),te=(e,t)=>Q(e,t,"base64"),re=(e,t)=>X(e,t,"hex"),ne=(e,t)=>Q(e,t,"hex"),ie=e=>ee(JSON.stringify(e)),oe=e=>JSON.parse(te(e)),ae=(e,t={})=>{try{return JSON.parse(e)}catch(e){return t}},se=function(){let e=null;for(let t=0;t<arguments.length;t++)e=t?e?.[arguments[t]]??null:arguments[t];return e},ue=e=>Array.from(e,(e=>("0"+(255&e).toString(16)).slice(-2))).join(""),ce=e=>{let[t,r]=[0,-1];for(let n in e)(-1===r||r>e[n].length)&&(t=n,r=e[n].length);return t},fe=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),le=(e,t,r={})=>Object.assign(new Error(e),{status:t},r),he=(e,t,r)=>{throw le(e,t,r)},pe=(e,t,r,n)=>e||he(t,r,n),de=(e,t="Invalid email.",r=400,n={})=>pe($(e),t,r,n),ge=(e,t="Invalid UUID.",r=400,n={})=>pe(W(e),t,r,n),ye=(e,t="Invalid URL.",r=400,n={})=>pe(q(e),t,r,n),be=(e,t="Undefined value.",r=400,n={})=>pe(F(e),t,r,n),ve=(e,t=h,r=400,n={})=>pe(I(e,!0),t,r,n),me=(e,t="Invalid Function.",r=400,n={})=>pe(N(e),t,r,n),we=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Ee=e=>[...new Set(w(e))],_e=e=>a.basename(String(e??l)).replace(/\.[^\.]*$/,"").trim(),Se=(e,t,r)=>{r=r||[];const n=P(e);e=L(e)?JSON.stringify(e):e;const i=r.time?` ${(I(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+o.red(_e(t).toUpperCase())+o.yellow(i)+"]"+(n?"":` ${e}`)];return n&&a.push(e),s.info.apply(null,a)},ke=async e=>{const t=c.cwd();e=e||a.join(t,"package.json");const r=L(e)?e:await i.readJson(e);return r.name=r.name||a.basename(t)||"",r.versionNormalized=Ie(r.version=r.version||""),r.title=`${r.name}${r.version?" v"+r.version:""}`,r.userAgent=`${r.name}${r.version?`/${r.version}`:""}`,r},Oe=(e,t,r)=>{r=r||{},e=e||{},t=t||{};for(let n in e)D(e[n])?r.mergeUndefined&&delete t[n]:t[n]=e[n];return t},xe=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map((e=>(e=S(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e)));return n===i},Re=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},je=e=>new Date(1e3*~~e),Ae=e=>Math.round(e.getTime()/1e3),Te=(e,t,r)=>{let n=!1;switch(A(e)){case"String":e=_(e,r).split(""),n=!0;break;case"Array":break;default:he("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),n?e.join(""):e},Be=(e,t)=>Number.parseFloat(e).toExponential(t),Me=e=>["OK","OKEY","YES","AYE","ROGER","TRUE","✓","1","10-4","RIGHTO","RIGHT","GOOD","YUP","YEP","YUPPERS","YEPPERS","JA","SURE","DO","GREAT","COOL"].includes(_(e,{case:"UP"})),Ie=e=>{e=_(e,{case:"UP"});const[t,r,n]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let n in t){let i="";for(let r in t[n]){const[o,a]=Array.isArray(t[n][r])?[t[n][r][0],t[n][r][1]]:[new RegExp(`^.*(${t[n][r]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}r[n]=i}if(r.version){const e=r.version.split(".");for(;e.length<n;)e.push(0);for(;e.length;)r.normalized+=Math.pow(10,5*(n-e.length))*e.pop()}return r},Le=(e,t)=>{const[r,n]=[Ie(e),Ie(t)];return r.normalized>=n.normalized},Pe=(e,t)=>{t=t||{},e=String(e??"");const r=m(t.maxLength)||c.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=Re(n,r);s.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;s.log(`${Re(n,t)}${e}${Re(n,i)}`)}return{string:e,maxLength:r}},Ne=(e,t)=>{let r=0;const n=_(e,t),i=n.length?n.split("\n"):[],o=String(i.length).length,a=t?.separator??"|";return i.map((e=>`${String(++r).padStart(o,"0")}${a}${e}`)).join("\n")},Ce=(e,t,r)=>{(r=r||{}).base=m(r.base,{min:0}),r.step=m(r.step,{min:1}),[e,t]=[m(e),m(t)];const[n,i]=[e<=t?1:-1,[]];for(let o=e;n>0?o<=t:o>=t;o+=r.step*n)(!r.noBoundary||o!==e&&o!==t)&&i.push(r.base+o);return i},De=(e,t)=>new Date((t??new Date).getTime()+e),Ue=(e,t)=>!((Math.round(Date.now()/1e3)+m(t))%m(e)),Fe=async(e,t)=>{try{return await e()}catch(e){t?.log&&s.error(e)}},We=async(e,t)=>{t={...d,...t||{}};let[r,n,i]=[0,null,null];do{try{pe(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&t?.log&&s.error(e),await Y(t.interval)}}while(++r<t.maxTry&&i);return i&&he(i,500),n},qe=(e,t)=>S(e,t).split(t?.separator??/[,|;\ \t\n]+/).map((e=>e.trim())).filter((e=>e.length)),$e=(e,t="")=>E(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t);n()}catch(e){n(e)}}),1)},3619:e=>{"use strict";e.exports=JSON.parse('{"v6":{"ct":"~0.10.0"}}')}},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return u[e].call(r.exports,r,r.exports,f),r.loaded=!0,r.exports}e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",n=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},i=e=>!--e.r&&e(),o=(e,t)=>e?e.push(t):i(t),f.a=(a,s,u)=>{var c,f,l,h=u&&[],p=a.exports,d=!0,g=!1,y=(t,r,n)=>{g||(g=!0,r.r+=t.length,t.map(((t,i)=>t[e](r,n))),g=!1)},b=new Promise(((e,t)=>{l=t,f=()=>(e(p),n(h),h=0)}));b[t]=p,b[e]=(e,t)=>{if(d)return i(e);c&&y(c,e,t),o(h,e),b.catch(t)},a.exports=b,s((a=>{var s;c=(a=>a.map((a=>{if(null!==a&&"object"==typeof a){if(a[e])return a;if(a.then){var s=[];a.then((e=>{u[t]=e,n(s),s=0}),(e=>{u[r]=e,n(s),s=0}));var u={};return u[e]=(e,t)=>(o(s,e),a.catch(t)),u}}var c={};return c[e]=e=>i(e),c[t]=a,c})))(a);var u=()=>c.map((e=>{if(e[r])throw e[r];return e[t]})),f=new Promise(((e,t)=>{(s=()=>e(u)).r=0,y(c,s,t)}));return s.r?f:u()}),(e=>(e&&l(b[r]=e),f()))),d=!1},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);f.r(r);var n={};a=a||[null,s({}),s([]),s(s)];for(var i=2&t&&e;"object"==typeof i&&!~a.indexOf(i);i=s(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,f.d(r,n),r},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),f(4685)})();
3
3
  //# sourceMappingURL=utilitas.lite.mjs.map