utilitas 2001.1.79 → 2001.1.81
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.
- package/README.md +3 -1
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +6 -6
- package/lib/bot.mjs +5 -3
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/dist/utilitas.lite.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see utilitas.lite.mjs.LICENSE.txt */
|
|
2
|
-
if(void 0===self)var self=globalThis;(()=>{var e,t,r={41(e,t,r){"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},76(e){"use strict";e.exports=Function.prototype.call},186(e,t,r){e.exports=o;var n=r(9816),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},196(e,t,r){var n;!function(){"use strict";void 0===(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 l;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),l=u.objectStore(this.storeName).put(n)):l=u.objectStore(this.storeName).put(n,r),l.onsuccess=c,l.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,l=0,f=this.db.transaction([this.storeName],this.consts.READ_WRITE);f.oncomplete=function(){c?i(r):o(!1)},f.onabort=o,f.onerror=o;var h=function(e){r[l++][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=f.objectStore(this.storeName).put(e)):t=f.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){f.abort(),u||(u=!0,o(e))}},this),f},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,l=this.db.transaction([this.storeName],this.consts.READ_ONLY);l.oncomplete=function(){(u?n:i)(c)},l.onabort=i,l.onerror=i;var f=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=l.objectStore(this.storeName).get(e);t.onsuccess=f,t.onerror=function(e){c=e,i(e),l.abort()}},this),l},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}.call(t,r,t,e))||(e.exports=n)}()},251(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,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-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,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*g}},345(e,t,r){e.exports=r(7007).EventEmitter},414(e){"use strict";e.exports=Math.round},453(e,t,r){"use strict";var n,i=r(9612),o=r(9383),a=r(1237),s=r(9290),u=r(9538),c=r(8068),l=r(9675),f=r(5345),h=r(1514),d=r(8968),p=r(6188),g=r(8002),y=r(5880),m=r(414),b=r(3093),w=Function,v=function(e){try{return w('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(5795),E=r(655),k=function(){throw new l},S=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,x=r(4039)(),A=r(3628),O=r(1064),j=r(8648),B=r(1002),R=r(76),C={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&A?A(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":l,"%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%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":B,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":O,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":j};if(A)try{null.error}catch(e){var F=A(A(e));D["%Error.prototype%"]=F}var I=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return D[t]=r,r},L={__proto__:null,"%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"]},M=r(6743),N=r(9957),P=M.call(R,Array.prototype.concat),U=M.call(B,Array.prototype.splice),z=M.call(R,String.prototype.replace),q=M.call(R,String.prototype.slice),W=M.call(R,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,Z=function(e,t){var r,n=e;if(N(L,n)&&(n="%"+(r=L[n])[0]+"%"),N(D,n)){var i=D[n];if(i===C&&(i=I(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return z(e,$,function(e,t,r,i){n[n.length]=r?z(i,V,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",i=Z("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],U(r,P([0,1],u)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],p=q(d,0,1),g=q(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),N(D,o="%"+(n+="."+d)+"%"))a=D[o];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var y=_(a,d);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else h=N(a,d),a=a[d];h&&!s&&(D[o]=a)}}return a}},487(e,t,r){"use strict";var n=r(6897),i=r(655),o=r(3126),a=r(2205);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},507(e,t,r){"use strict";var n=r(453),i=r(6556),o=r(8859),a=r(9675),s=n("%Map%",!0),u=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),c(e,t,r)}};return t}},519(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(2796)(e.exports),e.exports.create=e.exports.custom.createError},537(e,t,r){var n=r(5606),i=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},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,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])m(s)||!E(s)?a+=" "+s:a+=" "+c(s);return a},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 i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function h(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=h(e,i,n)),i}var o=function(e,t){if(v(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 b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(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)),S(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(S(r))return d(r)}var c,l="",f=!1,E=["{","}"];return g(r)&&(f=!0,E=["[","]"]),x(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(l=" "+RegExp.prototype.toString.call(r)),k(r)&&(l=" "+Date.prototype.toUTCString.call(r)),S(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)B(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))}),o}(e,r,n,s,a):a.map(function(t){return p(e,r,n,s,t,f)}),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,l,E)):E[0]+l+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(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=m(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function v(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(9032),t.isArray=g,t.isBoolean=y,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=S,t.types.isNativeError=S,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(1135);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),j[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(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(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{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)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=R,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(C.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},554(e,t,r){var n=r(8287).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.I=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}},564(){},592(e,t,r){"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},626(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5240);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},655(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},717(){},736(e,t,r){e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r,n++):(r++,n++);else{if(-1===i)return!1;n=i+1,o++,r=o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(i(e,r))return!1;for(const r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},765(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=765,e.exports=t},920(e,t,r){"use strict";var n=r(9675),i=r(8859),o=r(4803),a=r(507),s=r(2271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},993(){},1002(e){"use strict";e.exports=Function.prototype.apply},1064(e,t,r){"use strict";var n=r(9612);e.exports=n.getPrototypeOf||null},1068(e,t,r){var n=r(5606),i=r(8310).Stream,o=r(537).inherits,a=r(3493),s=r(4829),u=r.g.setImmediate||n.nextTick,c=r(2350).getOptions,l={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);i.call(this),this._options=a(l,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(f,i),f.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)))},f.prototype.end=function(e){var t=this;e&&this.write(e),u(function(){t._end=!0,t._process()})},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.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},f.prototype._processDelayed=function(){var e=this;u(function(){e._process()})},f.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()},f.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)})}))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},1093(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}},1097(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1135(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189(e,t,r){"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(e){return o(e)}:r(8875),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},1218(e,t,r){var n=r(7007);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}},1237(e){"use strict";e.exports=EvalError},1333(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(var n 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 i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1421(e,t,r){var n=r(537),i=r(1831).No,o=r(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=o.lowerBound(t),n=o.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,n.inherits(a,i),a.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){console.log("horrible error",e)}})},a.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()},a.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")}},1438(e,t,r){var n=r(5606);e.exports=f;var i=r(2880),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(5641).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(5641).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},1445(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(1511);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},1447(e,t,r){"use strict";var n=r(9805),i=r(3269),o=r(4823),a=r(7293),s=r(1998),u=-2,c=12,l=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):u}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):u}function g(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):u}function y(e,t){var r,n;return e?(n=new h,e.state=n,n.window=null,0!==(r=g(e,t))&&(e.state=null),r):u}var m,b,w=!0;function v(e){if(w){var t;for(m=new n.Buf32(512),b=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),w=!1}e.lencode=m,e.lenbits=9,e.distcode=b,e.distbits=5}function _(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=p,t.inflateReset2=g,t.inflateResetKeep=d,t.inflateInit=function(e){return y(e,15)},t.inflateInit2=y,t.inflate=function(e,t){var r,h,d,p,g,y,m,b,w,E,k,S,x,A,O,j,B,R,C,T,D,F,I,L,M=0,N=new n.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(r=e.state).mode===c&&(r.mode=13),g=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,h=e.input,y=e.avail_in,b=r.hold,w=r.bits,E=y,k=m,F=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(2&r.wrap&&35615===b){r.check=0,N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0),b=0,w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=l;break}if(w-=4,D=8+(15&(b>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=l;break}r.dmax=1<<D,e.adler=r.check=1,r.mode=512&b?10:c,b=0,w=0;break;case 2:for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(r.flags=b,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=l;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=l;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0,r.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,N[2]=b>>>16&255,N[3]=b>>>24&255,r.check=o(r.check,N,4,0)),b=0,w=0,r.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=r.length)>y&&(S=y),S&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,p,S,D)),512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;S=0;do{D=h[p+S++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D))}while(D&&S<y);if(512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,D)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;S=0;do{D=h[p+S++],r.head&&D&&r.length<65536&&(r.head.comment+=String.fromCharCode(D))}while(D&&S<y);if(512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,D)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b!==(65535&r.check)){e.msg="header crc mismatch",r.mode=l;break}b=0,w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=c;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}e.adler=r.check=f(b),b=0,w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,2;e.adler=r.check=1,r.mode=c;case c:if(5===t||6===t)break e;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===t){b>>>=2,w-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=l}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=l;break}if(r.length=65535&b,b=0,w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(S>y&&(S=y),S>m&&(S=m),0===S)break e;n.arraySet(d,h,p,S,g),y-=S,p+=S,m-=S,g+=S,r.length-=S;break}r.mode=c;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(r.nlen=257+(31&b),b>>>=5,w-=5,r.ndist=1+(31&b),b>>>=5,w-=5,r.ncode=4+(15&b),b>>>=4,w-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=l;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.lens[P[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,I={bits:r.lenbits},F=s(0,r.lens,0,19,r.lencode,0,r.work,I),r.lenbits=I.bits,F){e.msg="invalid code lengths set",r.mode=l;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;j=(M=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(B<16)b>>>=O,w-=O,r.lens[r.have++]=B;else{if(16===B){for(L=O+2;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b>>>=O,w-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=l;break}D=r.lens[r.have-1],S=3+(3&b),b>>>=2,w-=2}else if(17===B){for(L=O+3;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}w-=O,D=0,S=3+(7&(b>>>=O)),b>>>=3,w-=3}else{for(L=O+7;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}w-=O,D=0,S=11+(127&(b>>>=O)),b>>>=7,w-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=l;break}for(;S--;)r.lens[r.have++]=D}}if(r.mode===l)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=l;break}if(r.lenbits=9,I={bits:r.lenbits},F=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,I),r.lenbits=I.bits,F){e.msg="invalid literal/lengths set",r.mode=l;break}if(r.distbits=6,r.distcode=r.distdyn,I={bits:r.distbits},F=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,I),r.distbits=I.bits,F){e.msg="invalid distances set",r.mode=l;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(y>=6&&m>=258){e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,a(e,k),g=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,h=e.input,y=e.avail_in,b=r.hold,w=r.bits,r.mode===c&&(r.back=-1);break}for(r.back=0;j=(M=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(j&&!(240&j)){for(R=O,C=j,T=B;j=(M=r.lencode[T+((b&(1<<R+C)-1)>>R)])>>>16&255,B=65535&M,!(R+(O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}b>>>=R,w-=R,r.back+=R}if(b>>>=O,w-=O,r.back+=O,r.length=B,0===j){r.mode=26;break}if(32&j){r.back=-1,r.mode=c;break}if(64&j){e.msg="invalid literal/length code",r.mode=l;break}r.extra=15&j,r.mode=22;case 22:if(r.extra){for(L=r.extra;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;j=(M=r.distcode[b&(1<<r.distbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(!(240&j)){for(R=O,C=j,T=B;j=(M=r.distcode[T+((b&(1<<R+C)-1)>>R)])>>>16&255,B=65535&M,!(R+(O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}b>>>=R,w-=R,r.back+=R}if(b>>>=O,w-=O,r.back+=O,64&j){e.msg="invalid distance code",r.mode=l;break}r.offset=B,r.extra=15&j,r.mode=24;case 24:if(r.extra){for(L=r.extra;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=l;break}r.mode=25;case 25:if(0===m)break e;if(S=k-m,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=l;break}S>r.wnext?(S-=r.wnext,x=r.wsize-S):x=r.wnext-S,S>r.length&&(S=r.length),A=r.window}else A=d,x=g-r.offset,S=r.length;S>m&&(S=m),m-=S,r.length-=S;do{d[g++]=A[x++]}while(--S);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[g++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===y)break e;y--,b|=h[p++]<<w,w+=8}if(k-=m,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?o(r.check,d,k,g-k):i(r.check,d,k,g-k)),k=m,(r.flags?b:f(b))!==r.check){e.msg="incorrect data check",r.mode=l;break}b=0,w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=l;break}b=0,w=0}r.mode=29;case 29:F=1;break e;case l:F=-3;break e;case 31:return-4;default:return u}return e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,(r.wsize||k!==e.avail_out&&r.mode<l&&(r.mode<27||4!==t))&&_(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?o(r.check,d,k,e.next_out-k):i(r.check,d,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(r.mode===c?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===k||4===t)&&0===F&&(F=-5),F)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,t,n,0)!==r.check?-3:_(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},1511(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(7349),s=r(1445);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},1514(e){"use strict";e.exports=Math.abs},1534(){},1643(e,t,r){e.exports=o;var n=r(3497),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},1657(e,t,r){"use strict";e.exports=a;var n=r(4935),i=Object.create(r(5622));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(6698),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")})}},1779(e,t,r){"use strict";var n=r(8287).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 l,f,h,d,p;if("object"!=typeof r)return r;if(p=r,Array.isArray(p)||"object"==typeof p&&"[object Array]"===i(p))l=[];else if("object"==typeof(d=r)&&"[object RegExp]"===i(d))l=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&&(l.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))l=new Date(r.getTime());else{if(u&&n.isBuffer(r))return l=new n(r.length),r.copy(l),l;void 0===o?(f=Object.getPrototypeOf(r),l=Object.create(f)):(l=Object.create(o),f=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(l)}for(var y in r){var m;f&&(m=Object.getOwnPropertyDescriptor(f,y)),m&&null==m.set||(l[y]=e(r[y],c-1))}return l}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},1831(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(3409),a=r(4427),s=r(2768);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.Z$=u,e.exports.No=a},1891(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(4837),a=r(5584),s=r(7432),u=r(4123),c=r(3519),l=r(6788),f=r(8571),h=r(5363),d=r(1218),p=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),m=h(e.sublevel("stats")),b=e.sublevel("links"),w=d(),v=[],_=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=l(777)),n||(n=g),m.follow(e,function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(i)):void m.put(i,{type:"directory",mode:t,size:4096},w.cb(i,n))})},r.rmdir=function(e,t){t||(t=g),m.follow(e,function(e,n,i){if(e)return t(e);r.readdir(i,function(e,r){return e?t(e):r.length?t(f.ENOTEMPTY(i)):void m.del(i,w.cb(i,t))})})},r.readdir=function(e,t){m.follow(e,function(e,r,n){return e?t(e):r?r.isDirectory()?void m.list(n,t):t(f.ENOTDIR(n)):t(f.ENOENT(n))})};var E=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(e,m.follow,t)},r.lstat=function(e,t){E(e,m.get,t)},r.exists=function(e,t){m.follow(e,function(e){t(!e)})};var k=function(e,t,r,n){n||(n=g),t(e,function(e,t,i){if(e)return n(e);m.update(i,{mode:r},w.cb(i,n))})};r.chmod=function(e,t,r){k(e,m.follow,t,r)},r.lchmod=function(e,t,r){k(e,m.get,t,r)};var S=function(e,t,r,n,i){i||(i=g),t(e,function(e,t,o){if(e)return i(e);m.update(o,{uid:r,gid:n},w.cb(o,i))})};return r.chown=function(e,t,r,n){S(e,m.follow,t,r,n)},r.lchown=function(e,t,r,n){S(e,m.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=g),m.follow(e,function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),m.update(o,a,w.cb(o,n))})},r.rename=function(e,t,n){n||(n=g),m.follow(e,function(e,i,o){if(e)return n(e);var a=function(){n=w.cb(t,w.cb(o,n)),m.put(t,i,function(e){if(e)return n(e);m.del(o,n)})};m.follow(t,function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(f.EISDIR(o)):void(t.isDirectory()?r.readdir(s,function(e,t){return e?n(e):t.length?n(f.ENOTEMPTY(o)):void a()}):a()):a()})})},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);m.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],m.follow(e,function(e,r,i){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(f.EISDIR(i));if(r&&"x"===a[1])return o(f.EEXIST(i));var s=r&&r.blob||i;m.writable(i,function(e){if(e)return o(e);y.write(s,t,n,function(e){if(e)return o(e);m.put(i,{ctime:r&&r.ctime,mtime:new Date,mode:n.mode||l(666),type:"file"},w.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),m.get(e,function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(f.EISDIR(n));var i=function(e){u(b,{start:e+"ÿ",end:e+"ÿÿ"},function(r){if(r)return y.remove(e,t);t()})};m.del(n,w.cb(n,function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void b.del(r.link,function(e){if(e)return t(e);i(o)})):void b.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,m.follow(e,function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(f.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){m.follow(e,function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(f.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||l(666);t.append="a"===r[0];var a=o.writable(function(o){m.follow(e,function(e,s,u){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(f.EISDIR(u));if(s&&"x"===r[1])return o(f.EEXIST(u));var c=s&&s.blob||u;m.writable(c,function(e){if(e)return o(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};m.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,m.put(u,r,function(){w.change(u),n||a.emit("close")})}),o(null,i)})})})});return a.on("close",function(){n=!0}),a},r.truncate=function(e,t,r){m.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);m.writable(o,function(e){if(e)return r(e);if(r=c(w.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):w.watch(m.normalize(e),n)},r.unwatchFile=function(e,t){w.unwatch(m.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):w.watcher(m.normalize(e),n)},r.notify=function(e){w.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);m.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||l(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(f.EEXIST(o)):r&&r.isDirectory()?i(f.EISDIR(o)):void y.size(u,function(e,t){if(e)return i(e);c.append&&(c.writePos=t),m.writable(o,function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=v.indexOf(null);-1===t&&(t=10+v.push(v.length+10)-1),c.fd=t,v[t]=c,w.change(o),i(null,c.fd)},n=function(e){return e?i(e):r?t():void m.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=v[e];if(!r)return p(t,f.EBADF());v[e]=null,p(w.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=v[e];if(o||(o=g),!a||!a.writable)return p(o,f.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=v[e];if(a||(a=g),!s||!s.readable)return p(a,f.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=v[e];if(t||(t=g),!r||!r.writable)return p(t,f.EBADF());p(t)},r.ftruncate=function(e,t,n){var i=v[e];if(n||(n=g),!i)return p(n,f.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=v[e];if(i||(i=g),!o)return p(i,f.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=v[e];if(n||(n=g),!i)return p(n,f.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=v[e];if(i||(i=g),!o)return p(i,f.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=v[e];if(!n)return p(t,f.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=g),m.follow(e,function(e,n,i){if(e)return r(e);m.get(t,function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(t)):void m.put(t,{type:"symlink",target:i,mode:l(777)},r)})})},r.readlink=function(e,t){m.get(e,function(r,n){return r?t(r):n.target?void t(null,n.target):t(f.EINVAL(e))})},r.link=function(e,t,r){r||(r=g),m.follow(e,function(e,n,i){return e?r(e):n.isFile()?void m.get(t,function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(f.EEXIST(t));var a=i+"ÿ"+ ++_;b.put(i+"ÿ",i,function(e){if(e)return r(e);b.put(a,i,function(e){if(e)return r(e);m.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)})})}):r(f.EINVAL(i))})},r}},1963(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(7349)).Stream=i,t.Readable=t,t.Writable=r(1445),t.Duplex=r(1511),t.Transform=r(3497),t.PassThrough=r(1643),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},1998(e,t,r){"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,c,l,f,h){var d,p,g,y,m,b,w,v,_,E=h.bits,k=0,S=0,x=0,A=0,O=0,j=0,B=0,R=0,C=0,T=0,D=null,F=0,I=new n.Buf16(16),L=new n.Buf16(16),M=null,N=0;for(k=0;k<=15;k++)I[k]=0;for(S=0;S<u;S++)I[t[r+S]]++;for(O=E,A=15;A>=1&&0===I[A];A--);if(O>A&&(O=A),0===A)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(x=1;x<A&&0===I[x];x++);for(O<x&&(O=x),R=1,k=1;k<=15;k++)if(R<<=1,(R-=I[k])<0)return-1;if(R>0&&(0===e||1!==A))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+I[k];for(S=0;S<u;S++)0!==t[r+S]&&(f[L[t[r+S]]++]=S);if(0===e?(D=M=f,b=19):1===e?(D=i,F-=257,M=o,N-=257,b=256):(D=a,M=s,b=-1),T=0,S=0,k=x,m=l,j=O,B=0,g=-1,y=(C=1<<O)-1,1===e&&C>852||2===e&&C>592)return 1;for(;;){w=k-B,f[S]<b?(v=0,_=f[S]):f[S]>b?(v=M[N+f[S]],_=D[F+f[S]]):(v=96,_=0),d=1<<k-B,x=p=1<<j;do{c[m+(T>>B)+(p-=d)]=w<<24|v<<16|_}while(0!==p);for(d=1<<k-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,S++,0===--I[k]){if(k===A)break;k=t[r+f[S]]}if(k>O&&(T&y)!==g){for(0===B&&(B=O),m+=x,R=1<<(j=k-B);j+B<A&&!((R-=I[j+B])<=0);)j++,R<<=1;if(C+=1<<j,1===e&&C>852||2===e&&C>592)return 1;c[g=T&y]=O<<24|j<<16|m-l}}return 0!==T&&(c[m+T]=k-B<<24|64<<16),h.bits=O,0}},2175(e,t,r){var n=r(8287).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},2205(e,t,r){"use strict";var n=r(6743),i=r(1002),o=r(3144);e.exports=function(){return o(n,i,arguments)}},2271(e,t,r){"use strict";var n=r(453),i=r(6556),o=r(8859),a=r(507),s=r(9675),u=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},2299(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},u=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},c=Object.is?Object.is:r(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(4133);function h(e){return e.call.bind(e)}var d=h(Object.prototype.hasOwnProperty),p=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),y=r(537).types,m=y.isAnyArrayBuffer,b=y.isArrayBufferView,w=y.isDate,v=y.isMap,_=y.isRegExp,E=y.isSet,k=y.isNativeError,S=y.isBoxedPrimitive,x=y.isNumberObject,A=y.isStringObject,O=y.isBooleanObject,j=y.isBigIntObject,B=y.isSymbolObject,R=y.isFloat32Array,C=y.isFloat64Array;function T(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 D(e){return Object.keys(e).filter(T).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function F(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 I(e,t,r,n){if(e===t)return 0!==e||!r||c(e,t);if(r){if("object"!==o(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,u,l,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=D(e),p=D(t);return d.length===p.length&&M(e,t,r,n,1,d)}if("[object Object]"===h&&(!v(e)&&v(t)||!E(e)&&E(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(u=e,l=t,!(a?u.source===l.source&&u.flags===l.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!R(e)&&!C(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===F(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 y=D(e),T=D(t);return y.length===T.length&&M(e,t,r,n,0,y)}if(E(e))return!(!E(t)||e.size!==t.size)&&M(e,t,r,n,2);if(v(e))return!(!v(t)||e.size!==t.size)&&M(e,t,r,n,3);if(m(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==F(new Uint8Array(i),new Uint8Array(s)))return!1}else if(S(e)&&!function(e,t){return x(e)?x(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):j(e)?j(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):B(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,r,n,0)}function L(e,t){return t.filter(function(t){return p(e,t)})}function M(e,t,r,i,a,c){if(5===arguments.length){c=Object.keys(e);var f=Object.keys(t);if(c.length!==f.length)return!1}for(var h=0;h<c.length;h++)if(!d(t,c[h]))return!1;if(r&&5===arguments.length){var g=l(e);if(0!==g.length){var y=0;for(h=0;h<g.length;h++){var m=g[h];if(p(e,m)){if(!p(t,m))return!1;c.push(m),y++}else if(p(t,m))return!1}var b=l(t);if(g.length!==b.length&&L(t,b).length!==y)return!1}else{var w=l(t);if(0!==w.length&&0!==L(t,w).length)return!1}}if(0===c.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var v=i.val1.get(e);if(void 0!==v){var _=i.val2.get(t);if(void 0!==_)return v===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,r,i,a,c){var l=0;if(2===c){if(!function(e,t,r,n){for(var i=null,a=s(e),u=0;u<a.length;u++){var c=a[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(r)return!1;if(!U(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=s(t),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!N(i,h,r,n))return!1}else if(!r&&!e.has(h)&&!N(i,h,r,n))return!1}return 0===i.size}return!0}(e,t,r,a))return!1}else if(3===c){if(!function(e,t,r,i){for(var a=null,s=u(e),c=0;c<s.length;c++){var l=n(s[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var d=t.get(f);if(void 0===d&&!t.has(f)||!I(h,d,r,i)){if(r)return!1;if(!z(e,t,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var p=u(t),g=0;g<p.length;g++){var y=n(p[g],2),m=y[0],b=y[1];if("object"===o(m)&&null!==m){if(!q(a,e,m,b,r,i))return!1}else if(!(r||e.has(m)&&I(e.get(m),b,!1,i)||q(a,e,m,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(1===c)for(;l<e.length;l++){if(!d(e,l)){if(d(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var h=f[l];if(!d(t,h)||!I(e[h],t[h],r,a))return!1}return f.length===Object.keys(t).length}if(!d(t,l)||!I(e[l],t[l],r,a))return!1}for(l=0;l<i.length;l++){var p=i[l];if(!I(e[p],t[p],r,a))return!1}return!0}(e,t,r,c,i,a);return i.val1.delete(e),i.val2.delete(t),E}function N(e,t,r,n){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(I(t,a,r,n))return e.delete(a),!0}return!1}function P(e){switch(o(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=P(r);return null!=n?n:t.has(n)&&!e.has(n)}function z(e,t,r,n,i){var o=P(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!I(n,a,!1,i))&&!e.has(o)&&I(n,a,!1,i)}function q(e,t,r,n,i,o){for(var a=s(e),u=0;u<a.length;u++){var c=a[u];if(I(r,c,i,o)&&I(n,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},2350(e,t,r){var n,i,o=r(8287).Buffer,a=r(5606),s=r(3493),u=r(7805).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],l={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=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 d(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[r]||r}function p(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[r]||r}e.exports={defaultOptions:l,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[l.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(6789).version}catch(e){throw new u(i)}if(!r(1534).satisfies(e,t))throw new u("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(564)}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 d(t,r).encode(e)},encodeValue:function(e,t,r){return p(t,r).encode(e)},isValueAsBuffer:function(e,t){return p(e,t).buffer},isKeyAsBuffer:function(e,t){return d(e,t).buffer},decodeValue:function(e,t){return p(t).decode(e)},decodeKey:function(e,t){return d(t).decode(e)}}},2464(e,t,r){"use strict";var n=r(8452),i=r(6642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2545(e,t,r){e.exports=a;var n=r(7295),i=r(5622);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(6698),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))}},2581(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)}},2602(e,t,r){e.exports=r(7684)},2634(){},2642(e,t,r){"use strict";var n=r(7720),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},u=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,r,o){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),l=c?a.slice(0,c.index):a,f=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;f.push(l)}for(var h=0;r.depth>0&&null!==(c=s.exec(a))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(c[1])}if(c){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");f.push("["+a.slice(c.index)+"]")}return function(e,t,r,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=i?t:u(t,r,o),c=e.length-1;c>=0;--c){var l,f=e[c];if("[]"===f&&r.parseArrays)l=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s);else{l=r.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(d,10);r.parseArrays||""!==d?!isNaN(p)&&f!==d&&String(p)===d&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(l=[])[p]=s:"__proto__"!==d&&(l[d]=s):l={0:s}}s=l}return s}(f,t,r,o)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var h,d=-1,p=t.charset;if(t.charsetSentinel)for(h=0;h<f.length;++h)0===f[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[h]?p="utf-8":"utf8=%26%2310003%3B"===f[h]&&(p="iso-8859-1"),d=h,h=f.length);for(h=0;h<f.length;++h)if(h!==d){var g,y,m=f[h],b=m.indexOf("]="),w=-1===b?m.indexOf("="):b+1;-1===w?(g=t.decoder(m,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,w),a.decoder,p,"key"),y=n.maybeMap(u(m.slice(w+1),t,o(r[g])?r[g].length:0),function(e){return t.decoder(e,a.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(String(y))),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var v=i.call(r,g);v&&"combine"===t.duplicates?r[g]=n.combine(r[g],y):v&&"last"!==t.duplicates||(r[g]=y)}return r}(e,r):e,f=r.plainObjects?{__proto__:null}:{},h=Object.keys(l),d=0;d<h.length;++d){var p=h[d],g=c(p,l[p],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},2682(e,t,r){"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=e,"[object Array]"===i.call(s)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},2726(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(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}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(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,s(n.key),n)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=r(8287).Buffer,c=r(5340).inspect,l=c&&c.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}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 u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{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=u.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:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2746(e,t,r){var n=r(8287).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}},2768(e,t,r){var n=r(5606);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},2795(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}},2796(e,t,r){var n=r(9723);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}}},2822(){},2861(e,t,r){var n=r(8287),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),a.prototype=Object.create(i.prototype),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)}},2880(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2951(e,t,r){e.exports=r(5405)},2955(e,t,r){"use strict";var n,i=r(5606);function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(6238),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(g,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(t,r){i.nextTick(function(){e[c]?r(e[c]):t(p(void 0,!0))})});var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then(function(){t[l]?r(p(void 0,!0)):t[h](r,n)},n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[h])}return this[f]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),n),m);e.exports=function(e){var t,r=Object.create(b,(o(t={},d,{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,l,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},2963(e,t,r){var n=r(8287).Buffer;e.exports=f;var i=r(196),o=r(1831).Z$,a=r(537),s=r(1421),u=r(2175),c=r(3476),l=r(4527);function f(e){if(!(this instanceof f))return new f(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(f,o),f.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)},f.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?l(i):new n(String(i))),r(null,i,e)},r)},f.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},f.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=l(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)},f.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},f.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},f.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)},f.prototype._close=function(e){this.idb.db.close(),e()},f.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},f.prototype._isBuffer=function(e){return n.isBuffer(e)},f.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)}},f.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}},2980(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)}},3003(e){"use strict";e.exports=function(e){return e!=e}},3005(e,t,r){"use strict";var n=r(5386).Buffer,i=r(993);function o(e,t,r){e.copy(t,r)}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);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)o(r.data,t,i),i+=r.data.length,r=r.next;return t},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})},3050(e,t,r){(t=e.exports=r(4053)).Stream=t,t.Readable=t,t.Writable=r(5509),t.Duplex=r(4935),t.Transform=r(1657),t.PassThrough=r(4507)},3093(e,t,r){"use strict";var n=r(4459);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},3126(e,t,r){"use strict";var n=r(6743),i=r(9675),o=r(76),a=r(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},3141(e,t,r){"use strict";var n=r(2861).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=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}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){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 l(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 f(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 d(e){return e&&e.length?this.write(e):""}t.I=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}},3144(e,t,r){"use strict";var n=r(6743),i=r(1002),o=r(76),a=r(7119);e.exports=a||n.call(o,i)},3152(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},3225(e,t,r){"use strict";var n=r(5606);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},3238(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(5140)).Stream=i,t.Readable=t,t.Writable=r(7684),t.Duplex=r(8166),t.Transform=r(5778),t.PassThrough=r(5824),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},3269(e){"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},3324(e,t,r){var n=r(2350),i=r(7805).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},3364(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()},3409(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}},3428(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"})},3476(e,t,r){var n=r(9731),i=r(7237);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}},3493(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}},3497(e,t,r){e.exports=a;var n=r(1511),i=r(5622);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(6698),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}},3519(e,t,r){var n=r(6587);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})})},3600(e,t,r){"use strict";e.exports=i;var n=r(4610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(6698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},3626(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3628(e,t,r){"use strict";var n=r(8648),i=r(1064),o=r(7176);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},3665(e,t,r){"use strict";var n=r(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var l=new Array(60);i(l);var f=new Array(512);i(f);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,g,y,m=new Array(30);function b(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function w(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function v(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function k(e,t,r){E(e,r[2*t],r[2*t+1])}function S(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function x(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=S(o[s]++,s))}}function A(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function B(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function R(e,t,r){var n,i,s,u,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?k(e,i,t):(k(e,(s=h[i])+256+1,t),0!==(u=o[s])&&E(e,i-=d[s],u),k(e,s=v(--n),r),0!==(u=a[s])&&E(e,n-=m[s],u))}while(c<e.last_lit);k(e,256,t)}function C(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)B(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,B(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,g++),u[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),x(o,c,e.bl_count)}function T(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<u&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function D(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{k(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),E(e,s-3,3)):(k(e,18,e.bl_tree),E(e,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(m);var F=!1;function I(e,t,r,i){E(e,0+(i?1:0),3),function(e,t,r){O(e),_(e,r),_(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}t._tr_init=function(e){F||(function(){var e,t,r,n,i,u=new Array(16);for(r=0,n=0;n<28;n++)for(d[n]=r,e=0;e<1<<o[n];e++)h[r++]=n;for(h[r-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,e=0;e<1<<a[n];e++)f[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,e=0;e<1<<a[n]-7;e++)f[256+i++]=n;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(x(c,287,u),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=S(e,5);p=new b(c,o,257,286,15),g=new b(l,a,0,30,15),y=new b(new Array(0),s,0,19,7)}(),F=!0),e.l_desc=new w(e.dyn_ltree,p),e.d_desc=new w(e.dyn_dtree,g),e.bl_desc=new w(e.bl_tree,y),e.bi_buf=0,e.bi_valid=0,A(e)},t._tr_stored_block=I,t._tr_flush_block=function(e,t,r,n){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),C(e,e.l_desc),C(e,e.d_desc),a=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),C(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?I(e,t,r,n):4===e.strategy||o===i?(E(e,2+(n?1:0),3),R(e,c,l)):(E(e,4+(n?1:0),3),function(e,t,r,n){var i;for(E(e,t-257,5),E(e,r-1,5),E(e,n-4,4),i=0;i<n;i++)E(e,e.bl_tree[2*u[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),R(e,e.dyn_ltree,e.dyn_dtree)),A(e),n&&O(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(h[r]+256+1)]++,e.dyn_dtree[2*v(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){E(e,2,3),k(e,256,c),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3685(e,t,r){var n=r(5346),i=r(7330);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}},3819(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}},3918(e,t,r){"use strict";var n=r(5606);function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=s(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(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,s(n.key),n)}}function s(e){var t=function(e){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}function u(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=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,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function f(e,t,r){return f=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&d(i,r.prototype),i},f.apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e){return g="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},g(e)}var y=r(537).inspect,m=r(9597).codes.ERR_INVALID_ARG_TYPE;function b(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var w="",v="",_="",E="",k={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 S(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 x(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(e,t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(A,e);var r,i,s,l,f=(r=A,i=h(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function A(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),"object"!==g(e)||null===e)throw new m("options","Object",e);var r=e.message,i=e.operator,o=e.stackStartFn,a=e.actual,s=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=f.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(w="[34m",v="[32m",E="[39m",_="[31m"):(w="",v="",E="",_="")),"object"===g(a)&&null!==a&&"object"===g(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=S(a),s=S(s)),"deepStrictEqual"===i||"strictEqual"===i)t=f.call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=x(e),l=c.split("\n"),f=x(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var p=l[0].length+f[0].length;if(p<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(k[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[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 y=l[l.length-1],m=f[f.length-1];y===m&&(h++<2?s="\n ".concat(y).concat(s):i=y,l.pop(),f.pop(),0!==l.length&&0!==f.length);)y=l[l.length-1],m=f[f.length-1];var S=Math.max(l.length,f.length);if(0===S){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(w,"...").concat(E);A.length>27;)A.pop();return"".concat(k.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(w,"...").concat(E).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var O=0,j=k[r]+"\n".concat(v,"+ actual").concat(E," ").concat(_,"- expected").concat(E),B=" ".concat(w,"...").concat(E," Lines skipped");for(h=0;h<S;h++){var R=h-a;if(l.length<h+1)R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(f[h-2]),O++),o+="\n ".concat(f[h-1]),O++),a=h,i+="\n".concat(_,"-").concat(E," ").concat(f[h]),O++;else if(f.length<h+1)R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(l[h-2]),O++),o+="\n ".concat(l[h-1]),O++),a=h,o+="\n".concat(v,"+").concat(E," ").concat(l[h]),O++;else{var C=f[h],T=l[h],D=T!==C&&(!b(T,",")||T.slice(0,-1)!==C);D&&b(C,",")&&C.slice(0,-1)===T&&(D=!1,T+=","),D?(R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(l[h-2]),O++),o+="\n ".concat(l[h-1]),O++),a=h,o+="\n".concat(v,"+").concat(E," ").concat(T),i+="\n".concat(_,"-").concat(E," ").concat(C),O+=2):(o+=i,i="",1!==R&&0!==h||(o+="\n ".concat(T),O++))}if(O>20&&h<S-2)return"".concat(j).concat(B,"\n").concat(o,"\n").concat(w,"...").concat(E).concat(i,"\n")+"".concat(w,"...").concat(E)}return"".concat(j).concat(u?B:"","\n").concat(o).concat(i).concat(s).concat(d)}(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var h=k[i],d=x(a).split("\n");if("notStrictEqual"===i&&"object"===g(a)&&null!==a&&(h=k.notStrictEqualObject),d.length>30)for(d[26]="".concat(w,"...").concat(E);d.length>27;)d.pop();t=1===d.length?f.call(this,"".concat(h," ").concat(d[0])):f.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var p=x(a),y="",O=k[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(k[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(y="".concat(x(s)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(O,"\n\n").concat(p,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),t=f.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=l,t.generatedMessage=!r,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(t),o),t.stack,t.name="AssertionError",u(t)}return s=A,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),A}(l(Error),y.custom);e.exports=A},4035(e,t,r){"use strict";var n,i=r(6556),o=r(9092)(),a=r(9957),s=r(5795);if(o){var u=i("RegExp.prototype.exec"),c={},l=function(){throw c},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{u(e,f)}catch(e){return e===c}}}else{var h=i("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===h(e)}}e.exports=n},4039(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4053(e,t,r){"use strict";var n=r(5606),i=r(3225);e.exports=w;var o,a=r(1097);w.ReadableState=b,r(7007).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(8010),c=r(5386).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},f=Object.create(r(5622));f.inherits=r(6698);var h=r(4385),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,g=r(3005),y=r(7353);f.inherits(w,u);var m=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var n=t instanceof(o=o||r(4935));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&&(p||(p=r(7650).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function w(e){if(o=o||r(4935),!(this instanceof w))return new w(e);this._readableState=new b(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 v(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,S(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof l||"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,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,a,t,!1):A(e,a)):_(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,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&&S(e)),A(e,t)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=y.destroy,w.prototype._undestroy=y.undestroy,w.prototype._destroy=function(e,t){this.push(null),t(e)},w.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),v(this,e,t,!1,r)},w.prototype.unshift=function(e){return v(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){return p||(p=r(7650).I),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var E=8388608;function k(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--,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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){d("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(O,e,t))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){d("readable nexttick read 0"),e.read(0)}function B(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function C(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 T(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(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){d("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 d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.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,d("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?b:c;function c(){d("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",function t(n,i){d("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",l);var f=!1,h=!1;function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!f&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function g(t){d("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",m),b()}function m(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",m),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},w.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=F(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},w.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&&S(this):i.nextTick(j,this))}return r},w.prototype.addListener=w.prototype.on,w.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(B,e,t))}(this,e)),this},w.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(d("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){d("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<m.length;o++)e.on(m[o],this.emit.bind(this,m[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=C},4123(e,t,r){var n=r(2795);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)})}},4133(e,t,r){"use strict";var n=r(487),i=r(8452),o=r(3003),a=r(6642),s=r(2464),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},4148(e,t,r){"use strict";var n=r(5606);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)}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,s(n.key),n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var u,c,l=r(9597).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,h=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,p=l.ERR_INVALID_RETURN_VALUE,g=l.ERR_MISSING_ARGS,y=r(3918),m=r(537).inspect,b=r(537).types,w=b.isPromise,v=b.isRegExp,_=r(9133)(),E=r(9394)(),k=r(8075)("RegExp.prototype.test");function S(){var e=r(2299);u=e.isDeepEqual,c=e.isDeepStrictEqual}new Map;var x=!1,A=e.exports=R,O={};function j(e){if(e.message instanceof Error)throw e.message;throw new y(e)}function B(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 y({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];B.apply(void 0,[R,t.length].concat(t))}A.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u?s="Failed":1===u?(i=t,t=void 0):(!1===x&&(x=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(c.message=i);var l=new y(c);throw s&&(l.message=s,l.generatedMessage=!0),l},A.AssertionError=y,A.ok=R,A.equal=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t!=r&&j({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},A.notEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t==r&&j({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),u(t,r)||j({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),u(t,r)&&j({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),c(t,r)||j({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),c(t,r)&&j({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");E(t,r)||j({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");E(t,r)&&j({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=a(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])&&k(t[e],n[e])?i[e]=n[e]:i[e]=t[e])})});function T(e,t,r,n){if("function"!=typeof t){if(v(t))return k(t,e);if(2===arguments.length)throw new h("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new y({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",t,"may not be an empty object");return void 0===u&&S(),a.forEach(function(i){"string"==typeof e[i]&&v(t[i])&&k(t[i],e[i])||function(e,t,r,n,i,o){if(!(r in e)||!c(e[r],t[r])){if(!n){var a=new C(e,i),s=new C(t,i,e),u=new y({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}j({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,i,r,a,n)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function D(e){if("function"!=typeof e)throw new h("fn","Function",e);try{e()}catch(e){return e}return O}function F(e){return w(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!F(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!F(e))throw new h("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return O}).catch(function(e){return e})})}function L(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new h("error",["Object","Error","Function","RegExp"],r);if(t===O){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";j({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!T(t,r,n,e))throw t}function M(e,t,r,n){if(t!==O){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";j({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(e,t,r,n,o){if(!v(t))throw new h("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||k(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(m(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(t),". Input:\n\n").concat(m(e),"\n"));var u=new y({actual:e,expected:t,message:r,operator:o,stackStartFn:n});throw u.generatedMessage=s,u}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];B.apply(void 0,[P,t.length].concat(t))}A.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,D(t)].concat(n))},A.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))})},A.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];M.apply(void 0,[e,D(t)].concat(n))},A.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 M.apply(void 0,[e,t].concat(n))})},A.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var n=new y({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.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}},A.match=function e(t,r,n){N(t,r,n,e,"match")},A.doesNotMatch=function e(t,r,n){N(t,r,n,e,"doesNotMatch")},A.strict=_(P,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},4233(e){"use strict";const t=function*(){}.constructor;e.exports=()=>t},4385(){},4427(e,t,r){var n=r(5606);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},4442(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4459(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4507(e,t,r){"use strict";e.exports=o;var n=r(1657),i=Object.create(r(5622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},4527(e,t,r){var n=r(8287).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},4602(e,t,r){var n=r(8287).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")},l=t.upperBoundInclusive=function(e){return!o(e,"lt")},f=t.lowerBoundExclusive=function(e){return!c(e)},h=t.upperBoundExclusive=function(e){return!l(e)},d=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},p=t.upperBound=function(e,t){var r=d(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?p(e,t):u(e,t)},t.end=function(e,t){return e.reverse?u(e,t):p(e,t)},t.startInclusive=function(e){return e.reverse?l(e):c(e)},t.endInclusive=function(e){return e.reverse?c(e):l(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&&f(e)))return!1;var a,s=p(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)}}},4610(e,t,r){"use strict";e.exports=l;var n=r(6048).F,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(5382);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 l(e){if(!(this instanceof l))return new l(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",f)}function f(){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(6698)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.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)}},l.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))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},4643(e,t,r){function n(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(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},4674(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4675(e,t,r){var n=r(5606);(t=e.exports=r(5821)).Stream=r(8310),t.Readable=t,t.Writable=r(5405),t.Duplex=r(7295),t.Transform=r(2545),t.PassThrough=r(5683),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},4765(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},4803(e,t,r){"use strict";var n=r(8859),i=r(9675),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return o(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=o(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},4823(e){"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^r[s])];return-1^e}},4829(e,t,r){var n=r(8287).Buffer,i=r(8320).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(537).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,l=c,f=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,f),f+=this._bufs[a].length;return e}if(l<=this._bufs[u[0]].length-h)return s?this._bufs[u[0]].copy(e,t,h,h+l):this._bufs[u[0]].slice(h,h+l);for(s||(e=new n(c)),a=u[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,f,h,h+l);break}this._bufs[a].copy(e,f,h),f+=o,l-=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},4837(e,t,r){var n=r(8287).Buffer,i=r(5606),o=r(2602),a=r(3238),s=r(8688),u=new n(0),c=function(){},l=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=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={}),f(new a(e),l(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),l(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,l(r)),f(i,l(n)),i}},4935(e,t,r){"use strict";var n=r(3225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=Object.create(r(5622));o.inherits=r(6698);var a=r(4053),s=r(5509);o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(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(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},5019(e,t,r){var n=r(8287).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.I=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}},5140(e,t,r){var n=r(5606);e.exports=f;var i=r(3626),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(5019).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(5019).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},5157(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5240(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(1438),s=r(626);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},5291(e,t,r){"use strict";var n=r(6048).F.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}}},5340(){},5345(e){"use strict";e.exports=URIError},5346(e,t,r){e.exports=Object.keys||r(7589)},5363(e,t,r){var n=r(5606),i=r(7975),o=r(3519),a=r(7520),s=r(6788),u=r(2581),c=r(7970),l=r(8571),f=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},d=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,f,"/"));e.get(d(t),{valueEncoding:"json"},function(e,n){return e&&e.notFound?r(l.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,l.EPERM(e)));t.follow(i.dirname(e),function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(l.ENOTDIR(e))})},t.list=function(t,r){t=h(t);var n=d("/"===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(l.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(d(r),u(n),{valueEncoding:"json"},i)})},t.del=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,l.EPERM(t)));e.del(d(t),r)},t}},5373(e,t,r){"use strict";var n=r(8636),i=r(2642),o=r(4765);e.exports={formats:o,parse:i,stringify:n}},5382(e,t,r){"use strict";var n=r(5606),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5412),a=r(6708);r(6698)(l,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(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",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.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)}})},5386(e,t,r){var n=r(8287),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)}},5405(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var i=r(7295),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=d(0,r);a||r.corked||r.bufferProcessing||!r.buffer.length||h(e,r),i?n.nextTick(function(){f(e,r,a,o)}):f(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(7295);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(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++,l(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(l(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 d(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var r=d(0,t);return r&&(0===t.pendingcb?(p(e,t),t.finished=!0,e.emit("finish")):p(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)):l(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)}},5412(e,t,r){"use strict";var n,i=r(5606);e.exports=x,x.ReadableState=S,r(7007).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(345),u=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},l=r(9838);o=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,d,p=r(2726),g=r(5896),y=r(5291).getHighWaterMark,m=r(6048).F,b=m.ERR_INVALID_ARG_TYPE,w=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(x,s);var E=g.errorOrDestroy,k=["error","close","destroy","pause","resume"];function S(e,t,i){n=n||r(5382),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 p,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&&(f||(f=r(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(5382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new S(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 A(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?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(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 b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)E(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(e,new _):O(e,s,t,!0);else if(s.ended)E(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):T(e,s)):O(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(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&&R(e)),T(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){t(e)},x.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),A(this,e,t,!1,r)},x.prototype.unshift=function(e){return A(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){f||(f=r(3141).I);var t=new f(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 B(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 R(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(C,e))}function C(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,M(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(D,e,t))}function D(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 F(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 I(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function N(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 P(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(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 z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.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?P(this):R(this),null;if(0===(e=B(e,t))&&t.ended)return 0===t.length&&P(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=B(r,t))),null===(n=e>0?N(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&&P(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){E(this,new v("_read()"))},x.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",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",f),l=!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,M(e))}}(r);e.on("drain",c);var l=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==z(n.pipes,e))&&!l&&(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(e,t)}function d(){e.removeListener("finish",p),g()}function p(){o("onfinish"),e.removeListener("close",d),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},x.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=z(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},x.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?R(this):n.reading||i.nextTick(I,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(F,this),r},x.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(F,this),t},x.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(L,e,t))}(this,e)),e.paused=!1,this},x.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},x.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<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(2955)),h(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=N,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===d&&(d=r(5157)),d(x,e,t)})},5509(e,t,r){"use strict";var n=r(5606),i=r(3225);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;m.WritableState=y;var u=Object.create(r(5622));u.inherits=r(6698);var c,l={deprecate:r(4643)},f=r(8010),h=r(5386).Buffer,d=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},p=r(7353);function g(){}function y(e,t){a=a||r(4935),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,l=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:l,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,o);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),n?s(w,e,r,a,o):w(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 m(e){if(a=a||r(4935),!(c.call(m,this)||this instanceof a))return new m(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)),f.call(this)}function b(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 w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function v(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,b(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,l=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=_(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(m,f),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:l.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(m,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===m&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);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 b(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.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||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},5584(e,t,r){var n=r(5606),i=(r(7007).EventEmitter,n.nextTick,r(8662)),o=r(3152),a=r(7212),s=r(5687);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 l=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))}),l.call(n,e,t,r)},n}},5606(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,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-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{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}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 d(e,t)),1!==u.length||c||a(h)},d.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=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,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}},5622(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(8287).Buffer.isBuffer},5641(e,t,r){var n=r(8287).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.I=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}},5680(e,t,r){"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},5683(e,t,r){e.exports=o;var n=r(2545),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5687(e,t,r){var n=r(2980);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 l(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return l(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return l(!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 l(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 l=n[0];return"put"==l.type?i.call(e,l.key,l.value,u,c):o.call(e,l.key,u,c)}return a.call(e,n,u,c)}}},5767(e,t,r){"use strict";var n=r(2682),i=r(9209),o=r(487),a=r(6556),s=r(5795),u=r(3628),c=a("Object.prototype.toString"),l=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,h=i(),d=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(h,l&&s&&u?function(e){var t=new f[e];if(Symbol.toStringTag in t&&u){var r=u(t),n=s(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=s(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new f[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(c(e),8,-1);return p(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return n(g,function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}}),t}(e):null}},5778(e,t,r){e.exports=a;var n=r(8166),i=r(5622);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(6698),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}},5795(e,t,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5821(e,t,r){var n=r(5606);e.exports=h;var i=r(9278),o=r(8287).Buffer;h.ReadableState=f;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);c.inherits=r(6698);var l=r(717);function f(e,t){var n=r(7295),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(554).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(r(7295),!(this instanceof h))return new h(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function d(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&&(l("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)}l=l&&l.debuglog?l.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=""),d(this,r,e,t,!1)},h.prototype.unshift=function(e){return d(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=r(554).I),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var p=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>=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 y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(function(){m(e)}):m(e))}function m(e){l("emit readable"),e.emit("readable"),b(e)}function b(e){var t=e._readableState;if(l("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function v(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){l("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 l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?v(this):y(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&v(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),(t.ended||t.reading)&&l("reading or ended",i=!1),i&&(l("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?w(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&&v(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,l("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){l("onunpipe"),e===r&&h()}function c(){l("onend"),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;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,b(e))}}(r);function h(){l("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",h),r.removeListener("data",d),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function d(t){l("ondata"),!1===e.write(t)&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function p(t){l("onerror",t),m(),e.removeListener("error",p),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),m()}function y(){l("onfinish"),e.removeListener("close",g),m()}function m(){l("unpipe"),r.unpipe(e)}return e.on("drain",f),r.on("data",d),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(p):e._events.error=[p,e._events.error]:e.on("error",p),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(l("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(){l("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||(l("resume"),e.flowing=!0,e.reading||(l("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"),b(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},h.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("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(l("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){l("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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r])}(["error","close","destroy","pause","resume"],function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},n},h._fromList=w},5824(e,t,r){e.exports=o;var n=r(5778),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5880(e){"use strict";e.exports=Math.pow},5896(e,t,r){"use strict";var n=r(5606);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)}}},5974(e,t,r){"use strict";var n=r(8287).Buffer,i=r(5606),o=r(4148),a=r(4442),s=r(8411),u=r(1447),c=r(9681);for(var l in c)t[l]=c[l];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},f.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},f.prototype._write=function(e,r,a,s,u,c,l,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=n.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=l,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return i.nextTick(function(){h._process(),h._after()}),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,r,n,i,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(r>=-1&&r<=9,"invalid compression level"),o(n>=1&&n<=9,"invalid memlevel"),o(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,n,i,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,r,n,i,o){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},6048(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,4)===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-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+1>(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.F=t},6060(){},6188(e){"use strict";e.exports=Math.max},6238(e,t,r){"use strict";var n=r(6048).F.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||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},d=function(e){o.call(t,e)},p=function(){var e;return a&&!f?(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",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),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",l),!1!==r.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},6503(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6549(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},6556(e,t,r){"use strict";var n=r(453),i=r(3126),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}},6576(e,t,r){"use strict";var n=r(9394),i=r(8452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6585(e){var t=1e3,r=60*t,n=60*r,i=24*n,o=7*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var u,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(u=e,(c=Math.abs(u))>=i?a(u,c,i,"day"):c>=n?a(u,c,n,"hour"):c>=r?a(u,c,r,"minute"):c>=t?a(u,c,t,"second"):u+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6587(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}}},6642(e,t,r){"use strict";var n=r(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6698(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}}},6708(e,t,r){"use strict";var n,i=r(5606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=x,x.WritableState=S;var a,s={deprecate:r(4643)},u=r(345),c=r(8287).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},f=r(5896),h=r(5291).getHighWaterMark,d=r(6048).F,p=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function k(){}function S(e,t,a){n=n||r(5382),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(C,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),C(e,t))}(e,r,n,t,o);else{var a=B(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?i.nextTick(O,e,r,a,o):O(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 x(e){var t=this instanceof(n=n||r(5382));if(!t&&!a.call(x,this))return new x(e);this._writableState=new S(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 A(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function O(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(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,A(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,l=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var r=B(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(R,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(6698)(x,u),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.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(x,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===x&&e&&e._writableState instanceof S}})):a=function(e){return e instanceof this},x.prototype.pipe=function(){E(this,new m)},x.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof l);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=k),o.ending?function(e,t){var r=new v;E(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new w:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(E(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 l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},x.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);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new g("_write()"))},x.prototype._writev=null,x.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,C(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}},6743(e,t,r){"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},6745(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6788(e){e.exports=function(e,t){return parseInt(e.toString(),t||8)}},6789(){},6841(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(537),a=r(1831).Z$;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},6889(){},6897(e,t,r){"use strict";var n=r(453),i=r(41),o=r(592)(),a=r(5795),s=r(9675),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7007(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,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))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(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):p(i,i.length)}function d(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 p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(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(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r<c;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(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},o.prototype.off=o.prototype.removeListener,o.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},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176(e,t,r){"use strict";var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},7212(e,t,r){var n=r(1779);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}},7237(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7244(e,t,r){"use strict";var n=r(9092)(),i=r(6556)("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&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},7274(e,t,r){!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(7969),a=r(3819),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),l=a(e),f=[];if(!t&&!r&&!l)throw new TypeError("Object.keys called on a non-object");if(l)o(e,function(e){f.push(e)});else{var h,d=u&&r;for(h in e)d&&"prototype"===h||!n.call(e,h)||f.push(h)}if(s){var p=e.constructor,g=p&&p.prototype===e;o(c,function(t){g&&"constructor"===t||!n.call(e,t)||f.push(t)})}return f},e.exports=t}()},7293(e){"use strict";e.exports=function(e,t){var r,n,i,o,a,s,u,c,l,f,h,d,p,g,y,m,b,w,v,_,E,k,S,x,A;r=e.state,n=e.next_in,x=e.input,i=n+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,g=r.lencode,y=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(d+=x[n++]<<p,p+=8,d+=x[n++]<<p,p+=8),w=g[d&m];t:for(;;){if(d>>>=v=w>>>24,p-=v,0==(v=w>>>16&255))A[o++]=65535&w;else{if(!(16&v)){if(64&v){if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=g[(65535&w)+(d&(1<<v)-1)];continue t}for(_=65535&w,(v&=15)&&(p<v&&(d+=x[n++]<<p,p+=8),_+=d&(1<<v)-1,d>>>=v,p-=v),p<15&&(d+=x[n++]<<p,p+=8,d+=x[n++]<<p,p+=8),w=y[d&b];;){if(d>>>=v=w>>>24,p-=v,16&(v=w>>>16&255)){if(E=65535&w,p<(v&=15)&&(d+=x[n++]<<p,(p+=8)<v&&(d+=x[n++]<<p,p+=8)),(E+=d&(1<<v)-1)>u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=v,p-=v,E>(v=o-a)){if((v=E-v)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,S=h,0===f){if(k+=c-v,v<_){_-=v;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}}else if(f<v){if(k+=c+f-v,(v-=f)<_){_-=v;do{A[o++]=h[k++]}while(--v);if(k=0,f<_){_-=v=f;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}}}else if(k+=f-v,v<_){_-=v;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}for(;_>2;)A[o++]=S[k++],A[o++]=S[k++],A[o++]=S[k++],_-=3;_&&(A[o++]=S[k++],_>1&&(A[o++]=S[k++]))}else{k=o-E;do{A[o++]=A[k++],A[o++]=A[k++],A[o++]=A[k++],_-=3}while(_>2);_&&(A[o++]=A[k++],_>1&&(A[o++]=A[k++]))}break}if(64&v){e.msg="invalid distance code",r.mode=30;break e}w=y[(65535&w)+(d&(1<<v)-1)]}}break}}while(n<i&&o<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},7295(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(5821),s=r(5405);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},7330(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7349(e,t,r){var n=r(5606);e.exports=f;var i=r(6745),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(9234).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(9234).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},7353(e,t,r){"use strict";var n=r(3225);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||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):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?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},7432(e,t,r){var n=r(8287).Buffer,i=r(5606),o=r(2951),a=r(4675),s=r(4123),u=r(537),c=r(3519),l=new n(0),f={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(){},d=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},p=t.blockSize||65536,g=t.batch||100,y=new n(p);e.put("\0","ignore",h);var m={},b=function(e,t){if(!(this instanceof b))return new b(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(b,o),b.prototype._init=function(e){this.blockIndex=e/p|0,this.blockOffset=e-this.blockIndex*p,this.blockLength=this.blockOffset},b.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)},b.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)})},b.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+"ÿ"+d(i),u=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<g?r():a._flush(r)};return!o&&r.length===p||!o&&!this.append?u(r,!1,t):void function(t,r,i,o,a){var s=function(){--m[t].locks||delete m[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(p)),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(m[t])return u(m[t]);e.get(t,{valueEncoding:f},function(e,r){if(e&&!e.notFound)return a(e);m[t]||(m[t]={locks:0,block:r}),u(m[t])})}(s,o,r,this.append,function(e,r,n){if(e)return t(e);u(r,!0,function(e){n(),t(e)})})},b.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)})},b.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=p-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)},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},b.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=l),this.write(l,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 w=function(t,r){r||(r={});var n=this,i=r.start||0,o=i/p|0,s=i-o*p,u=t+"ÿ"+d(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:f});var c=function(e){return u=t+"ÿ"+d(++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(w,a),w.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},w.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},w.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:f},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)*p+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 w(e,t)},r.createWriteStream=function(e,t){return new b(e,t)},r}},7520(e,t,r){var n=r(8287).Buffer,i=r(3050).Writable,o=r(6698),a=r(2746);if("undefined"==typeof Uint8Array)var s=r(9656).SE;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},7526(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),l=0,f=u>0?a-4:a;for(r=0;r<f;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[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=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;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(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 u(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function c(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(u(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7589(e,t,r){!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(9661),o=r(7593),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}()},7593(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)}},7650(e,t,r){"use strict";var n=r(5386).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=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}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){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 l(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 f(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 d(e){return e&&e.length?this.write(e):""}t.I=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}},7653(e,t,r){"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},7684(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(8166);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},7713(e,t,r){var n=r(2963),i=r(9043),o=r(1891),a=i("level-filesystem",{db:n});e.exports=o(a)},7720(e,t,r){"use strict";var n=r(4765),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",l=0;l<s.length;l+=u){for(var f=s.length>=u?s.slice(l,l+u):s,h=[],d=0;d<f.length;++d){var p=f.charCodeAt(d);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===n.RFC1738&&(40===p||41===p)?h[h.length]=f.charAt(d):p<128?h[h.length]=a[p]:p<2048?h[h.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?h[h.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(d+=1,p=65536+((1023&p)<<10|1023&f.charCodeAt(d)),h[h.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}c+=h.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},a)}}},7758(e,t,r){"use strict";var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map(function(e,i){var o=i<t.length-1;return function(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(6238)),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"))}}(e,o,i>0,function(e){l||(l=e),e&&h.forEach(u),o||(h.forEach(u),f(l))})});return t.reduce(c)}},7805(e,t,r){var n=r(519).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)}},7833(e,t,r){var n=r(5606);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7969(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n){if(!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}(n))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?n(a?e.charAt(i):e[i],i,e):n.call(u,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===u?n(e[o],o,e):n.call(u,e[o],o,e))}},7970(e,t,r){var n=r(6503);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}},7975(e,t,r){"use strict";var n=r(5606);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,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>c&&(47===e.charCodeAt(r+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(r+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var d="";for(f=r+l+1;f<=n;++f)f!==n&&47!==e.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(s+l):(s+=l,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,l=e.length-1,f=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===n?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&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},8002(e){"use strict";e.exports=Math.min},8010(e,t,r){e.exports=r(7007).EventEmitter},8068(e){"use strict";e.exports=SyntaxError},8075(e,t,r){"use strict";var n=r(453),i=r(487),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}},8166(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(5140),s=r(7684);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},8184(e,t,r){"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),o=r(9092)(),a=r(3628),s=n("Object.prototype.toString"),u=n("Function.prototype.toString"),c=r(4233);e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=c();return t&&a(e)===t.prototype}},8221(){},8287(e,t,r){"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 f(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(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(K(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(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(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(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 u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 f(e){return l(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),r=s(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,u.prototype),n}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(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 Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(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 R(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(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),Y(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=u.from(t,n)),u.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 v(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(Y(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return H(Z(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(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 H(G(t),e,r,n)}function S(e,t,r,n){return H(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?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(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<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.kMaxLength=a,u.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}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.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},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.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)m(this,t,t+1);return this},u.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)m(this,t,t+3),m(this,t+1,t+2);return this},u.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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<s;++e)if(c[e]!==l[e]){o=c[e],a=l[e];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},u.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 v(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function j(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 B(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 R(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+=J[e[n]];return i}function C(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 T(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 D(e,t,r,n,i,o){if(!u.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 F(e,t,r,n,i){q(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 I(e,t,r,n,i){q(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 L(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 M(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.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,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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))}),u.prototype.readBigUInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(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},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(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},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readBigInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||D(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},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||D(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},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeBigUInt64LE=X(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=X(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(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},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(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},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeBigInt64LE=X(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=X(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.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},u.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&&!u.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=u.isBuffer(e)?e:u.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 P={};function U(e,t,r){P[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 z(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 q(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 P.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(n,i,o)}function W(e,t){if("number"!=typeof e)throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw W(e,r),new P.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("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=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(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 G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(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 K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=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 X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8310(e,t,r){e.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(6698)(i,n),i.Readable=r(5412),i.Writable=r(6708),i.Duplex=r(5382),i.Transform=r(4610),i.PassThrough=r(3600),i.finished=r(6238),i.pipeline=r(7758),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(l(),0===n.listenerCount(this,"error"))throw e}function l(){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",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},8320(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(1438)).Stream=i,t.Readable=t,t.Writable=r(626),t.Duplex=r(5240),t.Transform=r(9816),t.PassThrough=r(186),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},8403(e,t,r){"use strict";var n=r(1189),i=r(1333)(),o=r(6556),a=r(9612),s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),c=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var l=a(arguments[o]),f=n(l),h=i&&(a.getOwnPropertySymbols||c);if(h)for(var d=h(l),p=0;p<d.length;++p){var g=d[p];u(l,g)&&s(f,g)}for(var y=0;y<f.length;++y){var m=f[y];if(u(l,m)){var b=l[m];r[m]=b}}}return r}},8411(e,t,r){"use strict";var n,i=r(9805),o=r(3665),a=r(3269),s=r(4823),u=r(4674),c=-2,l=258,f=262,h=103,d=113,p=666;function g(e,t){return e.msg=u[t],t}function y(e){return(e<<1)-(e>4?9:0)}function m(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function w(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function v(e,t){e.pending_buf[e.pending++]=t}function _(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function E(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=a(e.adler,t,o,r):2===e.state.wrap&&(e.adler=s(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function k(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,c=e.window,h=e.w_mask,d=e.prev,p=e.strstart+l,g=c[o+a-1],y=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===y&&c[r+a-1]===g&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<p);if(n=l-(p-o),o=p-l,n>a){if(e.match_start=t,a=n,n>=s)break;g=c[o+a-1],y=c[o+a]}}}while((t=d[t&h])>u&&0!==--i);return a<=e.lookahead?a:e.lookahead}function S(e){var t,r,n,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--r);t=r=s;do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--r);o+=s}if(0===e.strm.avail_in)break;if(r=E(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function x(e,t){for(var r,n;;){if(e.lookahead<f){if(S(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-f&&(e.match_length=k(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var r,n,i;;){if(e.lookahead<f){if(S(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-f&&(e.match_length=k(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(w(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&w(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function B(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):g(e,c)}function R(e){var t,r=B(e);return 0===r&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function C(e,t,r,n,o,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return g(e,c);8===n&&(n=9);var u=new j;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,R(e)}n=[new O(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(S(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,w(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(w(e,!1),e.strm.avail_out),1)}),new O(4,4,8,4,x),new O(4,5,16,8,x),new O(4,6,32,32,x),new O(4,4,16,16,A),new O(8,16,32,32,A),new O(8,16,128,128,A),new O(8,32,128,256,A),new O(32,128,258,1024,A),new O(32,258,258,4096,A)],t.deflateInit=function(e,t){return C(e,t,8,15,8,0)},t.deflateInit2=C,t.deflateReset=R,t.deflateResetKeep=B,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>5||t<0)return e?g(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===p&&4!==t)return g(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,3),i.status=d);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=d,_(i,f),0!==i.strstart&&(_(i,e.adler>>>16),_(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,v(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,v(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(v(i,255&e.adler),v(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&y(t)<=y(r)&&4!==t)return g(e,-5);if(i.status===p&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==p){var E=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(S(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(S(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==E&&4!==E||(i.status=p),1===E||3===E)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(v(i,255&e.adler),v(i,e.adler>>8&255),v(i,e.adler>>16&255),v(i,e.adler>>24&255),v(i,255&e.total_in),v(i,e.total_in>>8&255),v(i,e.total_in>>16&255),v(i,e.total_in>>24&255)):(_(i,e.adler>>>16),_(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==h&&t!==d&&t!==p?g(e,c):(e.state=null,t===d?g(e,-3):0):c},t.deflateSetDictionary=function(e,t){var r,n,o,s,u,l,f,h,d=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,d-r.w_size,r.w_size,0),t=h,d=r.w_size),u=e.avail_in,l=e.next_in,f=e.input,e.avail_in=d,e.next_in=0,e.input=t,S(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,S(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=f,e.avail_in=u,r.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},8452(e,t,r){"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(41),u=r(592)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;u?s(e,t,r,!0):s(e,t,r)},l=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]])};l.supportsDescriptors=!!u,e.exports=l},8531(e,t,r){var n=r(1963).Readable,i=r(537).inherits,o=r(3493),a=r(7805).EncodingError,s=r(2350),u={keys:!0,values:!0},c=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},l=function(e){return s.decodeKey(e,this._options)},f=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function d(e,t,r){if(!(this instanceof d))return new d(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?l:this._options.values?f: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(d,n),d.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)})},d.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")}},d.prototype.destroy=function(){this._cleanup()},d.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=d},8559(e,t,r){"use strict";var n=r(5606),i=r(8287).Buffer,o=r(8310).Transform,a=r(5974),s=r(537),u=r(4148).ok,c=r(8287).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),h=0;h<f.length;h++){var d=f[h];d.match(/^Z/)&&Object.defineProperty(t,d,{enumerable:!0,value:a[d],writable:!1})}for(var p={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},g=Object.keys(p),y=0;y<g.length;y++){var m=g[y];p[p[m]]=m}function b(e,t,r){var n=[],o=0;function a(){for(var t;null!==(t=e.read());)n.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=c?a=new RangeError(l):t=i.concat(n,o),n=[],e.close(),r(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)}),e.on("end",s),e.end(t),a()}function w(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);j.call(this,e,a.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);j.call(this,e,a.INFLATE)}function E(e){if(!(this instanceof E))return new E(e);j.call(this,e,a.GZIP)}function k(e){if(!(this instanceof k))return new k(e);j.call(this,e,a.GUNZIP)}function S(e){if(!(this instanceof S))return new S(e);j.call(this,e,a.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);j.call(this,e,a.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);j.call(this,e,a.UNZIP)}function O(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function j(e,r){var n=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){B(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var c=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(c=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,c,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function B(e,t){t&&n.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function R(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=v,t.Inflate=_,t.Gzip=E,t.Gunzip=k,t.DeflateRaw=S,t.InflateRaw=x,t.Unzip=A,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new _(e)},t.createDeflateRaw=function(e){return new S(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new E(e)},t.createGunzip=function(e){return new k(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new v(t),e,r)},t.deflateSync=function(e,t){return w(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new E(t),e,r)},t.gzipSync=function(e,t){return w(new E(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new S(t),e,r)},t.deflateRawSync=function(e,t){return w(new S(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new A(t),e,r)},t.unzipSync=function(e,t){return w(new A(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new _(t),e,r)},t.inflateSync=function(e,t){return w(new _(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new k(t),e,r)},t.gunzipSync=function(e,t){return w(new k(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new x(t),e,r)},t.inflateRawSync=function(e,t){return w(new x(t),e)},s.inherits(j,o),j.prototype.params=function(e,r,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){u(o._handle,"zlib binding closed"),o._handle.params(e,r),o._hadError||(o._level=e,o._strategy=r,i&&i())})}else n.nextTick(i)},j.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},j.prototype.flush=function(e,t){var r=this,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&n.nextTick(t):o.ending?t&&this.once("end",t):o.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(i.alloc(0),"",t))},j.prototype.close=function(e){B(this,e),n.nextTick(R,this)},j.prototype._transform=function(e,t,r){var n,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?n=this._finishFlushFlag:(n=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(e,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},j.prototype._processChunk=function(e,t,r){var n=e&&e.length,o=this._chunkSize-this._offset,a=0,s=this,f="function"==typeof r;if(!f){var h,d=[],p=0;this.on("error",function(e){h=e}),u(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,n,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(p>=c)throw B(this),new RangeError(l);var y=i.concat(d,p);return B(this),y}u(this._handle,"zlib binding closed");var m=this._handle.write(t,e,a,n,this._buffer,this._offset,o);function b(c,l){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var h=o-l;if(u(h>=0,"have should not go down"),h>0){var g=s._buffer.slice(s._offset,s._offset+h);s._offset+=h,f?s.push(g):(d.push(g),p+=g.length)}if((0===l||s._offset>=s._chunkSize)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===l){if(a+=n-c,n=c,!f)return!0;var y=s._handle.write(t,e,a,n,s._buffer,s._offset,s._chunkSize);return y.callback=b,void(y.buffer=e)}if(!f)return!1;r()}}m.buffer=e,m.callback=b},s.inherits(v,j),s.inherits(_,j),s.inherits(E,j),s.inherits(k,j),s.inherits(S,j),s.inherits(x,j),s.inherits(A,j)},8571(e,t,r){var n=r(519);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}})},8636(e,t,r){"use strict";var n=r(920),i=r(7720),o=r(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},g=function e(t,r,o,a,s,c,f,h,g,y,m,b,w,v,_,E,k,S){for(var x,A=t,O=S,j=0,B=!1;void 0!==(O=O.get(p))&&!B;){var R=O.get(t);if(j+=1,void 0!==R){if(R===j)throw new RangeError("Cyclic object value");B=!0}void 0===O.get(p)&&(j=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=w(A):"comma"===o&&u(A)&&(A=i.maybeMap(A,function(e){return e instanceof Date?w(e):e})),null===A){if(c)return g&&!E?g(r,d.encoder,k,"key",v):r;A=""}if("string"==typeof(x=A)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(A))return g?[_(E?r:g(r,d.encoder,k,"key",v))+"="+_(g(A,d.encoder,k,"value",v))]:[_(r)+"="+_(String(A))];var C,T=[];if(void 0===A)return T;if("comma"===o&&u(A))E&&g&&(A=i.maybeMap(A,g)),C=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(y))C=y;else{var D=Object.keys(A);C=m?D.sort(m):D}var F=h?String(r).replace(/\./g,"%2E"):String(r),I=a&&u(A)&&1===A.length?F+"[]":F;if(s&&u(A)&&0===A.length)return I+"[]";for(var L=0;L<C.length;++L){var M=C[L],N="object"==typeof M&&M&&void 0!==M.value?M.value:A[M];if(!f||null!==N){var P=b&&h?String(M).replace(/\./g,"%2E"):String(M),U=u(A)?"function"==typeof o?o(I,P):I:I+(b?"."+P:"["+P+"]");S.set(t,j);var z=n();z.set(p,S),l(T,e(N,U,o,a,s,c,f,h,"comma"===o&&E&&u(A)?null:g,y,m,b,w,v,_,E,k,z))}}return T};e.exports=function(e,t){var r,i=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,i=o.formatters[r],c=d.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:r,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(r=c.filter);var f=[];if("object"!=typeof i||null===i)return"";var h=s[c.arrayFormat],p="comma"===h&&c.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var y=n(),m=0;m<r.length;++m){var b=r[m],w=i[b];c.skipNulls&&null===w||l(f,g(w,b,h,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var v=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},8648(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8662(e,t,r){var n=r(7007).EventEmitter,i=r(537).inherits,o=r(2980),a=r(7212),s=r(3685),u=r(3152);function c(e,t,r){if("string"==typeof r&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof c))return new c(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=f(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var n=this;this.hooks={pre:function(){return n.pre.apply(n,arguments)},post:function(){return n.post.apply(n,arguments)}}}i(c,n);var l=c.prototype;function f(e){return e._parent?f(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:s(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new c(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 u(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=f(this),r=this.prefix(),n=o.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,s(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(r.length)),t};else{var u=i.emit;i.emit=function(e,t){"data"===e?u.call(this,"data",t.substring(r.length)):u.call(this,e,t)}}return i}return!1===n.keys||((a=i.read)?i.read=function(e){var t=a.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=f(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=f(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var r=f(this._parent),n=this.prefix();return r.hooks.pre(a(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=f(this._parent),n=this.prefix();return e=o.prefix(e,n,this._options.sep),r.hooks.post(a(e),function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})})},e.exports=c},8688(e,t,r){e.exports=r(8166)},8835(e,t,r){"use strict";var n=r(9655);function i(){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}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(5373);i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var w=s.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=o.exec(b);if(v){var _=(v=v[0]).toLowerCase();this.protocol=_,b=b.substr(v.length)}if(r||v||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||v&&g[v]||(b=b.substr(2),this.slashes=!0)}if(!g[v]&&(E||v&&!y[v])){for(var k,S,x=-1,A=0;A<f.length;A++)-1!==(O=b.indexOf(f[A]))&&(-1===x||O<x)&&(x=O);for(-1!==(S=-1===x?b.lastIndexOf("@"):b.lastIndexOf("@",x))&&(k=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(k)),x=-1,A=0;A<l.length;A++){var O;-1!==(O=b.indexOf(l[A]))&&(-1===x||O<x)&&(x=O)}-1===x&&(x=b.length),this.host=b.slice(0,x),b=b.slice(x),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var B=this.hostname.split(/\./),R=(A=0,B.length);A<R;A++){var C=B[A];if(C&&!C.match(h)){for(var T="",D=0,F=C.length;D<F;D++)C.charCodeAt(D)>127?T+="x":T+=C[D];if(!T.match(h)){var I=B.slice(0,A),L=B.slice(A+1),M=C.match(d);M&&(I.push(M[1]),L.unshift(M[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+N,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!p[_])for(A=0,R=c.length;A<R;A++){var U=c[A];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var $=this.search||"";this.path=N+$}return this.href=this.format(),this},i.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||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[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 p=r.pathname||"",m=r.search||"";r.path=p+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=w||b||r.host&&e.pathname,_=v,E=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.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),v=v&&(""===d[0]||""===E[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,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=e.search,r.query=e.query;else if(null!=e.search)return k&&(r.host=E.shift(),r.hostname=r.host,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=E.slice(-1)[0],x=(r.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,A=0,O=E.length;O>=0;O--)"."===(S=E[O])?E.splice(O,1):".."===S?(E.splice(O,1),A++):A&&(E.splice(O,1),A--);if(!v&&!_)for(;A--;A)E.unshift("..");!v||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),x&&"/"!==E.join("/").substr(-1)&&E.push("");var j,B=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(r.hostname=B?"":E.length?E.shift():"",r.host=r.hostname,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),(v=v||r.host&&E.length)&&!B&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===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},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},8859(e,t,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,k=Array.prototype.concat,S=Array.prototype.join,x=Array.prototype.slice,A=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return w.call(i,r,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,r,"$&_")}var I=r(2634),L=I.custom,M=V(L)?L:null,N={__proto__:null,double:'"',single:"'"},P={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,i=N[n];return i+e+i}function z(e){return w.call(String(e),/"/g,""")}function q(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function W(e){return"[object Array]"===H(e)&&q(e)}function $(e){return"[object RegExp]"===H(e)&&q(e)}function V(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!B)return!1;try{return B.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u=n||{};if(G(u,"quoteStyle")&&!G(N,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!G(u,"customInspect")||u.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return v?F(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return v?F(t,A):A}var j=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=j&&j>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var L,P=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function Z(t,r,n){if(r&&(s=x.call(s)).push(r),n){var o={depth:u.depth};return G(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!$(t)){var J=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,Z);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ne.length>0?" { "+S.call(ne,", ")+" }":"")}if(V(t)){var ie=R?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(t);return"object"!=typeof t||R?ie:X(ie)}if((L=t)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var oe="<"+_.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)oe+=" "+ae[se].name+"="+U(z(ae[se].value),"double",u);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+_.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ue=re(t,Z);return P&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ue)?"["+te(ue,P)+"]":"[ "+S.call(ue,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&q(e)}(t)){var ce=re(t,Z);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ce,", ")+" }":"{ ["+String(t)+"] "+S.call(k.call("[cause]: "+Z(t.cause),ce),", ")+" }"}if("object"==typeof t&&g){if(M&&"function"==typeof t[M]&&I)return I(t,{depth:j-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,r){le.push(Z(r,t,!0)+" => "+Z(e,t))}),ee("Map",o.call(t),le,P)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,function(e){fe.push(Z(e,t))}),ee("Set",c.call(t),fe,P)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===H(e)&&q(e)}(t))return X(Z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return X(Z(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&q(e)}(t))return X(p.call(t));if(function(e){return"[object String]"===H(e)&&q(e)}(t))return X(Z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&q(e)}(t)&&!$(t)){var he=re(t,Z),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",ge=!de&&C&&Object(t)===t&&C in t?b.call(H(t),8,-1):pe?"Object":"",ye=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||pe?"["+S.call(k.call([],ge||[],pe||[]),": ")+"] ":"");return 0===he.length?ye+"{}":P?ye+"{"+te(he,P)+"}":ye+"{ "+S.call(he,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Z.call(e,t)}function H(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Y(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+n}var i=P[t.quoteStyle||"single"];return i.lastIndex=0,U(w.call(w.call(e,i,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):S.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var o,a="function"==typeof j?j(e):[];if(R){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)G(e,u)&&(r&&String(Number(u))===u&&u<e.length||R&&o["$"+u]instanceof Symbol||(E.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof j)for(var c=0;c<a.length;c++)T.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},8875(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=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},d=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{f(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 p=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 m in e)p&&"prototype"===m||!i.call(e,m)||h.push(String(m));if(u)for(var b=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}}(e),w=0;w<l.length;++w)b&&"constructor"===l[w]||!i.call(e,l[w])||h.push(l[w]);return h}}e.exports=n},8968(e){"use strict";e.exports=Math.floor},9032(e,t,r){"use strict";var n=r(7244),i=r(8184),o=r(5767),a=r(5680);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=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 m(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function w(e){return"[object WeakMap]"===l(e)}function v(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(k.working?k(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)||S(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)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},w.working="undefined"!=typeof WeakMap&&w(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(w.working?w(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(e){return v(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function O(e){return void 0!==x&&(void 0===A.working&&(A.working=A(new x)),A.working?A(e):e instanceof x)}function j(e){return y(e,f)}function B(e){return y(e,h)}function R(e){return y(e,d)}function C(e){return u&&y(e,p)}function T(e){return c&&y(e,g)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=j,t.isStringObject=B,t.isBooleanObject=R,t.isBigIntObject=C,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return j(e)||B(e)||R(e)||C(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9043(e,t,r){var n=r(5606),i=r(7007).EventEmitter,o=r(537).inherits,a=r(3493),s=r(3364),u=r(6841),c=r(7805).WriteError,l=r(7805).ReadError,f=r(7805).NotFoundError,h=r(7805).OpenError,d=r(7805).EncodingError,p=r(7805).InitializationError,g=r(8531),y=r(1068),m=r(2350),b=r(3324),w=m.getOptions,v=m.defaultOptions,_=m.getLevelDOWN,E=m.dispatchError;function k(e,t){return"function"==typeof e?e:t}function S(e,t,r){if(!(this instanceof S))return new S(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 p("Must provide a location for the database"),r)return n.nextTick(function(){r(o)});throw o}t=w(this,t),this.options=a(v,t),this._status="new",s(this,"location",e,"e"),this.open(r)}function x(e){return function(t,r){_()[e](t,r||function(){})}}o(S,i),S.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||_(),void(r=t(this.location)).open(this.options,function(t){if(t)return E(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")}))},S.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)})}},S.prototype.isOpen=function(){return"open"==this._status},S.prototype._isOpening=function(){return"opening"==this._status},S.prototype.isClosed=function(){return/^clos/.test(this._status)},S.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=k(t,r))?E(this,new l("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=m.getOptions(this,t),n=m.encodeKey(e,t),t.asBuffer=m.isValueAsBuffer(t),void this.db.get(n,t,function(n,o){if(n)return n=/notfound/i.test(n)?new f("Key not found in database ["+e+"]",n):new l(n),E(i,n,r);if(r){try{o=m.decodeValue(o,t)}catch(e){return r(new d(e))}r(null,o)}})):E(this,new l("Database is not open"),r)},S.prototype.put=function(e,t,r,n){var i,o,a=this;return n=k(r,n),null==e||null==t?E(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=w(this,r),i=m.encodeKey(e,r),o=m.encodeValue(t,r),void this.db.put(i,o,r,function(r){if(r)return E(a,new c(r),n);a.emit("put",e,t),n&&n()})):E(this,new c("Database is not open"),n)},S.prototype.del=function(e,t,r){var n,i=this;return r=k(t,r),null==e?E(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=w(this,t),n=m.encodeKey(e,t),void this.db.del(n,t,function(t){if(t)return E(i,new c(t),r);i.emit("del",e),r&&r()})):E(this,new c("Database is not open"),r)},S.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=k(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=w(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:m.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=m.encodeValue(e.value,t,e)),r):e}),void this.db.batch(o,t,function(t){if(t)return E(a,new c(t),r);a.emit("batch",e),r&&r()})):E(this,new c("Database is not open"),r):E(this,new c("batch() requires an array argument"),r)):new b(this)},S.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?E(this,new l("approximateSize() requires start, end and callback arguments"),r):(n=m.encodeKey(e,this.options),i=m.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,function(e,t){if(e)return E(o,new h(e),r);r&&r(null,t)}):E(this,new c("Database is not open"),r))},S.prototype.readStream=S.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,function(e){return t.db.iterator(e)})},S.prototype.keyStream=S.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},S.prototype.valueStream=S.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},S.prototype.writeStream=S.prototype.createWriteStream=function(e){return new y(a(e),this)},S.prototype.toString=function(){return"LevelUP"},e.exports=S,e.exports.copy=m.copy,e.exports.destroy=x("destroy"),e.exports.repair=x("repair")},9092(e,t,r){"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9133(e,t,r){"use strict";var n=r(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},9209(e,t,r){"use strict";var n=r(6578),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}},9211(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))}},9234(e,t,r){var n=r(8287).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.I=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}},9278(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9290(e){"use strict";e.exports=RangeError},9300(){},9353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,i.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(o=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},9383(e){"use strict";e.exports=Error},9394(e,t,r){"use strict";var n=r(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},9435(e){"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')},9538(e){"use strict";e.exports=ReferenceError},9597(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,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,r);var a,s,u,c=(s=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(u){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=c.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i)),o.code=e,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);u[e]=a}function l(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,f;if(void 0===a&&(a=r(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===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-9,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(l(t,"type"));else{var h=("number"!=typeof f&&(f=0),f+1>(c=e).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(l(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(537));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(4148)),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},9600(e){"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612(e){"use strict";e.exports=Object},9655(e,t,r){var n;e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,u=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(f[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(l,".")).split("."),t).join(".")}function m(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 b(e){return g(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){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=s)e=h(e/35);return h(n+36*e/(e+38))}function E(e){var t,r,n,i,o,u,c,l,f,d,g=[],y=e.length,m=0,v=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=m,u=1,c=s;i>=y&&p("invalid-input"),((l=w(e.charCodeAt(i++)))>=s||l>h((a-m)/u))&&p("overflow"),m+=l*u,!(l<(f=c<=E?1:c>=E+26?26:c-E));c+=s)u>h(a/(d=s-f))&&p("overflow"),u*=d;E=_(m-o,t=g.length+1,0==o),h(m/t)>a-v&&p("overflow"),v+=h(m/t),m%=t,g.splice(m++,0,v)}return b(g)}function k(e){var t,r,n,i,o,u,c,l,f,g,y,b,w,E,k,S=[];for(b=(e=m(e)).length,t=128,r=0,o=72,u=0;u<b;++u)(y=e[u])<128&&S.push(d(y));for(n=i=S.length,i&&S.push("-");n<b;){for(c=a,u=0;u<b;++u)(y=e[u])>=t&&y<c&&(c=y);for(c-t>h((a-r)/(w=n+1))&&p("overflow"),r+=(c-t)*w,t=c,u=0;u<b;++u)if((y=e[u])<t&&++r>a&&p("overflow"),y==t){for(l=r,f=s;!(l<(g=f<=o?1:f>=o+26?26:f-o));f+=s)k=l-g,E=s-g,S.push(d(v(g+k%E,0))),l=h(k/E);S.push(d(v(l,0))),o=_(r,w,n==i),r=0,++n}++r,++t}return S.join("")}o={version:"1.4.1",ucs2:{decode:m,encode:b},decode:E,encode:k,toASCII:function(e){return y(e,function(e){return c.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?E(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},9656(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 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,u=Math.abs,c=Math.floor,l=Math.log,f=Math.min,h=Math.pow,d=Math.round;function p(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,t){var r=32-t;return e<<r>>r}function m(e,t){var r=32-t;return e<<r>>>r}function b(e){return[255&e]}function w(e){return y(e[0],8)}function v(e){return[255&e]}function _(e){return m(e[0],8)}function E(e){return[(e=d(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function S(e){return y(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function A(e){return m(e[0]<<8|e[1],16)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function j(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function B(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e,t,r){var n,i,o,a,d,p,g,y=(1<<t-1)-1;function m(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=f(c(l(e)/s),1023),(o=m(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=m(e/h(2,1-y-r)))),d=[],a=r;a;a-=1)d.push(o%2?1:0),o=c(o/2);for(a=t;a;a-=1)d.push(i%2?1:0),i=c(i/2);for(d.push(n?1:0),d.reverse(),p=d.join(""),g=[];p.length;)g.push(parseInt(p.substring(0,8),2)),p=p.substring(8);return g}function T(e,t,r){var n,i,o,a,s,u,c,l,f=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),a=f.join(""),s=(1<<t-1)-1,u=parseInt(a.substring(0,1),2)?-1:1,c=parseInt(a.substring(1,1+t),2),l=parseInt(a.substring(1+t),2),c===(1<<t)-1?0!==l?NaN:u*(1/0):c>0?u*h(2,c-s)*(1+l/h(2,r)):0!==l?u*h(2,-(s-1))*(l/h(2,r)):u<0?-0:0}function D(e){return T(e,11,52)}function F(e){return C(e,11,52)}function I(e){return T(e,8,23)}function L(e){return C(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;p(this)};t.Az=t.Az||e;var r=function(){};function n(t,n,s){var u;return u=function(t,r,n){var o,s,c,l;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===u)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,o._getter(c));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(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=s[c],this._setter(c,Number(l));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=u,p(this),function(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})}}(this)},u.prototype=new r,u.prototype.BYTES_PER_ELEMENT=t,u.prototype._pack=n,u.prototype._unpack=s,u.BYTES_PER_ELEMENT=t,u.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)},u.prototype.get=u.prototype._getter,u.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]},u.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,u,c,l,f,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(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,u=r.byteOffset;s<f;s+=1,u+=1)h[s]=r.buffer._bytes[u];for(s=0,c=l;s<f;s+=1,c+=1)this.buffer._bytes[c]=h[s]}else for(s=0,u=r.byteOffset,c=l;s<f;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))}},u.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)},u}var s=n(1,b,w),u=n(1,v,_),c=n(1,E,_),l=n(2,k,S),f=n(2,x,A),h=n(4,O,j),d=n(4,B,R),g=n(4,L,I),y=n(8,F,D);t.fo=t.fo||s,t.SE=t.SE||u,t.ER=t.ER||c,t.ss=t.ss||l,t.hR=t.hR||f,t.GM=t.GM||h,t.bt=t.bt||d,t.l6=t.l6||g,t.aQ=t.aQ||y}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.hR([4660]),18===e(new t.SE(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(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");p(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.SE(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.SE(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]),l=new t.SE(c.buffer),f=[];for(u=0;u<r.BYTES_PER_ELEMENT;u+=1)f.push(e(l,u));Boolean(s)===Boolean(n)&&f.reverse(),new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},9661(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)}},9675(e){"use strict";e.exports=TypeError},9681(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9721(e,t,r){"use strict";var n=r(6556),i=r(4035),o=n("RegExp.prototype.exec"),a=r(9675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},9723(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()},9731(e,t,r){e.exports=Object.keys||r(7274)},9805(e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},9816(e,t,r){e.exports=a;var n=r(5240),i=r(5622);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(6698),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}},9838(){},9957(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);e.exports=o.call(n,i)}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e="An attempt was made to open a database using a lower version than the existing version.",t=(e,t)=>{Object.defineProperty(e,"code",{value:t,writable:!1,enumerable:!0,configurable:!1})};class r extends DOMException{constructor(e="A request was aborted, for example through a call to IDBTransaction.abort."){super(e,"AbortError")}}class n extends DOMException{constructor(e="A mutation operation in the transaction failed because a constraint was not satisfied. For example, an object such as an object store or index already exists and a request attempted to create a new one."){super(e,"ConstraintError")}}DOMException;class i extends DOMException{constructor(e="Data provided to an operation does not meet requirements."){super(e,"DataError"),t(this,0)}}class o extends DOMException{constructor(e="An invalid operation was performed on an object. For example transaction creation attempt was made, but an empty scope was provided."){super(e,"InvalidAccessError")}}class a extends DOMException{constructor(e="An operation was called on an object on which it is not allowed or at a time when it is not allowed. Also occurs if a request is made on a source object that has been deleted or removed. Use TransactionInactiveError or ReadOnlyError when possible, as they are more specific variations of InvalidStateError."){super(e,"InvalidStateError"),t(this,11)}}class s extends DOMException{constructor(e="The operation failed because the requested database object could not be found. For example, an object store did not exist but was being opened."){super(e,"NotFoundError")}}class u extends DOMException{constructor(e='The mutating operation was attempted in a "readonly" transaction.'){super(e,"ReadOnlyError")}}class c extends DOMException{constructor(r=e){super(r,"SyntaxError"),t(this,12)}}class l extends DOMException{constructor(e="A request was placed against a transaction which is currently not active, or which is finished."){super(e,"TransactionInactiveError"),t(this,0)}}class f extends DOMException{constructor(t=e){super(t,"VersionError")}}function h(e){return"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer}const d=Symbol("INVALID_TYPE"),p=Symbol("INVALID_VALUE"),g=(e,t)=>{if("number"==typeof e)return isNaN(e)?p:e;if("[object Date]"===Object.prototype.toString.call(e)){const t=e.valueOf();return isNaN(t)?p:new Date(t)}if("string"==typeof e)return e;if(e instanceof ArrayBuffer||h(e)||"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e)){if("detached"in e?e.detached:0===e.byteLength)return p;let t,r=0,n=0;return e instanceof ArrayBuffer||h(e)?(t=e,n=e.byteLength):(t=e.buffer,r=e.byteOffset,n=e.byteLength),t.slice(r,r+n)}if(Array.isArray(e)){if(void 0===t)t=new Set;else if(t.has(e))return p;t.add(e);let r=!1;const n=Array.from({length:e.length},(n,i)=>{if(r)return;if(!Object.hasOwn(e,i))return void(r=!0);const o=e[i],a=g(o,t);if(a!==p&&a!==d)return a;r=!0});return r?p:n}return d},y=g,m=(e,t)=>{const r=y(e,t);if(r===p||r===d)throw new i;return r},b=e=>{if("number"==typeof e)return"Number";if("[object Date]"===Object.prototype.toString.call(e))return"Date";if(Array.isArray(e))return"Array";if("string"==typeof e)return"String";if(e instanceof ArrayBuffer)return"Binary";throw new i},w=(e,t)=>{if(void 0===t)throw new TypeError;e=m(e),t=m(t);const r=b(e),n=b(t);if(r!==n)return"Array"===r?1:("Binary"!==r||"String"!==n&&"Date"!==n&&"Number"!==n)&&("String"!==r||"Date"!==n&&"Number"!==n)?"Date"===r&&"Number"===n?1:-1:1;if("Binary"===r&&(e=new Uint8Array(e),t=new Uint8Array(t)),"Array"===r||"Binary"===r){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++){const r=w(e[n],t[n]);if(0!==r)return r}return e.length>t.length?1:e.length<t.length?-1:0}if("Date"===r){if(e.getTime()===t.getTime())return 0}else if(e===t)return 0;return e>t?1:-1},v=w;class _{static only(e){if(0===arguments.length)throw new TypeError;return e=m(e),new _(e,e,!1,!1)}static lowerBound(e,t=!1){if(0===arguments.length)throw new TypeError;return e=m(e),new _(e,void 0,t,!0)}static upperBound(e,t=!1){if(0===arguments.length)throw new TypeError;return e=m(e),new _(void 0,e,!0,t)}static bound(e,t,r=!1,n=!1){if(arguments.length<2)throw new TypeError;const o=v(e,t);if(1===o||0===o&&(r||n))throw new i;return e=m(e),t=m(t),new _(e,t,r,n)}constructor(e,t,r,n){this.lower=e,this.upper=t,this.lowerOpen=r,this.upperOpen=n}includes(e){if(0===arguments.length)throw new TypeError;if(e=m(e),void 0!==this.lower){const t=v(this.lower,e);if(1===t||0===t&&this.lowerOpen)return!1}if(void 0!==this.upper){const t=v(this.upper,e);if(-1===t||0===t&&this.upperOpen)return!1}return!0}get[Symbol.toStringTag](){return"IDBKeyRange"}}const E=_,k=(e,t)=>{if(Array.isArray(e)){const r=[];for(let n of e){null!=n&&"string"!=typeof n&&n.toString&&(n=n.toString());const e=k(n,t).key;r.push(m(e))}return{type:"found",key:r}}if(""===e)return{type:"found",key:t};let r=e,n=t;for(;null!==r;){let e;const t=r.indexOf(".");if(t>=0?(e=r.slice(0,t),r=r.slice(t+1)):(e=r,r=null),!("length"===e&&("string"==typeof n||Array.isArray(n))||("size"===e||"type"===e)&&"undefined"!=typeof Blob&&n instanceof Blob||("name"===e||"lastModified"===e)&&"undefined"!=typeof File&&n instanceof File||"object"==typeof n&&null!==n&&Object.hasOwn(n,e)))return{type:"notFound"};n=n[e]}return{type:"found",key:n}},S=k;function x(e,t){if("active"!==t._state)throw new Error("Assert: transaction state is active");t._state="inactive";try{return structuredClone(e)}finally{t._state="active"}}const A=e=>e.source instanceof oe?e.source:e.source.objectStore,O=(e,t,r)=>{let n=void 0!==e?e.lower:void 0,i=void 0!==e?e.upper:void 0;for(const e of t)void 0!==e&&(void 0!==n&&1!==v(n,e)||(n=e));for(const e of r)void 0!==e&&(void 0!==i&&-1!==v(i,e)||(i=e));return void 0!==n&&void 0!==i?E.bound(n,i):void 0!==n?E.lowerBound(n):void 0!==i?E.upperBound(i):void 0};class j{_gotValue=!1;_position=void 0;_objectStorePosition=void 0;_keyOnly=!1;_key=void 0;_primaryKey=void 0;constructor(e,t,r="next",n,i=!1){this._range=t,this._source=e,this._direction=r,this._request=n,this._keyOnly=i}get source(){return this._source}set source(e){}get request(){return this._request}set request(e){}get direction(){return this._direction}set direction(e){}get key(){return this._key}set key(e){}get primaryKey(){return this._primaryKey}set primaryKey(e){}_iterate(e,t){const r=this.source instanceof oe,n=this.source instanceof oe?this.source._rawObjectStore.records:this.source._rawIndex.records;let i,o;if("next"===this.direction){const o=O(this._range,[e,this._position],[]);for(const a of n.values(o)){const n=void 0!==e?v(a.key,e):void 0,o=void 0!==this._position?v(a.key,this._position):void 0;if(void 0===e||-1!==n){if(void 0!==t){if(-1===n)continue;const e=v(a.value,t);if(0===n&&-1===e)continue}if(void 0===this._position||!r||1===o){if(void 0!==this._position&&!r){if(-1===o)continue;if(0===o&&1!==v(a.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(a.key)){i=a;break}}}}}else if("nextunique"===this.direction){const t=O(this._range,[e,this._position],[]);for(const r of n.values(t))if((void 0===e||-1!==v(r.key,e))&&(void 0===this._position||1===v(r.key,this._position))&&(void 0===this._range||this._range.includes(r.key))){i=r;break}}else if("prev"===this.direction){const o=O(this._range,[],[e,this._position]);for(const a of n.values(o,"prev")){const n=void 0!==e?v(a.key,e):void 0,o=void 0!==this._position?v(a.key,this._position):void 0;if(void 0===e||1!==n){if(void 0!==t){if(1===n)continue;const e=v(a.value,t);if(0===n&&1===e)continue}if(void 0===this._position||!r||-1===o){if(void 0!==this._position&&!r){if(1===o)continue;if(0===o&&-1!==v(a.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(a.key)){i=a;break}}}}}else if("prevunique"===this.direction){let t;const r=O(this._range,[],[e,this._position]);for(const i of n.values(r,"prev"))if((void 0===e||1!==v(i.key,e))&&(void 0===this._position||-1===v(i.key,this._position))&&(void 0===this._range||this._range.includes(i.key))){t=i;break}t&&(i=n.get(t.key))}if(i){if(this._position=i.key,r||(this._objectStorePosition=i.value),this._key=i.key,r)this._primaryKey=structuredClone(i.key),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=structuredClone(i.value));else if(this._primaryKey=structuredClone(i.value),!this._keyOnly&&"[object IDBCursorWithValue]"===this.toString()){if(this.source instanceof oe)throw new Error("This should never happen");const e=this.source.objectStore._rawObjectStore.getValue(i.value);this.value=structuredClone(e)}this._gotValue=!0,o=this}else this._key=void 0,r||(this._objectStorePosition=void 0),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=void 0),o=null;return o}update(e){if(void 0===e)throw new TypeError;const t=A(this),r=Object.hasOwn(this.source,"_rawIndex")?this.primaryKey:this._position,n=t.transaction;if("active"!==n._state)throw new l;if("readonly"===n.mode)throw new u;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue||!Object.hasOwn(this,"value"))throw new a;const o=x(e,n);if(null!==t.keyPath){let e;try{e=S(t.keyPath,o).key}catch(e){}if(0!==v(e,r))throw new i}const s={key:r,value:o};return n._execRequestAsync({operation:t._rawObjectStore.storeRecord.bind(t._rawObjectStore,s,!1,n._rollbackLog),source:this})}advance(e){if(!Number.isInteger(e)||e<=0)throw new TypeError;const t=A(this),r=t.transaction;if("active"!==r._state)throw new l;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue)throw new a;this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:()=>{let t;for(let r=0;r<e&&(t=this._iterate(),t);r++);return t},request:this._request,source:this.source}),this._gotValue=!1}continue(e){const t=A(this),r=t.transaction;if("active"!==r._state)throw new l;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue)throw new a;if(void 0!==e){e=m(e);const t=v(e,this._position);if(t<=0&&("next"===this.direction||"nextunique"===this.direction)||t>=0&&("prev"===this.direction||"prevunique"===this.direction))throw new i}this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:this._iterate.bind(this,e),request:this._request,source:this.source}),this._gotValue=!1}continuePrimaryKey(e,t){const r=A(this),n=r.transaction;if("active"!==n._state)throw new l;if(r._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(this.source instanceof oe||"next"!==this.direction&&"prev"!==this.direction)throw new o;if(!this._gotValue)throw new a;if(void 0===e||void 0===t)throw new i;e=m(e);const s=v(e,this._position);if(-1===s&&"next"===this.direction||1===s&&"prev"===this.direction)throw new i;const u=v(t,this._objectStorePosition);if(0===s&&(u<=0&&"next"===this.direction||u>=0&&"prev"===this.direction))throw new i;this._request&&(this._request.readyState="pending"),n._execRequestAsync({operation:this._iterate.bind(this,e,t),request:this._request,source:this.source}),this._gotValue=!1}delete(){const e=A(this),t=Object.hasOwn(this.source,"_rawIndex")?this.primaryKey:this._position,r=e.transaction;if("active"!==r._state)throw new l;if("readonly"===r.mode)throw new u;if(e._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue||!Object.hasOwn(this,"value"))throw new a;return r._execRequestAsync({operation:e._rawObjectStore.deleteRecord.bind(e._rawObjectStore,t,r._rollbackLog),source:this})}get[Symbol.toStringTag](){return"IDBCursor"}}const B=j;class R extends B{value=void 0;constructor(e,t,r,n){super(e,t,r,n)}get[Symbol.toStringTag](){return"IDBCursorWithValue"}}const C=R,T=(e,t)=>e.immediatePropagationStopped||e.eventPhase===e.CAPTURING_PHASE&&!1===t.capture||e.eventPhase===e.BUBBLING_PHASE&&!0===t.capture,D=(e,t)=>{e.currentTarget=t;const r=[],n=t=>{try{("function"==typeof t?t:t.handleEvent).call(e.currentTarget,e)}catch(e){r.push(e)}};for(const r of t.listeners.slice())e.type!==r.type||T(e,r)||n(r.callback);const i={abort:"onabort",blocked:"onblocked",close:"onclose",complete:"oncomplete",error:"onerror",success:"onsuccess",upgradeneeded:"onupgradeneeded",versionchange:"onversionchange"}[e.type];if(void 0===i)throw new Error(`Unknown event type: "${e.type}"`);const o=e.currentTarget[i];if(o){const t={callback:o,capture:!1,type:e.type};T(e,t)||n(t.callback)}if(r.length)throw new AggregateError(r)},F=class{listeners=[];addEventListener(e,t,r){const n=!!("object"==typeof r&&r?r.capture:r);this.listeners.push({callback:t,capture:n,type:e})}removeEventListener(e,t,r){const n=!!("object"==typeof r&&r?r.capture:r),i=this.listeners.findIndex(r=>r.type===e&&r.callback===t&&r.capture===n);this.listeners.splice(i,1)}dispatchEvent(e){if(e.dispatched||!e.initialized)throw new a("The object is in an invalid state.");e.isTrusted=!1,e.dispatched=!0,e.target=this,e.eventPhase=e.CAPTURING_PHASE;for(const t of e.eventPath)e.propagationStopped||D(e,t);if(e.eventPhase=e.AT_TARGET,e.propagationStopped||D(e,e.target),e.bubbles){e.eventPath.reverse(),e.eventPhase=e.BUBBLING_PHASE;for(const t of e.eventPath)e.propagationStopped||D(e,t)}return e.dispatched=!1,e.eventPhase=e.NONE,e.currentTarget=null,!e.canceled}};class I extends F{_result=null;_error=null;source=null;transaction=null;readyState="pending";onsuccess=null;onerror=null;get error(){if("pending"===this.readyState)throw new a;return this._error}set error(e){this._error=e}get result(){if("pending"===this.readyState)throw new a;return this._result}set result(e){this._result=e}get[Symbol.toStringTag](){return"IDBRequest"}}const L=I;class M{constructor(...e){this._values=e;for(let t=0;t<e.length;t++)this[t]=e[t]}contains(e){return this._values.includes(e)}item(e){return e<0||e>=this._values.length?null:this._values[e]}get length(){return this._values.length}[Symbol.iterator](){return this._values[Symbol.iterator]()}_push(...e){for(let t=0;t<e.length;t++)this[this._values.length+t]=e[t];this._values.push(...e)}_sort(...e){this._values.sort(...e);for(let e=0;e<this._values.length;e++)this[e]=this._values[e];return this}}const N=M,P=(e,t=!1)=>{if(e instanceof E)return e;if(null==e){if(t)throw new i;return new E(void 0,void 0,!1,!1)}const r=m(e);return E.only(r)},U=e=>"object"==typeof e&&e?e+"":e;function z(e){return Array.isArray(e)?e.map(U):U(e)}const q=(e,t)=>{const r="unsigned long"===t?4294967295:9007199254740991;if(isNaN(e)||e<0||e>r)throw new TypeError;if(e>=0)return Math.floor(e)},W=(e,t,r)=>{let n,i;if(null==e||((o=e)instanceof E||y(o)!==d))n=e,r>1&&void 0!==t&&(t=q(t,"unsigned long"));else{const r=e;void 0!==r.query&&(n=r.query),void 0!==r.count&&(t=q(r.count,"unsigned long")),void 0!==r.direction&&(i=r.direction)}var o;return{query:n,count:t,direction:i}},$=e=>{if(e._rawIndex.deleted||e.objectStore._rawObjectStore.deleted)throw new a;if("active"!==e.objectStore.transaction._state)throw new l};class V{constructor(e,t){this._rawIndex=t,this._name=t.name,this.objectStore=e,this.keyPath=z(t.keyPath),this.multiEntry=t.multiEntry,this.unique=t.unique}get name(){return this._name}set name(e){const t=this.objectStore.transaction;if(!t.db._runningVersionchangeTransaction)throw"active"===t._state?new a:new l;if("active"!==t._state)throw new l;if(this._rawIndex.deleted||this.objectStore._rawObjectStore.deleted)throw new a;if((e=String(e))===this._name)return;if(this.objectStore.indexNames.contains(e))throw new n;const r=this._name,i=[...this.objectStore.indexNames];this._name=e,this._rawIndex.name=e,this.objectStore._indexesCache.delete(r),this.objectStore._indexesCache.set(e,this),this.objectStore._rawObjectStore.rawIndexes.delete(r),this.objectStore._rawObjectStore.rawIndexes.set(e,this._rawIndex),this.objectStore.indexNames=new N(...Array.from(this.objectStore._rawObjectStore.rawIndexes.keys()).filter(e=>{const t=this.objectStore._rawObjectStore.rawIndexes.get(e);return t&&!t.deleted}).sort()),this.objectStore.transaction._createdIndexes.has(this._rawIndex)||t._rollbackLog.push(()=>{this._name=r,this._rawIndex.name=r,this.objectStore._indexesCache.delete(e),this.objectStore._indexesCache.set(r,this),this.objectStore._rawObjectStore.rawIndexes.delete(e),this.objectStore._rawObjectStore.rawIndexes.set(r,this._rawIndex),this.objectStore.indexNames=new N(...i)})}openCursor(e,t){$(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.objectStore.transaction;const n=new C(this,e,t,r);return this.objectStore.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}openKeyCursor(e,t){$(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.objectStore.transaction;const n=new B(this,e,t,r,!0);return this.objectStore.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}get(e){return $(this),e instanceof E||(e=m(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getValue.bind(this._rawIndex,e),source:this})}getAll(e,t){const r=W(e,t,arguments.length);$(this);const n=P(r.query);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllValues.bind(this._rawIndex,n,r.count,r.direction),source:this})}getKey(e){return $(this),e instanceof E||(e=m(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getKey.bind(this._rawIndex,e),source:this})}getAllKeys(e,t){const r=W(e,t,arguments.length);$(this);const n=P(r.query);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllKeys.bind(this._rawIndex,n,r.count,r.direction),source:this})}getAllRecords(e){let t,r,n;void 0!==e&&(void 0!==e.query&&(t=e.query),void 0!==e.count&&(r=q(e.count,"unsigned long")),void 0!==e.direction&&(n=e.direction)),$(this);const i=P(t);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllRecords.bind(this._rawIndex,i,r,n),source:this})}count(e){return $(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e))),this.objectStore.transaction._execRequestAsync({operation:()=>this._rawIndex.count(e),source:this})}get[Symbol.toStringTag](){return"IDBIndex"}}const Z=V;class G{constructor(e,t,r){this._key=e,this._primaryKey=t,this._value=r}get key(){return this._key}set key(e){}get primaryKey(){return this._primaryKey}set primaryKey(e){}get value(){return this._value}set value(e){}get[Symbol.toStringTag](){return"IDBRecord"}}const H=G,K=2/3,Y=new E(void 0,void 0,!1,!1);class J{_numTombstones=0;_numNodes=0;constructor(e){this._keysAreUnique=!!e}size(){return this._numNodes-this._numTombstones}get(e){return this._getByComparator(this._root,t=>this._compare(e,t))}contains(e){return!!this.get(e)}_compare(e,t){const r=v(e.key,t.key);return 0!==r?r:this._keysAreUnique?0:v(e.value,t.value)}_getByComparator(e,t){let r=e;for(;r;){const e=t(r.record);if(e<0)r=r.left;else{if(!(e>0))return r.record;r=r.right}}}put(e,t=!1){return this._root?this._put(this._root,e,t):(this._root={record:e,left:void 0,right:void 0,parent:void 0,deleted:!1,red:!1},void this._numNodes++)}_put(e,t,r){const i=this._compare(t,e.record);if(i<0){if(e.left)return this._put(e.left,t,r);e.left={record:t,left:void 0,right:void 0,parent:e,deleted:!1,red:!0},this._onNewNodeInserted(e.left)}else if(i>0){if(e.right)return this._put(e.right,t,r);e.right={record:t,left:void 0,right:void 0,parent:e,deleted:!1,red:!0},this._onNewNodeInserted(e.right)}else{if(!e.deleted){if(r)throw new n;{const r=e.record;return e.record=t,r}}e.deleted=!1,e.record=t,this._numTombstones--}}delete(e){if(this._root&&(this._delete(this._root,e),this._numTombstones>this._numNodes*K)){const e=[...this.getAllRecords()];this._root=this._rebuild(e,void 0,!1),this._numNodes=e.length,this._numTombstones=0}}_delete(e,t){if(!e)return;const r=this._compare(t,e.record);r<0?this._delete(e.left,t):r>0?this._delete(e.right,t):e.deleted||(this._numTombstones++,e.deleted=!0)}*getAllRecords(e=!1){yield*this.getRecords(Y,e)}*getRecords(e,t=!1){yield*this._getRecordsForNode(this._root,e,t)}*_getRecordsForNode(e,t,r=!1){e&&(yield*this._findRecords(e,t,r))}*_findRecords(e,t,r=!1){const{lower:n,upper:i,lowerOpen:o,upperOpen:a}=t,{record:{key:s}}=e,u=void 0===n?-1:v(n,s),c=void 0===i?1:v(i,s),l=this._keysAreUnique?u<0:u<=0,f=this._keysAreUnique?c>0:c>=0,h=r?l:f,d=r?"right":"left",p=r?"left":"right",g=o?u<0:u<=0,y=a?c>0:c>=0;(r?f:l)&&e[d]&&(yield*this._findRecords(e[d],t,r)),g&&y&&!e.deleted&&(yield e.record),h&&e[p]&&(yield*this._findRecords(e[p],t,r))}_onNewNodeInserted(e){this._numNodes++,this._rebalanceTree(e)}_rebalanceTree(e){let t=e.parent;do{if(!t.red)return;const r=t.parent;if(!r)return void(t.red=!1);const n=t===r.right,i=n?r.left:r.right;if(!i||!i.red)return e===(n?t.left:t.right)&&(this._rotateSubtree(t,n),e=t,t=n?r.right:r.left),this._rotateSubtree(r,!n),t.red=!1,void(r.red=!0);t.red=!1,i.red=!1,r.red=!0,e=r}while(e.parent&&(t=e.parent))}_rotateSubtree(e,t){const r=e.parent,n=t?e.left:e.right,i=t?n.right:n.left;return e[t?"left":"right"]=i,i&&(i.parent=e),n[t?"right":"left"]=e,n.parent=r,e.parent=n,r?r[e===r.right?"right":"left"]=n:this._root=n,n}_rebuild(e,t,r){const{length:n}=e;if(!n)return;const i=n>>>1,o={record:e[i],left:void 0,right:void 0,parent:t,deleted:!1,red:r},a=this._rebuild(e.slice(0,i),o,!r),s=this._rebuild(e.slice(i+1),o,!r);return o.left=a,o.right=s,o}}const X=class{constructor(e){this.keysAreUnique=e,this.records=new J(this.keysAreUnique)}get(e){const t=e instanceof E?e:E.only(e);return this.records.getRecords(t).next().value}put(e,t=!1){return this.records.put(e,t)}delete(e){const t=e instanceof E?e:E.only(e),r=[...this.records.getRecords(t)];for(const e of r)this.records.delete(e);return r}deleteByValue(e){const t=e instanceof E?e:E.only(e),r=[];for(const e of this.records.getAllRecords())t.includes(e.value)&&(this.records.delete(e),r.push(e));return r}clear(){const e=[...this.records.getAllRecords()];return this.records=new J(this.keysAreUnique),e}values(e,t="next"){const r="prev"===t||"prevunique"===t,n=e?this.records.getRecords(e,r):this.records.getAllRecords(r);return{[Symbol.iterator]:()=>{const e=()=>n.next();if("next"===t||"prev"===t)return{next:e};if("nextunique"===t){let t;return{next:()=>{let r=e();for(;!r.done&&void 0!==t&&0===v(t.key,r.value.key);)r=e();return t=r.value,r}}}let r=e(),i=e();return{next:()=>{for(;!i.done&&0===v(r.value.key,i.value.key);)r=i,i=e();const t=r;return r=i,i=e(),t}}}}}size(){return this.records.size()}},Q=class{deleted=!1;initialized=!1;constructor(e,t,r,n,i){this.rawObjectStore=e,this.name=t,this.keyPath=r,this.multiEntry=n,this.unique=i,this.records=new X(i)}getKey(e){const t=this.records.get(e);return void 0!==t?t.value:void 0}getAllKeys(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.value)),n.length>=t)break;return n}getValue(e){const t=this.records.get(e);return void 0!==t?this.rawObjectStore.getValue(t.value):void 0}getAllValues(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(this.rawObjectStore.getValue(i.value)),n.length>=t)break;return n}getAllRecords(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(new H(structuredClone(i.key),structuredClone(this.rawObjectStore.getKey(i.value)),this.rawObjectStore.getValue(i.value))),n.length>=t)break;return n}storeRecord(e){let t;try{t=S(this.keyPath,e.value).key}catch(e){if("DataError"===e.name)return;throw e}if(this.multiEntry&&Array.isArray(t)){const e=[];for(const r of t)if(e.indexOf(r)<0)try{e.push(m(r))}catch(e){}t=e}else try{m(t)}catch(e){return}if(this.multiEntry&&Array.isArray(t)){if(this.unique)for(const e of t)if(this.records.get(e))throw new n}else if(this.unique&&this.records.get(t))throw new n;if(this.multiEntry&&Array.isArray(t))for(const r of t)this.records.put({key:r,value:e.key});else this.records.put({key:t,value:e.key})}initialize(e){if(this.initialized)throw new Error("Index already initialized");e._execRequestAsync({operation:()=>{try{for(const e of this.rawObjectStore.records.values())this.storeRecord(e);this.initialized=!0}catch(t){e._abort(t.name)}},source:null})}count(e){let t=0;for(const r of this.records.values(e))t+=1;return t}},ee=(e,t)=>{if(null==e||"string"==typeof e||!e.toString||"array"!==t&&Array.isArray(e)||(e=e.toString()),"string"==typeof e){if(""===e&&"string"!==t)return;try{const t=/^(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/;if(e.length>=1&&t.test(e))return}catch(e){throw new c(e.message)}if(e.indexOf(" ")>=0)throw new c("The keypath argument contains an invalid key path (no spaces allowed).")}if(Array.isArray(e)&&e.length>0){if(t)throw new c("The keypath argument contains an invalid key path (nested arrays).");for(const t of e)ee(t,"array")}else{if(!("string"==typeof e&&e.indexOf(".")>=0))throw new c;e=e.split(".");for(const t of e)ee(t,"string")}},te=ee,re=e=>{if(e._rawObjectStore.deleted)throw new a;if("active"!==e.transaction._state)throw new l},ne=(e,t,r)=>{if(re(e),"readonly"===e.transaction.mode)throw new u;if(null!==e.keyPath&&void 0!==r)throw new i;const n=x(t,e.transaction);if(null!==e.keyPath){const t=S(e.keyPath,n);if("found"===t.type)m(t.key);else{if(!e._rawObjectStore.keyGenerator)throw new i;if(!((e,t)=>{if(Array.isArray(e))throw new Error("The key paths used in this section are always strings and never sequences, since it is not possible to create a object store which has a key generator and also has a key path that is a sequence.");const r=e.split(".");if(0===r.length)throw new Error("Assert: identifiers is not empty");r.pop();for(const e of r){if("object"!=typeof t&&!Array.isArray(t))return!1;if(!Object.hasOwn(t,e))return!0;t=t[e]}return"object"==typeof t||Array.isArray(t)})(e.keyPath,n))throw new i}}if(null===e.keyPath&&null===e._rawObjectStore.keyGenerator&&void 0===r)throw new i;return void 0!==r&&(r=m(r)),{key:r,value:n}};class ie{_indexesCache=new Map;constructor(e,t){this._rawObjectStore=t,this._name=t.name,this.keyPath=z(t.keyPath),this.autoIncrement=t.autoIncrement,this.transaction=e,this.indexNames=new N(...Array.from(t.rawIndexes.keys()).sort())}get name(){return this._name}set name(e){const t=this.transaction;if(!t.db._runningVersionchangeTransaction)throw"active"===t._state?new a:new l;if(re(this),(e=String(e))===this._name)return;if(this._rawObjectStore.rawDatabase.rawObjectStores.has(e))throw new n;const r=this._name,i=[...t.db.objectStoreNames];this._name=e,this._rawObjectStore.name=e,this.transaction._objectStoresCache.delete(r),this.transaction._objectStoresCache.set(e,this),this._rawObjectStore.rawDatabase.rawObjectStores.delete(r),this._rawObjectStore.rawDatabase.rawObjectStores.set(e,this._rawObjectStore),t.db.objectStoreNames=new N(...Array.from(this._rawObjectStore.rawDatabase.rawObjectStores.keys()).filter(e=>{const t=this._rawObjectStore.rawDatabase.rawObjectStores.get(e);return t&&!t.deleted}).sort());const o=new Set(t._scope),s=[...t.objectStoreNames];this.transaction._scope.delete(r),t._scope.add(e),t.objectStoreNames=new N(...Array.from(t._scope).sort()),this.transaction._createdObjectStores.has(this._rawObjectStore)||t._rollbackLog.push(()=>{this._name=r,this._rawObjectStore.name=r,this.transaction._objectStoresCache.delete(e),this.transaction._objectStoresCache.set(r,this),this._rawObjectStore.rawDatabase.rawObjectStores.delete(e),this._rawObjectStore.rawDatabase.rawObjectStores.set(r,this._rawObjectStore),t.db.objectStoreNames=new N(...i),t._scope=o,t.objectStoreNames=new N(...s)})}put(e,t){if(0===arguments.length)throw new TypeError;const r=ne(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,r,!1,this.transaction._rollbackLog),source:this})}add(e,t){if(0===arguments.length)throw new TypeError;const r=ne(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,r,!0,this.transaction._rollbackLog),source:this})}delete(e){if(0===arguments.length)throw new TypeError;if(re(this),"readonly"===this.transaction.mode)throw new u;return e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.deleteRecord.bind(this._rawObjectStore,e,this.transaction._rollbackLog),source:this})}get(e){if(0===arguments.length)throw new TypeError;return re(this),e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getValue.bind(this._rawObjectStore,e),source:this})}getAll(e,t){const r=W(e,t,arguments.length);re(this);const n=P(r.query);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllValues.bind(this._rawObjectStore,n,r.count,r.direction),source:this})}getKey(e){if(0===arguments.length)throw new TypeError;return re(this),e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getKey.bind(this._rawObjectStore,e),source:this})}getAllKeys(e,t){const r=W(e,t,arguments.length);re(this);const n=P(r.query);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllKeys.bind(this._rawObjectStore,n,r.count,r.direction),source:this})}getAllRecords(e){let t,r,n;void 0!==e&&(void 0!==e.query&&(t=e.query),void 0!==e.count&&(r=q(e.count,"unsigned long")),void 0!==e.direction&&(n=e.direction)),re(this);const i=P(t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllRecords.bind(this._rawObjectStore,i,r,n),source:this})}clear(){if(re(this),"readonly"===this.transaction.mode)throw new u;return this.transaction._execRequestAsync({operation:this._rawObjectStore.clear.bind(this._rawObjectStore,this.transaction._rollbackLog),source:this})}openCursor(e,t){re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.transaction;const n=new C(this,e,t,r);return this.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}openKeyCursor(e,t){re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.transaction;const n=new B(this,e,t,r,!0);return this.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}createIndex(e,t,r={}){if(arguments.length<2)throw new TypeError;const i=void 0!==r.multiEntry&&r.multiEntry,s=void 0!==r.unique&&r.unique;if("versionchange"!==this.transaction.mode)throw new a;if(re(this),this.indexNames.contains(e))throw new n;if(te(t),Array.isArray(t)&&i)throw new o;const u=[...this.indexNames],c=new Q(this._rawObjectStore,e,t,i,s);return this.indexNames._push(e),this.indexNames._sort(),this.transaction._createdIndexes.add(c),this._rawObjectStore.rawIndexes.set(e,c),c.initialize(this.transaction),this.transaction._rollbackLog.push(()=>{c.deleted=!0,this.indexNames=new N(...u),this._rawObjectStore.rawIndexes.delete(c.name)}),new Z(this,c)}index(e){if(0===arguments.length)throw new TypeError;if(this._rawObjectStore.deleted||"finished"===this.transaction._state)throw new a;const t=this._indexesCache.get(e);if(void 0!==t)return t;const r=this._rawObjectStore.rawIndexes.get(e);if(!this.indexNames.contains(e)||void 0===r)throw new s;const n=new Z(this,r);return this._indexesCache.set(e,n),n}deleteIndex(e){if(0===arguments.length)throw new TypeError;if("versionchange"!==this.transaction.mode)throw new a;re(this);const t=this._rawObjectStore.rawIndexes.get(e);if(void 0===t)throw new s;this.transaction._rollbackLog.push(()=>{t.deleted=!1,this._rawObjectStore.rawIndexes.set(t.name,t),this.indexNames._push(t.name),this.indexNames._sort()}),this.indexNames=new N(...Array.from(this.indexNames).filter(t=>t!==e)),t.deleted=!0,this.transaction._execRequestAsync({operation:()=>{const r=this._rawObjectStore.rawIndexes.get(e);t===r&&this._rawObjectStore.rawIndexes.delete(e)},source:this})}count(e){return re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e))),this.transaction._execRequestAsync({operation:()=>this._rawObjectStore.count(e),source:this})}get[Symbol.toStringTag](){return"IDBObjectStore"}}const oe=ie,ae=class{eventPath=[];NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;propagationStopped=!1;immediatePropagationStopped=!1;canceled=!1;initialized=!0;dispatched=!1;target=null;currentTarget=null;eventPhase=0;defaultPrevented=!1;isTrusted=!1;timeStamp=Date.now();constructor(e,t={}){this.type=e,this.bubbles=void 0!==t.bubbles&&t.bubbles,this.cancelable=void 0!==t.cancelable&&t.cancelable}preventDefault(){this.cancelable&&(this.canceled=!0)}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.propagationStopped=!0,this.immediatePropagationStopped=!0}},se="undefined"!=typeof scheduler&&(e=>scheduler.postTask(e)),ue=e=>setTimeout(e,0),ce=e=>{(globalThis.setImmediate||function(){if("undefined"!=typeof navigator&&/jsdom/.test(navigator.userAgent))return new(0,Node.constructor)("return setImmediate")()}()||se||ue)(e)},le=["error","abort","complete"];class fe extends F{_state="active";_started=!1;_rollbackLog=[];_objectStoresCache=new Map;_openRequest=null;error=null;onabort=null;oncomplete=null;onerror=null;_prioritizedListeners=new Map;_requests=[];_createdIndexes=new Set;_createdObjectStores=new Set;constructor(e,t,r,n){super(),this._scope=new Set(e),this.mode=t,this.durability=r,this.db=n,this.objectStoreNames=new N(...Array.from(this._scope).sort());for(const e of le)this.addEventListener(e,()=>{this._prioritizedListeners.get(e)?.()})}_abort(e){for(const e of this._rollbackLog.reverse())e();if(null!==e){const t=new DOMException(void 0,e);this.error=t}for(const{request:e}of this._requests)"done"!==e.readyState&&(e.readyState="done",e.source&&ce(()=>{e.result=void 0,e.error=new r;const t=new ae("error",{bubbles:!0,cancelable:!0});t.eventPath=[this.db,this];try{e.dispatchEvent(t)}catch(e){"active"===this._state&&this._abort("AbortError")}}));ce(()=>{const e="versionchange"===this.mode;e&&(this.db._rawDatabase.connections=this.db._rawDatabase.connections.filter(e=>!e._rawDatabase.transactions.includes(this)));const t=new ae("abort",{bubbles:!0,cancelable:!1});if(t.eventPath=[this.db],this.dispatchEvent(t),e){const e=this._openRequest;e.transaction=null,e.result=void 0}}),this._state="finished"}abort(){if("committing"===this._state||"finished"===this._state)throw new a;this._state="active",this._abort(null)}objectStore(e){if("active"!==this._state)throw new a;const t=this._objectStoresCache.get(e);if(void 0!==t)return t;const r=this.db._rawDatabase.rawObjectStores.get(e);if(!this._scope.has(e)||void 0===r)throw new s;const n=new oe(this,r);return this._objectStoresCache.set(e,n),n}_execRequestAsync(e){const t=e.source,r=e.operation;let n=Object.hasOwn(e,"request")?e.request:null;if("active"!==this._state)throw new l;return n||(t?(n=new L,n.source=t,n.transaction=t.transaction):n=new L),this._requests.push({operation:r,request:n}),n}_start(){let e,t;for(this._started=!0;this._requests.length>0;){const r=this._requests.shift();if(r&&"done"!==r.request.readyState){t=r.request,e=r.operation;break}}if(t&&e){if(t.source){let r,n;try{const r=e();t.readyState="done",t.result=r,t.error=void 0,"inactive"===this._state&&(this._state="active"),n=new ae("success",{bubbles:!1,cancelable:!1})}catch(e){t.readyState="done",t.result=void 0,t.error=e,"inactive"===this._state&&(this._state="active"),n=new ae("error",{bubbles:!0,cancelable:!0}),r=this._abort.bind(this,e.name)}try{n.eventPath=[this.db,this],t.dispatchEvent(n)}catch(e){"active"===this._state&&(this._abort("AbortError"),r=void 0)}n.canceled||r&&r()}else e();ce(this._start.bind(this))}else if("finished"!==this._state&&(this._state="finished",!this.error)){const e=new ae("complete");this.dispatchEvent(e)}}commit(){if("active"!==this._state)throw new a;this._state="committing"}get[Symbol.toStringTag](){return"IDBTransaction"}}const he=fe,de=9007199254740992,pe=class{num=0;next(){if(this.num>=de)throw new n;return this.num+=1,this.num}setIfLarger(e){const t=Math.floor(Math.min(e,de))-1;t>=this.num&&(this.num=t+1)}},ge=class{deleted=!1;records=new X(!0);rawIndexes=new Map;constructor(e,t,r,n){this.rawDatabase=e,this.keyGenerator=!0===n?new pe:null,this.deleted=!1,this.name=t,this.keyPath=r,this.autoIncrement=n}getKey(e){const t=this.records.get(e);return void 0!==t?structuredClone(t.key):void 0}getAllKeys(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.key)),n.length>=t)break;return n}getValue(e){const t=this.records.get(e);return void 0!==t?structuredClone(t.value):void 0}getAllValues(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.value)),n.length>=t)break;return n}getAllRecords(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(new H(structuredClone(i.key),structuredClone(i.key),structuredClone(i.value))),n.length>=t)break;return n}storeRecord(e,t,r){if(null!==this.keyPath){const t=S(this.keyPath,e.value).key;void 0!==t&&(e.key=t)}const n=[];if(null!==this.keyGenerator&&void 0===e.key){let t=!1;const o=this.keyGenerator.num,a=()=>{t||(t=!0,this.keyGenerator&&(this.keyGenerator.num=o))};if(n.push(a),r&&r.push(a),e.key=this.keyGenerator.next(),null!==this.keyPath){if(Array.isArray(this.keyPath))throw new Error("Cannot have an array key path in an object store with a key generator");let t,r=this.keyPath,n=e.value,o=0;for(;o>=0;){if("object"!=typeof n)throw new i;o=r.indexOf("."),o>=0&&(t=r.slice(0,o),r=r.slice(o+1),Object.hasOwn(n,t)||Object.defineProperty(n,t,{configurable:!0,enumerable:!0,writable:!0,value:{}}),n=n[t])}t=r,Object.defineProperty(n,t,{configurable:!0,enumerable:!0,writable:!0,value:e.key})}}else null!==this.keyGenerator&&"number"==typeof e.key&&this.keyGenerator.setIfLarger(e.key);const o=this.records.put(e,t);let a=!1;const s=()=>{a||(a=!0,o?this.storeRecord(o,!1):this.deleteRecord(e.key))};if(n.push(s),r&&r.push(s),o)for(const t of this.rawIndexes.values())t.records.deleteByValue(e.key);try{for(const t of this.rawIndexes.values())t.initialized&&t.storeRecord(e)}catch(e){if("ConstraintError"===e.name)for(const e of n)e();throw e}return e.key}deleteRecord(e,t){const r=this.records.delete(e);if(t)for(const e of r)t.push(()=>{this.storeRecord(e,!0)});for(const t of this.rawIndexes.values())t.records.deleteByValue(e)}clear(e){const t=this.records.clear();if(e)for(const r of t)e.push(()=>{this.storeRecord(r,!0)});for(const e of this.rawIndexes.values())e.records.clear()}count(e){if(void 0===e||void 0===e.lower&&void 0===e.upper)return this.records.size();let t=0;for(const r of this.records.values(e))t+=1;return t}},ye=(e,t=!1)=>{if(e._closePending=!0,e._rawDatabase.transactions.every(e=>"finished"===e._state)){if(e._closed=!0,e._rawDatabase.connections=e._rawDatabase.connections.filter(t=>e!==t),t){const t=new ae("close",{bubbles:!1,cancelable:!1});t.eventPath=[],e.dispatchEvent(t)}}else ce(()=>{ye(e,t)})},me=ye,be=e=>{let t;if(e._runningVersionchangeTransaction&&(t=e._rawDatabase.transactions.findLast(e=>"versionchange"===e.mode)),!t)throw new a;if("active"!==t._state)throw new l;return t};class we extends F{_closePending=!1;_closed=!1;_runningVersionchangeTransaction=!1;constructor(e){super(),this._rawDatabase=e,this._rawDatabase.connections.push(this),this.name=e.name,this.version=e.version,this.objectStoreNames=new N(...Array.from(e.rawObjectStores.keys()).sort())}createObjectStore(e,t={}){if(void 0===e)throw new TypeError;const r=be(this),i=null!==t&&void 0!==t.keyPath?t.keyPath:null,a=null!==t&&void 0!==t.autoIncrement&&t.autoIncrement;if(null!==i&&te(i),this._rawDatabase.rawObjectStores.has(e))throw new n;if(a&&(""===i||Array.isArray(i)))throw new o;const s=[...this.objectStoreNames],u=[...r.objectStoreNames],c=new ge(this._rawDatabase,e,i,a);return this.objectStoreNames._push(e),this.objectStoreNames._sort(),r._scope.add(e),r._createdObjectStores.add(c),this._rawDatabase.rawObjectStores.set(e,c),r.objectStoreNames=new N(...this.objectStoreNames),r._rollbackLog.push(()=>{c.deleted=!0,this.objectStoreNames=new N(...s),r.objectStoreNames=new N(...u),r._scope.delete(c.name),this._rawDatabase.rawObjectStores.delete(c.name)}),r.objectStore(e)}deleteObjectStore(e){if(void 0===e)throw new TypeError;const t=be(this),r=this._rawDatabase.rawObjectStores.get(e);if(void 0===r)throw new s;this.objectStoreNames=new N(...Array.from(this.objectStoreNames).filter(t=>t!==e)),t.objectStoreNames=new N(...this.objectStoreNames);const n=t._objectStoresCache.get(e);let i;n&&(i=[...n.indexNames],n.indexNames=new N),t._rollbackLog.push(()=>{r.deleted=!1,this._rawDatabase.rawObjectStores.set(r.name,r),this.objectStoreNames._push(r.name),t.objectStoreNames._push(r.name),this.objectStoreNames._sort(),n&&i&&(n.indexNames=new N(...i))}),r.deleted=!0,this._rawDatabase.rawObjectStores.delete(e),t._objectStoresCache.delete(e)}transaction(e,t,r){if("readonly"!==(t=void 0!==t?t:"readonly")&&"readwrite"!==t&&"versionchange"!==t)throw new TypeError("Invalid mode: "+t);if(this._rawDatabase.transactions.some(e=>"active"===e._state&&"versionchange"===e.mode&&e.db===this))throw new a;if(this._closePending)throw new a;if(Array.isArray(e)||(e=[e]),0===e.length&&"versionchange"!==t)throw new o;for(const t of e)if(!this.objectStoreNames.contains(t))throw new s("No objectStore named "+t+" in this database");const n=r?.durability??"default";if("default"!==n&&"strict"!==n&&"relaxed"!==n)throw new TypeError(`'${n}' (value of 'durability' member of IDBTransactionOptions) is not a valid value for enumeration IDBTransactionDurability`);const i=new he(e,t,n,this);return this._rawDatabase.transactions.push(i),this._rawDatabase.processTransactions(),i}close(){me(this)}get[Symbol.toStringTag](){return"IDBDatabase"}}const ve=we;class _e extends L{onupgradeneeded=null;onblocked=null;get[Symbol.toStringTag](){return"IDBOpenDBRequest"}}const Ee=_e;class ke extends ae{constructor(e,t={}){super(e),this.newVersion=void 0!==t.newVersion?t.newVersion:null,this.oldVersion=void 0!==t.oldVersion?t.oldVersion:0}get[Symbol.toStringTag](){return"IDBVersionChangeEvent"}}const Se=ke;function xe(e,t){return"intersection"in e?e.intersection(t):new Set([...e].filter(e=>t.has(e)))}const Ae=class{transactions=[];rawObjectStores=new Map;connections=[];constructor(e,t){this.name=e,this.version=t,this.processTransactions=this.processTransactions.bind(this)}processTransactions(){ce(()=>{const e=this.transactions.filter(e=>e._started&&"finished"!==e._state),t=this.transactions.filter(e=>!e._started&&"finished"!==e._state),r=t.find((r,n)=>!e.some(e=>!("readonly"===r.mode&&"readonly"===e.mode)&&xe(e._scope,r._scope).size>0)&&!t.slice(0,n).some(e=>xe(e._scope,r._scope).size>0));r&&(r.addEventListener("complete",this.processTransactions),r.addEventListener("abort",this.processTransactions),r._start())})}};function Oe(e,t,r){if(e<t)throw new TypeError(`${r}: At least ${t} ${1===t?"argument":"arguments"} required, but only ${arguments.length} passed`)}const je=(e,t,r)=>{const n=e.get(t)??Promise.resolve();e.set(t,n.then(r))},Be=(e,t,r,n)=>{r.some(e=>!e._closed&&!e._closePending)?ce(()=>Be(e,t,r,n)):(e.delete(t),n(null))};class Re{_databases=new Map;_connectionQueues=new Map;cmp(e,t){return Oe(arguments.length,2,"IDBFactory.cmp"),v(e,t)}deleteDatabase(e){Oe(arguments.length,1,"IDBFactory.deleteDatabase");const t=new Ee;return t.source=null,ce(()=>{((e,t,r,n,i)=>{je(t,r,()=>new Promise(t=>{const o=e.get(r),a=void 0!==o?o.version:0,s=e=>{try{e?i(e):i(null,a)}finally{t()}};try{const t=e.get(r);if(void 0===t)return void s(null);const i=t.connections.filter(e=>!e._closed);for(const e of i)e._closePending||ce(()=>{const r=new Se("versionchange",{newVersion:null,oldVersion:t.version});e.dispatchEvent(r)});ce(()=>{i.some(e=>!e._closed&&!e._closePending)&&ce(()=>{const e=new Se("blocked",{newVersion:null,oldVersion:t.version});n.dispatchEvent(e)}),Be(e,r,i,s)})}catch(e){s(e)}}))})(this._databases,this._connectionQueues,e,t,(e,r)=>{if(e){t.error=new DOMException(e.message,e.name),t.readyState="done";const r=new ae("error",{bubbles:!0,cancelable:!0});return r.eventPath=[],void t.dispatchEvent(r)}t.result=void 0,t.readyState="done";const n=new Se("success",{newVersion:null,oldVersion:r});t.dispatchEvent(n)})}),t}open(e,t){if(Oe(arguments.length,1,"IDBFactory.open"),arguments.length>1&&void 0!==t&&(t=q(t,"MAX_SAFE_INTEGER")),0===t)throw new TypeError("Database version cannot be 0");const n=new Ee;return n.source=null,ce(()=>{((e,t,n,i,o,a)=>{je(t,n,()=>new Promise(t=>{const s=e=>{try{e?a(e):a(null,c)}finally{t()}};let u=e.get(n);if(void 0===u&&(u=new Ae(n,0),e.set(n,u)),void 0===i&&(i=0!==u.version?u.version:1),u.version>i)return s(new f);const c=new ve(u);u.version<i?((e,t,n,i)=>{e._runningVersionchangeTransaction=!0;const o=e._oldVersion=e.version,a=e._rawDatabase.connections.filter(t=>e!==t);for(const e of a)e._closed||e._closePending||ce(()=>{const r=new Se("versionchange",{newVersion:t,oldVersion:o});e.dispatchEvent(r)});ce(()=>{a.some(e=>!e._closed&&!e._closePending)&&ce(()=>{const e=new Se("blocked",{newVersion:t,oldVersion:o});n.dispatchEvent(e)});const s=()=>{if(a.some(e=>!e._closed&&!e._closePending))return void ce(s);e._rawDatabase.version=t,e.version=t;const u=e.transaction(Array.from(e.objectStoreNames),"versionchange");u._openRequest=n,n.result=e,n.readyState="done",n.transaction=u,u._rollbackLog.push(()=>{e._rawDatabase.version=o,e.version=o}),u._state="active";const c=new Se("upgradeneeded",{newVersion:t,oldVersion:o});let l=!1;try{n.dispatchEvent(c)}catch(e){l=!0}const f=()=>{"active"===u._state&&(u._state="inactive",l&&u._abort("AbortError"))};l?f():ce(f),u._prioritizedListeners.set("error",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0}),u._prioritizedListeners.set("abort",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0,ce(()=>{n.transaction=null,i(new r)})}),u._prioritizedListeners.set("complete",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0,ce(()=>{n.transaction=null,e._closePending?i(new r):i(null)})})};s()})})(c,i,o,e=>{s(e)}):s(null)}))})(this._databases,this._connectionQueues,e,t,n,(e,t)=>{if(e){n.result=void 0,n.readyState="done",n.error=new DOMException(e.message,e.name);const t=new ae("error",{bubbles:!0,cancelable:!0});return t.eventPath=[],void n.dispatchEvent(t)}n.result=t,n.readyState="done";const r=new ae("success");r.eventPath=[],n.dispatchEvent(r)})}),n}databases(){return Promise.resolve(Array.from(this._databases.entries(),([e,t])=>{const r=t.connections.find(e=>e._runningVersionchangeTransaction);return{name:e,version:r?r._oldVersion:t.version}}).filter(({version:e})=>e>0))}get[Symbol.toStringTag](){return"IDBFactory"}}const Ce=new Re;void 0===globalThis.indexedDB&&(globalThis.indexedDB=Ce,globalThis.IDBKeyRange=E)})(),(()=>{"use strict";var e={};i.r(e),i.d(e,{MAX:()=>l,NIL:()=>f,parse:()=>p,stringify:()=>m,v1:()=>k,v1ToV6:()=>S,v3:()=>M,v4:()=>P,v5:()=>$,v6:()=>V,v6ToV1:()=>Z,v7:()=>K,validate:()=>d,version:()=>Y});var t={};i.r(t),i.d(t,{__:()=>Qe,analyzeModule:()=>hr,arrayEqual:()=>At,assembleApiUrl:()=>ze,assembleBuffer:()=>it,assembleUrl:()=>bt,assertArray:()=>Tt,assertBuffer:()=>Lt,assertDate:()=>Ct,assertEmail:()=>Ot,assertFunction:()=>It,assertModule:()=>Ft,assertObject:()=>Dt,assertSet:()=>Rt,assertUrl:()=>Bt,assertUuid:()=>jt,asyncTimeout:()=>vt,base64Decode:()=>Ce,base64Encode:()=>Re,base64Pack:()=>Fe,base64Unpack:()=>Ie,basename:()=>Ye,byteToHexString:()=>St,call:()=>fe,checkChance:()=>Je,checkInterval:()=>rr,clarify:()=>Ge,clone:()=>tt,convertBase:()=>je,convertFrom16to10:()=>Be,countKeys:()=>pr,deepCleanBigInt:()=>nt,distill:()=>rt,ensureArray:()=>at,ensureDate:()=>lt,ensureInt:()=>st,ensureLines:()=>$e,ensureString:()=>ct,escapeHtml:()=>sr,exclude:()=>gr,extError:()=>we,extract:()=>kt,fileURLToPath:()=>te.m9,fullLengthLog:()=>Kt,getDateByUnixTimestamp:()=>ge,getFuncParams:()=>fr,getItemFromStringOrArray:()=>pt,getKeyByValue:()=>Mt,getRandomIndexInArray:()=>ht,getRandomInt:()=>me,getRandomItemInArray:()=>dt,getShortestInArray:()=>xt,getTimeIcon:()=>wr,getType:()=>gt,getUnixTimestampByDate:()=>ye,hexDecode:()=>De,hexEncode:()=>Te,humanReadableBoolean:()=>Zt,ignoreErrFunc:()=>nr,inBrowser:()=>yr,insensitiveCompare:()=>qt,insensitiveHas:()=>Wt,is:()=>ke,isAscii:()=>ar,isModule:()=>xe,isNull:()=>Ae,isSet:()=>Oe,isUndefined:()=>Se,lastItem:()=>Ze,lineSplit:()=>Yt,locate:()=>Pt,log:()=>Nt,makeStringByLength:()=>$t,mapKeys:()=>ot,mask:()=>cr,matchVersion:()=>Ht,mergeAtoB:()=>zt,need:()=>dr,newError:()=>ve,once:()=>lr,parseJson:()=>Et,parseVersion:()=>Gt,prettyJson:()=>wt,purgeEmoji:()=>ur,randomArray:()=>be,range:()=>tr,renderBox:()=>er,renderCode:()=>Jt,renderObject:()=>Xt,renderText:()=>Qt,resolve:()=>Ue,reverseKeyValues:()=>vr,rotate:()=>Vt,shiftTime:()=>We,split:()=>or,splitArgs:()=>br,supportAnsiColor:()=>mr,throwError:()=>_e,timeout:()=>Me,toExponential:()=>Le,toString:()=>ut,trim:()=>Ne,tryUntil:()=>ir,uniqueArray:()=>Ee,uptime:()=>ft,verifyEmail:()=>mt,verifyPhone:()=>Pe,verifyUrl:()=>yt,verifyUuid:()=>d,voidFunc:()=>Ve,which:()=>Ut});var r={};i.r(r),i.d(r,{_NEED:()=>mn,aesCreateIv:()=>Cn,aesCreateKey:()=>Rn,aesDecrypt:()=>Fn,aesEncrypt:()=>Dn,defaultAlgorithm:()=>bn,defaultEncryption:()=>wn,digestObject:()=>jn,getGoogleAuthByCredentials:()=>In,getGoogleAuthTokenByAuth:()=>Ln,getSortedQueryString:()=>Sn,hash:()=>xn,hashFile:()=>An,hexToBigInt:()=>Bn,md5:()=>_n,random:()=>gn.randomBytes,randomString:()=>On,sha256:()=>xn,sha256File:()=>An,uniqueString:()=>vn});var n={};i.r(n),i.d(n,{BASE64:()=>Kn,BUFFER:()=>Yn,DATAURL:()=>ii,FILE:()=>Jn,MIME_AAC:()=>ki,MIME_AVI:()=>yi,MIME_BINARY:()=>ui,MIME_FLAC:()=>Si,MIME_FLV:()=>wi,MIME_GIF:()=>vi,MIME_JPEG:()=>fi,MIME_JSON:()=>ci,MIME_M4A:()=>Oi,MIME_MOV:()=>hi,MIME_MP3:()=>xi,MIME_MP4:()=>pi,MIME_MPEG:()=>di,MIME_MPEGA:()=>Ai,MIME_MPEGPS:()=>bi,MIME_MPG:()=>gi,MIME_MPGA:()=>ji,MIME_OGG:()=>Ii,MIME_OPUS:()=>Bi,MIME_PCM:()=>Ri,MIME_PCM16:()=>Fi,MIME_PDF:()=>Ei,MIME_PNG:()=>li,MIME_TEXT:()=>si,MIME_TGPP:()=>Di,MIME_WAV:()=>Ci,MIME_WEBM:()=>Ti,MIME_WEBP:()=>_i,MIME_WMV:()=>mi,STREAM:()=>Xn,_NEED:()=>Pn,analyzeFile:()=>fo,assertPath:()=>Yi,blobToBuffer:()=>uo,convert:()=>co,decodeBase64DataURL:()=>no,deleteFileOnCloud:()=>Eo,deleteOnCloud:()=>ko,downloadFileFromCloud:()=>bo,downloadFromCloud:()=>wo,encodeBase64DataURL:()=>ro,exists:()=>oo,existsOnCloud:()=>vo,formatDataURL:()=>Gn,getConfig:()=>Qi,getConfigFilename:()=>Xi,getGcUrlByBucket:()=>zn,getIdByGs:()=>qn,getMime:()=>lo,getTempPath:()=>Hi,handleError:()=>Vi,init:()=>yo,isTextFile:()=>Ji,legalFilename:()=>io,lsOnCloud:()=>_o,mapFilename:()=>Wn,mergeFile:()=>po,readFile:()=>qi,readJson:()=>Gi,sanitizeFilename:()=>Zn,setConfig:()=>eo,sliceFile:()=>ho,touchPath:()=>to,tryRm:()=>go,unzip:()=>so,uploadToCloud:()=>mo,writeFile:()=>Wi,writeJson:()=>$i,writeTempFile:()=>Ki,zip:()=>ao});var o={};i.r(o),i.d(o,{bigIntToUuid:()=>Ro,compactUuid:()=>jo,create:()=>Fo,default:()=>No,expandUuid:()=>To,fakeUuid:()=>Co,getRfcUrlNamespaceUuid:()=>Io,getTimestampFromUuid:()=>Do,getUuidForCurrentHost:()=>Mo,rotateUuid:()=>Lo,uuidRegTxt:()=>Oo,uuidToBigInt:()=>Bo});var a={};i.r(a),i.d(a,{bulk:()=>Ko,default:()=>Jo,end:()=>Yo,list:()=>qo,load:()=>Ho,loop:()=>Go});var s={};i.r(s),i.d(s,{_NEED:()=>ea,checkSay:()=>ua,checkWhisper:()=>ca,stt:()=>pa,sttWhisper:()=>ha,tts:()=>da,ttsSay:()=>la});var u=i(8221),c=i.t(u,2);const l="ffffffff-ffff-ffff-ffff-ffffffffffff",f="00000000-0000-0000-0000-000000000000",h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,d=function(e){return"string"==typeof e&&h.test(e)},p=function(e){if(!d(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function y(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}const m=function(e,t=0){const r=y(e,t);if(!d(r))throw TypeError("Stringified UUID is invalid");return r};let b;const w=new Uint8Array(16);function v(){if(!b){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");b=crypto.getRandomValues.bind(crypto)}return b(w)}const _={};function E(e,t,r,n,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16);const s=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const u=t/4294967296*1e4&268435455;o[a++]=u>>>8&255,o[a++]=255&u,o[a++]=u>>>24&15|16,o[a++]=u>>>16&255,o[a++]=n>>>8|128,o[a++]=255&n;for(let e=0;e<6;++e)o[a++]=i[e];return o}const k=function(e,t,r){let n;const i=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=E(e.random??e.rng?.()??v(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),o=v();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9])),e.msecs=t}(_,e,o),n=E(o,_.msecs,_.nsecs,i?void 0:_.clockseq,i?void 0:_.node,t,r)}return t??y(n)};function S(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?p(e):e);return"string"==typeof e?y(t):t}function x(e){return 14+(e+64>>>9<<4)+1}function A(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function O(e,t,r,n,i,o){return A((a=A(A(t,e),A(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function j(e,t,r,n,i,o,a){return O(t&r|~t&n,e,t,i,o,a)}function B(e,t,r,n,i,o,a){return O(t&n|r&~n,e,t,i,o,a)}function R(e,t,r,n,i,o,a){return O(t^r^n,e,t,i,o,a)}function C(e,t,r,n,i,o,a){return O(r^(t|~n),e,t,i,o,a)}const T=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let r=0;r<4*e.length;r++)t[r]=e[r>>2]>>>r%4*8&255;return t}(function(e,t){const r=new Uint32Array(x(t)).fill(0);r.set(e),r[t>>5]|=128<<t%32,r[r.length-1]=t,e=r;let n=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const r=n,s=i,u=o,c=a;n=j(n,i,o,a,e[t],7,-680876936),a=j(a,n,i,o,e[t+1],12,-389564586),o=j(o,a,n,i,e[t+2],17,606105819),i=j(i,o,a,n,e[t+3],22,-1044525330),n=j(n,i,o,a,e[t+4],7,-176418897),a=j(a,n,i,o,e[t+5],12,1200080426),o=j(o,a,n,i,e[t+6],17,-1473231341),i=j(i,o,a,n,e[t+7],22,-45705983),n=j(n,i,o,a,e[t+8],7,1770035416),a=j(a,n,i,o,e[t+9],12,-1958414417),o=j(o,a,n,i,e[t+10],17,-42063),i=j(i,o,a,n,e[t+11],22,-1990404162),n=j(n,i,o,a,e[t+12],7,1804603682),a=j(a,n,i,o,e[t+13],12,-40341101),o=j(o,a,n,i,e[t+14],17,-1502002290),i=j(i,o,a,n,e[t+15],22,1236535329),n=B(n,i,o,a,e[t+1],5,-165796510),a=B(a,n,i,o,e[t+6],9,-1069501632),o=B(o,a,n,i,e[t+11],14,643717713),i=B(i,o,a,n,e[t],20,-373897302),n=B(n,i,o,a,e[t+5],5,-701558691),a=B(a,n,i,o,e[t+10],9,38016083),o=B(o,a,n,i,e[t+15],14,-660478335),i=B(i,o,a,n,e[t+4],20,-405537848),n=B(n,i,o,a,e[t+9],5,568446438),a=B(a,n,i,o,e[t+14],9,-1019803690),o=B(o,a,n,i,e[t+3],14,-187363961),i=B(i,o,a,n,e[t+8],20,1163531501),n=B(n,i,o,a,e[t+13],5,-1444681467),a=B(a,n,i,o,e[t+2],9,-51403784),o=B(o,a,n,i,e[t+7],14,1735328473),i=B(i,o,a,n,e[t+12],20,-1926607734),n=R(n,i,o,a,e[t+5],4,-378558),a=R(a,n,i,o,e[t+8],11,-2022574463),o=R(o,a,n,i,e[t+11],16,1839030562),i=R(i,o,a,n,e[t+14],23,-35309556),n=R(n,i,o,a,e[t+1],4,-1530992060),a=R(a,n,i,o,e[t+4],11,1272893353),o=R(o,a,n,i,e[t+7],16,-155497632),i=R(i,o,a,n,e[t+10],23,-1094730640),n=R(n,i,o,a,e[t+13],4,681279174),a=R(a,n,i,o,e[t],11,-358537222),o=R(o,a,n,i,e[t+3],16,-722521979),i=R(i,o,a,n,e[t+6],23,76029189),n=R(n,i,o,a,e[t+9],4,-640364487),a=R(a,n,i,o,e[t+12],11,-421815835),o=R(o,a,n,i,e[t+15],16,530742520),i=R(i,o,a,n,e[t+2],23,-995338651),n=C(n,i,o,a,e[t],6,-198630844),a=C(a,n,i,o,e[t+7],10,1126891415),o=C(o,a,n,i,e[t+14],15,-1416354905),i=C(i,o,a,n,e[t+5],21,-57434055),n=C(n,i,o,a,e[t+12],6,1700485571),a=C(a,n,i,o,e[t+3],10,-1894986606),o=C(o,a,n,i,e[t+10],15,-1051523),i=C(i,o,a,n,e[t+1],21,-2054922799),n=C(n,i,o,a,e[t+8],6,1873313359),a=C(a,n,i,o,e[t+15],10,-30611744),o=C(o,a,n,i,e[t+6],15,-1560198380),i=C(i,o,a,n,e[t+13],21,1309151649),n=C(n,i,o,a,e[t+4],6,-145523070),a=C(a,n,i,o,e[t+11],10,-1120210379),o=C(o,a,n,i,e[t+2],15,718787259),i=C(i,o,a,n,e[t+9],21,-343485551),n=A(n,r),i=A(i,s),o=A(o,u),a=A(a,c)}return Uint32Array.of(n,i,o,a)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(x(8*e.length)).fill(0);for(let r=0;r<e.length;r++)t[r>>2]|=(255&e[r])<<r%4*8;return t}(e),8*e.length))},D="6ba7b810-9dad-11d1-80b4-00c04fd430c8",F="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function I(e,t,r,n,i,o){const a="string"==typeof r?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(r):r,s="string"==typeof n?p(n):n;if("string"==typeof n&&(n=p(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+a.length);if(u.set(s),u.set(a,s.length),u=t(u),u[6]=15&u[6]|e,u[8]=63&u[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=u[e];return i}return y(u)}function L(e,t,r,n){return I(48,T,e,t,r,n)}L.DNS=D,L.URL=F;const M=L,N={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},P=function(e,t,r){return!N.randomUUID||t||e?function(e,t,r){const n=(e=e||{}).random??e.rng?.()??v();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return y(n)}(e,t,r):N.randomUUID()};function U(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 z(e,t){return e<<t|e>>>32-t}const q=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(e.length+1);n.set(e),n[e.length]=128;const i=(e=n).length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let t=0;t<o;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=a[e][t];for(let e=16;e<80;++e)n[e]=z(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let i=r[0],o=r[1],s=r[2],u=r[3],c=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=z(i,5)+U(r,o,s,u)+c+t[r]+n[e]>>>0;c=u,u=s,s=z(o,30)>>>0,o=i,i=a}r[0]=r[0]+i>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+c>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])};function W(e,t,r,n){return I(80,q,e,t,r,n)}W.DNS=D,W.URL=F;const $=W,V=function(e,t,r){e??={},r??=0;let n=k({...e,_v6:!0},new Uint8Array(16));if(n=S(n),t){for(let e=0;e<16;e++)t[r+e]=n[e];return t}return y(n)};function Z(e){const t=(r="string"==typeof e?p(e):e,Uint8Array.of((15&r[3])<<4|r[4]>>4&15,(15&r[4])<<4|(240&r[5])>>4,(15&r[5])<<4|15&r[6],r[7],(15&r[1])<<4|(240&r[2])>>4,(15&r[2])<<4|(240&r[3])>>4,16|(240&r[0])>>4,(15&r[0])<<4|(240&r[1])>>4,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]));var r;return"string"==typeof e?y(t):t}const G={};function H(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}const K=function(e,t,r){let n;if(e)n=H(e.random??e.rng?.()??v(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=v();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(G,e,i),n=H(i,G.msecs,G.seq,t,r)}return t??y(n)},Y=function(e){if(!d(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var J=i(4148),X=i(8287);Object.values=Object.values||(e=>Object.keys(e).map(t=>e[t])),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Q=J||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,r,n)=>{try{return Q(e,t)}catch(e){throw((e,t=500,r={})=>Object.assign(e,{status:t},r))(e,r,n)}};for(let e in Q||{})assert[e]=Q[e]}globalThis.Buffer=globalThis.Buffer||X.Buffer;const ee=(e,t)=>t?.constructor===e;[ArrayBuffer,BigInt,Boolean,Error,Number,Object,Set,String,Uint8Array].map(e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>ee(e,t))}),Date.isDate=Date.isDate||((e,t)=>!(!ee(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var te=i(8835),re=i(7975),ne=i(537);const ie=JSON.parse('{"single":{"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"},"double":{"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"},"round":{"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"},"bold":{"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"},"singleDouble":{"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"},"doubleSingle":{"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"},"classic":{"topLeft":"+","top":"-","topRight":"+","right":"|","bottomRight":"+","bottom":"-","bottomLeft":"+","left":"|"},"arrow":{"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"}}');var oe=i.t(ie),ae=i(3428);const se={strip:(e,t)=>ct(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in ae)se[e]=(t,r)=>{const[n,i]=mr()?[ae[e].open,ae[e].close]:["",""];return`${n}${ct(t,r)}${i}`};const ue=se;var ce=i(8287).Buffer,le=i(5606);const fe=(e,...t)=>(0,ne.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),he="Invalid time.",[de,pe]=["Chrome","Edge"],ge=e=>new Date(1e3*~~e),ye=e=>Math.round(e.getTime()/1e3),me=e=>Math.floor(Math.random()*Math.floor(e)),be=e=>e.sort(()=>.5-Math.random()),we=(e,t,r={})=>Object.assign(e,{status:t},r),ve=(e,t,r)=>we(new Error(e),t,r),_e=(e,t,r)=>{throw ve(e,t,r)},Ee=e=>[...new Set(at(e))],ke=(e,t)=>gt(t)===e,Se=e=>ke("Undefined",e),xe=e=>ke("Module",e),Ae=e=>ke("Null",e),Oe=(e,t)=>!(Se(e)||t&&Ae(e)),je=(e,t,r)=>parseInt(e||0,t).toString(r),Be=e=>parseInt(je(e,16,10)),Re=(e,t)=>qe(e,t,"base64"),Ce=(e,t)=>_t(e,t,"base64"),Te=(e,t)=>qe(e,t,"hex"),De=(e,t)=>_t(e,t,"hex"),Fe=e=>Re(JSON.stringify(e)),Ie=e=>JSON.parse(Ce(e)),Le=(e,t)=>Number.parseFloat(e).toExponential(t),Me=e=>new Promise(t=>(e?setTimeout:setImmediate)(t,e)),Ne=(e,t)=>ct(e,{trim:!0,...t||{}}),Pe=e=>/^\+?[0-9]{4,}$/.test(e),Ue=async e=>e instanceof Promise?await e:e,ze=(e,t,r)=>bt(`${e}/${t}`,r),qe=(e,t,r)=>(t?e:ce.from(e)).toString(r),We=(e,t)=>new Date((t??new Date).getTime()+e),$e=(e,t)=>Array.isArray(e)?e:Yt(e,t),Ve=()=>{},Ze=e=>e.slice(-1)[0],Ge=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter(e=>e),He={},Ke=e=>String(e||et),Ye=e=>(0,re.basename)(Ke(e)).replace(/\.[^\.]*$/,"").trim(),Je=e=>Math.random()<1/(~~e||100),Xe={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Qe=(e,t)=>{assert(e,"Invalid URL.",500);const r=(0,te.m9)(e),n=(0,re.dirname)(r);return(t=String(t??""))?(0,re.join)(n,t):{__filename:r,__dirname:n}},{__filename:et}=Qe("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),tt=e=>{let t=e;switch(gt(e)){case"Object":t={};for(let r in e)t[r]=tt(e[r]);break;case"Array":t=[],e.map(e=>{t.push(tt(e))})}return t},rt=(e,t)=>{let[r,n]=[e,null];switch(gt(e)){case"Object":r={};for(let i in e)Oe(n=rt(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map(e=>{Oe(e=rt(e,t),t)&&r.push(e)}),r=r.length?r:void 0}return r},nt=(e,t=String)=>{let r=e;switch(gt(e)){case"Object":r={};for(let n in e)r[n]=nt(e[n],t);break;case"Array":r=[],e.map(e=>{r.push(nt(e,t))});break;case"BigInt":r=t(e)}return r},it=e=>{let t=e;switch(gt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ce.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=no(e.data)?.buffer;else{t={};for(let r in e)t[r]=it(e[r])}break;case"Array":t=[],e.map(e=>{t.push(it(e))})}return t},ot=(e,t,r,n)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),It(o),gt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);assert(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=ot(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map((e,t)=>{i.push(ot(e,o,r,[...n||[],t]))})}return i},at=e=>Oe(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],st=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=Oe(t.min,!0)&&r<t.min?t.min:r,r=Oe(t.max,!0)&&r>t.max?t.max:r,t.pad>0?String(r).padStart(t.pad,"0"):r},ut=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),ct=(e,t)=>{if(e=ut(e,t),t?.case)switch(ut(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;case"CAMEL":e=Ge(e).map((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e).join("");break;case"SNAKE":e=Ge(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:_e(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},lt=(e,t)=>(e&&Ct(e=new Date(e),t?.message),!e&&t?.required?_e(he,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?ye(e):e:null),ft=()=>{let e=`${wr(new Date)} ${(new Date).toTimeString().split(" ")[0].split(":").slice(0,2).join(":")} up`,t=le.uptime();const r=Math.floor(t/86400);t-=3600*r*24;let n=Math.floor(t/3600);t-=3600*n,n=n.toString().padStart(2,"0");let i=Math.floor(t/60);return i=i.toString().padStart(2,"0"),t=Math.floor(t%60).toString().padStart(2,"0"),r>0&&(e+=` ${r} day${r>1?"s":""},`),`${e} ${n}:${i}:${t}`},ht=(e,t)=>{const r=~~t?.count,n=be([...e.keys()]).slice(0,r||1);return r?n:n[0]},dt=(e,t)=>{const r=~~t?.count,n=be(ht(e,{count:r||1}).sort((e,t)=>t-e).map(r=>t?.splice?e.splice(r,1)[0]:e[r]));return r?n:n[0]},pt=e=>Array.isArray(e)?dt(e):e,gt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),yt=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\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)},mt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),bt=(e,t)=>{let r=[];for(let e in t||[])at(t[e]).map(t=>{r.push(`${e}=${encodeURIComponent(t)}`)});return`${e}${r.length?`?${r.join("&")}`:""}`},wt=(e,t)=>{let r=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?r=Jt(r,{...t||{},md:t?.md&&"json"}):t?.log&&console.log(r),r},vt=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},_t=(e,t,r)=>{const n=ce.from(e,r);return t?n:n.toString("utf8")},Et=(e,t,r)=>{try{return JSON.parse(e,r?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ce.from(t.data):t))}catch(e){return Oe(t)?t:{}}},kt=(...e)=>{let t=null;return e.map((e,r)=>t=r?t?.[e]??null:e),t},St=e=>Array.from(e,e=>("0"+(255&e).toString(16)).slice(-2)).join(""),xt=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},At=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),Ot=(e,t,r,n)=>assert(mt(e),t||"Invalid email.",r||400,n),jt=(e,t,r,n)=>assert(d(e),t||"Invalid UUID.",r||400,n),Bt=(e,t,r,n)=>assert(yt(e),t||"Invalid URL.",r||400,n),Rt=(e,t,r,n)=>assert(Oe(e),t||"Undefined value.",r||400,n),Ct=(e,t,r,n)=>assert(Date.isDate(e,!0),t||he,r||400,n),Tt=(e,t,r,n)=>assert(Array.isObject(e),t||"Invalid Array.",r||400,n),Dt=(e,t,r,n)=>assert(Object.isObject(e),t||"Invalid Object.",r||400,n),Ft=(e,t,r,n)=>assert(xe(e),t||"Invalid Module.",r||400,n),It=(e,t,r,n)=>assert(Function.isFunction(e),t||"Invalid Function.",r||400,n),Lt=(e,t,r,n)=>assert(ce.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",r||400,n),Mt=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Nt=(e,t,r)=>{const n=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=r?.keepName?Ke(t):Ye(t).toUpperCase(),o=r?.time?` ${(Date.isDate(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+ue.red(i)+ue.yellow(o)+"]"+(n?"":` ${e}`)];return n&&a.push(e),r?.return?a[0]:console.info.apply(null,a)},Pt=async e=>(await Yi(e,"F","R"),globalThis._manifest=e),Ut=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,te.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(re.sep).slice(1)];const t=[];for(let r of e){t.push(r);const n=(0,re.join)(...t,"package.json");try{await Yi(n,"F","R"),e=n;break}catch(e){}}}e=await Gi(e)}return e.name=e.name||"",e.versionNormalized=Gt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},zt=(e,t,r)=>{e=e||{},t=t||{};for(let n in e)Se(e[n])?r?.mergeUndefined&&delete t[n]:t[n]=e[n];return t},qt=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map(e=>(e=Ne(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e));return n===i},Wt=(e,t,r)=>at(e).some(e=>qt(e,t,r)),$t=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},Vt=(e,t,r)=>{let n=!1;switch(gt(e)){case"String":e=ct(e,r).split(""),n=!0;break;case"Array":break;default:_e("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},Zt=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟","🔊","🐵"].includes(ct(e,{case:"UP"})),Gt=e=>{e=ct(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},Ht=(e,t)=>{const[r,n]=[Gt(e),Gt(t)];return r.normalized>=n.normalized},Kt=(e,t)=>{t=t||{},e=String(e??"");const r=st(t.maxLength)||le.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=$t(n,r);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;console.log(`${$t(n,t)}${e}${$t(n,i)}`)}return{string:e,maxLength:r}},Yt=(e,t)=>{const r=ct(e,t);return r.length?r.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Jt=(e,t)=>{let r=t?.initLine??1;const n=$e(e),i=String(n.length).length,o=t?.separator??"|",a=n.map(e=>`${String(r++).padStart(i,"0")} ${o} ${ct(e).replace("```","\\`\\`\\`")}`),s=(t?.md?`\`\`\`${!0===t?.md?"":t?.md}\n`:"")+(t?.asArray?a:a.join("\n"))+(t?.md?"\n```":"");return t?.log&&console.log(s),s},Xt=(e,t)=>{Dt(e,"Invalid object");const[r,n]=[Object.keys(e),t?.separator??":"];let i=0;r.map(e=>i=Math.max(i,e.length));const o=r.map(r=>`${r.padEnd(i," ")} ${n} ${(t?.render||ct)(e[r],{...t||{},key:r})}`);return t?.asArray?o:o.join("\n")},Qt=(e,t)=>{const[r,n,i]=[$e(e),[],[]];return r.map(e=>{const r=/^```/.test(e);if(r&&!n.length){t?.noCode||i.push(e);const r=e.replace(/^```/,"").trim();n.push(r?`> ${r}`:"")}else if(r&&n.length){if(!t?.noCode){const r=t?.extraCodeBlock&&n[0].length;r||n.shift(),i.push(Jt(n,{...t||{},initLine:r?0:1}),e)}n.length=0}else n.length?n.push(e):(t?.noLink&&(e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"").trim()),i.push(e))}),t?.asArray?i:i.join("\n")},er=(e,t)=>{const[r,n,i,o,a]=[10,80,2048,[],ie[t?.style||"round"]];let[s,u]=[~~t?.width,t?.title||""];assert(e.length,"Content must not be empty."),assert(a,`Style must be one of ${Object.keys(ie).join(", ")}.`),assert(!s||s>=r&&s<=i,`Width must be between ${r} and ${i}.`);const c=(s||(s=n))-2,l=c-2,f=e=>`${e.slice(0,l-3)}...`,h=e=>o.push([a.left,e.padEnd(l," "),a.right].join(" "));u.length>l&&(u=f(u)),u.length&&(u=` ${u} `),o.push(a.topLeft+u+a.top.repeat(c-u.length)+a.topRight),u.length&&h(""),$e(e).map(e=>{for(e=e||" ";e.length;)h(t?.noWrap?f(e):e.slice(0,l)),e=t?.noWrap?"":e.slice(l)}),h(""),o.push(a.bottomLeft+a.bottom.repeat(c)+a.bottomRight);const d=t?.asArray?o:o.join("\n");return t?.log&&console.log(d),d},tr=(e,t,r)=>{(r=r||{}).base=st(r.base,{min:0}),r.step=st(r.step,{min:1}),[e,t]=[st(e),st(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},rr=(e,t)=>!((Math.round(Date.now()/1e3)+st(t))%st(e)),nr=async(e,t)=>{const r=async()=>{try{return await e(...t?.args||[])}catch(e){Function.isFunction(t?.log)?t.log(e):t?.log&&console.error(e)}};return t?.await?(await Me(t.await),await r()):t?.wait?setTimeout(r,t.wait):await r()},ir=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[r,n,i,o]=[0,null,null,null];do{try{assert(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&(o=i?.message||i)&&(Function.isFunction(t?.log)?await t.log(o):console.log(o)),await Me(t.interval)}}while(++r<t.maxTry&&i);if(i)throw i;return n},or=(e,t)=>Ne(e,t).split(t?.separator??/[,|;\ \t\n]+/).map(e=>e.trim()).filter(e=>e.length),ar=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},sr=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),ur=(e,t)=>ut(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),cr=(e,t)=>(t=t||{},e=ct(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),lr=(e,t)=>{let r;return function(){return e&&(r=e.apply(t||this,arguments),e=null),r}},fr=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter(e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e))},hr=e=>{Ft(e);const[t,r]=[Object.getOwnPropertyNames(e).filter(t=>!(e?._NO_RENDER||[]).includes(t)),{}];return t.sort(),t.map(t=>r[t]={type:gt(e[t]),...Function.isFunction(e[t])?{params:fr(e[t])}:{value:ct(e[t])}}),r},dr=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),He[e]||(He[e]=await i(765)(e)),!t?.raw&&He[e].default?He[e].default:He[e]),pr=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,gr=(e,t)=>{const r={};return Object.keys(e).filter(e=>!t.includes(e)).map(t=>r[t]=e[t]),r},yr=()=>{const e=["Firefox",[pe,"Edg"],de,["MSIE","Trident"],"Safari"].map(at);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},mr=()=>{try{if(le.stdout.isTTY&&"dumb"!==le.env.TERM)return"Node.js"}catch(e){}const e=yr();return!![de,pe].includes(e)&&e},br=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map(e=>e.replace(/^['"]|['"]$/g,"")),wr=e=>{Ct(e,null,null,{strict:!0});const[t,r]=[e.getHours(),e.getMinutes()],[n,i]=[60*(t>=12?t-12:t)+r,[]];for(const e in Xe){const[t,r]=e.split(":").map(e=>parseInt(e));i.push([Math.abs(n-(60*t+r)),e,t,r])}return i.sort((e,t)=>e[0]-t[0]),Xe[i[0][1]]},vr=e=>Object.fromEntries(Object.entries(e).map(e=>e.reverse()));i(251);const _r={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Er={};for(const[e,t]of Object.entries(_r))Er[t]=Number.parseInt(e);function kr(e){return new DataView(e.buffer,e.byteOffset)}const Sr={len:1,get:(e,t)=>kr(e).getUint8(t),put:(e,t,r)=>(kr(e).setUint8(t,r),t+1)},xr={len:2,get:(e,t)=>kr(e).getUint16(t,!0),put:(e,t,r)=>(kr(e).setUint16(t,r,!0),t+2)},Ar={len:2,get:(e,t)=>kr(e).getUint16(t),put:(e,t,r)=>(kr(e).setUint16(t,r),t+2)},Or={len:4,get:(e,t)=>kr(e).getUint32(t,!0),put:(e,t,r)=>(kr(e).setUint32(t,r,!0),t+4)},jr={len:4,get:(e,t)=>kr(e).getUint32(t),put:(e,t,r)=>(kr(e).setUint32(t,r),t+4)},Br={len:4,get:(e,t)=>kr(e).getInt32(t),put:(e,t,r)=>(kr(e).setInt32(t,r),t+4)},Rr={len:8,get:(e,t)=>kr(e).getBigUint64(t,!0),put:(e,t,r)=>(kr(e).setBigUint64(t,r,!0),t+8)};class Cr{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){return function(e,t="utf-8"){switch(t.toLowerCase()){case"utf-8":case"utf8":return void 0!==globalThis.TextDecoder?new globalThis.TextDecoder("utf-8").decode(e):function(e){let t="",r=0;for(;r<e.length;){const n=e[r++];if(n<128)t+=String.fromCharCode(n);else if(n<224){const i=63&e[r++];t+=String.fromCharCode((31&n)<<6|i)}else if(n<240){const i=63&e[r++],o=63&e[r++];t+=String.fromCharCode((15&n)<<12|i<<6|o)}else{let i=(7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++];i-=65536,t+=String.fromCharCode(55296+(i>>10&1023),56320+(1023&i))}}return t}(e);case"utf-16le":return function(e){let t="";for(let r=0;r<e.length;r+=2)t+=String.fromCharCode(e[r]|e[r+1]<<8);return t}(e);case"ascii":return function(e){return String.fromCharCode(...e.map(e=>127&e))}(e);case"latin1":case"iso-8859-1":return function(e){return String.fromCharCode(...e)}(e);case"windows-1252":return function(e){let t="";for(const r of e)t+=r>=128&&r<=159&&_r[r]?_r[r]:String.fromCharCode(r);return t}(e);default:throw new RangeError(`Encoding '${t}' not supported`)}}(e.subarray(t,t+this.len),this.encoding)}}class Tr extends Error{constructor(){super("End-Of-Stream"),this.name="EndOfStreamError"}}class Dr extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}}class Fr{constructor(){this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}async peek(e,t=!1){const r=await this.read(e,t);return this.peekQueue.push(e.subarray(0,r)),r}async read(e,t=!1){if(0===e.length)return 0;let r=this.readFromPeekBuffer(e);if(this.endOfStream||(r+=await this.readRemainderFromStream(e.subarray(r),t)),0===r&&!t)throw new Tr;return r}readFromPeekBuffer(e){let t=e.length,r=0;for(;this.peekQueue.length>0&&t>0;){const n=this.peekQueue.pop();if(!n)throw new Error("peekData should be defined");const i=Math.min(n.length,t);e.set(n.subarray(0,i),r),r+=i,t-=i,i<n.length&&this.peekQueue.push(n.subarray(i))}return r}async readRemainderFromStream(e,t){let r=0;for(;r<e.length&&!this.endOfStream;){if(this.interrupted)throw new Dr;const n=await this.readFromStream(e.subarray(r),t);if(0===n)break;r+=n}if(!t&&r<e.length)throw new Tr;return r}}class Ir extends Fr{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}}class Lr extends Ir{async readFromStream(e,t){if(0===e.length)return 0;const r=await this.reader.read(new Uint8Array(e.length),{min:t?void 0:e.length});return r.done&&(this.endOfStream=r.done),r.value?(e.set(r.value),r.value.length):0}}class Mr extends Fr{constructor(e){super(),this.reader=e,this.buffer=null}writeChunk(e,t){const r=Math.min(t.length,e.length);return e.set(t.subarray(0,r)),r<t.length?this.buffer=t.subarray(r):this.buffer=null,r}async readFromStream(e,t){if(0===e.length)return 0;let r=0;for(this.buffer&&(r+=this.writeChunk(e,this.buffer));r<e.length&&!this.endOfStream;){const t=await this.reader.read();if(t.done){this.endOfStream=!0;break}t.value&&(r+=this.writeChunk(e.subarray(r),t.value))}if(!t&&0===r&&this.endOfStream)throw new Tr;return r}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}}class Nr{constructor(e){this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=e?.onClose,e?.abortSignal&&e.abortSignal.addEventListener("abort",()=>{this.abort()})}async readToken(e,t=this.position){const r=new Uint8Array(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new Tr;return e.get(r,0)}async peekToken(e,t=this.position){const r=new Uint8Array(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new Tr;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Tr;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Tr;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){await this.abort(),await(this.onClose?.())}normalizeOptions(e,t){if(!this.supportsRandomAccess()&&t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return{mayBeLess:!1,offset:0,length:e.length,position:this.position,...t}}abort(){return Promise.resolve()}}class Pr extends Nr{constructor(e,t){super(t),this.streamReader=e,this.fileInfo=t?.fileInfo??{}}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const i=await this.streamReader.read(e.subarray(0,r.length),r.mayBeLess);if(this.position+=i,(!t||!t.mayBeLess)&&i<r.length)throw new Tr;return i}async peekBuffer(e,t){const r=this.normalizeOptions(e,t);let n=0;if(r.position){const t=r.position-this.position;if(t>0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t)),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e.subarray(0,r.length),r.mayBeLess)}catch(e){if(t?.mayBeLess&&e instanceof Tr)return 0;throw e}if(!r.mayBeLess&&n<r.length)throw new Tr}return n}async ignore(e){const t=Math.min(256e3,e),r=new Uint8Array(t);let n=0;for(;n<e;){const i=e-n,o=await this.readBuffer(r,{length:Math.min(t,i)});if(o<0)return o;n+=o}return n}abort(){return this.streamReader.abort()}async close(){return this.streamReader.close()}supportsRandomAccess(){return!1}}class Ur extends Nr{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo={...t?.fileInfo??{},size:e.length}}async readBuffer(e,t){t?.position&&(this.position=t.position);const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Tr;return e.set(this.uint8Array.subarray(r.position,r.position+n)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}class zr extends Nr{constructor(e,t){super(t),this.blob=e,this.fileInfo={...t?.fileInfo??{},size:e.size,mimeType:e.type}}async readBuffer(e,t){t?.position&&(this.position=t.position);const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.blob.size-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Tr;const i=await this.blob.slice(r.position,r.position+n).arrayBuffer();return e.set(new Uint8Array(i)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}var qr=i(7833);const Wr=67324752,$r=33639248,Vr={get:e=>({signature:Or.get(e,0),compressedSize:Or.get(e,8),uncompressedSize:Or.get(e,12)}),len:16},Zr={get(e){const t=xr.get(e,6);return{signature:Or.get(e,0),minVersion:xr.get(e,4),dataDescriptor:!!(8&t),compressedMethod:xr.get(e,8),compressedSize:Or.get(e,18),uncompressedSize:Or.get(e,22),filenameLength:xr.get(e,26),extraFieldLength:xr.get(e,28),filename:null}},len:30},Gr={get:e=>({signature:Or.get(e,0),nrOfThisDisk:xr.get(e,4),nrOfThisDiskWithTheStart:xr.get(e,6),nrOfEntriesOnThisDisk:xr.get(e,8),nrOfEntriesOfSize:xr.get(e,10),sizeOfCd:Or.get(e,12),offsetOfStartOfCd:Or.get(e,16),zipFileCommentLength:xr.get(e,20)}),len:22},Hr={get(e){const t=xr.get(e,8);return{signature:Or.get(e,0),minVersion:xr.get(e,6),dataDescriptor:!!(8&t),compressedMethod:xr.get(e,10),compressedSize:Or.get(e,20),uncompressedSize:Or.get(e,24),filenameLength:xr.get(e,28),extraFieldLength:xr.get(e,30),fileCommentLength:xr.get(e,32),relativeOffsetOfLocalHeader:Or.get(e,42),filename:null}},len:46};function Kr(e){const t=new Uint8Array(Or.len);return Or.put(t,0,e),t}const Yr=qr("tokenizer:inflate"),Jr=262144,Xr=Kr(134695760),Qr=Kr(101010256);class en{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(Jr)}async isZip(){return await this.peekSignature()===Wr}peekSignature(){return this.tokenizer.peekToken(Or)}async findEndOfCentralDirectoryLocator(){const e=this.tokenizer,t=Math.min(16384,e.fileInfo.size),r=this.syncBuffer.subarray(0,t);await this.tokenizer.readBuffer(r,{position:e.fileInfo.size-t});for(let n=r.length-4;n>=0;n--)if(r[n]===Qr[0]&&r[n+1]===Qr[1]&&r[n+2]===Qr[2]&&r[n+3]===Qr[3])return e.fileInfo.size-t+n;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess())return void Yr("Cannot reading central-directory without random-read support");Yr("Reading central-directory...");const e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){Yr("Central-directory 32-bit signature found");const r=await this.tokenizer.readToken(Gr,t),n=[];this.tokenizer.setPosition(r.offsetOfStartOfCd);for(let e=0;e<r.nrOfEntriesOfSize;++e){const t=await this.tokenizer.readToken(Hr);if(t.signature!==$r)throw new Error("Expected Central-File-Header signature");t.filename=await this.tokenizer.readToken(new Cr(t.filenameLength,"utf-8")),await this.tokenizer.ignore(t.extraFieldLength),await this.tokenizer.ignore(t.fileCommentLength),n.push(t),Yr(`Add central-directory file-entry: n=${e+1}/${n.length}: filename=${n[e].filename}`)}return this.tokenizer.setPosition(e),n}this.tokenizer.setPosition(e)}async unzip(e){const t=await this.readCentralDirectory();if(t)return this.iterateOverCentralDirectory(t,e);let r=!1;do{const t=await this.readLocalFileHeader();if(!t)break;const n=e(t);let i;if(r=!!n.stop,await this.tokenizer.ignore(t.extraFieldLength),t.dataDescriptor&&0===t.compressedSize){const e=[];let r=Jr;Yr("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let i=-1;for(;i<0&&r===Jr;){r=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),i=tn(this.syncBuffer.subarray(0,r),Xr);const t=i>=0?i:r;if(n.handler){const r=new Uint8Array(t);await this.tokenizer.readBuffer(r),e.push(r)}else await this.tokenizer.ignore(t)}Yr(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),n.handler&&await this.inflate(t,rn(e),n.handler)}else n.handler?(Yr(`Reading compressed-file-data: ${t.compressedSize} bytes`),i=new Uint8Array(t.compressedSize),await this.tokenizer.readBuffer(i),await this.inflate(t,i,n.handler)):(Yr(`Ignoring compressed-file-data: ${t.compressedSize} bytes`),await this.tokenizer.ignore(t.compressedSize));if(Yr(`Reading data-descriptor at pos=${this.tokenizer.position}`),t.dataDescriptor&&134695760!==(await this.tokenizer.readToken(Vr)).signature)throw new Error("Expected data-descriptor-signature at position "+(this.tokenizer.position-Vr.len))}while(!r)}async iterateOverCentralDirectory(e,t){for(const r of e){const e=t(r);if(e.handler){this.tokenizer.setPosition(r.relativeOffsetOfLocalHeader);const t=await this.readLocalFileHeader();if(t){await this.tokenizer.ignore(t.extraFieldLength);const n=new Uint8Array(r.compressedSize);await this.tokenizer.readBuffer(n),await this.inflate(t,n,e.handler)}}if(e.stop)break}}async inflate(e,t,r){if(0===e.compressedMethod)return r(t);if(8!==e.compressedMethod)throw new Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);return Yr(`Decompress filename=${e.filename}, compressed-size=${t.length}`),r(await en.decompressDeflateRaw(t))}static async decompressDeflateRaw(e){const t=new ReadableStream({start(t){t.enqueue(e),t.close()}}),r=new DecompressionStream("deflate-raw"),n=t.pipeThrough(r);try{const e=new Response(n),t=await e.arrayBuffer();return new Uint8Array(t)}catch(e){const t=e instanceof Error?`Failed to deflate ZIP entry: ${e.message}`:"Unknown decompression error in ZIP entry";throw new TypeError(t)}}async readLocalFileHeader(){const e=await this.tokenizer.peekToken(Or);if(e===Wr){const e=await this.tokenizer.readToken(Zr);return e.filename=await this.tokenizer.readToken(new Cr(e.filenameLength,"utf-8")),e}if(e===$r)return!1;if(3759263696===e)throw new Error("Encrypted ZIP");throw new Error("Unexpected signature")}}function tn(e,t){const r=e.length,n=t.length;if(n>r)return-1;for(let i=0;i<=r-n;i++){let r=!0;for(let o=0;o<n;o++)if(e[i+o]!==t[o]){r=!1;break}if(r)return i}return-1}function rn(e){const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}class nn{constructor(e){this.tokenizer=e}inflate(){const e=this.tokenizer;return new ReadableStream({async pull(t){const r=new Uint8Array(1024),n=await e.readBuffer(r,{mayBeLess:!0});0!==n?t.enqueue(r.subarray(0,n)):t.close()}}).pipeThrough(new DecompressionStream("gzip"))}}function on(e){const{byteLength:t}=e;return 6===t?e.getUint16(0)*2**32+e.getUint32(2):5===t?e.getUint8(0)*2**32+e.getUint32(1):4===t?e.getUint32(0):3===t?65536*e.getUint8(0)+e.getUint16(1):2===t?e.getUint16(0):1===t?e.getUint8(0):void 0}Object.prototype.toString,new globalThis.TextDecoder("utf8"),new globalThis.TextEncoder,Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const an={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},sn=4100;async function un(e,t){return new fn(t).fromBuffer(e)}function cn(e){switch(e=e.toLowerCase()){case"application/epub+zip":return{ext:"epub",mime:e};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:e};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:e};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:e};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:e};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:e};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:e};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:e};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:e};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:e};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:e};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:e};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:e};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:e};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:e};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:e};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"}}}function ln(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}class fn{constructor(e){this.options={mpegOffsetTolerance:0,...e},this.detectors=[...e?.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:e?.signal}}async fromTokenizer(e){const t=e.position;for(const r of this.detectors){const n=await r.detect(e);if(n)return n;if(t!==e.position)return}}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);var r,n;if(t?.length>1)return this.fromTokenizer((r=t,n=this.tokenizerOptions,new Ur(r,n)))}async fromBlob(e){const t=function(e,t){return new zr(e,t)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async fromStream(e){const t=function(e,t){const r=function(e){try{const t=e.getReader({mode:"byob"});return t instanceof ReadableStreamDefaultReader?new Mr(t):new Lr(t)}catch(t){if(t instanceof TypeError)return new Mr(e.getReader());throw t}}(e),n=t??{},i=n.onClose;return n.onClose=async()=>{if(await r.close(),i)return i()},new Pr(r,n)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t){const{sampleSize:r=sn}=t;let n,i;const o=e.getReader({mode:"byob"});try{const{value:e,done:t}=await o.read(new Uint8Array(r));if(i=e,!t&&e)try{n=await this.fromBuffer(e.subarray(0,r))}catch(e){if(!(e instanceof Tr))throw e;n=void 0}i=e}finally{o.releaseLock()}const a=new TransformStream({async start(e){e.enqueue(i)},transform(e,t){t.enqueue(e)}}),s=e.pipeThrough(a);return s.fileType=n,s}check(e,t){return ln(this.buffer,e,t)}checkString(e,t){return this.check(function(e,t){if("utf-16le"===t){const t=[];for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t.push(255&n,n>>8&255)}return t}if("utf-16be"===t){const t=[];for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t.push(n>>8&255,255&n)}return t}return[...e].map(e=>e.charCodeAt(0))}(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(sn),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:32,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.detectConfident(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8])){const t=new nn(e).inflate();let r=!0;try{let n;try{n=await this.fromStream(t)}catch{r=!1}if(n&&"tar"===n.ext)return{ext:"tar.gz",mime:"application/gzip"}}finally{r&&await t.cancel()}return{ext:"gz",mime:"application/gzip"}}if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const i=await e.readToken(an);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){let o;return await new en(e).unzip(e=>{switch(e.filename){case"META-INF/mozilla.rsa":return o={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return o={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return{async handler(e){const t=new TextDecoder("utf-8").decode(e).trim();o=cn(t)},stop:!0};case"[Content_Types].xml":return{async handler(e){let t=new TextDecoder("utf-8").decode(e);const r=t.indexOf('.main+xml"');if(-1===r){const e="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";t.includes(`ContentType="${e}"`)&&(o=cn(e))}else{t=t.slice(0,Math.max(0,r));const e=t.lastIndexOf('"'),n=t.slice(Math.max(0,e+1));o=cn(n)}},stop:!0};default:return/classes\d*\.dex/.test(e.filename)?(o={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}).catch(e=>{if(!(e instanceof Tr))throw e}),o??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=new Uint8Array(8);return await e.readBuffer(a),ln(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:ln(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:ln(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:ln(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:ln(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:ln(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const s=await this.readTiffHeader(!1);if(s)return s}if(this.check([77,77])){const u=await this.readTiffHeader(!0);if(u)return u}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function c(){const t=await e.peekNumber(Sr);let r=128,n=0;for(;0===(t&r)&&0!==r;)++n,r>>=1;const i=new Uint8Array(n+1);return await e.readBuffer(i),i}async function l(){const e=await c(),t=await c();t[0]^=128>>t.length-1;const r=Math.min(6,t.length),n=new DataView(e.buffer),i=new DataView(t.buffer,t.length-r,r);return{id:on(n),len:on(i)}}async function f(t){for(;t>0;){const r=await l();if(17026===r.id)return(await e.readToken(new Cr(r.len))).replaceAll(/\00.*$/g,"");await e.ignore(r.len),--t}}const h=await l();switch(await f(h.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/matroska"};default:return}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1")||this.checkString("PARE"))return{ext:"parquet",mime:"application/vnd.apache.parquet"};if(this.checkString("ttcf"))return{ext:"ttc",mime:"font/collection"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([4,34,77,24]))return{ext:"lz4",mime:"application/x-lz4"};if(this.checkString("regf"))return{ext:"dat",mime:"application/x-ft-windows-registry-hive"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.checkString(".RMF"))return{ext:"rm",mime:"application/vnd.rn-realmedia"};if(this.checkString("DRACO"))return{ext:"drc",mime:"application/vnd.google.draco"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const d=new Cr(4,"latin1").get(this.buffer,2);if(d.match("^d*")&&d>=1e3&&d<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Cr(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&["\n","\r","\t"," ","\0"].some(e=>this.checkString(e,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){async function p(){return{length:await e.readToken(Br),type:await e.readToken(new Cr(4,"latin1"))}}await e.ignore(8);do{const g=await p();if(g.length<0)return;switch(g.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(g.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/vnd.apache.arrow.file"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const y=new Cr(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(y){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return y.startsWith("3g")?y.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("REGEDIT4\r\n"))return{ext:"reg",mime:"application/x-ms-regedit"};if(this.check([82,73,70,70])){if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function m(){const t=new Uint8Array(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(Rr))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const b=await m();let w=b.size-24;if(ln(b.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const v=new Uint8Array(16);if(w-=await e.readBuffer(v),ln(v,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(ln(v,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(w)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Cr(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.checkString("<?xml ",{offset:2,encoding:"utf-16be"})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("**ACE",{offset:7})&&this.checkString("**",{offset:12}))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const _=new DataView(this.buffer.buffer).getUint32(12,!0);if(_>12&&this.buffer.length>=_+16)try{const E=(new TextDecoder).decode(this.buffer.subarray(16,_+16));if(JSON.parse(E).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),this.checkString("ustar",{offset:257})&&(this.checkString("\0",{offset:262})||this.checkString(" ",{offset:262}))||this.check([0,0,0,0,0,0],{offset:257})&&function(e,t=0){const r=Number.parseInt(new Cr(6).get(e,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(r))return!1;let n=256;for(let r=t;r<t+148;r++)n+=e[r];for(let r=t+156;r<t+512;r++)n+=e[r];return r===n}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254])){const k="utf-16le";return this.checkString("<?xml ",{offset:2,encoding:k})?{ext:"xml",mime:"application/xml"}:this.check([255,14],{offset:2})&&this.checkString("SketchUp Model",{offset:4,encoding:k})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:this.checkString("Windows Registry Editor Version 5.00\r\n",{offset:2,encoding:k})?{ext:"reg",mime:"application/x-ms-regedit"}:void 0}return this.checkString("-----BEGIN PGP MESSAGE-----")?{ext:"pgp",mime:"application/pgp-encrypted"}:void 0};detectImprecise=async e=>{if(this.buffer=new Uint8Array(sn),await e.peekBuffer(this.buffer,{length:Math.min(8,e.fileInfo.size),mayBeLess:!0}),this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await e.peekBuffer(this.buffer,{length:Math.min(2+this.options.mpegOffsetTolerance,e.fileInfo.size),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let e=0;e<=this.options.mpegOffsetTolerance;++e){const t=this.scanMpeg(e);if(t)return t}};async readTiffTag(e){const t=await this.tokenizer.readToken(e?Ar:xr);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?Ar:xr);for(let r=0;r<t;++r){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?Ar:xr).get(this.buffer,2),r=(e?jr:Or).get(this.buffer,4);if(42===t){if(r>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8){const t=(e?Ar:xr).get(this.buffer,8),r=(e?Ar:xr).get(this.buffer,10);if(28===t&&254===r||31===t&&11===r)return{ext:"nef",mime:"image/x-nikon-nef"}}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}scanMpeg(e){if(this.check([255,224],{offset:e,mask:[255,224]})){if(this.check([16],{offset:e+1,mask:[22]}))return this.check([8],{offset:e+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:e+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:e+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:e+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","rm","ppsm","ppsx","tar.gz","reg","dat"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio","application/vnd.android.package-archive","application/vnd.google.draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-ms-regedit","application/x-ft-windows-registry-hive"]);var hn=i(7713),dn=i(6889),pn=i(8559),gn=i(6060),yn=i(8287).Buffer;const mn=["google-gax"],bn="sha256",wn="aes-256-gcm",vn=e=>xn(ct(e||(0,dn.networkInterfaces)())),_n=e=>xn(e,"md5"),En=(e,t)=>e&&String.isString(e)?e:Re(t,1),kn=e=>e?yn.isBuffer(e)?e:Ce(e,1):null,Sn=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map(r=>t.append(r,ct(e[r]))),t.toString()},xn=(e,t=bn)=>(0,gn.createHash)(t).update(e).digest("hex"),An=(e,t=bn)=>new Promise(r=>{const n=(0,gn.createHash)(t);(0,hn.createReadStream)(e).on("data",e=>n.update(e)).on("end",()=>r(n.digest("hex")))}),On=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,(0,gn.randomBytes)(r).toString(t).substring(0,e)},jn=(e,t)=>xn(Sn(e),t),Bn=e=>(e=`0x${ct(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Rn=e=>{const t=kn(e?.key)||(0,gn.randomBytes)((e?.length||256)/8);return{buffer:t,base64:En(e?.key,t)}},Cn=e=>{const t=kn(e?.iv)||(0,gn.randomBytes)(16);return{buffer:t,base64:En(e?.iv,t)}},Tn=e=>{const t=kn(e?.authTag);return{buffer:t,base64:En(e?.authTag,t)}},Dn=(e,t)=>{assert(e,"Invalid input.",400),e=yn.isBuffer(e)?e:yn.from(e);const[r,n]=[Rn,Cn].map(e=>e(t)),i=(0,gn.createCipheriv)(wn,r.buffer,n.buffer),o=ct(t?.expected||"BASE64",{case:"UP"});let a=yn.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Re(a);break;case"BUFFER":break;case"HEX":a=Te(a);break;default:throwError("Unsupported output type.",400)}return{key:r.base64,iv:n.base64,encrypted:a,encryption:wn,authTag:Re(i.getAuthTag(),!0)}},Fn=(e,t)=>{assert(e,"Invalid input.",400),e=yn.isBuffer(e)?e:Ce(e,!0);const[r,n,i]=[Rn,Cn,Tn].map(e=>e(t)),o=(0,gn.createDecipheriv)(wn,r.buffer,n.buffer),a=ct(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=yn.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Re(s);break;case"BUFFER":break;case"HEX":s=Te(s);break;default:throwError("Unsupported output type.",400)}return s},In=async e=>{const{GoogleAuth:t}=await dr("google-gax");return new t({keyFilename:e,scopes:["https://www.googleapis.com/auth/cloud-platform"]}).getClient()},Ln=async e=>{const t=await e.getAccessToken(),r=t?.token||null;return assert(r,"Failed to get Google API token."),r};var Mn=i(8287).Buffer,Nn=i(5606);const Pn=["file-type","mime-types","@google-cloud/storage"],Un={cacheControl:"public, max-age=31536000"},zn=e=>`https://storage.cloud.google.com/${e}`,qn=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),Wn=e=>(0,re.join)(e.substr(0,2),e.substr(2,2)),[$n,Vn]=[pn.deflate,pn.unzip].map(ne.promisify),Zn=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),Gn=(e,t)=>`data:${e};${Kn.toLowerCase()},${t}`,[Hn,Kn,Yn,Jn,Xn,Qn,ei,ti,ri,ni,ii,oi,ai,si,ui,ci,li,fi,hi,di,pi,gi,yi,mi,bi,wi,vi,_i,Ei,ki,Si,xi,Ai,Oi,ji,Bi,Ri,Ci,Ti,Di,Fi,Ii]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream","application/json","image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/mpeg","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","audio/x-wav","audio/ogg"],[Li,Mi,Ni]=[{encoding:Kn},{encoding:ri},{encoding:Hn}];let[Pi,Ui,zi]=[null,null,null];const qi=async(e,t)=>await hn.promises.readFile(e,[Hn,Yn].includes(ct(t?.encoding,{case:"UP"}))?null:t?.encoding||ti),Wi=async(e,t,r)=>await hn.promises.writeFile(e,t,r?.encoding||ti),$i=async(e,t,r)=>await Wi(e,Zi(t,r),r),Vi=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Zi=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),Gi=async(e,t)=>{let r={};try{r=JSON.parse(await qi(e,t))}catch(e){Vi(e,t)}return r},Hi=e=>(0,re.join)((0,dn.tmpdir)(),e?.sub||"",e?.seed?xn(e.seed):""),Ki=async(e,t)=>{let{filename:r,encoding:n,mode:i,prefix:o,suffix:a,hashName:s}=t||{};r=(o||"")+(r?s?xn(r):r:P())+(a?`.${a}`:""),"JSON"===String(n).toUpperCase()&&(e=Zi(e,t),n=null);const u=Hi({sub:r});return await Wi(u,e,{encoding:n||ti}),await hn.promises.chmod(u,i||oi),u},Yi=async(e,t,r,n,i,o)=>{var[i,a,s,u,c]=[i||500,"Path is not",e=>c=n||e];try{u=await hn.promises.stat(e)}catch(e){_e(n||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":u.isFile()||s(`${a} a file: '${e}'.`);break;case"D":u.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!c,c,i,o);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await hn.promises.access(e,hn.constants.R_OK);break;case"W":await hn.promises.access(e,hn.constants.R_OK|hn.constants.W_OK);break;default:s(`Unsupported access mode: '${r}'.`)}}catch(e){s(e.message)}return assert(!c,c,i,o),u},Ji=async(e,t)=>{const r=t?.length??1e3;let n;if(Mn.isBuffer(e))n=e.subarray(0,r);else{const t=await hn.promises.promises.open(e,"r");n=Mn.alloc(r),await t.read(n,0,r,0),await t.close()}for(let e=0;e<n.length;e++)if(0===n[e])return!1;return!0},Xi=async e=>{const t=(e=e||{}).config||(0,re.join)((0,dn.homedir)(),`.${(await Ut(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Qi=async e=>{const t=await Xi(e);return{filename:t,config:await Gi(t)}},eo=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t?.overwrite)r=await Xi(t);else{const{filename:e,config:i}=await Qi(t);r=e,n=i}return await $i(r,zt(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},to=async(e,t)=>(await hn.promises.mkdir(e,{recursive:!0}),await hn.promises.chmod(e,t?.permissions||ai),await hn.promises.stat(e)),ro=async(e,t)=>(e=((e=Ne(e))===ui?"":e)||kt(await un(t),"mime")||ui,assert(e,"MIME type is required.",400),assert(Mn.isBuffer(t),"Data buffer is required.",400),Gn(e,Re(t,!0))),no=e=>{const t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return{mime:r,buffer:Mn.from(i)}},io=e=>(assert(e=ct(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),oo=async e=>{assert(e=ct(e),"Path is required.",400);try{return await hn.promises.stat(e)}catch(e){return null}},ao=async(e,t)=>(assert(e,"Invalid input.",400),await co(await $n(Mn.isBuffer(e)?e:Mn.from(e),t),t)),so=async(e,t)=>(assert(e,"Invalid input.",400),await co(await Vn(Mn.isBuffer(e)?e:Ce(e,!0),t),t)),uo=async e=>{const t=new FileReader;return new Promise((r,n)=>{t.onload=()=>r(Mn.from(t.result)),t.onerror=n,t.readAsArrayBuffer(e)})},co=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);let r={},[n,i]=[Mn.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)||Uint8Array.isUint8Array(e)?Yn:t?.input,t?.expected||Yn].map(e=>ct(e,{case:"UP"})),[o,a,s,u]=[null,null,null,i];switch(n){case Jn:o=e;break;case Qn:e=Mn.from(e),s=si,n=Yn;break;case ni:e=await uo(e),n=Yn;break;case ii:const t=no(e);e=t.buffer,s=t.mime,n=Yn}switch(s||(s=(await lo(e,e))?.mime||ui),i){case Xn:u=Jn;break;case ii:case Qn:case ei:u=Yn}if(o&&(a=await Yi(e,"F","R")),n!==u)switch(`${n}-${u}`){case`${Kn}-${Yn}`:e=Ce(e,!0);break;case`${Kn}-${Jn}`:e=Ce(e,!0);case`${Yn}-${Jn}`:e=await(async(e,t)=>{const r=t?.encoding||ri;if(t?.file)return await Wi(t?.file,e,r),t?.file;const{extension:n}=await lo(e,t?.filename);return await Ki(e,{filename:t?.filename,encoding:r,suffix:t?.suffix||n})})(e,t);break;case`${Yn}-${Kn}`:e=Re(e,!0);break;case`${Jn}-${Yn}`:e=await qi(e,Ni);break;case`${Jn}-${Kn}`:e=await qi(e,Li);break;default:_e("Invalid input or expected format.",400)}switch(i){case Xn:r.content=(0,hn.createReadStream)(e);break;case Qn:r.content=e.toString();break;case ei:r.content=JSON.parse(e.toString());break;case ii:r.content=await ro(t?.mime||s,e);break;default:r.content=e}return o&&u!==Jn&&t?.cleanup&&await go(o,t),t?.withCleanupFunc&&(r.cleanup=async t=>{i===Xn&&await nr(r.content?.destroy),u===Jn&&(t?.force||!o)&&await go(e,t)}),t?.meta&&(r={...r,mime:s,meta:a}),1===Object.keys(r).length?r.content:r},lo=async(e,t)=>{const r=await nr(()=>dr("mime-types")),n=e&&Mn.isBuffer(e)&&kt(await un(e),"mime")||t&&String.isString(t)&&r?.lookup?.(t)||ui;return{mime:n,extension:r?.extension?.(n)||"bin"}},fo=async(e,t)=>{const{meta:r,content:n}=await co(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||bn,o=xn(n,i),a=t?.filename||(r?(0,re.basename)(e):null)||xn,{mime:s}=await lo(n,a);return{content:n,extname:(0,re.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:s,size:n.length}},ho=async(e,t)=>{const[r,n,i,o]=[{...await fo(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||bn];for(t?.zip&&(r.content=await ao(r.content,t),r.compressed="gzip");n*i.length<r.content.length;){const e=n*i.length;i.push(r.content.slice(e,e+n))}return delete r.content,assert(i.length,"Empty slices.",400),{...r,slices:i.map((e,t)=>({content:e,hash:xn(e,o)}))}},po=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[r,n]=[e?.hashAlgorithm||bn,[]];for(let i in e?.slices){const o=await co(e.slices[i]?.content,{...t||{},expected:Yn});e.slices[i]?.hash&&assert(e.slices[i].hash===xn(o,r),`Invalid hash for slice ${i}.`,400),n.push(o)}let i=Mn.concat(n);switch(ct(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await so(i,t);break;default:_e("Unsupported compression.",400)}return e?.hash&&assert(e.hash===xn(i,r),"Invalid file hash.",400),await co(i,{...t||{},input:Yn})},go=async(e,t)=>await nr(async()=>{await Yi(e,"F","W"),await hn.promises.unlink(e)},t),yo=async e=>{if(e)if("GOOGLE"===ct(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Ui=e?.bucket,"Google Cloud Storage bucket is required.",400),zi=e?.url||zn(Ui),1===~~Nn.env.FORKED&&Nt(`GOOGLE CLOUD STORAGE: ${zi}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await dr("@google-cloud/storage",{raw:!0});Pi=new t(e).bucket(Ui)}else _e("Invalid cloud storage provider.",500);return assert(Pi,"Cloud storage has not been initialized.",501),{client:Pi,bucket:Ui,url:zi}},mo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const{content:r,cleanup:n}=await co(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:Jn,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Pi.upload(r,{gzip:!1,destination:t?.destination||(0,re.join)(...t?.prefix?[t.prefix]:[],(0,re.basename)(r)),metadata:Un,...t||{}});await n();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},bo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).download(t);return t?.raw?r:await co(r[0],{...t||{},input:Yn})},wo=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await _o(e,{name:!0}):[e],i=await Promise.all(n.map(e=>bo(e,t)));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},vo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).exists();return t?.raw?r:r[0]?{}:null},_o=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);let r=await Pi.getFiles({prefix:e,...t||{}});return t?.raw||(r=(r[0]||[]).map(e=>e.metadata),t?.name&&(r=r.map(e=>e.name))),r},Eo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).delete(t);return t?.raw?r:r[0].toJSON()},ko=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await _o(e,{name:!0}):[e],i=await Promise.all(n.map(e=>Eo(e,t)));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o};let[So,xo]=[null,null];const Ao={name:"utilitas",description:"Just another common utility for JavaScript.",version:"2001.1.79",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^21.1.1",mathjs:"^15.1.0",uuid:"^13.0.0"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/discoveryengine":"^2.5.2","@google-cloud/storage":"^7.18.0","@google/genai":"^1.33.0","@mozilla/readability":"github:mozilla/readability","@sentry/node":"^10.30.0","@sentry/profiling-node":"^10.30.0","acme-client":"^5.4.0","browserify-fs":"^1.0.0",buffer:"^6.0.3","fake-indexeddb":"^6.2.5","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.5","google-gax":"^5.0.6",ioredis:"^5.8.2",jsdom:"^27.3.0","lorem-ipsum":"^2.0.8","mailgun.js":"^12.4.0",mailparser:"^3.9.1",mime:"^4.1.0",mysql2:"^3.15.3","node-mailjet":"^6.0.11","node-polyfill-webpack-plugin":"^4.1.0","office-text-extractor":"^3.0.3",openai:"^6.10.0","pdf-lib":"^1.17.1","pdfjs-dist":"^5.4.449",pg:"^8.16.3",pgvector:"^0.2.1",ping:"^1.0.0",process:"^0.11.10",puppeteer:"^24.33.0",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.4","tesseract.js":"^6.0.1",twilio:"^5.10.7",url:"github:Leask/node-url","webpack-cli":"^6.0.1","whisper-node":"^1.1.1",wrangler:"^4.54.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},Oo="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",jo=e=>e.replace(/\-/gi,""),Bo=e=>Bn(jo(e)),Ro=e=>To(BigInt(e).toString(16).padStart(32,"0")),Co=e=>To(_n(e??On())),To=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Do=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,Fo=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:P()},e||{})).type=e.type||Ye(e.file),1===(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${On(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},Io=e=>(Bt(e=e||Ao.homepage),$(e,$.URL)),Lo=(e,t,r)=>(e=Vt(e,t,{case:"UP",...r||{}}),assert(e,"Invalid reference.",400),$(e,Io(r?.url))),Mo=e=>$(`info:id/${encodeURIComponent(ct(e||vn()))}`,$.URL),No=Fo,Po={},Uo=e=>1e3*(isNaN(e=Number(e))?0:e),zo=e=>Po[e]&&(Po[e].lock=0),qo=()=>Po;let Wo=null;const $o=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!Po[t]||!Po[t].silent||r.force||e instanceof Error)&&Nt(e,Ye("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),r)},Vo=(e,t,r)=>Po[e].lock+r>t?Po[e].lock:!(Po[e].lock=t),Zo=async()=>{const e=Date.now();for(let t in Po)if(Po[t].lastRun+Po[t].interval<e){Po[t].lastRun=e;try{if(Vo(t,e,Po[t].timeout)){$o("Locked, skipped.",t);continue}$o("Emit...",t),await Po[t].function()}catch(e){$o(e,t)}$o("Done.",t),zo(t)}},Go=async(e,t,r,n,i,o)=>(Wo=Wo||$o("Initialized.")||setInterval(Zo,1e3),$o("Scheduled.",i=i||No({type:"EVENT"}),{force:!0}),Po[i]={function:e,interval:Uo(t),timeout:Uo(r),delay:n,lastRun:Date.now()+Uo(n-t),lock:0,silent:!!o?.silent,end:o?.end},Wo),Ho=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Go(e.func,e.interval,e.tout,e.delay,e.name,t)),Ko=async(e,t)=>{t=t||{},$o(`SERVICES: ${e}`);const[r,n]=[((0,hn.readdirSync)(e)||[]).filter(e=>/\.mjs$/i.test(e)&&!e.startsWith(".")),[]];for(let o of r){const r={...await i(765)((0,re.join)(e,o))};r.run&&(r.name=r.name||o.replace(/^(.*)\.mjs$/i,"$1"),n.push(Ho(r,t)))}return await Promise.all(n)},Yo=async e=>{if(e&&(delete Po[e],Object.keys(Po).length))return;clearInterval(Wo),Wo=null;const t=Date.now();for(let e in Po){if(Po[e].end)try{await Po[e].end()}catch(e){}for(;Vo(e,t,Po[e].timeout);)$o("Waiting...",e),await Me(1e3);$o("End.",e)}$o("Terminated.")},Jo=Go;var Xo=i(2822),Qo=i(9300);const ea=["whisper-node"],[ta,ra,na,ia,oa,aa]=["FILE","ogg","SPEAKER",!0,"base","Invalid audio data."],sa=["tiny","tiny-q5_1","tiny-q8_0","tiny.en","tiny.en-q5_1","tiny.en-q8_0",oa,"base-q5_1","base-q8_0","base.en","base.en-q5_1","base.en-q8_0","small","small-q5_1","small-q8_0","small.en","small.en-q5_1","small.en-q8_0","small.en-tdrz","medium","medium-q5_0","medium-q8_0","medium.en","medium.en-q5_0","medium.en-q8_0","large-v1","large-v2","large-v2-q5_0","large-v2-q8_0","large-v3","large-v3-q5_0","large-v3-turbo","large-v3-turbo-q5_0","large-v3-turbo-q8_0"],ua=async()=>{const e=!!await nr(async()=>"darwin"===(await Promise.all([dr("node:os"),dr("say"),(0,Qo.getFfmpeg)()]))[0].platform());return assert(e,"Say API is not available.",500),e},ca=async()=>{const e=!!await nr(()=>Promise.all([dr("whisper-node"),(0,Qo.getFfmpeg)()]));return assert(e,"Whisper API is not available.",500),e},la=async(e,t)=>{const r=await dr("say");assert(e,"Text is required.",400);let[n,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===na?n="speak":(n="export",i=Hi({sub:`${xn(JSON.stringify(o))}.wav`}),o.push(i)),await fe([r[n],r],...o),i&&!t?.raw&&(i=await(0,Qo.convertAudioTo16kNanoOpusOgg)(i,{frequency:16e3,cleanup:ia,input:ta,suffix:ra,...t||{}})),i},fa=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),ha=async(e,t)=>{const r=(await dr("whisper-node")).whisper,n=await(0,Qo.convertAudioTo16kNanoPcmWave)(e,{input:t?.input,expected:ta,errorMessage:aa}),i=await(async(e,t)=>(e=t?.model||oa,(await(0,Xo.get)((e=>(assert(sa.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content))(t?.model,t),o=await r(n,{modelPath:i,...t||{},whisperOptions:{...t?.whisperOptions||{}}});return assert(o,"Failed to recognize speech.",500),t?.raw?o:o.map(e=>e.speech).join("").trim()},da=async(e,t)=>{let r;return yr()?r=fa:await ua()?r=la:_e("Text-to-Speech engine is not available.",500),await r(e,t)},pa=async(e,t)=>{let r;return await ca()?r=ha:_e("Speech-to-Text engine is not available.",500),await r(e,t)};yr()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:oe,color:ue,encryption:r,event:a,manifest:Ao,math:c,speech:s,storage:n,uoid:o,utilitas:t,uuid:e},(async()=>{Nt(`(${Ao.homepage}) is ready!`,`${(await Ut(Ao)).title}.*`)})())})()})();
|
|
2
|
+
if(void 0===self)var self=globalThis;(()=>{var e,t,r={41(e,t,r){"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},76(e){"use strict";e.exports=Function.prototype.call},186(e,t,r){e.exports=o;var n=r(9816),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},196(e,t,r){var n;!function(){"use strict";void 0===(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 l;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),l=u.objectStore(this.storeName).put(n)):l=u.objectStore(this.storeName).put(n,r),l.onsuccess=c,l.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,l=0,f=this.db.transaction([this.storeName],this.consts.READ_WRITE);f.oncomplete=function(){c?i(r):o(!1)},f.onabort=o,f.onerror=o;var h=function(e){r[l++][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=f.objectStore(this.storeName).put(e)):t=f.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){f.abort(),u||(u=!0,o(e))}},this),f},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,l=this.db.transaction([this.storeName],this.consts.READ_ONLY);l.oncomplete=function(){(u?n:i)(c)},l.onabort=i,l.onerror=i;var f=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=l.objectStore(this.storeName).get(e);t.onsuccess=f,t.onerror=function(e){c=e,i(e),l.abort()}},this),l},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}.call(t,r,t,e))||(e.exports=n)}()},251(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,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-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,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*g}},345(e,t,r){e.exports=r(7007).EventEmitter},414(e){"use strict";e.exports=Math.round},453(e,t,r){"use strict";var n,i=r(9612),o=r(9383),a=r(1237),s=r(9290),u=r(9538),c=r(8068),l=r(9675),f=r(5345),h=r(1514),d=r(8968),p=r(6188),g=r(8002),y=r(5880),m=r(414),b=r(3093),w=Function,v=function(e){try{return w('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(5795),E=r(655),k=function(){throw new l},S=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,x=r(4039)(),A=r(3628),O=r(1064),j=r(8648),B=r(1002),R=r(76),C={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&A?A(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":l,"%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%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":B,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":O,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":j};if(A)try{null.error}catch(e){var F=A(A(e));D["%Error.prototype%"]=F}var I=function e(t){var r;if("%AsyncFunction%"===t)r=v("async function () {}");else if("%GeneratorFunction%"===t)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=v("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return D[t]=r,r},L={__proto__:null,"%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"]},M=r(6743),N=r(9957),P=M.call(R,Array.prototype.concat),U=M.call(B,Array.prototype.splice),z=M.call(R,String.prototype.replace),q=M.call(R,String.prototype.slice),W=M.call(R,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,Z=function(e,t){var r,n=e;if(N(L,n)&&(n="%"+(r=L[n])[0]+"%"),N(D,n)){var i=D[n];if(i===C&&(i=I(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return z(e,$,function(e,t,r,i){n[n.length]=r?z(i,V,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",i=Z("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],U(r,P([0,1],u)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],p=q(d,0,1),g=q(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),N(D,o="%"+(n+="."+d)+"%"))a=D[o];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var y=_(a,d);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else h=N(a,d),a=a[d];h&&!s&&(D[o]=a)}}return a}},487(e,t,r){"use strict";var n=r(6897),i=r(655),o=r(3126),a=r(2205);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},507(e,t,r){"use strict";var n=r(453),i=r(6556),o=r(8859),a=r(9675),s=n("%Map%",!0),u=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===h(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new s),c(e,t,r)}};return t}},519(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(2796)(e.exports),e.exports.create=e.exports.custom.createError},537(e,t,r){var n=r(5606),i=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},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,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])m(s)||!E(s)?a+=" "+s:a+=" "+c(s);return a},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 i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function h(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=h(e,i,n)),i}var o=function(e,t){if(v(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 b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(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)),S(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(S(r))return d(r)}var c,l="",f=!1,E=["{","}"];return g(r)&&(f=!0,E=["[","]"]),x(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(l=" "+RegExp.prototype.toString.call(r)),k(r)&&(l=" "+Date.prototype.toUTCString.call(r)),S(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)B(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))}),o}(e,r,n,s,a):a.map(function(t){return p(e,r,n,s,t,f)}),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,l,E)):E[0]+l+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(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=m(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function v(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(9032),t.isArray=g,t.isBoolean=y,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=S,t.types.isNativeError=S,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(1135);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),j[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(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(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{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)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=R,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(C.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},554(e,t,r){var n=r(8287).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.I=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}},564(){},592(e,t,r){"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},626(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5240);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},655(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},717(){},736(e,t,r){e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r,n++):(r++,n++);else{if(-1===i)return!1;n=i+1,o++,r=o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(i(e,r))return!1;for(const r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},765(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=765,e.exports=t},920(e,t,r){"use strict";var n=r(9675),i=r(8859),o=r(4803),a=r(507),s=r(2271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},993(){},1002(e){"use strict";e.exports=Function.prototype.apply},1064(e,t,r){"use strict";var n=r(9612);e.exports=n.getPrototypeOf||null},1068(e,t,r){var n=r(5606),i=r(8310).Stream,o=r(537).inherits,a=r(3493),s=r(4829),u=r.g.setImmediate||n.nextTick,c=r(2350).getOptions,l={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);i.call(this),this._options=a(l,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(f,i),f.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)))},f.prototype.end=function(e){var t=this;e&&this.write(e),u(function(){t._end=!0,t._process()})},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.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},f.prototype._processDelayed=function(){var e=this;u(function(){e._process()})},f.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()},f.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)})}))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},1093(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}},1097(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1135(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189(e,t,r){"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(e){return o(e)}:r(8875),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},1218(e,t,r){var n=r(7007);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}},1237(e){"use strict";e.exports=EvalError},1333(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(var n 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 i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1421(e,t,r){var n=r(537),i=r(1831).No,o=r(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=o.lowerBound(t),n=o.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,n.inherits(a,i),a.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){console.log("horrible error",e)}})},a.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()},a.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")}},1438(e,t,r){var n=r(5606);e.exports=f;var i=r(2880),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(5641).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(5641).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},1445(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(1511);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},1447(e,t,r){"use strict";var n=r(9805),i=r(3269),o=r(4823),a=r(7293),s=r(1998),u=-2,c=12,l=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):u}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):u}function g(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):u}function y(e,t){var r,n;return e?(n=new h,e.state=n,n.window=null,0!==(r=g(e,t))&&(e.state=null),r):u}var m,b,w=!0;function v(e){if(w){var t;for(m=new n.Buf32(512),b=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),w=!1}e.lencode=m,e.lenbits=9,e.distcode=b,e.distbits=5}function _(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=p,t.inflateReset2=g,t.inflateResetKeep=d,t.inflateInit=function(e){return y(e,15)},t.inflateInit2=y,t.inflate=function(e,t){var r,h,d,p,g,y,m,b,w,E,k,S,x,A,O,j,B,R,C,T,D,F,I,L,M=0,N=new n.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(r=e.state).mode===c&&(r.mode=13),g=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,h=e.input,y=e.avail_in,b=r.hold,w=r.bits,E=y,k=m,F=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(2&r.wrap&&35615===b){r.check=0,N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0),b=0,w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=l;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=l;break}if(w-=4,D=8+(15&(b>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=l;break}r.dmax=1<<D,e.adler=r.check=1,r.mode=512&b?10:c,b=0,w=0;break;case 2:for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(r.flags=b,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=l;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=l;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0,r.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,N[2]=b>>>16&255,N[3]=b>>>24&255,r.check=o(r.check,N,4,0)),b=0,w=0,r.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(N[0]=255&b,N[1]=b>>>8&255,r.check=o(r.check,N,2,0)),b=0,w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=r.length)>y&&(S=y),S&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,p,S,D)),512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;S=0;do{D=h[p+S++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D))}while(D&&S<y);if(512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,D)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;S=0;do{D=h[p+S++],r.head&&D&&r.length<65536&&(r.head.comment+=String.fromCharCode(D))}while(D&&S<y);if(512&r.flags&&(r.check=o(r.check,h,S,p)),y-=S,p+=S,D)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b!==(65535&r.check)){e.msg="header crc mismatch",r.mode=l;break}b=0,w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=c;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}e.adler=r.check=f(b),b=0,w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,2;e.adler=r.check=1,r.mode=c;case c:if(5===t||6===t)break e;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===t){b>>>=2,w-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=l}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=l;break}if(r.length=65535&b,b=0,w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(S>y&&(S=y),S>m&&(S=m),0===S)break e;n.arraySet(d,h,p,S,g),y-=S,p+=S,m-=S,g+=S,r.length-=S;break}r.mode=c;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(r.nlen=257+(31&b),b>>>=5,w-=5,r.ndist=1+(31&b),b>>>=5,w-=5,r.ncode=4+(15&b),b>>>=4,w-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=l;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.lens[P[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,I={bits:r.lenbits},F=s(0,r.lens,0,19,r.lencode,0,r.work,I),r.lenbits=I.bits,F){e.msg="invalid code lengths set",r.mode=l;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;j=(M=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(B<16)b>>>=O,w-=O,r.lens[r.have++]=B;else{if(16===B){for(L=O+2;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b>>>=O,w-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=l;break}D=r.lens[r.have-1],S=3+(3&b),b>>>=2,w-=2}else if(17===B){for(L=O+3;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}w-=O,D=0,S=3+(7&(b>>>=O)),b>>>=3,w-=3}else{for(L=O+7;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}w-=O,D=0,S=11+(127&(b>>>=O)),b>>>=7,w-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=l;break}for(;S--;)r.lens[r.have++]=D}}if(r.mode===l)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=l;break}if(r.lenbits=9,I={bits:r.lenbits},F=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,I),r.lenbits=I.bits,F){e.msg="invalid literal/lengths set",r.mode=l;break}if(r.distbits=6,r.distcode=r.distdyn,I={bits:r.distbits},F=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,I),r.distbits=I.bits,F){e.msg="invalid distances set",r.mode=l;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(y>=6&&m>=258){e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,a(e,k),g=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,h=e.input,y=e.avail_in,b=r.hold,w=r.bits,r.mode===c&&(r.back=-1);break}for(r.back=0;j=(M=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(j&&!(240&j)){for(R=O,C=j,T=B;j=(M=r.lencode[T+((b&(1<<R+C)-1)>>R)])>>>16&255,B=65535&M,!(R+(O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}b>>>=R,w-=R,r.back+=R}if(b>>>=O,w-=O,r.back+=O,r.length=B,0===j){r.mode=26;break}if(32&j){r.back=-1,r.mode=c;break}if(64&j){e.msg="invalid literal/length code",r.mode=l;break}r.extra=15&j,r.mode=22;case 22:if(r.extra){for(L=r.extra;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;j=(M=r.distcode[b&(1<<r.distbits)-1])>>>16&255,B=65535&M,!((O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(!(240&j)){for(R=O,C=j,T=B;j=(M=r.distcode[T+((b&(1<<R+C)-1)>>R)])>>>16&255,B=65535&M,!(R+(O=M>>>24)<=w);){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}b>>>=R,w-=R,r.back+=R}if(b>>>=O,w-=O,r.back+=O,64&j){e.msg="invalid distance code",r.mode=l;break}r.offset=B,r.extra=15&j,r.mode=24;case 24:if(r.extra){for(L=r.extra;w<L;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=l;break}r.mode=25;case 25:if(0===m)break e;if(S=k-m,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=l;break}S>r.wnext?(S-=r.wnext,x=r.wsize-S):x=r.wnext-S,S>r.length&&(S=r.length),A=r.window}else A=d,x=g-r.offset,S=r.length;S>m&&(S=m),m-=S,r.length-=S;do{d[g++]=A[x++]}while(--S);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[g++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===y)break e;y--,b|=h[p++]<<w,w+=8}if(k-=m,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?o(r.check,d,k,g-k):i(r.check,d,k,g-k)),k=m,(r.flags?b:f(b))!==r.check){e.msg="incorrect data check",r.mode=l;break}b=0,w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===y)break e;y--,b+=h[p++]<<w,w+=8}if(b!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=l;break}b=0,w=0}r.mode=29;case 29:F=1;break e;case l:F=-3;break e;case 31:return-4;default:return u}return e.next_out=g,e.avail_out=m,e.next_in=p,e.avail_in=y,r.hold=b,r.bits=w,(r.wsize||k!==e.avail_out&&r.mode<l&&(r.mode<27||4!==t))&&_(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?o(r.check,d,k,e.next_out-k):i(r.check,d,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(r.mode===c?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===k||4===t)&&0===F&&(F=-5),F)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,0):u},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,t,n,0)!==r.check?-3:_(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):u},t.inflateInfo="pako inflate (from Nodeca project)"},1511(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(7349),s=r(1445);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},1514(e){"use strict";e.exports=Math.abs},1534(){},1643(e,t,r){e.exports=o;var n=r(3497),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},1657(e,t,r){"use strict";e.exports=a;var n=r(4935),i=Object.create(r(5622));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(6698),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")})}},1779(e,t,r){"use strict";var n=r(8287).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 l,f,h,d,p;if("object"!=typeof r)return r;if(p=r,Array.isArray(p)||"object"==typeof p&&"[object Array]"===i(p))l=[];else if("object"==typeof(d=r)&&"[object RegExp]"===i(d))l=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&&(l.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))l=new Date(r.getTime());else{if(u&&n.isBuffer(r))return l=new n(r.length),r.copy(l),l;void 0===o?(f=Object.getPrototypeOf(r),l=Object.create(f)):(l=Object.create(o),f=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(l)}for(var y in r){var m;f&&(m=Object.getOwnPropertyDescriptor(f,y)),m&&null==m.set||(l[y]=e(r[y],c-1))}return l}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},1831(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(3409),a=r(4427),s=r(2768);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.Z$=u,e.exports.No=a},1891(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(4837),a=r(5584),s=r(7432),u=r(4123),c=r(3519),l=r(6788),f=r(8571),h=r(5363),d=r(1218),p=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),m=h(e.sublevel("stats")),b=e.sublevel("links"),w=d(),v=[],_=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=l(777)),n||(n=g),m.follow(e,function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(i)):void m.put(i,{type:"directory",mode:t,size:4096},w.cb(i,n))})},r.rmdir=function(e,t){t||(t=g),m.follow(e,function(e,n,i){if(e)return t(e);r.readdir(i,function(e,r){return e?t(e):r.length?t(f.ENOTEMPTY(i)):void m.del(i,w.cb(i,t))})})},r.readdir=function(e,t){m.follow(e,function(e,r,n){return e?t(e):r?r.isDirectory()?void m.list(n,t):t(f.ENOTDIR(n)):t(f.ENOENT(n))})};var E=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(e,m.follow,t)},r.lstat=function(e,t){E(e,m.get,t)},r.exists=function(e,t){m.follow(e,function(e){t(!e)})};var k=function(e,t,r,n){n||(n=g),t(e,function(e,t,i){if(e)return n(e);m.update(i,{mode:r},w.cb(i,n))})};r.chmod=function(e,t,r){k(e,m.follow,t,r)},r.lchmod=function(e,t,r){k(e,m.get,t,r)};var S=function(e,t,r,n,i){i||(i=g),t(e,function(e,t,o){if(e)return i(e);m.update(o,{uid:r,gid:n},w.cb(o,i))})};return r.chown=function(e,t,r,n){S(e,m.follow,t,r,n)},r.lchown=function(e,t,r,n){S(e,m.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=g),m.follow(e,function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),m.update(o,a,w.cb(o,n))})},r.rename=function(e,t,n){n||(n=g),m.follow(e,function(e,i,o){if(e)return n(e);var a=function(){n=w.cb(t,w.cb(o,n)),m.put(t,i,function(e){if(e)return n(e);m.del(o,n)})};m.follow(t,function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(f.EISDIR(o)):void(t.isDirectory()?r.readdir(s,function(e,t){return e?n(e):t.length?n(f.ENOTEMPTY(o)):void a()}):a()):a()})})},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);m.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],m.follow(e,function(e,r,i){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(f.EISDIR(i));if(r&&"x"===a[1])return o(f.EEXIST(i));var s=r&&r.blob||i;m.writable(i,function(e){if(e)return o(e);y.write(s,t,n,function(e){if(e)return o(e);m.put(i,{ctime:r&&r.ctime,mtime:new Date,mode:n.mode||l(666),type:"file"},w.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),m.get(e,function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(f.EISDIR(n));var i=function(e){u(b,{start:e+"ÿ",end:e+"ÿÿ"},function(r){if(r)return y.remove(e,t);t()})};m.del(n,w.cb(n,function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void b.del(r.link,function(e){if(e)return t(e);i(o)})):void b.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,m.follow(e,function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(f.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){m.follow(e,function(e,a,s){if(e)return o(e);if(a.isDirectory())return o(f.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||l(666);t.append="a"===r[0];var a=o.writable(function(o){m.follow(e,function(e,s,u){if(e&&"ENOENT"!==e.code)return o(e);if(s&&s.isDirectory())return o(f.EISDIR(u));if(s&&"x"===r[1])return o(f.EEXIST(u));var c=s&&s.blob||u;m.writable(c,function(e){if(e)return o(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:i,type:"file"};m.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,m.put(u,r,function(){w.change(u),n||a.emit("close")})}),o(null,i)})})})});return a.on("close",function(){n=!0}),a},r.truncate=function(e,t,r){m.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);m.writable(o,function(e){if(e)return r(e);if(r=c(w.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):w.watch(m.normalize(e),n)},r.unwatchFile=function(e,t){w.unwatch(m.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):w.watcher(m.normalize(e),n)},r.notify=function(e){w.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);m.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||l(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(f.EEXIST(o)):r&&r.isDirectory()?i(f.EISDIR(o)):void y.size(u,function(e,t){if(e)return i(e);c.append&&(c.writePos=t),m.writable(o,function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=v.indexOf(null);-1===t&&(t=10+v.push(v.length+10)-1),c.fd=t,v[t]=c,w.change(o),i(null,c.fd)},n=function(e){return e?i(e):r?t():void m.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=v[e];if(!r)return p(t,f.EBADF());v[e]=null,p(w.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=v[e];if(o||(o=g),!a||!a.writable)return p(o,f.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=v[e];if(a||(a=g),!s||!s.readable)return p(a,f.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=v[e];if(t||(t=g),!r||!r.writable)return p(t,f.EBADF());p(t)},r.ftruncate=function(e,t,n){var i=v[e];if(n||(n=g),!i)return p(n,f.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=v[e];if(i||(i=g),!o)return p(i,f.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=v[e];if(n||(n=g),!i)return p(n,f.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=v[e];if(i||(i=g),!o)return p(i,f.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=v[e];if(!n)return p(t,f.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=g),m.follow(e,function(e,n,i){if(e)return r(e);m.get(t,function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(t)):void m.put(t,{type:"symlink",target:i,mode:l(777)},r)})})},r.readlink=function(e,t){m.get(e,function(r,n){return r?t(r):n.target?void t(null,n.target):t(f.EINVAL(e))})},r.link=function(e,t,r){r||(r=g),m.follow(e,function(e,n,i){return e?r(e):n.isFile()?void m.get(t,function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(f.EEXIST(t));var a=i+"ÿ"+ ++_;b.put(i+"ÿ",i,function(e){if(e)return r(e);b.put(a,i,function(e){if(e)return r(e);m.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)})})}):r(f.EINVAL(i))})},r}},1963(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(7349)).Stream=i,t.Readable=t,t.Writable=r(1445),t.Duplex=r(1511),t.Transform=r(3497),t.PassThrough=r(1643),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},1998(e,t,r){"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,c,l,f,h){var d,p,g,y,m,b,w,v,_,E=h.bits,k=0,S=0,x=0,A=0,O=0,j=0,B=0,R=0,C=0,T=0,D=null,F=0,I=new n.Buf16(16),L=new n.Buf16(16),M=null,N=0;for(k=0;k<=15;k++)I[k]=0;for(S=0;S<u;S++)I[t[r+S]]++;for(O=E,A=15;A>=1&&0===I[A];A--);if(O>A&&(O=A),0===A)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(x=1;x<A&&0===I[x];x++);for(O<x&&(O=x),R=1,k=1;k<=15;k++)if(R<<=1,(R-=I[k])<0)return-1;if(R>0&&(0===e||1!==A))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+I[k];for(S=0;S<u;S++)0!==t[r+S]&&(f[L[t[r+S]]++]=S);if(0===e?(D=M=f,b=19):1===e?(D=i,F-=257,M=o,N-=257,b=256):(D=a,M=s,b=-1),T=0,S=0,k=x,m=l,j=O,B=0,g=-1,y=(C=1<<O)-1,1===e&&C>852||2===e&&C>592)return 1;for(;;){w=k-B,f[S]<b?(v=0,_=f[S]):f[S]>b?(v=M[N+f[S]],_=D[F+f[S]]):(v=96,_=0),d=1<<k-B,x=p=1<<j;do{c[m+(T>>B)+(p-=d)]=w<<24|v<<16|_}while(0!==p);for(d=1<<k-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,S++,0===--I[k]){if(k===A)break;k=t[r+f[S]]}if(k>O&&(T&y)!==g){for(0===B&&(B=O),m+=x,R=1<<(j=k-B);j+B<A&&!((R-=I[j+B])<=0);)j++,R<<=1;if(C+=1<<j,1===e&&C>852||2===e&&C>592)return 1;c[g=T&y]=O<<24|j<<16|m-l}}return 0!==T&&(c[m+T]=k-B<<24|64<<16),h.bits=O,0}},2175(e,t,r){var n=r(8287).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},2205(e,t,r){"use strict";var n=r(6743),i=r(1002),o=r(3144);e.exports=function(){return o(n,i,arguments)}},2271(e,t,r){"use strict";var n=r(453),i=r(6556),o=r(8859),a=r(507),s=r(9675),u=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},2299(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},u=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},c=Object.is?Object.is:r(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(4133);function h(e){return e.call.bind(e)}var d=h(Object.prototype.hasOwnProperty),p=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),y=r(537).types,m=y.isAnyArrayBuffer,b=y.isArrayBufferView,w=y.isDate,v=y.isMap,_=y.isRegExp,E=y.isSet,k=y.isNativeError,S=y.isBoxedPrimitive,x=y.isNumberObject,A=y.isStringObject,O=y.isBooleanObject,j=y.isBigIntObject,B=y.isSymbolObject,R=y.isFloat32Array,C=y.isFloat64Array;function T(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 D(e){return Object.keys(e).filter(T).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function F(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 I(e,t,r,n){if(e===t)return 0!==e||!r||c(e,t);if(r){if("object"!==o(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,u,l,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=D(e),p=D(t);return d.length===p.length&&M(e,t,r,n,1,d)}if("[object Object]"===h&&(!v(e)&&v(t)||!E(e)&&E(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(u=e,l=t,!(a?u.source===l.source&&u.flags===l.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!R(e)&&!C(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===F(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 y=D(e),T=D(t);return y.length===T.length&&M(e,t,r,n,0,y)}if(E(e))return!(!E(t)||e.size!==t.size)&&M(e,t,r,n,2);if(v(e))return!(!v(t)||e.size!==t.size)&&M(e,t,r,n,3);if(m(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==F(new Uint8Array(i),new Uint8Array(s)))return!1}else if(S(e)&&!function(e,t){return x(e)?x(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):j(e)?j(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):B(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,r,n,0)}function L(e,t){return t.filter(function(t){return p(e,t)})}function M(e,t,r,i,a,c){if(5===arguments.length){c=Object.keys(e);var f=Object.keys(t);if(c.length!==f.length)return!1}for(var h=0;h<c.length;h++)if(!d(t,c[h]))return!1;if(r&&5===arguments.length){var g=l(e);if(0!==g.length){var y=0;for(h=0;h<g.length;h++){var m=g[h];if(p(e,m)){if(!p(t,m))return!1;c.push(m),y++}else if(p(t,m))return!1}var b=l(t);if(g.length!==b.length&&L(t,b).length!==y)return!1}else{var w=l(t);if(0!==w.length&&0!==L(t,w).length)return!1}}if(0===c.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var v=i.val1.get(e);if(void 0!==v){var _=i.val2.get(t);if(void 0!==_)return v===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,r,i,a,c){var l=0;if(2===c){if(!function(e,t,r,n){for(var i=null,a=s(e),u=0;u<a.length;u++){var c=a[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(r)return!1;if(!U(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=s(t),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!N(i,h,r,n))return!1}else if(!r&&!e.has(h)&&!N(i,h,r,n))return!1}return 0===i.size}return!0}(e,t,r,a))return!1}else if(3===c){if(!function(e,t,r,i){for(var a=null,s=u(e),c=0;c<s.length;c++){var l=n(s[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var d=t.get(f);if(void 0===d&&!t.has(f)||!I(h,d,r,i)){if(r)return!1;if(!z(e,t,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var p=u(t),g=0;g<p.length;g++){var y=n(p[g],2),m=y[0],b=y[1];if("object"===o(m)&&null!==m){if(!q(a,e,m,b,r,i))return!1}else if(!(r||e.has(m)&&I(e.get(m),b,!1,i)||q(a,e,m,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(1===c)for(;l<e.length;l++){if(!d(e,l)){if(d(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var h=f[l];if(!d(t,h)||!I(e[h],t[h],r,a))return!1}return f.length===Object.keys(t).length}if(!d(t,l)||!I(e[l],t[l],r,a))return!1}for(l=0;l<i.length;l++){var p=i[l];if(!I(e[p],t[p],r,a))return!1}return!0}(e,t,r,c,i,a);return i.val1.delete(e),i.val2.delete(t),E}function N(e,t,r,n){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(I(t,a,r,n))return e.delete(a),!0}return!1}function P(e){switch(o(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=P(r);return null!=n?n:t.has(n)&&!e.has(n)}function z(e,t,r,n,i){var o=P(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!I(n,a,!1,i))&&!e.has(o)&&I(n,a,!1,i)}function q(e,t,r,n,i,o){for(var a=s(e),u=0;u<a.length;u++){var c=a[u];if(I(r,c,i,o)&&I(n,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},2350(e,t,r){var n,i,o=r(8287).Buffer,a=r(5606),s=r(3493),u=r(7805).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],l={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=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 d(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[r]||r}function p(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[r]||r}e.exports={defaultOptions:l,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[l.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(6789).version}catch(e){throw new u(i)}if(!r(1534).satisfies(e,t))throw new u("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(564)}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 d(t,r).encode(e)},encodeValue:function(e,t,r){return p(t,r).encode(e)},isValueAsBuffer:function(e,t){return p(e,t).buffer},isKeyAsBuffer:function(e,t){return d(e,t).buffer},decodeValue:function(e,t){return p(t).decode(e)},decodeKey:function(e,t){return d(t).decode(e)}}},2464(e,t,r){"use strict";var n=r(8452),i=r(6642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2545(e,t,r){e.exports=a;var n=r(7295),i=r(5622);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(6698),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))}},2581(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)}},2602(e,t,r){e.exports=r(7684)},2634(){},2642(e,t,r){"use strict";var n=r(7720),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},u=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,r,o){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),l=c?a.slice(0,c.index):a,f=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;f.push(l)}for(var h=0;r.depth>0&&null!==(c=s.exec(a))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(c[1])}if(c){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");f.push("["+a.slice(c.index)+"]")}return function(e,t,r,i){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");o=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=i?t:u(t,r,o),c=e.length-1;c>=0;--c){var l,f=e[c];if("[]"===f&&r.parseArrays)l=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s);else{l=r.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(d,10);r.parseArrays||""!==d?!isNaN(p)&&f!==d&&String(p)===d&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(l=[])[p]=s:"__proto__"!==d&&(l[d]=s):l={0:s}}s=l}return s}(f,t,r,o)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var h,d=-1,p=t.charset;if(t.charsetSentinel)for(h=0;h<f.length;++h)0===f[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[h]?p="utf-8":"utf8=%26%2310003%3B"===f[h]&&(p="iso-8859-1"),d=h,h=f.length);for(h=0;h<f.length;++h)if(h!==d){var g,y,m=f[h],b=m.indexOf("]="),w=-1===b?m.indexOf("="):b+1;-1===w?(g=t.decoder(m,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,w),a.decoder,p,"key"),y=n.maybeMap(u(m.slice(w+1),t,o(r[g])?r[g].length:0),function(e){return t.decoder(e,a.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(String(y))),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var v=i.call(r,g);v&&"combine"===t.duplicates?r[g]=n.combine(r[g],y):v&&"last"!==t.duplicates||(r[g]=y)}return r}(e,r):e,f=r.plainObjects?{__proto__:null}:{},h=Object.keys(l),d=0;d<h.length;++d){var p=h[d],g=c(p,l[p],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},2682(e,t,r){"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=e,"[object Array]"===i.call(s)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},2726(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(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}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(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,s(n.key),n)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=r(8287).Buffer,c=r(5340).inspect,l=c&&c.custom||"inspect";function f(e,t,r){u.prototype.copy.call(e,t,r)}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 u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{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=u.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:l,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2746(e,t,r){var n=r(8287).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}},2768(e,t,r){var n=r(5606);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},2795(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}},2796(e,t,r){var n=r(9723);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}}},2822(){},2861(e,t,r){var n=r(8287),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),a.prototype=Object.create(i.prototype),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)}},2880(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2951(e,t,r){e.exports=r(5405)},2955(e,t,r){"use strict";var n,i=r(5606);function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(6238),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function y(e){i.nextTick(g,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(t,r){i.nextTick(function(){e[c]?r(e[c]):t(p(void 0,!0))})});var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then(function(){t[l]?r(p(void 0,!0)):t[h](r,n)},n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[h])}return this[f]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),n),m);e.exports=function(e){var t,r=Object.create(b,(o(t={},d,{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,l,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},2963(e,t,r){var n=r(8287).Buffer;e.exports=f;var i=r(196),o=r(1831).Z$,a=r(537),s=r(1421),u=r(2175),c=r(3476),l=r(4527);function f(e){if(!(this instanceof f))return new f(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(f,o),f.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)},f.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?l(i):new n(String(i))),r(null,i,e)},r)},f.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},f.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=l(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)},f.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},f.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},f.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)},f.prototype._close=function(e){this.idb.db.close(),e()},f.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},f.prototype._isBuffer=function(e){return n.isBuffer(e)},f.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)}},f.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}},2980(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)}},3003(e){"use strict";e.exports=function(e){return e!=e}},3005(e,t,r){"use strict";var n=r(5386).Buffer,i=r(993);function o(e,t,r){e.copy(t,r)}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);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)o(r.data,t,i),i+=r.data.length,r=r.next;return t},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})},3050(e,t,r){(t=e.exports=r(4053)).Stream=t,t.Readable=t,t.Writable=r(5509),t.Duplex=r(4935),t.Transform=r(1657),t.PassThrough=r(4507)},3093(e,t,r){"use strict";var n=r(4459);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},3126(e,t,r){"use strict";var n=r(6743),i=r(9675),o=r(76),a=r(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},3141(e,t,r){"use strict";var n=r(2861).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=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}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){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 l(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 f(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 d(e){return e&&e.length?this.write(e):""}t.I=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}},3144(e,t,r){"use strict";var n=r(6743),i=r(1002),o=r(76),a=r(7119);e.exports=a||n.call(o,i)},3152(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},3225(e,t,r){"use strict";var n=r(5606);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},3238(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(5140)).Stream=i,t.Readable=t,t.Writable=r(7684),t.Duplex=r(8166),t.Transform=r(5778),t.PassThrough=r(5824),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},3269(e){"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},3324(e,t,r){var n=r(2350),i=r(7805).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},3364(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()},3409(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}},3428(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"})},3476(e,t,r){var n=r(9731),i=r(7237);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}},3493(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}},3497(e,t,r){e.exports=a;var n=r(1511),i=r(5622);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(6698),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}},3519(e,t,r){var n=r(6587);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})})},3600(e,t,r){"use strict";e.exports=i;var n=r(4610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(6698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},3626(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3628(e,t,r){"use strict";var n=r(8648),i=r(1064),o=r(7176);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},3665(e,t,r){"use strict";var n=r(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var l=new Array(60);i(l);var f=new Array(512);i(f);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,g,y,m=new Array(30);function b(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function w(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function v(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function k(e,t,r){E(e,r[2*t],r[2*t+1])}function S(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function x(e,t,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=S(o[s]++,s))}}function A(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function B(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function R(e,t,r){var n,i,s,u,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?k(e,i,t):(k(e,(s=h[i])+256+1,t),0!==(u=o[s])&&E(e,i-=d[s],u),k(e,s=v(--n),r),0!==(u=a[s])&&E(e,n-=m[s],u))}while(c<e.last_lit);k(e,256,t)}function C(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)B(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,B(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,g++),u[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),x(o,c,e.bl_count)}function T(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<u&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function D(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{k(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),E(e,s-3,3)):(k(e,18,e.bl_tree),E(e,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(m);var F=!1;function I(e,t,r,i){E(e,0+(i?1:0),3),function(e,t,r){O(e),_(e,r),_(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}t._tr_init=function(e){F||(function(){var e,t,r,n,i,u=new Array(16);for(r=0,n=0;n<28;n++)for(d[n]=r,e=0;e<1<<o[n];e++)h[r++]=n;for(h[r-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,e=0;e<1<<a[n];e++)f[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,e=0;e<1<<a[n]-7;e++)f[256+i++]=n;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(x(c,287,u),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=S(e,5);p=new b(c,o,257,286,15),g=new b(l,a,0,30,15),y=new b(new Array(0),s,0,19,7)}(),F=!0),e.l_desc=new w(e.dyn_ltree,p),e.d_desc=new w(e.dyn_dtree,g),e.bl_desc=new w(e.bl_tree,y),e.bi_buf=0,e.bi_valid=0,A(e)},t._tr_stored_block=I,t._tr_flush_block=function(e,t,r,n){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),C(e,e.l_desc),C(e,e.d_desc),a=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),C(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?I(e,t,r,n):4===e.strategy||o===i?(E(e,2+(n?1:0),3),R(e,c,l)):(E(e,4+(n?1:0),3),function(e,t,r,n){var i;for(E(e,t-257,5),E(e,r-1,5),E(e,n-4,4),i=0;i<n;i++)E(e,e.bl_tree[2*u[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),R(e,e.dyn_ltree,e.dyn_dtree)),A(e),n&&O(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(h[r]+256+1)]++,e.dyn_dtree[2*v(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){E(e,2,3),k(e,256,c),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},3685(e,t,r){var n=r(5346),i=r(7330);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}},3819(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}},3918(e,t,r){"use strict";var n=r(5606);function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=s(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(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,s(n.key),n)}}function s(e){var t=function(e){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}function u(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=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,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},l(e)}function f(e,t,r){return f=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&d(i,r.prototype),i},f.apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e){return g="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},g(e)}var y=r(537).inspect,m=r(9597).codes.ERR_INVALID_ARG_TYPE;function b(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var w="",v="",_="",E="",k={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 S(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 x(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(e,t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(A,e);var r,i,s,l,f=(r=A,i=h(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function A(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),"object"!==g(e)||null===e)throw new m("options","Object",e);var r=e.message,i=e.operator,o=e.stackStartFn,a=e.actual,s=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=f.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(w="[34m",v="[32m",E="[39m",_="[31m"):(w="",v="",E="",_="")),"object"===g(a)&&null!==a&&"object"===g(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=S(a),s=S(s)),"deepStrictEqual"===i||"strictEqual"===i)t=f.call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=x(e),l=c.split("\n"),f=x(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var p=l[0].length+f[0].length;if(p<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(k[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[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 y=l[l.length-1],m=f[f.length-1];y===m&&(h++<2?s="\n ".concat(y).concat(s):i=y,l.pop(),f.pop(),0!==l.length&&0!==f.length);)y=l[l.length-1],m=f[f.length-1];var S=Math.max(l.length,f.length);if(0===S){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(w,"...").concat(E);A.length>27;)A.pop();return"".concat(k.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(w,"...").concat(E).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var O=0,j=k[r]+"\n".concat(v,"+ actual").concat(E," ").concat(_,"- expected").concat(E),B=" ".concat(w,"...").concat(E," Lines skipped");for(h=0;h<S;h++){var R=h-a;if(l.length<h+1)R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(f[h-2]),O++),o+="\n ".concat(f[h-1]),O++),a=h,i+="\n".concat(_,"-").concat(E," ").concat(f[h]),O++;else if(f.length<h+1)R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(l[h-2]),O++),o+="\n ".concat(l[h-1]),O++),a=h,o+="\n".concat(v,"+").concat(E," ").concat(l[h]),O++;else{var C=f[h],T=l[h],D=T!==C&&(!b(T,",")||T.slice(0,-1)!==C);D&&b(C,",")&&C.slice(0,-1)===T&&(D=!1,T+=","),D?(R>1&&h>2&&(R>4?(o+="\n".concat(w,"...").concat(E),u=!0):R>3&&(o+="\n ".concat(l[h-2]),O++),o+="\n ".concat(l[h-1]),O++),a=h,o+="\n".concat(v,"+").concat(E," ").concat(T),i+="\n".concat(_,"-").concat(E," ").concat(C),O+=2):(o+=i,i="",1!==R&&0!==h||(o+="\n ".concat(T),O++))}if(O>20&&h<S-2)return"".concat(j).concat(B,"\n").concat(o,"\n").concat(w,"...").concat(E).concat(i,"\n")+"".concat(w,"...").concat(E)}return"".concat(j).concat(u?B:"","\n").concat(o).concat(i).concat(s).concat(d)}(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var h=k[i],d=x(a).split("\n");if("notStrictEqual"===i&&"object"===g(a)&&null!==a&&(h=k.notStrictEqualObject),d.length>30)for(d[26]="".concat(w,"...").concat(E);d.length>27;)d.pop();t=1===d.length?f.call(this,"".concat(h," ").concat(d[0])):f.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var p=x(a),y="",O=k[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(k[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(y="".concat(x(s)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(O,"\n\n").concat(p,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),t=f.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=l,t.generatedMessage=!r,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(t),o),t.stack,t.name="AssertionError",u(t)}return s=A,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),A}(l(Error),y.custom);e.exports=A},4035(e,t,r){"use strict";var n,i=r(6556),o=r(9092)(),a=r(9957),s=r(5795);if(o){var u=i("RegExp.prototype.exec"),c={},l=function(){throw c},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{u(e,f)}catch(e){return e===c}}}else{var h=i("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===h(e)}}e.exports=n},4039(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4053(e,t,r){"use strict";var n=r(5606),i=r(3225);e.exports=w;var o,a=r(1097);w.ReadableState=b,r(7007).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(8010),c=r(5386).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},f=Object.create(r(5622));f.inherits=r(6698);var h=r(4385),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,g=r(3005),y=r(7353);f.inherits(w,u);var m=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var n=t instanceof(o=o||r(4935));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&&(p||(p=r(7650).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function w(e){if(o=o||r(4935),!(this instanceof w))return new w(e);this._readableState=new b(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 v(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,S(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof l||"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,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,a,t,!1):A(e,a)):_(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,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&&S(e)),A(e,t)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=y.destroy,w.prototype._undestroy=y.undestroy,w.prototype._destroy=function(e,t){this.push(null),t(e)},w.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),v(this,e,t,!1,r)},w.prototype.unshift=function(e){return v(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){return p||(p=r(7650).I),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var E=8388608;function k(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--,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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){d("emit readable"),e.emit("readable"),R(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(O,e,t))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){d("readable nexttick read 0"),e.read(0)}function B(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function C(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 T(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(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){d("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 d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.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,d("pipe count=%d opts=%j",o.pipesCount,t);var u=t&&!1===t.end||e===n.stdout||e===n.stderr?b:c;function c(){d("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",function t(n,i){d("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())});var l=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",l);var f=!1,h=!1;function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==F(o.pipes,e))&&!f&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function g(t){d("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",m),b()}function m(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",m),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},w.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=F(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},w.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&&S(this):i.nextTick(j,this))}return r},w.prototype.addListener=w.prototype.on,w.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(B,e,t))}(this,e)),this},w.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(d("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){d("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<m.length;o++)e.on(m[o],this.emit.bind(this,m[o]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=C},4123(e,t,r){var n=r(2795);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)})}},4133(e,t,r){"use strict";var n=r(487),i=r(8452),o=r(3003),a=r(6642),s=r(2464),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},4148(e,t,r){"use strict";var n=r(5606);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)}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,s(n.key),n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var u,c,l=r(9597).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,h=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,p=l.ERR_INVALID_RETURN_VALUE,g=l.ERR_MISSING_ARGS,y=r(3918),m=r(537).inspect,b=r(537).types,w=b.isPromise,v=b.isRegExp,_=r(9133)(),E=r(9394)(),k=r(8075)("RegExp.prototype.test");function S(){var e=r(2299);u=e.isDeepEqual,c=e.isDeepStrictEqual}new Map;var x=!1,A=e.exports=R,O={};function j(e){if(e.message instanceof Error)throw e.message;throw new y(e)}function B(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 y({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];B.apply(void 0,[R,t.length].concat(t))}A.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u?s="Failed":1===u?(i=t,t=void 0):(!1===x&&(x=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(c.message=i);var l=new y(c);throw s&&(l.message=s,l.generatedMessage=!0),l},A.AssertionError=y,A.ok=R,A.equal=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t!=r&&j({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},A.notEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");t==r&&j({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),u(t,r)||j({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),u(t,r)&&j({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),c(t,r)||j({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");void 0===u&&S(),c(t,r)&&j({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");E(t,r)||j({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new g("actual","expected");E(t,r)&&j({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=a(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])&&k(t[e],n[e])?i[e]=n[e]:i[e]=t[e])})});function T(e,t,r,n){if("function"!=typeof t){if(v(t))return k(t,e);if(2===arguments.length)throw new h("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new y({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",t,"may not be an empty object");return void 0===u&&S(),a.forEach(function(i){"string"==typeof e[i]&&v(t[i])&&k(t[i],e[i])||function(e,t,r,n,i,o){if(!(r in e)||!c(e[r],t[r])){if(!n){var a=new C(e,i),s=new C(t,i,e),u=new y({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}j({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,i,r,a,n)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function D(e){if("function"!=typeof e)throw new h("fn","Function",e);try{e()}catch(e){return e}return O}function F(e){return w(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!F(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!F(e))throw new h("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return O}).catch(function(e){return e})})}function L(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new h("error",["Object","Error","Function","RegExp"],r);if(t===O){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";j({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!T(t,r,n,e))throw t}function M(e,t,r,n){if(t!==O){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";j({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(e,t,r,n,o){if(!v(t))throw new h("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||k(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(m(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(t),". Input:\n\n").concat(m(e),"\n"));var u=new y({actual:e,expected:t,message:r,operator:o,stackStartFn:n});throw u.generatedMessage=s,u}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];B.apply(void 0,[P,t.length].concat(t))}A.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,D(t)].concat(n))},A.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))})},A.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];M.apply(void 0,[e,D(t)].concat(n))},A.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 M.apply(void 0,[e,t].concat(n))})},A.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var n=new y({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.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}},A.match=function e(t,r,n){N(t,r,n,e,"match")},A.doesNotMatch=function e(t,r,n){N(t,r,n,e,"doesNotMatch")},A.strict=_(P,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},4233(e){"use strict";const t=function*(){}.constructor;e.exports=()=>t},4385(){},4427(e,t,r){var n=r(5606);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},4442(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4459(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4507(e,t,r){"use strict";e.exports=o;var n=r(1657),i=Object.create(r(5622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},4527(e,t,r){var n=r(8287).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},4602(e,t,r){var n=r(8287).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")},l=t.upperBoundInclusive=function(e){return!o(e,"lt")},f=t.lowerBoundExclusive=function(e){return!c(e)},h=t.upperBoundExclusive=function(e){return!l(e)},d=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},p=t.upperBound=function(e,t){var r=d(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?p(e,t):u(e,t)},t.end=function(e,t){return e.reverse?u(e,t):p(e,t)},t.startInclusive=function(e){return e.reverse?l(e):c(e)},t.endInclusive=function(e){return e.reverse?c(e):l(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&&f(e)))return!1;var a,s=p(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)}}},4610(e,t,r){"use strict";e.exports=l;var n=r(6048).F,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(5382);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 l(e){if(!(this instanceof l))return new l(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",f)}function f(){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(6698)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.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)}},l.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))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},4643(e,t,r){function n(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(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},4674(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4675(e,t,r){var n=r(5606);(t=e.exports=r(5821)).Stream=r(8310),t.Readable=t,t.Writable=r(5405),t.Duplex=r(7295),t.Transform=r(2545),t.PassThrough=r(5683),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},4765(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},4803(e,t,r){"use strict";var n=r(8859),i=r(9675),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return o(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=o(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!o(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},4823(e){"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^r[s])];return-1^e}},4829(e,t,r){var n=r(8287).Buffer,i=r(8320).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(537).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,l=c,f=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,f),f+=this._bufs[a].length;return e}if(l<=this._bufs[u[0]].length-h)return s?this._bufs[u[0]].copy(e,t,h,h+l):this._bufs[u[0]].slice(h,h+l);for(s||(e=new n(c)),a=u[0];a<this._bufs.length;a++){if(!(l>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,f,h,h+l);break}this._bufs[a].copy(e,f,h),f+=o,l-=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},4837(e,t,r){var n=r(8287).Buffer,i=r(5606),o=r(2602),a=r(3238),s=r(8688),u=new n(0),c=function(){},l=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=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={}),f(new a(e),l(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),h(new o(e),l(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,l(r)),f(i,l(n)),i}},4935(e,t,r){"use strict";var n=r(3225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=Object.create(r(5622));o.inherits=r(6698);var a=r(4053),s=r(5509);o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(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(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},5019(e,t,r){var n=r(8287).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.I=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}},5140(e,t,r){var n=r(5606);e.exports=f;var i=r(3626),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(5019).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(5019).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},5157(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5240(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(1438),s=r(626);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},5291(e,t,r){"use strict";var n=r(6048).F.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}}},5340(){},5345(e){"use strict";e.exports=URIError},5346(e,t,r){e.exports=Object.keys||r(7589)},5363(e,t,r){var n=r(5606),i=r(7975),o=r(3519),a=r(7520),s=r(6788),u=r(2581),c=r(7970),l=r(8571),f=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},d=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,f,"/"));e.get(d(t),{valueEncoding:"json"},function(e,n){return e&&e.notFound?r(l.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,l.EPERM(e)));t.follow(i.dirname(e),function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(l.ENOTDIR(e))})},t.list=function(t,r){t=h(t);var n=d("/"===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(l.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(d(r),u(n),{valueEncoding:"json"},i)})},t.del=function(t,r){if("/"===(t=h(t)))return n.nextTick(r.bind(null,l.EPERM(t)));e.del(d(t),r)},t}},5373(e,t,r){"use strict";var n=r(8636),i=r(2642),o=r(4765);e.exports={formats:o,parse:i,stringify:n}},5382(e,t,r){"use strict";var n=r(5606),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5412),a=r(6708);r(6698)(l,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(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",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.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)}})},5386(e,t,r){var n=r(8287),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)}},5405(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function u(e,t){var i=r(7295),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=d(0,r);a||r.corked||r.bufferProcessing||!r.buffer.length||h(e,r),i?n.nextTick(function(){f(e,r,a,o)}):f(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(7295);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(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++,l(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(l(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 d(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function g(e,t){var r=d(0,t);return r&&(0===t.pendingcb?(p(e,t),t.finished=!0,e.emit("finish")):p(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)):l(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)}},5412(e,t,r){"use strict";var n,i=r(5606);e.exports=x,x.ReadableState=S,r(7007).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(345),u=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},l=r(9838);o=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,d,p=r(2726),g=r(5896),y=r(5291).getHighWaterMark,m=r(6048).F,b=m.ERR_INVALID_ARG_TYPE,w=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(x,s);var E=g.errorOrDestroy,k=["error","close","destroy","pause","resume"];function S(e,t,i){n=n||r(5382),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 p,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&&(f||(f=r(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(5382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new S(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 A(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?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(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 b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)E(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(e,new _):O(e,s,t,!0);else if(s.ended)E(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):T(e,s)):O(e,s,t,!1)}else n||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(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&&R(e)),T(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){t(e)},x.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),A(this,e,t,!1,r)},x.prototype.unshift=function(e){return A(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){f||(f=r(3141).I);var t=new f(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 B(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 R(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(C,e))}function C(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,M(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(D,e,t))}function D(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 F(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 I(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function N(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 P(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(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 z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.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?P(this):R(this),null;if(0===(e=B(e,t))&&t.ended)return 0===t.length&&P(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=B(r,t))),null===(n=e>0?N(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&&P(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){E(this,new v("_read()"))},x.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",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",f),l=!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,M(e))}}(r);e.on("drain",c);var l=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==z(n.pipes,e))&&!l&&(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(e,t)}function d(){e.removeListener("finish",p),g()}function p(){o("onfinish"),e.removeListener("close",d),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},x.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=z(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},x.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?R(this):n.reading||i.nextTick(I,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(F,this),r},x.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(F,this),t},x.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(L,e,t))}(this,e)),e.paused=!1,this},x.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},x.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<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(2955)),h(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=N,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===d&&(d=r(5157)),d(x,e,t)})},5509(e,t,r){"use strict";var n=r(5606),i=r(3225);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;m.WritableState=y;var u=Object.create(r(5622));u.inherits=r(6698);var c,l={deprecate:r(4643)},f=r(8010),h=r(5386).Buffer,d=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},p=r(7353);function g(){}function y(e,t){a=a||r(4935),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,l=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:l,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,o);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),n?s(w,e,r,a,o):w(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 m(e){if(a=a||r(4935),!(c.call(m,this)||this instanceof a))return new m(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)),f.call(this)}function b(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 w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function v(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,b(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,l=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=_(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(m,f),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:l.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(m,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===m&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,h.isBuffer(n)||n instanceof d);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 b(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.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||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},5584(e,t,r){var n=r(5606),i=(r(7007).EventEmitter,n.nextTick,r(8662)),o=r(3152),a=r(7212),s=r(5687);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 l=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))}),l.call(n,e,t,r)},n}},5606(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,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-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{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}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 d(e,t)),1!==u.length||c||a(h)},d.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=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,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}},5622(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(8287).Buffer.isBuffer},5641(e,t,r){var n=r(8287).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.I=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}},5680(e,t,r){"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},5683(e,t,r){e.exports=o;var n=r(2545),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5687(e,t,r){var n=r(2980);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 l(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return l(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return l(!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 l(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 l=n[0];return"put"==l.type?i.call(e,l.key,l.value,u,c):o.call(e,l.key,u,c)}return a.call(e,n,u,c)}}},5767(e,t,r){"use strict";var n=r(2682),i=r(9209),o=r(487),a=r(6556),s=r(5795),u=r(3628),c=a("Object.prototype.toString"),l=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,h=i(),d=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(h,l&&s&&u?function(e){var t=new f[e];if(Symbol.toStringTag in t&&u){var r=u(t),n=s(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=s(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new f[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(c(e),8,-1);return p(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return n(g,function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}}),t}(e):null}},5778(e,t,r){e.exports=a;var n=r(8166),i=r(5622);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(6698),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}},5795(e,t,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5821(e,t,r){var n=r(5606);e.exports=h;var i=r(9278),o=r(8287).Buffer;h.ReadableState=f;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);c.inherits=r(6698);var l=r(717);function f(e,t){var n=r(7295),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(554).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(r(7295),!(this instanceof h))return new h(e);this._readableState=new f(e,this),this.readable=!0,u.call(this)}function d(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&&(l("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)}l=l&&l.debuglog?l.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=""),d(this,r,e,t,!1)},h.prototype.unshift=function(e){return d(this,this._readableState,e,"",!0)},h.prototype.setEncoding=function(e){return s||(s=r(554).I),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var p=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>=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 y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(function(){m(e)}):m(e))}function m(e){l("emit readable"),e.emit("readable"),b(e)}function b(e){var t=e._readableState;if(l("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function v(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){l("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 l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?v(this):y(this),null;if(0===(e=g(e,t))&&t.ended)return 0===t.length&&v(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),(t.ended||t.reading)&&l("reading or ended",i=!1),i&&(l("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?w(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&&v(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,l("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){l("onunpipe"),e===r&&h()}function c(){l("onend"),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;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a.listenerCount(e,"data")&&(t.flowing=!0,b(e))}}(r);function h(){l("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",h),r.removeListener("data",d),!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function d(t){l("ondata"),!1===e.write(t)&&(l("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function p(t){l("onerror",t),m(),e.removeListener("error",p),0===a.listenerCount(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),m()}function y(){l("onfinish"),e.removeListener("close",g),m()}function m(){l("unpipe"),r.unpipe(e)}return e.on("drain",f),r.on("data",d),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(p):e._events.error=[p,e._events.error]:e.on("error",p),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(l("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(){l("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||(l("resume"),e.flowing=!0,e.reading||(l("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"),b(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},h.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("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(l("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){l("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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r])}(["error","close","destroy","pause","resume"],function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},n},h._fromList=w},5824(e,t,r){e.exports=o;var n=r(5778),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5880(e){"use strict";e.exports=Math.pow},5896(e,t,r){"use strict";var n=r(5606);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)}}},5974(e,t,r){"use strict";var n=r(8287).Buffer,i=r(5606),o=r(4148),a=r(4442),s=r(8411),u=r(1447),c=r(9681);for(var l in c)t[l]=c[l];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},f.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},f.prototype._write=function(e,r,a,s,u,c,l,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=n.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=l,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return i.nextTick(function(){h._process(),h._after()}),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,r,n,i,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(r>=-1&&r<=9,"invalid compression level"),o(n>=1&&n<=9,"invalid memlevel"),o(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,n,i,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,r,n,i,o){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new a,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},6048(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,4)===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-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+1>(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.F=t},6060(){},6188(e){"use strict";e.exports=Math.max},6238(e,t,r){"use strict";var n=r(6048).F.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||l()},c=t._writableState&&t._writableState.finished,l=function(){s=!1,c=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||o.call(t)},d=function(e){o.call(t,e)},p=function(){var e;return a&&!f?(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",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),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",l),!1!==r.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},6503(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},6549(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},6556(e,t,r){"use strict";var n=r(453),i=r(3126),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}},6576(e,t,r){"use strict";var n=r(9394),i=r(8452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6585(e){var t=1e3,r=60*t,n=60*r,i=24*n,o=7*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var u,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(u=e,(c=Math.abs(u))>=i?a(u,c,i,"day"):c>=n?a(u,c,n,"hour"):c>=r?a(u,c,r,"minute"):c>=t?a(u,c,t,"second"):u+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6587(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}}},6642(e,t,r){"use strict";var n=r(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6698(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}}},6708(e,t,r){"use strict";var n,i=r(5606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=x,x.WritableState=S;var a,s={deprecate:r(4643)},u=r(345),c=r(8287).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0!==self?self:{}).Uint8Array||function(){},f=r(5896),h=r(5291).getHighWaterMark,d=r(6048).F,p=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function k(){}function S(e,t,a){n=n||r(5382),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(C,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),C(e,t))}(e,r,n,t,o);else{var a=B(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?i.nextTick(O,e,r,a,o):O(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 x(e){var t=this instanceof(n=n||r(5382));if(!t&&!a.call(x,this))return new x(e);this._writableState=new S(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 A(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function O(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(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,A(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,l=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var r=B(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(R,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(6698)(x,u),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.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(x,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===x&&e&&e._writableState instanceof S}})):a=function(e){return e instanceof this},x.prototype.pipe=function(){E(this,new m)},x.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof l);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=k),o.ending?function(e,t){var r=new v;E(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new w:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(E(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 l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},x.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);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new g("_write()"))},x.prototype._writev=null,x.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,C(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}},6743(e,t,r){"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},6745(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},6788(e){e.exports=function(e,t){return parseInt(e.toString(),t||8)}},6789(){},6841(e,t,r){var n=r(5606),i=r(8287).Buffer,o=r(537),a=r(1831).Z$;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},6889(){},6897(e,t,r){"use strict";var n=r(453),i=r(41),o=r(592)(),a=r(5795),s=r(9675),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7007(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,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))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(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):p(i,i.length)}function d(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 p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(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(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r<c;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(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},o.prototype.off=o.prototype.removeListener,o.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},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176(e,t,r){"use strict";var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},7212(e,t,r){var n=r(1779);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}},7237(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7244(e,t,r){"use strict";var n=r(9092)(),i=r(6556)("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&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},7274(e,t,r){!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(7969),a=r(3819),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),l=a(e),f=[];if(!t&&!r&&!l)throw new TypeError("Object.keys called on a non-object");if(l)o(e,function(e){f.push(e)});else{var h,d=u&&r;for(h in e)d&&"prototype"===h||!n.call(e,h)||f.push(h)}if(s){var p=e.constructor,g=p&&p.prototype===e;o(c,function(t){g&&"constructor"===t||!n.call(e,t)||f.push(t)})}return f},e.exports=t}()},7293(e){"use strict";e.exports=function(e,t){var r,n,i,o,a,s,u,c,l,f,h,d,p,g,y,m,b,w,v,_,E,k,S,x,A;r=e.state,n=e.next_in,x=e.input,i=n+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,g=r.lencode,y=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(d+=x[n++]<<p,p+=8,d+=x[n++]<<p,p+=8),w=g[d&m];t:for(;;){if(d>>>=v=w>>>24,p-=v,0==(v=w>>>16&255))A[o++]=65535&w;else{if(!(16&v)){if(64&v){if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=g[(65535&w)+(d&(1<<v)-1)];continue t}for(_=65535&w,(v&=15)&&(p<v&&(d+=x[n++]<<p,p+=8),_+=d&(1<<v)-1,d>>>=v,p-=v),p<15&&(d+=x[n++]<<p,p+=8,d+=x[n++]<<p,p+=8),w=y[d&b];;){if(d>>>=v=w>>>24,p-=v,16&(v=w>>>16&255)){if(E=65535&w,p<(v&=15)&&(d+=x[n++]<<p,(p+=8)<v&&(d+=x[n++]<<p,p+=8)),(E+=d&(1<<v)-1)>u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=v,p-=v,E>(v=o-a)){if((v=E-v)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,S=h,0===f){if(k+=c-v,v<_){_-=v;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}}else if(f<v){if(k+=c+f-v,(v-=f)<_){_-=v;do{A[o++]=h[k++]}while(--v);if(k=0,f<_){_-=v=f;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}}}else if(k+=f-v,v<_){_-=v;do{A[o++]=h[k++]}while(--v);k=o-E,S=A}for(;_>2;)A[o++]=S[k++],A[o++]=S[k++],A[o++]=S[k++],_-=3;_&&(A[o++]=S[k++],_>1&&(A[o++]=S[k++]))}else{k=o-E;do{A[o++]=A[k++],A[o++]=A[k++],A[o++]=A[k++],_-=3}while(_>2);_&&(A[o++]=A[k++],_>1&&(A[o++]=A[k++]))}break}if(64&v){e.msg="invalid distance code",r.mode=30;break e}w=y[(65535&w)+(d&(1<<v)-1)]}}break}}while(n<i&&o<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},7295(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(5821),s=r(5405);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},7330(e){e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7349(e,t,r){var n=r(5606);e.exports=f;var i=r(6745),o=r(8287).Buffer;f.ReadableState=l;var a=r(7007).EventEmitter;a.listenerCount||(a.listenerCount=function(e,t){return e.listeners(t).length});var s,u=r(8310),c=r(5622);function l(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(9234).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new l(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,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(6698),c.inherits(f,u),f.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)},f.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){s||(s=r(9234).I),this._readableState.decoder=new s(e),this._readableState.encoding=e};var d=8388608;function p(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>=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 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 m(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):E(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&&w(e));r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function w(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 v(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=(f=n[0]).slice(0,e),n[0]=f.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new o(e);for(var u=0,c=0,l=n.length;c<l&&u<e;c++){var f=n[0],h=Math.min(e-u,f.length);a?r+=f.slice(0,h):f.copy(r,u,0,h),h<f.length?n[0]=f.slice(h):n.shift(),u+=h}}return r}function _(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(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.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=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&_(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=p(n,t)),null===(r=e>0?v(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&&_(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.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?f:c;function u(e){e===r&&f()}function c(){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;t.awaitDrain--,0===t.awaitDrain&&m(e)}}(r);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===a.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){r.unpipe(e)}return e.on("drain",l),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",d),e.once("finish",p),e.emit("pipe",r),o.flowing||(this.on("readable",b),o.flowing=!0,n.nextTick(function(){m(r)})),e},f.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",b),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",b),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},f.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||w(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},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){w(this,!0),this.emit("pause")},f.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 E(["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},f._fromList=v},7353(e,t,r){"use strict";var n=r(3225);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||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):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?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},7432(e,t,r){var n=r(8287).Buffer,i=r(5606),o=r(2951),a=r(4675),s=r(4123),u=r(537),c=r(3519),l=new n(0),f={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(){},d=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},p=t.blockSize||65536,g=t.batch||100,y=new n(p);e.put("\0","ignore",h);var m={},b=function(e,t){if(!(this instanceof b))return new b(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(b,o),b.prototype._init=function(e){this.blockIndex=e/p|0,this.blockOffset=e-this.blockIndex*p,this.blockLength=this.blockOffset},b.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)},b.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)})},b.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+"ÿ"+d(i),u=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<g?r():a._flush(r)};return!o&&r.length===p||!o&&!this.append?u(r,!1,t):void function(t,r,i,o,a){var s=function(){--m[t].locks||delete m[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(p)),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(m[t])return u(m[t]);e.get(t,{valueEncoding:f},function(e,r){if(e&&!e.notFound)return a(e);m[t]||(m[t]={locks:0,block:r}),u(m[t])})}(s,o,r,this.append,function(e,r,n){if(e)return t(e);u(r,!0,function(e){n(),t(e)})})},b.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)})},b.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=p-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)},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,i.nextTick(this.emit.bind(this,"close")))},b.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=l),this.write(l,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 w=function(t,r){r||(r={});var n=this,i=r.start||0,o=i/p|0,s=i-o*p,u=t+"ÿ"+d(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:f});var c=function(e){return u=t+"ÿ"+d(++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(w,a),w.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),i.nextTick(this.emit.bind(this,"close")))},w.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},w.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:f},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)*p+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 w(e,t)},r.createWriteStream=function(e,t){return new b(e,t)},r}},7520(e,t,r){var n=r(8287).Buffer,i=r(3050).Writable,o=r(6698),a=r(2746);if("undefined"==typeof Uint8Array)var s=r(9656).SE;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},7526(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),l=0,f=u>0?a-4:a;for(r=0;r<f;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[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=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;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(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 u(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function c(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(u(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7589(e,t,r){!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(9661),o=r(7593),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}()},7593(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)}},7650(e,t,r){"use strict";var n=r(5386).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=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}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){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 l(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 f(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 d(e){return e&&e.length?this.write(e):""}t.I=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}},7653(e,t,r){"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},7684(e,t,r){var n=r(5606);e.exports=c;var i=r(8287).Buffer;c.WritableState=u;var o=r(5622);o.inherits=r(6698);var a=r(8310);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(l(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(){f(e,r,a,o)}):f(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(8166);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new u(e,this),this.writable=!0,a.call(this)}function l(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 f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&d(e,t)}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(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)):l(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,d(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}},7713(e,t,r){var n=r(2963),i=r(9043),o=r(1891),a=i("level-filesystem",{db:n});e.exports=o(a)},7720(e,t,r){"use strict";var n=r(4765),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",l=0;l<s.length;l+=u){for(var f=s.length>=u?s.slice(l,l+u):s,h=[],d=0;d<f.length;++d){var p=f.charCodeAt(d);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===n.RFC1738&&(40===p||41===p)?h[h.length]=f.charAt(d):p<128?h[h.length]=a[p]:p<2048?h[h.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?h[h.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(d+=1,p=65536+((1023&p)<<10|1023&f.charCodeAt(d)),h[h.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}c+=h.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},a)}}},7758(e,t,r){"use strict";var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map(function(e,i){var o=i<t.length-1;return function(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(6238)),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"))}}(e,o,i>0,function(e){l||(l=e),e&&h.forEach(u),o||(h.forEach(u),f(l))})});return t.reduce(c)}},7805(e,t,r){var n=r(519).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)}},7833(e,t,r){var n=r(5606);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7969(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n){if(!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}(n))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?n(a?e.charAt(i):e[i],i,e):n.call(u,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===u?n(e[o],o,e):n.call(u,e[o],o,e))}},7970(e,t,r){var n=r(6503);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}},7975(e,t,r){"use strict";var n=r(5606);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,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>c&&(47===e.charCodeAt(r+f)?l=f:0===f&&(l=0));break}var h=e.charCodeAt(r+f);if(h!==t.charCodeAt(s+f))break;47===h&&(l=f)}var d="";for(f=r+l+1;f<=n;++f)f!==n&&47!==e.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(s+l):(s+=l,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,l=e.length-1,f=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===n?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&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},8002(e){"use strict";e.exports=Math.min},8010(e,t,r){e.exports=r(7007).EventEmitter},8068(e){"use strict";e.exports=SyntaxError},8075(e,t,r){"use strict";var n=r(453),i=r(487),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}},8166(e,t,r){var n=r(5606);e.exports=u;var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},o=r(5622);o.inherits=r(6698);var a=r(5140),s=r(7684);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++)t(e[r])}(i(s.prototype),function(e){u.prototype[e]||(u.prototype[e]=s.prototype[e])})},8184(e,t,r){"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),o=r(9092)(),a=r(3628),s=n("Object.prototype.toString"),u=n("Function.prototype.toString"),c=r(4233);e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=c();return t&&a(e)===t.prototype}},8221(){},8287(e,t,r){"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 f(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(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(K(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(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(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(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 u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 f(e){return l(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),r=s(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,u.prototype),n}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(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 Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(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 R(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(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),Y(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=u.from(t,n)),u.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 v(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(Y(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return H(Z(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(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 H(G(t),e,r,n)}function S(e,t,r,n){return H(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?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(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<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.kMaxLength=a,u.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}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.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},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.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)m(this,t,t+1);return this},u.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)m(this,t,t+3),m(this,t+1,t+2);return this},u.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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<s;++e)if(c[e]!==l[e]){o=c[e],a=l[e];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},u.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 v(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function j(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 B(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 R(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+=J[e[n]];return i}function C(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 T(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 D(e,t,r,n,i,o){if(!u.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 F(e,t,r,n,i){q(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 I(e,t,r,n,i){q(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 L(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 M(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return t=+t,r>>>=0,o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.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,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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))}),u.prototype.readBigUInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(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},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(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},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readBigInt64BE=X(function(e){W(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(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)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||D(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},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||D(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},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeBigUInt64LE=X(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=X(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(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},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(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},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(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},u.prototype.writeBigInt64LE=X(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=X(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.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},u.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&&!u.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=u.isBuffer(e)?e:u.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 P={};function U(e,t,r){P[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 z(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 q(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 P.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(n,i,o)}function W(e,t){if("number"!=typeof e)throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw W(e,r),new P.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("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=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(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 G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(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 K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=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 X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8310(e,t,r){e.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(6698)(i,n),i.Readable=r(5412),i.Writable=r(6708),i.Duplex=r(5382),i.Transform=r(4610),i.PassThrough=r(3600),i.finished=r(6238),i.pipeline=r(7758),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(l(),0===n.listenerCount(this,"error"))throw e}function l(){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",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},8320(e,t,r){var n=r(5606),i=r(8310);(t=e.exports=r(1438)).Stream=i,t.Readable=t,t.Writable=r(626),t.Duplex=r(5240),t.Transform=r(9816),t.PassThrough=r(186),n.browser||"disable"!==n.env.READABLE_STREAM||(e.exports=r(8310))},8403(e,t,r){"use strict";var n=r(1189),i=r(1333)(),o=r(6556),a=r(9612),s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),c=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var l=a(arguments[o]),f=n(l),h=i&&(a.getOwnPropertySymbols||c);if(h)for(var d=h(l),p=0;p<d.length;++p){var g=d[p];u(l,g)&&s(f,g)}for(var y=0;y<f.length;++y){var m=f[y];if(u(l,m)){var b=l[m];r[m]=b}}}return r}},8411(e,t,r){"use strict";var n,i=r(9805),o=r(3665),a=r(3269),s=r(4823),u=r(4674),c=-2,l=258,f=262,h=103,d=113,p=666;function g(e,t){return e.msg=u[t],t}function y(e){return(e<<1)-(e>4?9:0)}function m(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function w(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function v(e,t){e.pending_buf[e.pending++]=t}function _(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function E(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=a(e.adler,t,o,r):2===e.state.wrap&&(e.adler=s(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function k(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,c=e.window,h=e.w_mask,d=e.prev,p=e.strstart+l,g=c[o+a-1],y=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===y&&c[r+a-1]===g&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<p);if(n=l-(p-o),o=p-l,n>a){if(e.match_start=t,a=n,n>=s)break;g=c[o+a-1],y=c[o+a]}}}while((t=d[t&h])>u&&0!==--i);return a<=e.lookahead?a:e.lookahead}function S(e){var t,r,n,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--r);t=r=s;do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--r);o+=s}if(0===e.strm.avail_in)break;if(r=E(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function x(e,t){for(var r,n;;){if(e.lookahead<f){if(S(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-f&&(e.match_length=k(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var r,n,i;;){if(e.lookahead<f){if(S(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-f&&(e.match_length=k(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(w(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&w(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function B(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):g(e,c)}function R(e){var t,r=B(e);return 0===r&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function C(e,t,r,n,o,a){if(!e)return c;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return g(e,c);8===n&&(n=9);var u=new j;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,R(e)}n=[new O(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(S(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,w(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(w(e,!1),e.strm.avail_out),1)}),new O(4,4,8,4,x),new O(4,5,16,8,x),new O(4,6,32,32,x),new O(4,4,16,16,A),new O(8,16,32,32,A),new O(8,16,128,128,A),new O(8,32,128,256,A),new O(32,128,258,1024,A),new O(32,258,258,4096,A)],t.deflateInit=function(e,t){return C(e,t,8,15,8,0)},t.deflateInit2=C,t.deflateReset=R,t.deflateResetKeep=B,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>5||t<0)return e?g(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===p&&4!==t)return g(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,3),i.status=d);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=d,_(i,f),0!==i.strstart&&(_(i,e.adler>>>16),_(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,v(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,v(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(v(i,255&e.adler),v(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&y(t)<=y(r)&&4!==t)return g(e,-5);if(i.status===p&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==p){var E=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(S(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=l){if(S(e),e.lookahead<=l&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+l;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=l-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==E&&4!==E||(i.status=p),1===E||3===E)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===E&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(v(i,255&e.adler),v(i,e.adler>>8&255),v(i,e.adler>>16&255),v(i,e.adler>>24&255),v(i,255&e.total_in),v(i,e.total_in>>8&255),v(i,e.total_in>>16&255),v(i,e.total_in>>24&255)):(_(i,e.adler>>>16),_(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==h&&t!==d&&t!==p?g(e,c):(e.state=null,t===d?g(e,-3):0):c},t.deflateSetDictionary=function(e,t){var r,n,o,s,u,l,f,h,d=t.length;if(!e||!e.state)return c;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,d-r.w_size,r.w_size,0),t=h,d=r.w_size),u=e.avail_in,l=e.next_in,f=e.input,e.avail_in=d,e.next_in=0,e.input=t,S(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,S(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=f,e.avail_in=u,r.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},8452(e,t,r){"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(41),u=r(592)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;u?s(e,t,r,!0):s(e,t,r)},l=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]])};l.supportsDescriptors=!!u,e.exports=l},8531(e,t,r){var n=r(1963).Readable,i=r(537).inherits,o=r(3493),a=r(7805).EncodingError,s=r(2350),u={keys:!0,values:!0},c=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},l=function(e){return s.decodeKey(e,this._options)},f=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function d(e,t,r){if(!(this instanceof d))return new d(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?l:this._options.values?f: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(d,n),d.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)})},d.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")}},d.prototype.destroy=function(){this._cleanup()},d.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=d},8559(e,t,r){"use strict";var n=r(5606),i=r(8287).Buffer,o=r(8310).Transform,a=r(5974),s=r(537),u=r(4148).ok,c=r(8287).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),h=0;h<f.length;h++){var d=f[h];d.match(/^Z/)&&Object.defineProperty(t,d,{enumerable:!0,value:a[d],writable:!1})}for(var p={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR},g=Object.keys(p),y=0;y<g.length;y++){var m=g[y];p[p[m]]=m}function b(e,t,r){var n=[],o=0;function a(){for(var t;null!==(t=e.read());)n.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=c?a=new RangeError(l):t=i.concat(n,o),n=[],e.close(),r(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)}),e.on("end",s),e.end(t),a()}function w(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);j.call(this,e,a.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);j.call(this,e,a.INFLATE)}function E(e){if(!(this instanceof E))return new E(e);j.call(this,e,a.GZIP)}function k(e){if(!(this instanceof k))return new k(e);j.call(this,e,a.GUNZIP)}function S(e){if(!(this instanceof S))return new S(e);j.call(this,e,a.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);j.call(this,e,a.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);j.call(this,e,a.UNZIP)}function O(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function j(e,r){var n=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new a.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){B(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var c=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(c=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,c,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function B(e,t){t&&n.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function R(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=v,t.Inflate=_,t.Gzip=E,t.Gunzip=k,t.DeflateRaw=S,t.InflateRaw=x,t.Unzip=A,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new _(e)},t.createDeflateRaw=function(e){return new S(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new E(e)},t.createGunzip=function(e){return new k(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new v(t),e,r)},t.deflateSync=function(e,t){return w(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new E(t),e,r)},t.gzipSync=function(e,t){return w(new E(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new S(t),e,r)},t.deflateRawSync=function(e,t){return w(new S(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new A(t),e,r)},t.unzipSync=function(e,t){return w(new A(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new _(t),e,r)},t.inflateSync=function(e,t){return w(new _(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new k(t),e,r)},t.gunzipSync=function(e,t){return w(new k(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new x(t),e,r)},t.inflateRawSync=function(e,t){return w(new x(t),e)},s.inherits(j,o),j.prototype.params=function(e,r,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){u(o._handle,"zlib binding closed"),o._handle.params(e,r),o._hadError||(o._level=e,o._strategy=r,i&&i())})}else n.nextTick(i)},j.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},j.prototype.flush=function(e,t){var r=this,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&n.nextTick(t):o.ending?t&&this.once("end",t):o.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(i.alloc(0),"",t))},j.prototype.close=function(e){B(this,e),n.nextTick(R,this)},j.prototype._transform=function(e,t,r){var n,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?n=this._finishFlushFlag:(n=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.Z_NO_FLUSH)),void this._processChunk(e,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},j.prototype._processChunk=function(e,t,r){var n=e&&e.length,o=this._chunkSize-this._offset,a=0,s=this,f="function"==typeof r;if(!f){var h,d=[],p=0;this.on("error",function(e){h=e}),u(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,n,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(p>=c)throw B(this),new RangeError(l);var y=i.concat(d,p);return B(this),y}u(this._handle,"zlib binding closed");var m=this._handle.write(t,e,a,n,this._buffer,this._offset,o);function b(c,l){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var h=o-l;if(u(h>=0,"have should not go down"),h>0){var g=s._buffer.slice(s._offset,s._offset+h);s._offset+=h,f?s.push(g):(d.push(g),p+=g.length)}if((0===l||s._offset>=s._chunkSize)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===l){if(a+=n-c,n=c,!f)return!0;var y=s._handle.write(t,e,a,n,s._buffer,s._offset,s._chunkSize);return y.callback=b,void(y.buffer=e)}if(!f)return!1;r()}}m.buffer=e,m.callback=b},s.inherits(v,j),s.inherits(_,j),s.inherits(E,j),s.inherits(k,j),s.inherits(S,j),s.inherits(x,j),s.inherits(A,j)},8571(e,t,r){var n=r(519);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}})},8636(e,t,r){"use strict";var n=r(920),i=r(7720),o=r(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},g=function e(t,r,o,a,s,c,f,h,g,y,m,b,w,v,_,E,k,S){for(var x,A=t,O=S,j=0,B=!1;void 0!==(O=O.get(p))&&!B;){var R=O.get(t);if(j+=1,void 0!==R){if(R===j)throw new RangeError("Cyclic object value");B=!0}void 0===O.get(p)&&(j=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=w(A):"comma"===o&&u(A)&&(A=i.maybeMap(A,function(e){return e instanceof Date?w(e):e})),null===A){if(c)return g&&!E?g(r,d.encoder,k,"key",v):r;A=""}if("string"==typeof(x=A)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(A))return g?[_(E?r:g(r,d.encoder,k,"key",v))+"="+_(g(A,d.encoder,k,"value",v))]:[_(r)+"="+_(String(A))];var C,T=[];if(void 0===A)return T;if("comma"===o&&u(A))E&&g&&(A=i.maybeMap(A,g)),C=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(y))C=y;else{var D=Object.keys(A);C=m?D.sort(m):D}var F=h?String(r).replace(/\./g,"%2E"):String(r),I=a&&u(A)&&1===A.length?F+"[]":F;if(s&&u(A)&&0===A.length)return I+"[]";for(var L=0;L<C.length;++L){var M=C[L],N="object"==typeof M&&M&&void 0!==M.value?M.value:A[M];if(!f||null!==N){var P=b&&h?String(M).replace(/\./g,"%2E"):String(M),U=u(A)?"function"==typeof o?o(I,P):I:I+(b?"."+P:"["+P+"]");S.set(t,j);var z=n();z.set(p,S),l(T,e(N,U,o,a,s,c,f,h,"comma"===o&&E&&u(A)?null:g,y,m,b,w,v,_,E,k,z))}}return T};e.exports=function(e,t){var r,i=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,i=o.formatters[r],c=d.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:r,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(r=c.filter);var f=[];if("object"!=typeof i||null===i)return"";var h=s[c.arrayFormat],p="comma"===h&&c.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var y=n(),m=0;m<r.length;++m){var b=r[m],w=i[b];c.skipNulls&&null===w||l(f,g(w,b,h,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var v=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},8648(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8662(e,t,r){var n=r(7007).EventEmitter,i=r(537).inherits,o=r(2980),a=r(7212),s=r(3685),u=r(3152);function c(e,t,r){if("string"==typeof r&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof c))return new c(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=f(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var n=this;this.hooks={pre:function(){return n.pre.apply(n,arguments)},post:function(){return n.post.apply(n,arguments)}}}i(c,n);var l=c.prototype;function f(e){return e._parent?f(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:s(e,this._options),cb:t}},l.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new c(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 u(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=f(this),r=this.prefix(),n=o.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,s(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(r.length)),t};else{var u=i.emit;i.emit=function(e,t){"data"===e?u.call(this,"data",t.substring(r.length)):u.call(this,e,t)}}return i}return!1===n.keys||((a=i.read)?i.read=function(e){var t=a.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=f(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=f(db);return e.approximateSize.apply(e,arguments)},l.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var r=f(this._parent),n=this.prefix();return r.hooks.pre(a(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=f(this._parent),n=this.prefix();return e=o.prefix(e,n,this._options.sep),r.hooks.post(a(e),function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})})},e.exports=c},8688(e,t,r){e.exports=r(8166)},8835(e,t,r){"use strict";var n=r(9655);function i(){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}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(5373);i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var w=s.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=o.exec(b);if(v){var _=(v=v[0]).toLowerCase();this.protocol=_,b=b.substr(v.length)}if(r||v||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||v&&g[v]||(b=b.substr(2),this.slashes=!0)}if(!g[v]&&(E||v&&!y[v])){for(var k,S,x=-1,A=0;A<f.length;A++)-1!==(O=b.indexOf(f[A]))&&(-1===x||O<x)&&(x=O);for(-1!==(S=-1===x?b.lastIndexOf("@"):b.lastIndexOf("@",x))&&(k=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(k)),x=-1,A=0;A<l.length;A++){var O;-1!==(O=b.indexOf(l[A]))&&(-1===x||O<x)&&(x=O)}-1===x&&(x=b.length),this.host=b.slice(0,x),b=b.slice(x),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var B=this.hostname.split(/\./),R=(A=0,B.length);A<R;A++){var C=B[A];if(C&&!C.match(h)){for(var T="",D=0,F=C.length;D<F;D++)C.charCodeAt(D)>127?T+="x":T+=C[D];if(!T.match(h)){var I=B.slice(0,A),L=B.slice(A+1),M=C.match(d);M&&(I.push(M[1]),L.unshift(M[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+N,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!p[_])for(A=0,R=c.length;A<R;A++){var U=c[A];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var $=this.search||"";this.path=N+$}return this.href=this.format(),this},i.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||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[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 p=r.pathname||"",m=r.search||"";r.path=p+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=w||b||r.host&&e.pathname,_=v,E=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.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),v=v&&(""===d[0]||""===E[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,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=e.search,r.query=e.query;else if(null!=e.search)return k&&(r.host=E.shift(),r.hostname=r.host,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=E.slice(-1)[0],x=(r.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,A=0,O=E.length;O>=0;O--)"."===(S=E[O])?E.splice(O,1):".."===S?(E.splice(O,1),A++):A&&(E.splice(O,1),A--);if(!v&&!_)for(;A--;A)E.unshift("..");!v||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),x&&"/"!==E.join("/").substr(-1)&&E.push("");var j,B=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(r.hostname=B?"":E.length?E.shift():"",r.host=r.hostname,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),(v=v||r.host&&E.length)&&!B&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===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},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},8859(e,t,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,k=Array.prototype.concat,S=Array.prototype.join,x=Array.prototype.slice,A=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return w.call(i,r,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,r,"$&_")}var I=r(2634),L=I.custom,M=V(L)?L:null,N={__proto__:null,double:'"',single:"'"},P={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,i=N[n];return i+e+i}function z(e){return w.call(String(e),/"/g,""")}function q(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function W(e){return"[object Array]"===H(e)&&q(e)}function $(e){return"[object RegExp]"===H(e)&&q(e)}function V(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!B)return!1;try{return B.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u=n||{};if(G(u,"quoteStyle")&&!G(N,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!G(u,"customInspect")||u.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return v?F(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return v?F(t,A):A}var j=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=j&&j>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var L,P=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function Z(t,r,n){if(r&&(s=x.call(s)).push(r),n){var o={depth:u.depth};return G(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!$(t)){var J=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,Z);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ne.length>0?" { "+S.call(ne,", ")+" }":"")}if(V(t)){var ie=R?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(t);return"object"!=typeof t||R?ie:X(ie)}if((L=t)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var oe="<"+_.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)oe+=" "+ae[se].name+"="+U(z(ae[se].value),"double",u);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+_.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ue=re(t,Z);return P&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ue)?"["+te(ue,P)+"]":"[ "+S.call(ue,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&q(e)}(t)){var ce=re(t,Z);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ce,", ")+" }":"{ ["+String(t)+"] "+S.call(k.call("[cause]: "+Z(t.cause),ce),", ")+" }"}if("object"==typeof t&&g){if(M&&"function"==typeof t[M]&&I)return I(t,{depth:j-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,r){le.push(Z(r,t,!0)+" => "+Z(e,t))}),ee("Map",o.call(t),le,P)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,function(e){fe.push(Z(e,t))}),ee("Set",c.call(t),fe,P)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===H(e)&&q(e)}(t))return X(Z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return X(Z(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&q(e)}(t))return X(p.call(t));if(function(e){return"[object String]"===H(e)&&q(e)}(t))return X(Z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&q(e)}(t)&&!$(t)){var he=re(t,Z),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",ge=!de&&C&&Object(t)===t&&C in t?b.call(H(t),8,-1):pe?"Object":"",ye=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||pe?"["+S.call(k.call([],ge||[],pe||[]),": ")+"] ":"");return 0===he.length?ye+"{}":P?ye+"{"+te(he,P)+"}":ye+"{ "+S.call(he,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Z.call(e,t)}function H(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Y(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+n}var i=P[t.quoteStyle||"single"];return i.lastIndex=0,U(w.call(w.call(e,i,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):S.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var o,a="function"==typeof j?j(e):[];if(R){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)G(e,u)&&(r&&String(Number(u))===u&&u<e.length||R&&o["$"+u]instanceof Symbol||(E.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof j)for(var c=0;c<a.length;c++)T.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},8875(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=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},d=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{f(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 p=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 m in e)p&&"prototype"===m||!i.call(e,m)||h.push(String(m));if(u)for(var b=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}}(e),w=0;w<l.length;++w)b&&"constructor"===l[w]||!i.call(e,l[w])||h.push(l[w]);return h}}e.exports=n},8968(e){"use strict";e.exports=Math.floor},9032(e,t,r){"use strict";var n=r(7244),i=r(8184),o=r(5767),a=r(5680);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=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 m(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function w(e){return"[object WeakMap]"===l(e)}function v(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(k.working?k(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)||S(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)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},w.working="undefined"!=typeof WeakMap&&w(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(w.working?w(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),t.isWeakSet=function(e){return v(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function O(e){return void 0!==x&&(void 0===A.working&&(A.working=A(new x)),A.working?A(e):e instanceof x)}function j(e){return y(e,f)}function B(e){return y(e,h)}function R(e){return y(e,d)}function C(e){return u&&y(e,p)}function T(e){return c&&y(e,g)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=j,t.isStringObject=B,t.isBooleanObject=R,t.isBigIntObject=C,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return j(e)||B(e)||R(e)||C(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9043(e,t,r){var n=r(5606),i=r(7007).EventEmitter,o=r(537).inherits,a=r(3493),s=r(3364),u=r(6841),c=r(7805).WriteError,l=r(7805).ReadError,f=r(7805).NotFoundError,h=r(7805).OpenError,d=r(7805).EncodingError,p=r(7805).InitializationError,g=r(8531),y=r(1068),m=r(2350),b=r(3324),w=m.getOptions,v=m.defaultOptions,_=m.getLevelDOWN,E=m.dispatchError;function k(e,t){return"function"==typeof e?e:t}function S(e,t,r){if(!(this instanceof S))return new S(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 p("Must provide a location for the database"),r)return n.nextTick(function(){r(o)});throw o}t=w(this,t),this.options=a(v,t),this._status="new",s(this,"location",e,"e"),this.open(r)}function x(e){return function(t,r){_()[e](t,r||function(){})}}o(S,i),S.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||_(),void(r=t(this.location)).open(this.options,function(t){if(t)return E(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")}))},S.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)})}},S.prototype.isOpen=function(){return"open"==this._status},S.prototype._isOpening=function(){return"opening"==this._status},S.prototype.isClosed=function(){return/^clos/.test(this._status)},S.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=k(t,r))?E(this,new l("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=m.getOptions(this,t),n=m.encodeKey(e,t),t.asBuffer=m.isValueAsBuffer(t),void this.db.get(n,t,function(n,o){if(n)return n=/notfound/i.test(n)?new f("Key not found in database ["+e+"]",n):new l(n),E(i,n,r);if(r){try{o=m.decodeValue(o,t)}catch(e){return r(new d(e))}r(null,o)}})):E(this,new l("Database is not open"),r)},S.prototype.put=function(e,t,r,n){var i,o,a=this;return n=k(r,n),null==e||null==t?E(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=w(this,r),i=m.encodeKey(e,r),o=m.encodeValue(t,r),void this.db.put(i,o,r,function(r){if(r)return E(a,new c(r),n);a.emit("put",e,t),n&&n()})):E(this,new c("Database is not open"),n)},S.prototype.del=function(e,t,r){var n,i=this;return r=k(t,r),null==e?E(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=w(this,t),n=m.encodeKey(e,t),void this.db.del(n,t,function(t){if(t)return E(i,new c(t),r);i.emit("del",e),r&&r()})):E(this,new c("Database is not open"),r)},S.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=k(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=w(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:m.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=m.encodeValue(e.value,t,e)),r):e}),void this.db.batch(o,t,function(t){if(t)return E(a,new c(t),r);a.emit("batch",e),r&&r()})):E(this,new c("Database is not open"),r):E(this,new c("batch() requires an array argument"),r)):new b(this)},S.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?E(this,new l("approximateSize() requires start, end and callback arguments"),r):(n=m.encodeKey(e,this.options),i=m.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,function(e,t){if(e)return E(o,new h(e),r);r&&r(null,t)}):E(this,new c("Database is not open"),r))},S.prototype.readStream=S.prototype.createReadStream=function(e){var t=this;return e=a(this.options,e),new g(e,this,function(e){return t.db.iterator(e)})},S.prototype.keyStream=S.prototype.createKeyStream=function(e){return this.createReadStream(a(e,{keys:!0,values:!1}))},S.prototype.valueStream=S.prototype.createValueStream=function(e){return this.createReadStream(a(e,{keys:!1,values:!0}))},S.prototype.writeStream=S.prototype.createWriteStream=function(e){return new y(a(e),this)},S.prototype.toString=function(){return"LevelUP"},e.exports=S,e.exports.copy=m.copy,e.exports.destroy=x("destroy"),e.exports.repair=x("repair")},9092(e,t,r){"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9133(e,t,r){"use strict";var n=r(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},9209(e,t,r){"use strict";var n=r(6578),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}},9211(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))}},9234(e,t,r){var n=r(8287).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.I=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}},9278(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9290(e){"use strict";e.exports=RangeError},9300(){},9353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,i.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(o=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},9383(e){"use strict";e.exports=Error},9394(e,t,r){"use strict";var n=r(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},9435(e){"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')},9538(e){"use strict";e.exports=ReferenceError},9597(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,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,r);var a,s,u,c=(s=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(u){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=c.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i)),o.code=e,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);u[e]=a}function l(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,f;if(void 0===a&&(a=r(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===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-9,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(l(t,"type"));else{var h=("number"!=typeof f&&(f=0),f+1>(c=e).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(l(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(537));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(4148)),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},9600(e){"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612(e){"use strict";e.exports=Object},9655(e,t,r){var n;e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,u=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function p(e){throw new RangeError(f[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(l,".")).split("."),t).join(".")}function m(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 b(e){return g(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){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=s)e=h(e/35);return h(n+36*e/(e+38))}function E(e){var t,r,n,i,o,u,c,l,f,d,g=[],y=e.length,m=0,v=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&p("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=m,u=1,c=s;i>=y&&p("invalid-input"),((l=w(e.charCodeAt(i++)))>=s||l>h((a-m)/u))&&p("overflow"),m+=l*u,!(l<(f=c<=E?1:c>=E+26?26:c-E));c+=s)u>h(a/(d=s-f))&&p("overflow"),u*=d;E=_(m-o,t=g.length+1,0==o),h(m/t)>a-v&&p("overflow"),v+=h(m/t),m%=t,g.splice(m++,0,v)}return b(g)}function k(e){var t,r,n,i,o,u,c,l,f,g,y,b,w,E,k,S=[];for(b=(e=m(e)).length,t=128,r=0,o=72,u=0;u<b;++u)(y=e[u])<128&&S.push(d(y));for(n=i=S.length,i&&S.push("-");n<b;){for(c=a,u=0;u<b;++u)(y=e[u])>=t&&y<c&&(c=y);for(c-t>h((a-r)/(w=n+1))&&p("overflow"),r+=(c-t)*w,t=c,u=0;u<b;++u)if((y=e[u])<t&&++r>a&&p("overflow"),y==t){for(l=r,f=s;!(l<(g=f<=o?1:f>=o+26?26:f-o));f+=s)k=l-g,E=s-g,S.push(d(v(g+k%E,0))),l=h(k/E);S.push(d(v(l,0))),o=_(r,w,n==i),r=0,++n}++r,++t}return S.join("")}o={version:"1.4.1",ucs2:{decode:m,encode:b},decode:E,encode:k,toASCII:function(e){return y(e,function(e){return c.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?E(e.slice(4).toLowerCase()):e})}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},9656(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 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,u=Math.abs,c=Math.floor,l=Math.log,f=Math.min,h=Math.pow,d=Math.round;function p(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,t){var r=32-t;return e<<r>>r}function m(e,t){var r=32-t;return e<<r>>>r}function b(e){return[255&e]}function w(e){return y(e[0],8)}function v(e){return[255&e]}function _(e){return m(e[0],8)}function E(e){return[(e=d(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function S(e){return y(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function A(e){return m(e[0]<<8|e[1],16)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function j(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function B(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e,t,r){var n,i,o,a,d,p,g,y=(1<<t-1)-1;function m(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=f(c(l(e)/s),1023),(o=m(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=m(e/h(2,1-y-r)))),d=[],a=r;a;a-=1)d.push(o%2?1:0),o=c(o/2);for(a=t;a;a-=1)d.push(i%2?1:0),i=c(i/2);for(d.push(n?1:0),d.reverse(),p=d.join(""),g=[];p.length;)g.push(parseInt(p.substring(0,8),2)),p=p.substring(8);return g}function T(e,t,r){var n,i,o,a,s,u,c,l,f=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),a=f.join(""),s=(1<<t-1)-1,u=parseInt(a.substring(0,1),2)?-1:1,c=parseInt(a.substring(1,1+t),2),l=parseInt(a.substring(1+t),2),c===(1<<t)-1?0!==l?NaN:u*(1/0):c>0?u*h(2,c-s)*(1+l/h(2,r)):0!==l?u*h(2,-(s-1))*(l/h(2,r)):u<0?-0:0}function D(e){return T(e,11,52)}function F(e){return C(e,11,52)}function I(e){return T(e,8,23)}function L(e){return C(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;p(this)};t.Az=t.Az||e;var r=function(){};function n(t,n,s){var u;return u=function(t,r,n){var o,s,c,l;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===u)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,o._getter(c));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(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=s[c],this._setter(c,Number(l));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=u,p(this),function(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})}}(this)},u.prototype=new r,u.prototype.BYTES_PER_ELEMENT=t,u.prototype._pack=n,u.prototype._unpack=s,u.BYTES_PER_ELEMENT=t,u.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)},u.prototype.get=u.prototype._getter,u.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]},u.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,u,c,l,f,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(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,u=r.byteOffset;s<f;s+=1,u+=1)h[s]=r.buffer._bytes[u];for(s=0,c=l;s<f;s+=1,c+=1)this.buffer._bytes[c]=h[s]}else for(s=0,u=r.byteOffset,c=l;s<f;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))}},u.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)},u}var s=n(1,b,w),u=n(1,v,_),c=n(1,E,_),l=n(2,k,S),f=n(2,x,A),h=n(4,O,j),d=n(4,B,R),g=n(4,L,I),y=n(8,F,D);t.fo=t.fo||s,t.SE=t.SE||u,t.ER=t.ER||c,t.ss=t.ss||l,t.hR=t.hR||f,t.GM=t.GM||h,t.bt=t.bt||d,t.l6=t.l6||g,t.aQ=t.aQ||y}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.hR([4660]),18===e(new t.SE(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(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");p(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.SE(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.SE(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]),l=new t.SE(c.buffer),f=[];for(u=0;u<r.BYTES_PER_ELEMENT;u+=1)f.push(e(l,u));Boolean(s)===Boolean(n)&&f.reverse(),new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},9661(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)}},9675(e){"use strict";e.exports=TypeError},9681(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9721(e,t,r){"use strict";var n=r(6556),i=r(4035),o=n("RegExp.prototype.exec"),a=r(9675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},9723(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()},9731(e,t,r){e.exports=Object.keys||r(7274)},9805(e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},9816(e,t,r){e.exports=a;var n=r(5240),i=r(5622);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(6698),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}},9838(){},9957(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);e.exports=o.call(n,i)}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e="An attempt was made to open a database using a lower version than the existing version.",t=(e,t)=>{Object.defineProperty(e,"code",{value:t,writable:!1,enumerable:!0,configurable:!1})};class r extends DOMException{constructor(e="A request was aborted, for example through a call to IDBTransaction.abort."){super(e,"AbortError")}}class n extends DOMException{constructor(e="A mutation operation in the transaction failed because a constraint was not satisfied. For example, an object such as an object store or index already exists and a request attempted to create a new one."){super(e,"ConstraintError")}}DOMException;class i extends DOMException{constructor(e="Data provided to an operation does not meet requirements."){super(e,"DataError"),t(this,0)}}class o extends DOMException{constructor(e="An invalid operation was performed on an object. For example transaction creation attempt was made, but an empty scope was provided."){super(e,"InvalidAccessError")}}class a extends DOMException{constructor(e="An operation was called on an object on which it is not allowed or at a time when it is not allowed. Also occurs if a request is made on a source object that has been deleted or removed. Use TransactionInactiveError or ReadOnlyError when possible, as they are more specific variations of InvalidStateError."){super(e,"InvalidStateError"),t(this,11)}}class s extends DOMException{constructor(e="The operation failed because the requested database object could not be found. For example, an object store did not exist but was being opened."){super(e,"NotFoundError")}}class u extends DOMException{constructor(e='The mutating operation was attempted in a "readonly" transaction.'){super(e,"ReadOnlyError")}}class c extends DOMException{constructor(r=e){super(r,"SyntaxError"),t(this,12)}}class l extends DOMException{constructor(e="A request was placed against a transaction which is currently not active, or which is finished."){super(e,"TransactionInactiveError"),t(this,0)}}class f extends DOMException{constructor(t=e){super(t,"VersionError")}}function h(e){return"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer}const d=Symbol("INVALID_TYPE"),p=Symbol("INVALID_VALUE"),g=(e,t)=>{if("number"==typeof e)return isNaN(e)?p:e;if("[object Date]"===Object.prototype.toString.call(e)){const t=e.valueOf();return isNaN(t)?p:new Date(t)}if("string"==typeof e)return e;if(e instanceof ArrayBuffer||h(e)||"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e)){if("detached"in e?e.detached:0===e.byteLength)return p;let t,r=0,n=0;return e instanceof ArrayBuffer||h(e)?(t=e,n=e.byteLength):(t=e.buffer,r=e.byteOffset,n=e.byteLength),t.slice(r,r+n)}if(Array.isArray(e)){if(void 0===t)t=new Set;else if(t.has(e))return p;t.add(e);let r=!1;const n=Array.from({length:e.length},(n,i)=>{if(r)return;if(!Object.hasOwn(e,i))return void(r=!0);const o=e[i],a=g(o,t);if(a!==p&&a!==d)return a;r=!0});return r?p:n}return d},y=g,m=(e,t)=>{const r=y(e,t);if(r===p||r===d)throw new i;return r},b=e=>{if("number"==typeof e)return"Number";if("[object Date]"===Object.prototype.toString.call(e))return"Date";if(Array.isArray(e))return"Array";if("string"==typeof e)return"String";if(e instanceof ArrayBuffer)return"Binary";throw new i},w=(e,t)=>{if(void 0===t)throw new TypeError;e=m(e),t=m(t);const r=b(e),n=b(t);if(r!==n)return"Array"===r?1:("Binary"!==r||"String"!==n&&"Date"!==n&&"Number"!==n)&&("String"!==r||"Date"!==n&&"Number"!==n)?"Date"===r&&"Number"===n?1:-1:1;if("Binary"===r&&(e=new Uint8Array(e),t=new Uint8Array(t)),"Array"===r||"Binary"===r){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++){const r=w(e[n],t[n]);if(0!==r)return r}return e.length>t.length?1:e.length<t.length?-1:0}if("Date"===r){if(e.getTime()===t.getTime())return 0}else if(e===t)return 0;return e>t?1:-1},v=w;class _{static only(e){if(0===arguments.length)throw new TypeError;return e=m(e),new _(e,e,!1,!1)}static lowerBound(e,t=!1){if(0===arguments.length)throw new TypeError;return e=m(e),new _(e,void 0,t,!0)}static upperBound(e,t=!1){if(0===arguments.length)throw new TypeError;return e=m(e),new _(void 0,e,!0,t)}static bound(e,t,r=!1,n=!1){if(arguments.length<2)throw new TypeError;const o=v(e,t);if(1===o||0===o&&(r||n))throw new i;return e=m(e),t=m(t),new _(e,t,r,n)}constructor(e,t,r,n){this.lower=e,this.upper=t,this.lowerOpen=r,this.upperOpen=n}includes(e){if(0===arguments.length)throw new TypeError;if(e=m(e),void 0!==this.lower){const t=v(this.lower,e);if(1===t||0===t&&this.lowerOpen)return!1}if(void 0!==this.upper){const t=v(this.upper,e);if(-1===t||0===t&&this.upperOpen)return!1}return!0}get[Symbol.toStringTag](){return"IDBKeyRange"}}const E=_,k=(e,t)=>{if(Array.isArray(e)){const r=[];for(let n of e){null!=n&&"string"!=typeof n&&n.toString&&(n=n.toString());const e=k(n,t).key;r.push(m(e))}return{type:"found",key:r}}if(""===e)return{type:"found",key:t};let r=e,n=t;for(;null!==r;){let e;const t=r.indexOf(".");if(t>=0?(e=r.slice(0,t),r=r.slice(t+1)):(e=r,r=null),!("length"===e&&("string"==typeof n||Array.isArray(n))||("size"===e||"type"===e)&&"undefined"!=typeof Blob&&n instanceof Blob||("name"===e||"lastModified"===e)&&"undefined"!=typeof File&&n instanceof File||"object"==typeof n&&null!==n&&Object.hasOwn(n,e)))return{type:"notFound"};n=n[e]}return{type:"found",key:n}},S=k;function x(e,t){if("active"!==t._state)throw new Error("Assert: transaction state is active");t._state="inactive";try{return structuredClone(e)}finally{t._state="active"}}const A=e=>e.source instanceof oe?e.source:e.source.objectStore,O=(e,t,r)=>{let n=void 0!==e?e.lower:void 0,i=void 0!==e?e.upper:void 0;for(const e of t)void 0!==e&&(void 0!==n&&1!==v(n,e)||(n=e));for(const e of r)void 0!==e&&(void 0!==i&&-1!==v(i,e)||(i=e));return void 0!==n&&void 0!==i?E.bound(n,i):void 0!==n?E.lowerBound(n):void 0!==i?E.upperBound(i):void 0};class j{_gotValue=!1;_position=void 0;_objectStorePosition=void 0;_keyOnly=!1;_key=void 0;_primaryKey=void 0;constructor(e,t,r="next",n,i=!1){this._range=t,this._source=e,this._direction=r,this._request=n,this._keyOnly=i}get source(){return this._source}set source(e){}get request(){return this._request}set request(e){}get direction(){return this._direction}set direction(e){}get key(){return this._key}set key(e){}get primaryKey(){return this._primaryKey}set primaryKey(e){}_iterate(e,t){const r=this.source instanceof oe,n=this.source instanceof oe?this.source._rawObjectStore.records:this.source._rawIndex.records;let i,o;if("next"===this.direction){const o=O(this._range,[e,this._position],[]);for(const a of n.values(o)){const n=void 0!==e?v(a.key,e):void 0,o=void 0!==this._position?v(a.key,this._position):void 0;if(void 0===e||-1!==n){if(void 0!==t){if(-1===n)continue;const e=v(a.value,t);if(0===n&&-1===e)continue}if(void 0===this._position||!r||1===o){if(void 0!==this._position&&!r){if(-1===o)continue;if(0===o&&1!==v(a.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(a.key)){i=a;break}}}}}else if("nextunique"===this.direction){const t=O(this._range,[e,this._position],[]);for(const r of n.values(t))if((void 0===e||-1!==v(r.key,e))&&(void 0===this._position||1===v(r.key,this._position))&&(void 0===this._range||this._range.includes(r.key))){i=r;break}}else if("prev"===this.direction){const o=O(this._range,[],[e,this._position]);for(const a of n.values(o,"prev")){const n=void 0!==e?v(a.key,e):void 0,o=void 0!==this._position?v(a.key,this._position):void 0;if(void 0===e||1!==n){if(void 0!==t){if(1===n)continue;const e=v(a.value,t);if(0===n&&1===e)continue}if(void 0===this._position||!r||-1===o){if(void 0!==this._position&&!r){if(1===o)continue;if(0===o&&-1!==v(a.value,this._objectStorePosition))continue}if(void 0===this._range||this._range.includes(a.key)){i=a;break}}}}}else if("prevunique"===this.direction){let t;const r=O(this._range,[],[e,this._position]);for(const i of n.values(r,"prev"))if((void 0===e||1!==v(i.key,e))&&(void 0===this._position||-1===v(i.key,this._position))&&(void 0===this._range||this._range.includes(i.key))){t=i;break}t&&(i=n.get(t.key))}if(i){if(this._position=i.key,r||(this._objectStorePosition=i.value),this._key=i.key,r)this._primaryKey=structuredClone(i.key),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=structuredClone(i.value));else if(this._primaryKey=structuredClone(i.value),!this._keyOnly&&"[object IDBCursorWithValue]"===this.toString()){if(this.source instanceof oe)throw new Error("This should never happen");const e=this.source.objectStore._rawObjectStore.getValue(i.value);this.value=structuredClone(e)}this._gotValue=!0,o=this}else this._key=void 0,r||(this._objectStorePosition=void 0),this._keyOnly||"[object IDBCursorWithValue]"!==this.toString()||(this.value=void 0),o=null;return o}update(e){if(void 0===e)throw new TypeError;const t=A(this),r=Object.hasOwn(this.source,"_rawIndex")?this.primaryKey:this._position,n=t.transaction;if("active"!==n._state)throw new l;if("readonly"===n.mode)throw new u;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue||!Object.hasOwn(this,"value"))throw new a;const o=x(e,n);if(null!==t.keyPath){let e;try{e=S(t.keyPath,o).key}catch(e){}if(0!==v(e,r))throw new i}const s={key:r,value:o};return n._execRequestAsync({operation:t._rawObjectStore.storeRecord.bind(t._rawObjectStore,s,!1,n._rollbackLog),source:this})}advance(e){if(!Number.isInteger(e)||e<=0)throw new TypeError;const t=A(this),r=t.transaction;if("active"!==r._state)throw new l;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue)throw new a;this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:()=>{let t;for(let r=0;r<e&&(t=this._iterate(),t);r++);return t},request:this._request,source:this.source}),this._gotValue=!1}continue(e){const t=A(this),r=t.transaction;if("active"!==r._state)throw new l;if(t._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue)throw new a;if(void 0!==e){e=m(e);const t=v(e,this._position);if(t<=0&&("next"===this.direction||"nextunique"===this.direction)||t>=0&&("prev"===this.direction||"prevunique"===this.direction))throw new i}this._request&&(this._request.readyState="pending"),r._execRequestAsync({operation:this._iterate.bind(this,e),request:this._request,source:this.source}),this._gotValue=!1}continuePrimaryKey(e,t){const r=A(this),n=r.transaction;if("active"!==n._state)throw new l;if(r._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(this.source instanceof oe||"next"!==this.direction&&"prev"!==this.direction)throw new o;if(!this._gotValue)throw new a;if(void 0===e||void 0===t)throw new i;e=m(e);const s=v(e,this._position);if(-1===s&&"next"===this.direction||1===s&&"prev"===this.direction)throw new i;const u=v(t,this._objectStorePosition);if(0===s&&(u<=0&&"next"===this.direction||u>=0&&"prev"===this.direction))throw new i;this._request&&(this._request.readyState="pending"),n._execRequestAsync({operation:this._iterate.bind(this,e,t),request:this._request,source:this.source}),this._gotValue=!1}delete(){const e=A(this),t=Object.hasOwn(this.source,"_rawIndex")?this.primaryKey:this._position,r=e.transaction;if("active"!==r._state)throw new l;if("readonly"===r.mode)throw new u;if(e._rawObjectStore.deleted)throw new a;if(!(this.source instanceof oe)&&this.source._rawIndex.deleted)throw new a;if(!this._gotValue||!Object.hasOwn(this,"value"))throw new a;return r._execRequestAsync({operation:e._rawObjectStore.deleteRecord.bind(e._rawObjectStore,t,r._rollbackLog),source:this})}get[Symbol.toStringTag](){return"IDBCursor"}}const B=j;class R extends B{value=void 0;constructor(e,t,r,n){super(e,t,r,n)}get[Symbol.toStringTag](){return"IDBCursorWithValue"}}const C=R,T=(e,t)=>e.immediatePropagationStopped||e.eventPhase===e.CAPTURING_PHASE&&!1===t.capture||e.eventPhase===e.BUBBLING_PHASE&&!0===t.capture,D=(e,t)=>{e.currentTarget=t;const r=[],n=t=>{try{("function"==typeof t?t:t.handleEvent).call(e.currentTarget,e)}catch(e){r.push(e)}};for(const r of t.listeners.slice())e.type!==r.type||T(e,r)||n(r.callback);const i={abort:"onabort",blocked:"onblocked",close:"onclose",complete:"oncomplete",error:"onerror",success:"onsuccess",upgradeneeded:"onupgradeneeded",versionchange:"onversionchange"}[e.type];if(void 0===i)throw new Error(`Unknown event type: "${e.type}"`);const o=e.currentTarget[i];if(o){const t={callback:o,capture:!1,type:e.type};T(e,t)||n(t.callback)}if(r.length)throw new AggregateError(r)},F=class{listeners=[];addEventListener(e,t,r){const n=!!("object"==typeof r&&r?r.capture:r);this.listeners.push({callback:t,capture:n,type:e})}removeEventListener(e,t,r){const n=!!("object"==typeof r&&r?r.capture:r),i=this.listeners.findIndex(r=>r.type===e&&r.callback===t&&r.capture===n);this.listeners.splice(i,1)}dispatchEvent(e){if(e.dispatched||!e.initialized)throw new a("The object is in an invalid state.");e.isTrusted=!1,e.dispatched=!0,e.target=this,e.eventPhase=e.CAPTURING_PHASE;for(const t of e.eventPath)e.propagationStopped||D(e,t);if(e.eventPhase=e.AT_TARGET,e.propagationStopped||D(e,e.target),e.bubbles){e.eventPath.reverse(),e.eventPhase=e.BUBBLING_PHASE;for(const t of e.eventPath)e.propagationStopped||D(e,t)}return e.dispatched=!1,e.eventPhase=e.NONE,e.currentTarget=null,!e.canceled}};class I extends F{_result=null;_error=null;source=null;transaction=null;readyState="pending";onsuccess=null;onerror=null;get error(){if("pending"===this.readyState)throw new a;return this._error}set error(e){this._error=e}get result(){if("pending"===this.readyState)throw new a;return this._result}set result(e){this._result=e}get[Symbol.toStringTag](){return"IDBRequest"}}const L=I;class M{constructor(...e){this._values=e;for(let t=0;t<e.length;t++)this[t]=e[t]}contains(e){return this._values.includes(e)}item(e){return e<0||e>=this._values.length?null:this._values[e]}get length(){return this._values.length}[Symbol.iterator](){return this._values[Symbol.iterator]()}_push(...e){for(let t=0;t<e.length;t++)this[this._values.length+t]=e[t];this._values.push(...e)}_sort(...e){this._values.sort(...e);for(let e=0;e<this._values.length;e++)this[e]=this._values[e];return this}}const N=M,P=(e,t=!1)=>{if(e instanceof E)return e;if(null==e){if(t)throw new i;return new E(void 0,void 0,!1,!1)}const r=m(e);return E.only(r)},U=e=>"object"==typeof e&&e?e+"":e;function z(e){return Array.isArray(e)?e.map(U):U(e)}const q=(e,t)=>{const r="unsigned long"===t?4294967295:9007199254740991;if(isNaN(e)||e<0||e>r)throw new TypeError;if(e>=0)return Math.floor(e)},W=(e,t,r)=>{let n,i;if(null==e||((o=e)instanceof E||y(o)!==d))n=e,r>1&&void 0!==t&&(t=q(t,"unsigned long"));else{const r=e;void 0!==r.query&&(n=r.query),void 0!==r.count&&(t=q(r.count,"unsigned long")),void 0!==r.direction&&(i=r.direction)}var o;return{query:n,count:t,direction:i}},$=e=>{if(e._rawIndex.deleted||e.objectStore._rawObjectStore.deleted)throw new a;if("active"!==e.objectStore.transaction._state)throw new l};class V{constructor(e,t){this._rawIndex=t,this._name=t.name,this.objectStore=e,this.keyPath=z(t.keyPath),this.multiEntry=t.multiEntry,this.unique=t.unique}get name(){return this._name}set name(e){const t=this.objectStore.transaction;if(!t.db._runningVersionchangeTransaction)throw"active"===t._state?new a:new l;if("active"!==t._state)throw new l;if(this._rawIndex.deleted||this.objectStore._rawObjectStore.deleted)throw new a;if((e=String(e))===this._name)return;if(this.objectStore.indexNames.contains(e))throw new n;const r=this._name,i=[...this.objectStore.indexNames];this._name=e,this._rawIndex.name=e,this.objectStore._indexesCache.delete(r),this.objectStore._indexesCache.set(e,this),this.objectStore._rawObjectStore.rawIndexes.delete(r),this.objectStore._rawObjectStore.rawIndexes.set(e,this._rawIndex),this.objectStore.indexNames=new N(...Array.from(this.objectStore._rawObjectStore.rawIndexes.keys()).filter(e=>{const t=this.objectStore._rawObjectStore.rawIndexes.get(e);return t&&!t.deleted}).sort()),this.objectStore.transaction._createdIndexes.has(this._rawIndex)||t._rollbackLog.push(()=>{this._name=r,this._rawIndex.name=r,this.objectStore._indexesCache.delete(e),this.objectStore._indexesCache.set(r,this),this.objectStore._rawObjectStore.rawIndexes.delete(e),this.objectStore._rawObjectStore.rawIndexes.set(r,this._rawIndex),this.objectStore.indexNames=new N(...i)})}openCursor(e,t){$(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.objectStore.transaction;const n=new C(this,e,t,r);return this.objectStore.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}openKeyCursor(e,t){$(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.objectStore.transaction;const n=new B(this,e,t,r,!0);return this.objectStore.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}get(e){return $(this),e instanceof E||(e=m(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getValue.bind(this._rawIndex,e),source:this})}getAll(e,t){const r=W(e,t,arguments.length);$(this);const n=P(r.query);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllValues.bind(this._rawIndex,n,r.count,r.direction),source:this})}getKey(e){return $(this),e instanceof E||(e=m(e)),this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getKey.bind(this._rawIndex,e),source:this})}getAllKeys(e,t){const r=W(e,t,arguments.length);$(this);const n=P(r.query);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllKeys.bind(this._rawIndex,n,r.count,r.direction),source:this})}getAllRecords(e){let t,r,n;void 0!==e&&(void 0!==e.query&&(t=e.query),void 0!==e.count&&(r=q(e.count,"unsigned long")),void 0!==e.direction&&(n=e.direction)),$(this);const i=P(t);return this.objectStore.transaction._execRequestAsync({operation:this._rawIndex.getAllRecords.bind(this._rawIndex,i,r,n),source:this})}count(e){return $(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e))),this.objectStore.transaction._execRequestAsync({operation:()=>this._rawIndex.count(e),source:this})}get[Symbol.toStringTag](){return"IDBIndex"}}const Z=V;class G{constructor(e,t,r){this._key=e,this._primaryKey=t,this._value=r}get key(){return this._key}set key(e){}get primaryKey(){return this._primaryKey}set primaryKey(e){}get value(){return this._value}set value(e){}get[Symbol.toStringTag](){return"IDBRecord"}}const H=G,K=2/3,Y=new E(void 0,void 0,!1,!1);class J{_numTombstones=0;_numNodes=0;constructor(e){this._keysAreUnique=!!e}size(){return this._numNodes-this._numTombstones}get(e){return this._getByComparator(this._root,t=>this._compare(e,t))}contains(e){return!!this.get(e)}_compare(e,t){const r=v(e.key,t.key);return 0!==r?r:this._keysAreUnique?0:v(e.value,t.value)}_getByComparator(e,t){let r=e;for(;r;){const e=t(r.record);if(e<0)r=r.left;else{if(!(e>0))return r.record;r=r.right}}}put(e,t=!1){return this._root?this._put(this._root,e,t):(this._root={record:e,left:void 0,right:void 0,parent:void 0,deleted:!1,red:!1},void this._numNodes++)}_put(e,t,r){const i=this._compare(t,e.record);if(i<0){if(e.left)return this._put(e.left,t,r);e.left={record:t,left:void 0,right:void 0,parent:e,deleted:!1,red:!0},this._onNewNodeInserted(e.left)}else if(i>0){if(e.right)return this._put(e.right,t,r);e.right={record:t,left:void 0,right:void 0,parent:e,deleted:!1,red:!0},this._onNewNodeInserted(e.right)}else{if(!e.deleted){if(r)throw new n;{const r=e.record;return e.record=t,r}}e.deleted=!1,e.record=t,this._numTombstones--}}delete(e){if(this._root&&(this._delete(this._root,e),this._numTombstones>this._numNodes*K)){const e=[...this.getAllRecords()];this._root=this._rebuild(e,void 0,!1),this._numNodes=e.length,this._numTombstones=0}}_delete(e,t){if(!e)return;const r=this._compare(t,e.record);r<0?this._delete(e.left,t):r>0?this._delete(e.right,t):e.deleted||(this._numTombstones++,e.deleted=!0)}*getAllRecords(e=!1){yield*this.getRecords(Y,e)}*getRecords(e,t=!1){yield*this._getRecordsForNode(this._root,e,t)}*_getRecordsForNode(e,t,r=!1){e&&(yield*this._findRecords(e,t,r))}*_findRecords(e,t,r=!1){const{lower:n,upper:i,lowerOpen:o,upperOpen:a}=t,{record:{key:s}}=e,u=void 0===n?-1:v(n,s),c=void 0===i?1:v(i,s),l=this._keysAreUnique?u<0:u<=0,f=this._keysAreUnique?c>0:c>=0,h=r?l:f,d=r?"right":"left",p=r?"left":"right",g=o?u<0:u<=0,y=a?c>0:c>=0;(r?f:l)&&e[d]&&(yield*this._findRecords(e[d],t,r)),g&&y&&!e.deleted&&(yield e.record),h&&e[p]&&(yield*this._findRecords(e[p],t,r))}_onNewNodeInserted(e){this._numNodes++,this._rebalanceTree(e)}_rebalanceTree(e){let t=e.parent;do{if(!t.red)return;const r=t.parent;if(!r)return void(t.red=!1);const n=t===r.right,i=n?r.left:r.right;if(!i||!i.red)return e===(n?t.left:t.right)&&(this._rotateSubtree(t,n),e=t,t=n?r.right:r.left),this._rotateSubtree(r,!n),t.red=!1,void(r.red=!0);t.red=!1,i.red=!1,r.red=!0,e=r}while(e.parent&&(t=e.parent))}_rotateSubtree(e,t){const r=e.parent,n=t?e.left:e.right,i=t?n.right:n.left;return e[t?"left":"right"]=i,i&&(i.parent=e),n[t?"right":"left"]=e,n.parent=r,e.parent=n,r?r[e===r.right?"right":"left"]=n:this._root=n,n}_rebuild(e,t,r){const{length:n}=e;if(!n)return;const i=n>>>1,o={record:e[i],left:void 0,right:void 0,parent:t,deleted:!1,red:r},a=this._rebuild(e.slice(0,i),o,!r),s=this._rebuild(e.slice(i+1),o,!r);return o.left=a,o.right=s,o}}const X=class{constructor(e){this.keysAreUnique=e,this.records=new J(this.keysAreUnique)}get(e){const t=e instanceof E?e:E.only(e);return this.records.getRecords(t).next().value}put(e,t=!1){return this.records.put(e,t)}delete(e){const t=e instanceof E?e:E.only(e),r=[...this.records.getRecords(t)];for(const e of r)this.records.delete(e);return r}deleteByValue(e){const t=e instanceof E?e:E.only(e),r=[];for(const e of this.records.getAllRecords())t.includes(e.value)&&(this.records.delete(e),r.push(e));return r}clear(){const e=[...this.records.getAllRecords()];return this.records=new J(this.keysAreUnique),e}values(e,t="next"){const r="prev"===t||"prevunique"===t,n=e?this.records.getRecords(e,r):this.records.getAllRecords(r);return{[Symbol.iterator]:()=>{const e=()=>n.next();if("next"===t||"prev"===t)return{next:e};if("nextunique"===t){let t;return{next:()=>{let r=e();for(;!r.done&&void 0!==t&&0===v(t.key,r.value.key);)r=e();return t=r.value,r}}}let r=e(),i=e();return{next:()=>{for(;!i.done&&0===v(r.value.key,i.value.key);)r=i,i=e();const t=r;return r=i,i=e(),t}}}}}size(){return this.records.size()}},Q=class{deleted=!1;initialized=!1;constructor(e,t,r,n,i){this.rawObjectStore=e,this.name=t,this.keyPath=r,this.multiEntry=n,this.unique=i,this.records=new X(i)}getKey(e){const t=this.records.get(e);return void 0!==t?t.value:void 0}getAllKeys(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.value)),n.length>=t)break;return n}getValue(e){const t=this.records.get(e);return void 0!==t?this.rawObjectStore.getValue(t.value):void 0}getAllValues(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(this.rawObjectStore.getValue(i.value)),n.length>=t)break;return n}getAllRecords(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(new H(structuredClone(i.key),structuredClone(this.rawObjectStore.getKey(i.value)),this.rawObjectStore.getValue(i.value))),n.length>=t)break;return n}storeRecord(e){let t;try{t=S(this.keyPath,e.value).key}catch(e){if("DataError"===e.name)return;throw e}if(this.multiEntry&&Array.isArray(t)){const e=[];for(const r of t)if(e.indexOf(r)<0)try{e.push(m(r))}catch(e){}t=e}else try{m(t)}catch(e){return}if(this.multiEntry&&Array.isArray(t)){if(this.unique)for(const e of t)if(this.records.get(e))throw new n}else if(this.unique&&this.records.get(t))throw new n;if(this.multiEntry&&Array.isArray(t))for(const r of t)this.records.put({key:r,value:e.key});else this.records.put({key:t,value:e.key})}initialize(e){if(this.initialized)throw new Error("Index already initialized");e._execRequestAsync({operation:()=>{try{for(const e of this.rawObjectStore.records.values())this.storeRecord(e);this.initialized=!0}catch(t){e._abort(t.name)}},source:null})}count(e){let t=0;for(const r of this.records.values(e))t+=1;return t}},ee=(e,t)=>{if(null==e||"string"==typeof e||!e.toString||"array"!==t&&Array.isArray(e)||(e=e.toString()),"string"==typeof e){if(""===e&&"string"!==t)return;try{const t=/^(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/;if(e.length>=1&&t.test(e))return}catch(e){throw new c(e.message)}if(e.indexOf(" ")>=0)throw new c("The keypath argument contains an invalid key path (no spaces allowed).")}if(Array.isArray(e)&&e.length>0){if(t)throw new c("The keypath argument contains an invalid key path (nested arrays).");for(const t of e)ee(t,"array")}else{if(!("string"==typeof e&&e.indexOf(".")>=0))throw new c;e=e.split(".");for(const t of e)ee(t,"string")}},te=ee,re=e=>{if(e._rawObjectStore.deleted)throw new a;if("active"!==e.transaction._state)throw new l},ne=(e,t,r)=>{if(re(e),"readonly"===e.transaction.mode)throw new u;if(null!==e.keyPath&&void 0!==r)throw new i;const n=x(t,e.transaction);if(null!==e.keyPath){const t=S(e.keyPath,n);if("found"===t.type)m(t.key);else{if(!e._rawObjectStore.keyGenerator)throw new i;if(!((e,t)=>{if(Array.isArray(e))throw new Error("The key paths used in this section are always strings and never sequences, since it is not possible to create a object store which has a key generator and also has a key path that is a sequence.");const r=e.split(".");if(0===r.length)throw new Error("Assert: identifiers is not empty");r.pop();for(const e of r){if("object"!=typeof t&&!Array.isArray(t))return!1;if(!Object.hasOwn(t,e))return!0;t=t[e]}return"object"==typeof t||Array.isArray(t)})(e.keyPath,n))throw new i}}if(null===e.keyPath&&null===e._rawObjectStore.keyGenerator&&void 0===r)throw new i;return void 0!==r&&(r=m(r)),{key:r,value:n}};class ie{_indexesCache=new Map;constructor(e,t){this._rawObjectStore=t,this._name=t.name,this.keyPath=z(t.keyPath),this.autoIncrement=t.autoIncrement,this.transaction=e,this.indexNames=new N(...Array.from(t.rawIndexes.keys()).sort())}get name(){return this._name}set name(e){const t=this.transaction;if(!t.db._runningVersionchangeTransaction)throw"active"===t._state?new a:new l;if(re(this),(e=String(e))===this._name)return;if(this._rawObjectStore.rawDatabase.rawObjectStores.has(e))throw new n;const r=this._name,i=[...t.db.objectStoreNames];this._name=e,this._rawObjectStore.name=e,this.transaction._objectStoresCache.delete(r),this.transaction._objectStoresCache.set(e,this),this._rawObjectStore.rawDatabase.rawObjectStores.delete(r),this._rawObjectStore.rawDatabase.rawObjectStores.set(e,this._rawObjectStore),t.db.objectStoreNames=new N(...Array.from(this._rawObjectStore.rawDatabase.rawObjectStores.keys()).filter(e=>{const t=this._rawObjectStore.rawDatabase.rawObjectStores.get(e);return t&&!t.deleted}).sort());const o=new Set(t._scope),s=[...t.objectStoreNames];this.transaction._scope.delete(r),t._scope.add(e),t.objectStoreNames=new N(...Array.from(t._scope).sort()),this.transaction._createdObjectStores.has(this._rawObjectStore)||t._rollbackLog.push(()=>{this._name=r,this._rawObjectStore.name=r,this.transaction._objectStoresCache.delete(e),this.transaction._objectStoresCache.set(r,this),this._rawObjectStore.rawDatabase.rawObjectStores.delete(e),this._rawObjectStore.rawDatabase.rawObjectStores.set(r,this._rawObjectStore),t.db.objectStoreNames=new N(...i),t._scope=o,t.objectStoreNames=new N(...s)})}put(e,t){if(0===arguments.length)throw new TypeError;const r=ne(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,r,!1,this.transaction._rollbackLog),source:this})}add(e,t){if(0===arguments.length)throw new TypeError;const r=ne(this,e,t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.storeRecord.bind(this._rawObjectStore,r,!0,this.transaction._rollbackLog),source:this})}delete(e){if(0===arguments.length)throw new TypeError;if(re(this),"readonly"===this.transaction.mode)throw new u;return e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.deleteRecord.bind(this._rawObjectStore,e,this.transaction._rollbackLog),source:this})}get(e){if(0===arguments.length)throw new TypeError;return re(this),e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getValue.bind(this._rawObjectStore,e),source:this})}getAll(e,t){const r=W(e,t,arguments.length);re(this);const n=P(r.query);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllValues.bind(this._rawObjectStore,n,r.count,r.direction),source:this})}getKey(e){if(0===arguments.length)throw new TypeError;return re(this),e instanceof E||(e=m(e)),this.transaction._execRequestAsync({operation:this._rawObjectStore.getKey.bind(this._rawObjectStore,e),source:this})}getAllKeys(e,t){const r=W(e,t,arguments.length);re(this);const n=P(r.query);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllKeys.bind(this._rawObjectStore,n,r.count,r.direction),source:this})}getAllRecords(e){let t,r,n;void 0!==e&&(void 0!==e.query&&(t=e.query),void 0!==e.count&&(r=q(e.count,"unsigned long")),void 0!==e.direction&&(n=e.direction)),re(this);const i=P(t);return this.transaction._execRequestAsync({operation:this._rawObjectStore.getAllRecords.bind(this._rawObjectStore,i,r,n),source:this})}clear(){if(re(this),"readonly"===this.transaction.mode)throw new u;return this.transaction._execRequestAsync({operation:this._rawObjectStore.clear.bind(this._rawObjectStore,this.transaction._rollbackLog),source:this})}openCursor(e,t){re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.transaction;const n=new C(this,e,t,r);return this.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}openKeyCursor(e,t){re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e)));const r=new L;r.source=this,r.transaction=this.transaction;const n=new B(this,e,t,r,!0);return this.transaction._execRequestAsync({operation:n._iterate.bind(n),request:r,source:this})}createIndex(e,t,r={}){if(arguments.length<2)throw new TypeError;const i=void 0!==r.multiEntry&&r.multiEntry,s=void 0!==r.unique&&r.unique;if("versionchange"!==this.transaction.mode)throw new a;if(re(this),this.indexNames.contains(e))throw new n;if(te(t),Array.isArray(t)&&i)throw new o;const u=[...this.indexNames],c=new Q(this._rawObjectStore,e,t,i,s);return this.indexNames._push(e),this.indexNames._sort(),this.transaction._createdIndexes.add(c),this._rawObjectStore.rawIndexes.set(e,c),c.initialize(this.transaction),this.transaction._rollbackLog.push(()=>{c.deleted=!0,this.indexNames=new N(...u),this._rawObjectStore.rawIndexes.delete(c.name)}),new Z(this,c)}index(e){if(0===arguments.length)throw new TypeError;if(this._rawObjectStore.deleted||"finished"===this.transaction._state)throw new a;const t=this._indexesCache.get(e);if(void 0!==t)return t;const r=this._rawObjectStore.rawIndexes.get(e);if(!this.indexNames.contains(e)||void 0===r)throw new s;const n=new Z(this,r);return this._indexesCache.set(e,n),n}deleteIndex(e){if(0===arguments.length)throw new TypeError;if("versionchange"!==this.transaction.mode)throw new a;re(this);const t=this._rawObjectStore.rawIndexes.get(e);if(void 0===t)throw new s;this.transaction._rollbackLog.push(()=>{t.deleted=!1,this._rawObjectStore.rawIndexes.set(t.name,t),this.indexNames._push(t.name),this.indexNames._sort()}),this.indexNames=new N(...Array.from(this.indexNames).filter(t=>t!==e)),t.deleted=!0,this.transaction._execRequestAsync({operation:()=>{const r=this._rawObjectStore.rawIndexes.get(e);t===r&&this._rawObjectStore.rawIndexes.delete(e)},source:this})}count(e){return re(this),null===e&&(e=void 0),void 0===e||e instanceof E||(e=E.only(m(e))),this.transaction._execRequestAsync({operation:()=>this._rawObjectStore.count(e),source:this})}get[Symbol.toStringTag](){return"IDBObjectStore"}}const oe=ie,ae=class{eventPath=[];NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;propagationStopped=!1;immediatePropagationStopped=!1;canceled=!1;initialized=!0;dispatched=!1;target=null;currentTarget=null;eventPhase=0;defaultPrevented=!1;isTrusted=!1;timeStamp=Date.now();constructor(e,t={}){this.type=e,this.bubbles=void 0!==t.bubbles&&t.bubbles,this.cancelable=void 0!==t.cancelable&&t.cancelable}preventDefault(){this.cancelable&&(this.canceled=!0)}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.propagationStopped=!0,this.immediatePropagationStopped=!0}},se="undefined"!=typeof scheduler&&(e=>scheduler.postTask(e)),ue=e=>setTimeout(e,0),ce=e=>{(globalThis.setImmediate||function(){if("undefined"!=typeof navigator&&/jsdom/.test(navigator.userAgent))return new(0,Node.constructor)("return setImmediate")()}()||se||ue)(e)},le=["error","abort","complete"];class fe extends F{_state="active";_started=!1;_rollbackLog=[];_objectStoresCache=new Map;_openRequest=null;error=null;onabort=null;oncomplete=null;onerror=null;_prioritizedListeners=new Map;_requests=[];_createdIndexes=new Set;_createdObjectStores=new Set;constructor(e,t,r,n){super(),this._scope=new Set(e),this.mode=t,this.durability=r,this.db=n,this.objectStoreNames=new N(...Array.from(this._scope).sort());for(const e of le)this.addEventListener(e,()=>{this._prioritizedListeners.get(e)?.()})}_abort(e){for(const e of this._rollbackLog.reverse())e();if(null!==e){const t=new DOMException(void 0,e);this.error=t}for(const{request:e}of this._requests)"done"!==e.readyState&&(e.readyState="done",e.source&&ce(()=>{e.result=void 0,e.error=new r;const t=new ae("error",{bubbles:!0,cancelable:!0});t.eventPath=[this.db,this];try{e.dispatchEvent(t)}catch(e){"active"===this._state&&this._abort("AbortError")}}));ce(()=>{const e="versionchange"===this.mode;e&&(this.db._rawDatabase.connections=this.db._rawDatabase.connections.filter(e=>!e._rawDatabase.transactions.includes(this)));const t=new ae("abort",{bubbles:!0,cancelable:!1});if(t.eventPath=[this.db],this.dispatchEvent(t),e){const e=this._openRequest;e.transaction=null,e.result=void 0}}),this._state="finished"}abort(){if("committing"===this._state||"finished"===this._state)throw new a;this._state="active",this._abort(null)}objectStore(e){if("active"!==this._state)throw new a;const t=this._objectStoresCache.get(e);if(void 0!==t)return t;const r=this.db._rawDatabase.rawObjectStores.get(e);if(!this._scope.has(e)||void 0===r)throw new s;const n=new oe(this,r);return this._objectStoresCache.set(e,n),n}_execRequestAsync(e){const t=e.source,r=e.operation;let n=Object.hasOwn(e,"request")?e.request:null;if("active"!==this._state)throw new l;return n||(t?(n=new L,n.source=t,n.transaction=t.transaction):n=new L),this._requests.push({operation:r,request:n}),n}_start(){let e,t;for(this._started=!0;this._requests.length>0;){const r=this._requests.shift();if(r&&"done"!==r.request.readyState){t=r.request,e=r.operation;break}}if(t&&e){if(t.source){let r,n;try{const r=e();t.readyState="done",t.result=r,t.error=void 0,"inactive"===this._state&&(this._state="active"),n=new ae("success",{bubbles:!1,cancelable:!1})}catch(e){t.readyState="done",t.result=void 0,t.error=e,"inactive"===this._state&&(this._state="active"),n=new ae("error",{bubbles:!0,cancelable:!0}),r=this._abort.bind(this,e.name)}try{n.eventPath=[this.db,this],t.dispatchEvent(n)}catch(e){"active"===this._state&&(this._abort("AbortError"),r=void 0)}n.canceled||r&&r()}else e();ce(this._start.bind(this))}else if("finished"!==this._state&&(this._state="finished",!this.error)){const e=new ae("complete");this.dispatchEvent(e)}}commit(){if("active"!==this._state)throw new a;this._state="committing"}get[Symbol.toStringTag](){return"IDBTransaction"}}const he=fe,de=9007199254740992,pe=class{num=0;next(){if(this.num>=de)throw new n;return this.num+=1,this.num}setIfLarger(e){const t=Math.floor(Math.min(e,de))-1;t>=this.num&&(this.num=t+1)}},ge=class{deleted=!1;records=new X(!0);rawIndexes=new Map;constructor(e,t,r,n){this.rawDatabase=e,this.keyGenerator=!0===n?new pe:null,this.deleted=!1,this.name=t,this.keyPath=r,this.autoIncrement=n}getKey(e){const t=this.records.get(e);return void 0!==t?structuredClone(t.key):void 0}getAllKeys(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.key)),n.length>=t)break;return n}getValue(e){const t=this.records.get(e);return void 0!==t?structuredClone(t.value):void 0}getAllValues(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(structuredClone(i.value)),n.length>=t)break;return n}getAllRecords(e,t,r){void 0!==t&&0!==t||(t=1/0);const n=[];for(const i of this.records.values(e,r))if(n.push(new H(structuredClone(i.key),structuredClone(i.key),structuredClone(i.value))),n.length>=t)break;return n}storeRecord(e,t,r){if(null!==this.keyPath){const t=S(this.keyPath,e.value).key;void 0!==t&&(e.key=t)}const n=[];if(null!==this.keyGenerator&&void 0===e.key){let t=!1;const o=this.keyGenerator.num,a=()=>{t||(t=!0,this.keyGenerator&&(this.keyGenerator.num=o))};if(n.push(a),r&&r.push(a),e.key=this.keyGenerator.next(),null!==this.keyPath){if(Array.isArray(this.keyPath))throw new Error("Cannot have an array key path in an object store with a key generator");let t,r=this.keyPath,n=e.value,o=0;for(;o>=0;){if("object"!=typeof n)throw new i;o=r.indexOf("."),o>=0&&(t=r.slice(0,o),r=r.slice(o+1),Object.hasOwn(n,t)||Object.defineProperty(n,t,{configurable:!0,enumerable:!0,writable:!0,value:{}}),n=n[t])}t=r,Object.defineProperty(n,t,{configurable:!0,enumerable:!0,writable:!0,value:e.key})}}else null!==this.keyGenerator&&"number"==typeof e.key&&this.keyGenerator.setIfLarger(e.key);const o=this.records.put(e,t);let a=!1;const s=()=>{a||(a=!0,o?this.storeRecord(o,!1):this.deleteRecord(e.key))};if(n.push(s),r&&r.push(s),o)for(const t of this.rawIndexes.values())t.records.deleteByValue(e.key);try{for(const t of this.rawIndexes.values())t.initialized&&t.storeRecord(e)}catch(e){if("ConstraintError"===e.name)for(const e of n)e();throw e}return e.key}deleteRecord(e,t){const r=this.records.delete(e);if(t)for(const e of r)t.push(()=>{this.storeRecord(e,!0)});for(const t of this.rawIndexes.values())t.records.deleteByValue(e)}clear(e){const t=this.records.clear();if(e)for(const r of t)e.push(()=>{this.storeRecord(r,!0)});for(const e of this.rawIndexes.values())e.records.clear()}count(e){if(void 0===e||void 0===e.lower&&void 0===e.upper)return this.records.size();let t=0;for(const r of this.records.values(e))t+=1;return t}},ye=(e,t=!1)=>{if(e._closePending=!0,e._rawDatabase.transactions.every(e=>"finished"===e._state)){if(e._closed=!0,e._rawDatabase.connections=e._rawDatabase.connections.filter(t=>e!==t),t){const t=new ae("close",{bubbles:!1,cancelable:!1});t.eventPath=[],e.dispatchEvent(t)}}else ce(()=>{ye(e,t)})},me=ye,be=e=>{let t;if(e._runningVersionchangeTransaction&&(t=e._rawDatabase.transactions.findLast(e=>"versionchange"===e.mode)),!t)throw new a;if("active"!==t._state)throw new l;return t};class we extends F{_closePending=!1;_closed=!1;_runningVersionchangeTransaction=!1;constructor(e){super(),this._rawDatabase=e,this._rawDatabase.connections.push(this),this.name=e.name,this.version=e.version,this.objectStoreNames=new N(...Array.from(e.rawObjectStores.keys()).sort())}createObjectStore(e,t={}){if(void 0===e)throw new TypeError;const r=be(this),i=null!==t&&void 0!==t.keyPath?t.keyPath:null,a=null!==t&&void 0!==t.autoIncrement&&t.autoIncrement;if(null!==i&&te(i),this._rawDatabase.rawObjectStores.has(e))throw new n;if(a&&(""===i||Array.isArray(i)))throw new o;const s=[...this.objectStoreNames],u=[...r.objectStoreNames],c=new ge(this._rawDatabase,e,i,a);return this.objectStoreNames._push(e),this.objectStoreNames._sort(),r._scope.add(e),r._createdObjectStores.add(c),this._rawDatabase.rawObjectStores.set(e,c),r.objectStoreNames=new N(...this.objectStoreNames),r._rollbackLog.push(()=>{c.deleted=!0,this.objectStoreNames=new N(...s),r.objectStoreNames=new N(...u),r._scope.delete(c.name),this._rawDatabase.rawObjectStores.delete(c.name)}),r.objectStore(e)}deleteObjectStore(e){if(void 0===e)throw new TypeError;const t=be(this),r=this._rawDatabase.rawObjectStores.get(e);if(void 0===r)throw new s;this.objectStoreNames=new N(...Array.from(this.objectStoreNames).filter(t=>t!==e)),t.objectStoreNames=new N(...this.objectStoreNames);const n=t._objectStoresCache.get(e);let i;n&&(i=[...n.indexNames],n.indexNames=new N),t._rollbackLog.push(()=>{r.deleted=!1,this._rawDatabase.rawObjectStores.set(r.name,r),this.objectStoreNames._push(r.name),t.objectStoreNames._push(r.name),this.objectStoreNames._sort(),n&&i&&(n.indexNames=new N(...i))}),r.deleted=!0,this._rawDatabase.rawObjectStores.delete(e),t._objectStoresCache.delete(e)}transaction(e,t,r){if("readonly"!==(t=void 0!==t?t:"readonly")&&"readwrite"!==t&&"versionchange"!==t)throw new TypeError("Invalid mode: "+t);if(this._rawDatabase.transactions.some(e=>"active"===e._state&&"versionchange"===e.mode&&e.db===this))throw new a;if(this._closePending)throw new a;if(Array.isArray(e)||(e=[e]),0===e.length&&"versionchange"!==t)throw new o;for(const t of e)if(!this.objectStoreNames.contains(t))throw new s("No objectStore named "+t+" in this database");const n=r?.durability??"default";if("default"!==n&&"strict"!==n&&"relaxed"!==n)throw new TypeError(`'${n}' (value of 'durability' member of IDBTransactionOptions) is not a valid value for enumeration IDBTransactionDurability`);const i=new he(e,t,n,this);return this._rawDatabase.transactions.push(i),this._rawDatabase.processTransactions(),i}close(){me(this)}get[Symbol.toStringTag](){return"IDBDatabase"}}const ve=we;class _e extends L{onupgradeneeded=null;onblocked=null;get[Symbol.toStringTag](){return"IDBOpenDBRequest"}}const Ee=_e;class ke extends ae{constructor(e,t={}){super(e),this.newVersion=void 0!==t.newVersion?t.newVersion:null,this.oldVersion=void 0!==t.oldVersion?t.oldVersion:0}get[Symbol.toStringTag](){return"IDBVersionChangeEvent"}}const Se=ke;function xe(e,t){return"intersection"in e?e.intersection(t):new Set([...e].filter(e=>t.has(e)))}const Ae=class{transactions=[];rawObjectStores=new Map;connections=[];constructor(e,t){this.name=e,this.version=t,this.processTransactions=this.processTransactions.bind(this)}processTransactions(){ce(()=>{const e=this.transactions.filter(e=>e._started&&"finished"!==e._state),t=this.transactions.filter(e=>!e._started&&"finished"!==e._state),r=t.find((r,n)=>!e.some(e=>!("readonly"===r.mode&&"readonly"===e.mode)&&xe(e._scope,r._scope).size>0)&&!t.slice(0,n).some(e=>xe(e._scope,r._scope).size>0));r&&(r.addEventListener("complete",this.processTransactions),r.addEventListener("abort",this.processTransactions),r._start())})}};function Oe(e,t,r){if(e<t)throw new TypeError(`${r}: At least ${t} ${1===t?"argument":"arguments"} required, but only ${arguments.length} passed`)}const je=(e,t,r)=>{const n=e.get(t)??Promise.resolve();e.set(t,n.then(r))},Be=(e,t,r,n)=>{r.some(e=>!e._closed&&!e._closePending)?ce(()=>Be(e,t,r,n)):(e.delete(t),n(null))};class Re{_databases=new Map;_connectionQueues=new Map;cmp(e,t){return Oe(arguments.length,2,"IDBFactory.cmp"),v(e,t)}deleteDatabase(e){Oe(arguments.length,1,"IDBFactory.deleteDatabase");const t=new Ee;return t.source=null,ce(()=>{((e,t,r,n,i)=>{je(t,r,()=>new Promise(t=>{const o=e.get(r),a=void 0!==o?o.version:0,s=e=>{try{e?i(e):i(null,a)}finally{t()}};try{const t=e.get(r);if(void 0===t)return void s(null);const i=t.connections.filter(e=>!e._closed);for(const e of i)e._closePending||ce(()=>{const r=new Se("versionchange",{newVersion:null,oldVersion:t.version});e.dispatchEvent(r)});ce(()=>{i.some(e=>!e._closed&&!e._closePending)&&ce(()=>{const e=new Se("blocked",{newVersion:null,oldVersion:t.version});n.dispatchEvent(e)}),Be(e,r,i,s)})}catch(e){s(e)}}))})(this._databases,this._connectionQueues,e,t,(e,r)=>{if(e){t.error=new DOMException(e.message,e.name),t.readyState="done";const r=new ae("error",{bubbles:!0,cancelable:!0});return r.eventPath=[],void t.dispatchEvent(r)}t.result=void 0,t.readyState="done";const n=new Se("success",{newVersion:null,oldVersion:r});t.dispatchEvent(n)})}),t}open(e,t){if(Oe(arguments.length,1,"IDBFactory.open"),arguments.length>1&&void 0!==t&&(t=q(t,"MAX_SAFE_INTEGER")),0===t)throw new TypeError("Database version cannot be 0");const n=new Ee;return n.source=null,ce(()=>{((e,t,n,i,o,a)=>{je(t,n,()=>new Promise(t=>{const s=e=>{try{e?a(e):a(null,c)}finally{t()}};let u=e.get(n);if(void 0===u&&(u=new Ae(n,0),e.set(n,u)),void 0===i&&(i=0!==u.version?u.version:1),u.version>i)return s(new f);const c=new ve(u);u.version<i?((e,t,n,i)=>{e._runningVersionchangeTransaction=!0;const o=e._oldVersion=e.version,a=e._rawDatabase.connections.filter(t=>e!==t);for(const e of a)e._closed||e._closePending||ce(()=>{const r=new Se("versionchange",{newVersion:t,oldVersion:o});e.dispatchEvent(r)});ce(()=>{a.some(e=>!e._closed&&!e._closePending)&&ce(()=>{const e=new Se("blocked",{newVersion:t,oldVersion:o});n.dispatchEvent(e)});const s=()=>{if(a.some(e=>!e._closed&&!e._closePending))return void ce(s);e._rawDatabase.version=t,e.version=t;const u=e.transaction(Array.from(e.objectStoreNames),"versionchange");u._openRequest=n,n.result=e,n.readyState="done",n.transaction=u,u._rollbackLog.push(()=>{e._rawDatabase.version=o,e.version=o}),u._state="active";const c=new Se("upgradeneeded",{newVersion:t,oldVersion:o});let l=!1;try{n.dispatchEvent(c)}catch(e){l=!0}const f=()=>{"active"===u._state&&(u._state="inactive",l&&u._abort("AbortError"))};l?f():ce(f),u._prioritizedListeners.set("error",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0}),u._prioritizedListeners.set("abort",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0,ce(()=>{n.transaction=null,i(new r)})}),u._prioritizedListeners.set("complete",()=>{e._runningVersionchangeTransaction=!1,e._oldVersion=void 0,ce(()=>{n.transaction=null,e._closePending?i(new r):i(null)})})};s()})})(c,i,o,e=>{s(e)}):s(null)}))})(this._databases,this._connectionQueues,e,t,n,(e,t)=>{if(e){n.result=void 0,n.readyState="done",n.error=new DOMException(e.message,e.name);const t=new ae("error",{bubbles:!0,cancelable:!0});return t.eventPath=[],void n.dispatchEvent(t)}n.result=t,n.readyState="done";const r=new ae("success");r.eventPath=[],n.dispatchEvent(r)})}),n}databases(){return Promise.resolve(Array.from(this._databases.entries(),([e,t])=>{const r=t.connections.find(e=>e._runningVersionchangeTransaction);return{name:e,version:r?r._oldVersion:t.version}}).filter(({version:e})=>e>0))}get[Symbol.toStringTag](){return"IDBFactory"}}const Ce=new Re;void 0===globalThis.indexedDB&&(globalThis.indexedDB=Ce,globalThis.IDBKeyRange=E)})(),(()=>{"use strict";var e={};i.r(e),i.d(e,{MAX:()=>l,NIL:()=>f,parse:()=>p,stringify:()=>m,v1:()=>k,v1ToV6:()=>S,v3:()=>M,v4:()=>P,v5:()=>$,v6:()=>V,v6ToV1:()=>Z,v7:()=>K,validate:()=>d,version:()=>Y});var t={};i.r(t),i.d(t,{__:()=>Qe,analyzeModule:()=>hr,arrayEqual:()=>At,assembleApiUrl:()=>ze,assembleBuffer:()=>it,assembleUrl:()=>bt,assertArray:()=>Tt,assertBuffer:()=>Lt,assertDate:()=>Ct,assertEmail:()=>Ot,assertFunction:()=>It,assertModule:()=>Ft,assertObject:()=>Dt,assertSet:()=>Rt,assertUrl:()=>Bt,assertUuid:()=>jt,asyncTimeout:()=>vt,base64Decode:()=>Ce,base64Encode:()=>Re,base64Pack:()=>Fe,base64Unpack:()=>Ie,basename:()=>Ye,byteToHexString:()=>St,call:()=>fe,checkChance:()=>Je,checkInterval:()=>rr,clarify:()=>Ge,clone:()=>tt,convertBase:()=>je,convertFrom16to10:()=>Be,countKeys:()=>pr,deepCleanBigInt:()=>nt,distill:()=>rt,ensureArray:()=>at,ensureDate:()=>lt,ensureInt:()=>st,ensureLines:()=>$e,ensureString:()=>ct,escapeHtml:()=>sr,exclude:()=>gr,extError:()=>we,extract:()=>kt,fileURLToPath:()=>te.m9,fullLengthLog:()=>Kt,getDateByUnixTimestamp:()=>ge,getFuncParams:()=>fr,getItemFromStringOrArray:()=>pt,getKeyByValue:()=>Mt,getRandomIndexInArray:()=>ht,getRandomInt:()=>me,getRandomItemInArray:()=>dt,getShortestInArray:()=>xt,getTimeIcon:()=>wr,getType:()=>gt,getUnixTimestampByDate:()=>ye,hexDecode:()=>De,hexEncode:()=>Te,humanReadableBoolean:()=>Zt,ignoreErrFunc:()=>nr,inBrowser:()=>yr,insensitiveCompare:()=>qt,insensitiveHas:()=>Wt,is:()=>ke,isAscii:()=>ar,isModule:()=>xe,isNull:()=>Ae,isSet:()=>Oe,isUndefined:()=>Se,lastItem:()=>Ze,lineSplit:()=>Yt,locate:()=>Pt,log:()=>Nt,makeStringByLength:()=>$t,mapKeys:()=>ot,mask:()=>cr,matchVersion:()=>Ht,mergeAtoB:()=>zt,need:()=>dr,newError:()=>ve,once:()=>lr,parseJson:()=>Et,parseVersion:()=>Gt,prettyJson:()=>wt,purgeEmoji:()=>ur,randomArray:()=>be,range:()=>tr,renderBox:()=>er,renderCode:()=>Jt,renderObject:()=>Xt,renderText:()=>Qt,resolve:()=>Ue,reverseKeyValues:()=>vr,rotate:()=>Vt,shiftTime:()=>We,split:()=>or,splitArgs:()=>br,supportAnsiColor:()=>mr,throwError:()=>_e,timeout:()=>Me,toExponential:()=>Le,toString:()=>ut,trim:()=>Ne,tryUntil:()=>ir,uniqueArray:()=>Ee,uptime:()=>ft,verifyEmail:()=>mt,verifyPhone:()=>Pe,verifyUrl:()=>yt,verifyUuid:()=>d,voidFunc:()=>Ve,which:()=>Ut});var r={};i.r(r),i.d(r,{_NEED:()=>mn,aesCreateIv:()=>Cn,aesCreateKey:()=>Rn,aesDecrypt:()=>Fn,aesEncrypt:()=>Dn,defaultAlgorithm:()=>bn,defaultEncryption:()=>wn,digestObject:()=>jn,getGoogleAuthByCredentials:()=>In,getGoogleAuthTokenByAuth:()=>Ln,getSortedQueryString:()=>Sn,hash:()=>xn,hashFile:()=>An,hexToBigInt:()=>Bn,md5:()=>_n,random:()=>gn.randomBytes,randomString:()=>On,sha256:()=>xn,sha256File:()=>An,uniqueString:()=>vn});var n={};i.r(n),i.d(n,{BASE64:()=>Kn,BUFFER:()=>Yn,DATAURL:()=>ii,FILE:()=>Jn,MIME_AAC:()=>ki,MIME_AVI:()=>yi,MIME_BINARY:()=>ui,MIME_FLAC:()=>Si,MIME_FLV:()=>wi,MIME_GIF:()=>vi,MIME_JPEG:()=>fi,MIME_JSON:()=>ci,MIME_M4A:()=>Oi,MIME_MOV:()=>hi,MIME_MP3:()=>xi,MIME_MP4:()=>pi,MIME_MPEG:()=>di,MIME_MPEGA:()=>Ai,MIME_MPEGPS:()=>bi,MIME_MPG:()=>gi,MIME_MPGA:()=>ji,MIME_OGG:()=>Ii,MIME_OPUS:()=>Bi,MIME_PCM:()=>Ri,MIME_PCM16:()=>Fi,MIME_PDF:()=>Ei,MIME_PNG:()=>li,MIME_TEXT:()=>si,MIME_TGPP:()=>Di,MIME_WAV:()=>Ci,MIME_WEBM:()=>Ti,MIME_WEBP:()=>_i,MIME_WMV:()=>mi,STREAM:()=>Xn,_NEED:()=>Pn,analyzeFile:()=>fo,assertPath:()=>Yi,blobToBuffer:()=>uo,convert:()=>co,decodeBase64DataURL:()=>no,deleteFileOnCloud:()=>Eo,deleteOnCloud:()=>ko,downloadFileFromCloud:()=>bo,downloadFromCloud:()=>wo,encodeBase64DataURL:()=>ro,exists:()=>oo,existsOnCloud:()=>vo,formatDataURL:()=>Gn,getConfig:()=>Qi,getConfigFilename:()=>Xi,getGcUrlByBucket:()=>zn,getIdByGs:()=>qn,getMime:()=>lo,getTempPath:()=>Hi,handleError:()=>Vi,init:()=>yo,isTextFile:()=>Ji,legalFilename:()=>io,lsOnCloud:()=>_o,mapFilename:()=>Wn,mergeFile:()=>po,readFile:()=>qi,readJson:()=>Gi,sanitizeFilename:()=>Zn,setConfig:()=>eo,sliceFile:()=>ho,touchPath:()=>to,tryRm:()=>go,unzip:()=>so,uploadToCloud:()=>mo,writeFile:()=>Wi,writeJson:()=>$i,writeTempFile:()=>Ki,zip:()=>ao});var o={};i.r(o),i.d(o,{bigIntToUuid:()=>Ro,compactUuid:()=>jo,create:()=>Fo,default:()=>No,expandUuid:()=>To,fakeUuid:()=>Co,getRfcUrlNamespaceUuid:()=>Io,getTimestampFromUuid:()=>Do,getUuidForCurrentHost:()=>Mo,rotateUuid:()=>Lo,uuidRegTxt:()=>Oo,uuidToBigInt:()=>Bo});var a={};i.r(a),i.d(a,{bulk:()=>Ko,default:()=>Jo,end:()=>Yo,list:()=>qo,load:()=>Ho,loop:()=>Go});var s={};i.r(s),i.d(s,{_NEED:()=>ea,checkSay:()=>ua,checkWhisper:()=>ca,stt:()=>pa,sttWhisper:()=>ha,tts:()=>da,ttsSay:()=>la});var u=i(8221),c=i.t(u,2);const l="ffffffff-ffff-ffff-ffff-ffffffffffff",f="00000000-0000-0000-0000-000000000000",h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,d=function(e){return"string"==typeof e&&h.test(e)},p=function(e){if(!d(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function y(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}const m=function(e,t=0){const r=y(e,t);if(!d(r))throw TypeError("Stringified UUID is invalid");return r};let b;const w=new Uint8Array(16);function v(){if(!b){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");b=crypto.getRandomValues.bind(crypto)}return b(w)}const _={};function E(e,t,r,n,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16);const s=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const u=t/4294967296*1e4&268435455;o[a++]=u>>>8&255,o[a++]=255&u,o[a++]=u>>>24&15|16,o[a++]=u>>>16&255,o[a++]=n>>>8|128,o[a++]=255&n;for(let e=0;e<6;++e)o[a++]=i[e];return o}const k=function(e,t,r){let n;const i=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=E(e.random??e.rng?.()??v(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),o=v();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9])),e.msecs=t}(_,e,o),n=E(o,_.msecs,_.nsecs,i?void 0:_.clockseq,i?void 0:_.node,t,r)}return t??y(n)};function S(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?p(e):e);return"string"==typeof e?y(t):t}function x(e){return 14+(e+64>>>9<<4)+1}function A(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function O(e,t,r,n,i,o){return A((a=A(A(t,e),A(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function j(e,t,r,n,i,o,a){return O(t&r|~t&n,e,t,i,o,a)}function B(e,t,r,n,i,o,a){return O(t&n|r&~n,e,t,i,o,a)}function R(e,t,r,n,i,o,a){return O(t^r^n,e,t,i,o,a)}function C(e,t,r,n,i,o,a){return O(r^(t|~n),e,t,i,o,a)}const T=function(e){return function(e){const t=new Uint8Array(4*e.length);for(let r=0;r<4*e.length;r++)t[r]=e[r>>2]>>>r%4*8&255;return t}(function(e,t){const r=new Uint32Array(x(t)).fill(0);r.set(e),r[t>>5]|=128<<t%32,r[r.length-1]=t,e=r;let n=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let t=0;t<e.length;t+=16){const r=n,s=i,u=o,c=a;n=j(n,i,o,a,e[t],7,-680876936),a=j(a,n,i,o,e[t+1],12,-389564586),o=j(o,a,n,i,e[t+2],17,606105819),i=j(i,o,a,n,e[t+3],22,-1044525330),n=j(n,i,o,a,e[t+4],7,-176418897),a=j(a,n,i,o,e[t+5],12,1200080426),o=j(o,a,n,i,e[t+6],17,-1473231341),i=j(i,o,a,n,e[t+7],22,-45705983),n=j(n,i,o,a,e[t+8],7,1770035416),a=j(a,n,i,o,e[t+9],12,-1958414417),o=j(o,a,n,i,e[t+10],17,-42063),i=j(i,o,a,n,e[t+11],22,-1990404162),n=j(n,i,o,a,e[t+12],7,1804603682),a=j(a,n,i,o,e[t+13],12,-40341101),o=j(o,a,n,i,e[t+14],17,-1502002290),i=j(i,o,a,n,e[t+15],22,1236535329),n=B(n,i,o,a,e[t+1],5,-165796510),a=B(a,n,i,o,e[t+6],9,-1069501632),o=B(o,a,n,i,e[t+11],14,643717713),i=B(i,o,a,n,e[t],20,-373897302),n=B(n,i,o,a,e[t+5],5,-701558691),a=B(a,n,i,o,e[t+10],9,38016083),o=B(o,a,n,i,e[t+15],14,-660478335),i=B(i,o,a,n,e[t+4],20,-405537848),n=B(n,i,o,a,e[t+9],5,568446438),a=B(a,n,i,o,e[t+14],9,-1019803690),o=B(o,a,n,i,e[t+3],14,-187363961),i=B(i,o,a,n,e[t+8],20,1163531501),n=B(n,i,o,a,e[t+13],5,-1444681467),a=B(a,n,i,o,e[t+2],9,-51403784),o=B(o,a,n,i,e[t+7],14,1735328473),i=B(i,o,a,n,e[t+12],20,-1926607734),n=R(n,i,o,a,e[t+5],4,-378558),a=R(a,n,i,o,e[t+8],11,-2022574463),o=R(o,a,n,i,e[t+11],16,1839030562),i=R(i,o,a,n,e[t+14],23,-35309556),n=R(n,i,o,a,e[t+1],4,-1530992060),a=R(a,n,i,o,e[t+4],11,1272893353),o=R(o,a,n,i,e[t+7],16,-155497632),i=R(i,o,a,n,e[t+10],23,-1094730640),n=R(n,i,o,a,e[t+13],4,681279174),a=R(a,n,i,o,e[t],11,-358537222),o=R(o,a,n,i,e[t+3],16,-722521979),i=R(i,o,a,n,e[t+6],23,76029189),n=R(n,i,o,a,e[t+9],4,-640364487),a=R(a,n,i,o,e[t+12],11,-421815835),o=R(o,a,n,i,e[t+15],16,530742520),i=R(i,o,a,n,e[t+2],23,-995338651),n=C(n,i,o,a,e[t],6,-198630844),a=C(a,n,i,o,e[t+7],10,1126891415),o=C(o,a,n,i,e[t+14],15,-1416354905),i=C(i,o,a,n,e[t+5],21,-57434055),n=C(n,i,o,a,e[t+12],6,1700485571),a=C(a,n,i,o,e[t+3],10,-1894986606),o=C(o,a,n,i,e[t+10],15,-1051523),i=C(i,o,a,n,e[t+1],21,-2054922799),n=C(n,i,o,a,e[t+8],6,1873313359),a=C(a,n,i,o,e[t+15],10,-30611744),o=C(o,a,n,i,e[t+6],15,-1560198380),i=C(i,o,a,n,e[t+13],21,1309151649),n=C(n,i,o,a,e[t+4],6,-145523070),a=C(a,n,i,o,e[t+11],10,-1120210379),o=C(o,a,n,i,e[t+2],15,718787259),i=C(i,o,a,n,e[t+9],21,-343485551),n=A(n,r),i=A(i,s),o=A(o,u),a=A(a,c)}return Uint32Array.of(n,i,o,a)}(function(e){if(0===e.length)return new Uint32Array;const t=new Uint32Array(x(8*e.length)).fill(0);for(let r=0;r<e.length;r++)t[r>>2]|=(255&e[r])<<r%4*8;return t}(e),8*e.length))},D="6ba7b810-9dad-11d1-80b4-00c04fd430c8",F="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function I(e,t,r,n,i,o){const a="string"==typeof r?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(r):r,s="string"==typeof n?p(n):n;if("string"==typeof n&&(n=p(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+a.length);if(u.set(s),u.set(a,s.length),u=t(u),u[6]=15&u[6]|e,u[8]=63&u[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=u[e];return i}return y(u)}function L(e,t,r,n){return I(48,T,e,t,r,n)}L.DNS=D,L.URL=F;const M=L,N={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},P=function(e,t,r){return!N.randomUUID||t||e?function(e,t,r){const n=(e=e||{}).random??e.rng?.()??v();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return y(n)}(e,t,r):N.randomUUID()};function U(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 z(e,t){return e<<t|e>>>32-t}const q=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(e.length+1);n.set(e),n[e.length]=128;const i=(e=n).length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let t=0;t<o;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=a[e][t];for(let e=16;e<80;++e)n[e]=z(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let i=r[0],o=r[1],s=r[2],u=r[3],c=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=z(i,5)+U(r,o,s,u)+c+t[r]+n[e]>>>0;c=u,u=s,s=z(o,30)>>>0,o=i,i=a}r[0]=r[0]+i>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+c>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])};function W(e,t,r,n){return I(80,q,e,t,r,n)}W.DNS=D,W.URL=F;const $=W,V=function(e,t,r){e??={},r??=0;let n=k({...e,_v6:!0},new Uint8Array(16));if(n=S(n),t){for(let e=0;e<16;e++)t[r+e]=n[e];return t}return y(n)};function Z(e){const t=(r="string"==typeof e?p(e):e,Uint8Array.of((15&r[3])<<4|r[4]>>4&15,(15&r[4])<<4|(240&r[5])>>4,(15&r[5])<<4|15&r[6],r[7],(15&r[1])<<4|(240&r[2])>>4,(15&r[2])<<4|(240&r[3])>>4,16|(240&r[0])>>4,(15&r[0])<<4|(240&r[1])>>4,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]));var r;return"string"==typeof e?y(t):t}const G={};function H(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}const K=function(e,t,r){let n;if(e)n=H(e.random??e.rng?.()??v(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=v();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(G,e,i),n=H(i,G.msecs,G.seq,t,r)}return t??y(n)},Y=function(e){if(!d(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var J=i(4148),X=i(8287);Object.values=Object.values||(e=>Object.keys(e).map(t=>e[t])),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Q=J||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,r,n)=>{try{return Q(e,t)}catch(e){throw((e,t=500,r={})=>Object.assign(e,{status:t},r))(e,r,n)}};for(let e in Q||{})assert[e]=Q[e]}globalThis.Buffer=globalThis.Buffer||X.Buffer;const ee=(e,t)=>t?.constructor===e;[ArrayBuffer,BigInt,Boolean,Error,Number,Object,Set,String,Uint8Array].map(e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>ee(e,t))}),Date.isDate=Date.isDate||((e,t)=>!(!ee(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var te=i(8835),re=i(7975),ne=i(537);const ie=JSON.parse('{"single":{"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"},"double":{"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"},"round":{"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"},"bold":{"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"},"singleDouble":{"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"},"doubleSingle":{"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"},"classic":{"topLeft":"+","top":"-","topRight":"+","right":"|","bottomRight":"+","bottom":"-","bottomLeft":"+","left":"|"},"arrow":{"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"}}');var oe=i.t(ie),ae=i(3428);const se={strip:(e,t)=>ct(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in ae)se[e]=(t,r)=>{const[n,i]=mr()?[ae[e].open,ae[e].close]:["",""];return`${n}${ct(t,r)}${i}`};const ue=se;var ce=i(8287).Buffer,le=i(5606);const fe=(e,...t)=>(0,ne.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),he="Invalid time.",[de,pe]=["Chrome","Edge"],ge=e=>new Date(1e3*~~e),ye=e=>Math.round(e.getTime()/1e3),me=e=>Math.floor(Math.random()*Math.floor(e)),be=e=>e.sort(()=>.5-Math.random()),we=(e,t,r={})=>Object.assign(e,{status:t},r),ve=(e,t,r)=>we(new Error(e),t,r),_e=(e,t,r)=>{throw ve(e,t,r)},Ee=e=>[...new Set(at(e))],ke=(e,t)=>gt(t)===e,Se=e=>ke("Undefined",e),xe=e=>ke("Module",e),Ae=e=>ke("Null",e),Oe=(e,t)=>!(Se(e)||t&&Ae(e)),je=(e,t,r)=>parseInt(e||0,t).toString(r),Be=e=>parseInt(je(e,16,10)),Re=(e,t)=>qe(e,t,"base64"),Ce=(e,t)=>_t(e,t,"base64"),Te=(e,t)=>qe(e,t,"hex"),De=(e,t)=>_t(e,t,"hex"),Fe=e=>Re(JSON.stringify(e)),Ie=e=>JSON.parse(Ce(e)),Le=(e,t)=>Number.parseFloat(e).toExponential(t),Me=e=>new Promise(t=>(e?setTimeout:setImmediate)(t,e)),Ne=(e,t)=>ct(e,{trim:!0,...t||{}}),Pe=e=>/^\+?[0-9]{4,}$/.test(e),Ue=async e=>e instanceof Promise?await e:e,ze=(e,t,r)=>bt(`${e}/${t}`,r),qe=(e,t,r)=>(t?e:ce.from(e)).toString(r),We=(e,t)=>new Date((t??new Date).getTime()+e),$e=(e,t)=>Array.isArray(e)?e:Yt(e,t),Ve=()=>{},Ze=e=>e.slice(-1)[0],Ge=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter(e=>e),He={},Ke=e=>String(e||et),Ye=e=>(0,re.basename)(Ke(e)).replace(/\.[^\.]*$/,"").trim(),Je=e=>Math.random()<1/(~~e||100),Xe={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Qe=(e,t)=>{assert(e,"Invalid URL.",500);const r=(0,te.m9)(e),n=(0,re.dirname)(r);return(t=String(t??""))?(0,re.join)(n,t):{__filename:r,__dirname:n}},{__filename:et}=Qe("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),tt=e=>{let t=e;switch(gt(e)){case"Object":t={};for(let r in e)t[r]=tt(e[r]);break;case"Array":t=[],e.map(e=>{t.push(tt(e))})}return t},rt=(e,t)=>{let[r,n]=[e,null];switch(gt(e)){case"Object":r={};for(let i in e)Oe(n=rt(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map(e=>{Oe(e=rt(e,t),t)&&r.push(e)}),r=r.length?r:void 0}return r},nt=(e,t=String)=>{let r=e;switch(gt(e)){case"Object":r={};for(let n in e)r[n]=nt(e[n],t);break;case"Array":r=[],e.map(e=>{r.push(nt(e,t))});break;case"BigInt":r=t(e)}return r},it=e=>{let t=e;switch(gt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ce.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=no(e.data)?.buffer;else{t={};for(let r in e)t[r]=it(e[r])}break;case"Array":t=[],e.map(e=>{t.push(it(e))})}return t},ot=(e,t,r,n)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),It(o),gt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);assert(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=ot(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map((e,t)=>{i.push(ot(e,o,r,[...n||[],t]))})}return i},at=e=>Oe(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],st=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=Oe(t.min,!0)&&r<t.min?t.min:r,r=Oe(t.max,!0)&&r>t.max?t.max:r,t.pad>0?String(r).padStart(t.pad,"0"):r},ut=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),ct=(e,t)=>{if(e=ut(e,t),t?.case)switch(ut(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;case"CAMEL":e=Ge(e).map((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e).join("");break;case"SNAKE":e=Ge(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:_e(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},lt=(e,t)=>(e&&Ct(e=new Date(e),t?.message),!e&&t?.required?_e(he,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?ye(e):e:null),ft=()=>{let e=`${wr(new Date)} ${(new Date).toTimeString().split(" ")[0].split(":").slice(0,2).join(":")} up`,t=le.uptime();const r=Math.floor(t/86400);t-=3600*r*24;let n=Math.floor(t/3600);t-=3600*n,n=n.toString().padStart(2,"0");let i=Math.floor(t/60);return i=i.toString().padStart(2,"0"),t=Math.floor(t%60).toString().padStart(2,"0"),r>0&&(e+=` ${r} day${r>1?"s":""},`),`${e} ${n}:${i}:${t}`},ht=(e,t)=>{const r=~~t?.count,n=be([...e.keys()]).slice(0,r||1);return r?n:n[0]},dt=(e,t)=>{const r=~~t?.count,n=be(ht(e,{count:r||1}).sort((e,t)=>t-e).map(r=>t?.splice?e.splice(r,1)[0]:e[r]));return r?n:n[0]},pt=e=>Array.isArray(e)?dt(e):e,gt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),yt=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\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)},mt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),bt=(e,t)=>{let r=[];for(let e in t||[])at(t[e]).map(t=>{r.push(`${e}=${encodeURIComponent(t)}`)});return`${e}${r.length?`?${r.join("&")}`:""}`},wt=(e,t)=>{let r=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?r=Jt(r,{...t||{},md:t?.md&&"json"}):t?.log&&console.log(r),r},vt=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},_t=(e,t,r)=>{const n=ce.from(e,r);return t?n:n.toString("utf8")},Et=(e,t,r)=>{try{return JSON.parse(e,r?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ce.from(t.data):t))}catch(e){return Oe(t)?t:{}}},kt=(...e)=>{let t=null;return e.map((e,r)=>t=r?t?.[e]??null:e),t},St=e=>Array.from(e,e=>("0"+(255&e).toString(16)).slice(-2)).join(""),xt=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},At=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),Ot=(e,t,r,n)=>assert(mt(e),t||"Invalid email.",r||400,n),jt=(e,t,r,n)=>assert(d(e),t||"Invalid UUID.",r||400,n),Bt=(e,t,r,n)=>assert(yt(e),t||"Invalid URL.",r||400,n),Rt=(e,t,r,n)=>assert(Oe(e),t||"Undefined value.",r||400,n),Ct=(e,t,r,n)=>assert(Date.isDate(e,!0),t||he,r||400,n),Tt=(e,t,r,n)=>assert(Array.isObject(e),t||"Invalid Array.",r||400,n),Dt=(e,t,r,n)=>assert(Object.isObject(e),t||"Invalid Object.",r||400,n),Ft=(e,t,r,n)=>assert(xe(e),t||"Invalid Module.",r||400,n),It=(e,t,r,n)=>assert(Function.isFunction(e),t||"Invalid Function.",r||400,n),Lt=(e,t,r,n)=>assert(ce.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",r||400,n),Mt=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Nt=(e,t,r)=>{const n=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=r?.keepName?Ke(t):Ye(t).toUpperCase(),o=r?.time?` ${(Date.isDate(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+ue.red(i)+ue.yellow(o)+"]"+(n?"":` ${e}`)];return n&&a.push(e),r?.return?a[0]:console.info.apply(null,a)},Pt=async e=>(await Yi(e,"F","R"),globalThis._manifest=e),Ut=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,te.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(re.sep).slice(1)];const t=[];for(let r of e){t.push(r);const n=(0,re.join)(...t,"package.json");try{await Yi(n,"F","R"),e=n;break}catch(e){}}}e=await Gi(e)}return e.name=e.name||"",e.versionNormalized=Gt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},zt=(e,t,r)=>{e=e||{},t=t||{};for(let n in e)Se(e[n])?r?.mergeUndefined&&delete t[n]:t[n]=e[n];return t},qt=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map(e=>(e=Ne(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e));return n===i},Wt=(e,t,r)=>at(e).some(e=>qt(e,t,r)),$t=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},Vt=(e,t,r)=>{let n=!1;switch(gt(e)){case"String":e=ct(e,r).split(""),n=!0;break;case"Array":break;default:_e("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},Zt=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟","🔊","🐵"].includes(ct(e,{case:"UP"})),Gt=e=>{e=ct(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},Ht=(e,t)=>{const[r,n]=[Gt(e),Gt(t)];return r.normalized>=n.normalized},Kt=(e,t)=>{t=t||{},e=String(e??"");const r=st(t.maxLength)||le.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=$t(n,r);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;console.log(`${$t(n,t)}${e}${$t(n,i)}`)}return{string:e,maxLength:r}},Yt=(e,t)=>{const r=ct(e,t);return r.length?r.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Jt=(e,t)=>{let r=t?.initLine??1;const n=$e(e),i=String(n.length).length,o=t?.separator??"|",a=n.map(e=>`${String(r++).padStart(i,"0")} ${o} ${ct(e).replace("```","\\`\\`\\`")}`),s=(t?.md?`\`\`\`${!0===t?.md?"":t?.md}\n`:"")+(t?.asArray?a:a.join("\n"))+(t?.md?"\n```":"");return t?.log&&console.log(s),s},Xt=(e,t)=>{Dt(e,"Invalid object");const[r,n]=[Object.keys(e),t?.separator??":"];let i=0;r.map(e=>i=Math.max(i,e.length));const o=r.map(r=>`${r.padEnd(i," ")} ${n} ${(t?.render||ct)(e[r],{...t||{},key:r})}`);return t?.asArray?o:o.join("\n")},Qt=(e,t)=>{const[r,n,i]=[$e(e),[],[]];return r.map(e=>{const r=/^```/.test(e);if(r&&!n.length){t?.noCode||i.push(e);const r=e.replace(/^```/,"").trim();n.push(r?`> ${r}`:"")}else if(r&&n.length){if(!t?.noCode){const r=t?.extraCodeBlock&&n[0].length;r||n.shift(),i.push(Jt(n,{...t||{},initLine:r?0:1}),e)}n.length=0}else n.length?n.push(e):(t?.noLink&&(e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"").trim()),i.push(e))}),t?.asArray?i:i.join("\n")},er=(e,t)=>{const[r,n,i,o,a]=[10,80,2048,[],ie[t?.style||"round"]];let[s,u]=[~~t?.width,t?.title||""];assert(e.length,"Content must not be empty."),assert(a,`Style must be one of ${Object.keys(ie).join(", ")}.`),assert(!s||s>=r&&s<=i,`Width must be between ${r} and ${i}.`);const c=(s||(s=n))-2,l=c-2,f=e=>`${e.slice(0,l-3)}...`,h=e=>o.push([a.left,e.padEnd(l," "),a.right].join(" "));u.length>l&&(u=f(u)),u.length&&(u=` ${u} `),o.push(a.topLeft+u+a.top.repeat(c-u.length)+a.topRight),u.length&&h(""),$e(e).map(e=>{for(e=e||" ";e.length;)h(t?.noWrap?f(e):e.slice(0,l)),e=t?.noWrap?"":e.slice(l)}),h(""),o.push(a.bottomLeft+a.bottom.repeat(c)+a.bottomRight);const d=t?.asArray?o:o.join("\n");return t?.log&&console.log(d),d},tr=(e,t,r)=>{(r=r||{}).base=st(r.base,{min:0}),r.step=st(r.step,{min:1}),[e,t]=[st(e),st(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},rr=(e,t)=>!((Math.round(Date.now()/1e3)+st(t))%st(e)),nr=async(e,t)=>{const r=async()=>{try{return await e(...t?.args||[])}catch(e){Function.isFunction(t?.log)?t.log(e):t?.log&&console.error(e)}};return t?.await?(await Me(t.await),await r()):t?.wait?setTimeout(r,t.wait):await r()},ir=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[r,n,i,o]=[0,null,null,null];do{try{assert(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&(o=i?.message||i)&&(Function.isFunction(t?.log)?await t.log(o):console.log(o)),await Me(t.interval)}}while(++r<t.maxTry&&i);if(i)throw i;return n},or=(e,t)=>Ne(e,t).split(t?.separator??/[,|;\ \t\n]+/).map(e=>e.trim()).filter(e=>e.length),ar=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},sr=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),ur=(e,t)=>ut(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),cr=(e,t)=>(t=t||{},e=ct(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),lr=(e,t)=>{let r;return function(){return e&&(r=e.apply(t||this,arguments),e=null),r}},fr=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter(e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e))},hr=e=>{Ft(e);const[t,r]=[Object.getOwnPropertyNames(e).filter(t=>!(e?._NO_RENDER||[]).includes(t)),{}];return t.sort(),t.map(t=>r[t]={type:gt(e[t]),...Function.isFunction(e[t])?{params:fr(e[t])}:{value:ct(e[t])}}),r},dr=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),He[e]||(He[e]=await i(765)(e)),!t?.raw&&He[e].default?He[e].default:He[e]),pr=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,gr=(e,t)=>{const r={};return Object.keys(e).filter(e=>!t.includes(e)).map(t=>r[t]=e[t]),r},yr=()=>{const e=["Firefox",[pe,"Edg"],de,["MSIE","Trident"],"Safari"].map(at);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},mr=()=>{try{if(le.stdout.isTTY&&"dumb"!==le.env.TERM)return"Node.js"}catch(e){}const e=yr();return!![de,pe].includes(e)&&e},br=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map(e=>e.replace(/^['"]|['"]$/g,"")),wr=e=>{Ct(e,null,null,{strict:!0});const[t,r]=[e.getHours(),e.getMinutes()],[n,i]=[60*(t>=12?t-12:t)+r,[]];for(const e in Xe){const[t,r]=e.split(":").map(e=>parseInt(e));i.push([Math.abs(n-(60*t+r)),e,t,r])}return i.sort((e,t)=>e[0]-t[0]),Xe[i[0][1]]},vr=e=>Object.fromEntries(Object.entries(e).map(e=>e.reverse()));i(251);const _r={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Er={};for(const[e,t]of Object.entries(_r))Er[t]=Number.parseInt(e);function kr(e){return new DataView(e.buffer,e.byteOffset)}const Sr={len:1,get:(e,t)=>kr(e).getUint8(t),put:(e,t,r)=>(kr(e).setUint8(t,r),t+1)},xr={len:2,get:(e,t)=>kr(e).getUint16(t,!0),put:(e,t,r)=>(kr(e).setUint16(t,r,!0),t+2)},Ar={len:2,get:(e,t)=>kr(e).getUint16(t),put:(e,t,r)=>(kr(e).setUint16(t,r),t+2)},Or={len:4,get:(e,t)=>kr(e).getUint32(t,!0),put:(e,t,r)=>(kr(e).setUint32(t,r,!0),t+4)},jr={len:4,get:(e,t)=>kr(e).getUint32(t),put:(e,t,r)=>(kr(e).setUint32(t,r),t+4)},Br={len:4,get:(e,t)=>kr(e).getInt32(t),put:(e,t,r)=>(kr(e).setInt32(t,r),t+4)},Rr={len:8,get:(e,t)=>kr(e).getBigUint64(t,!0),put:(e,t,r)=>(kr(e).setBigUint64(t,r,!0),t+8)};class Cr{constructor(e,t){this.len=e,this.encoding=t}get(e,t=0){return function(e,t="utf-8"){switch(t.toLowerCase()){case"utf-8":case"utf8":return void 0!==globalThis.TextDecoder?new globalThis.TextDecoder("utf-8").decode(e):function(e){let t="",r=0;for(;r<e.length;){const n=e[r++];if(n<128)t+=String.fromCharCode(n);else if(n<224){const i=63&e[r++];t+=String.fromCharCode((31&n)<<6|i)}else if(n<240){const i=63&e[r++],o=63&e[r++];t+=String.fromCharCode((15&n)<<12|i<<6|o)}else{let i=(7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++];i-=65536,t+=String.fromCharCode(55296+(i>>10&1023),56320+(1023&i))}}return t}(e);case"utf-16le":return function(e){let t="";for(let r=0;r<e.length;r+=2)t+=String.fromCharCode(e[r]|e[r+1]<<8);return t}(e);case"ascii":return function(e){return String.fromCharCode(...e.map(e=>127&e))}(e);case"latin1":case"iso-8859-1":return function(e){return String.fromCharCode(...e)}(e);case"windows-1252":return function(e){let t="";for(const r of e)t+=r>=128&&r<=159&&_r[r]?_r[r]:String.fromCharCode(r);return t}(e);default:throw new RangeError(`Encoding '${t}' not supported`)}}(e.subarray(t,t+this.len),this.encoding)}}class Tr extends Error{constructor(){super("End-Of-Stream"),this.name="EndOfStreamError"}}class Dr extends Error{constructor(e="The operation was aborted"){super(e),this.name="AbortError"}}class Fr{constructor(){this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}async peek(e,t=!1){const r=await this.read(e,t);return this.peekQueue.push(e.subarray(0,r)),r}async read(e,t=!1){if(0===e.length)return 0;let r=this.readFromPeekBuffer(e);if(this.endOfStream||(r+=await this.readRemainderFromStream(e.subarray(r),t)),0===r&&!t)throw new Tr;return r}readFromPeekBuffer(e){let t=e.length,r=0;for(;this.peekQueue.length>0&&t>0;){const n=this.peekQueue.pop();if(!n)throw new Error("peekData should be defined");const i=Math.min(n.length,t);e.set(n.subarray(0,i),r),r+=i,t-=i,i<n.length&&this.peekQueue.push(n.subarray(i))}return r}async readRemainderFromStream(e,t){let r=0;for(;r<e.length&&!this.endOfStream;){if(this.interrupted)throw new Dr;const n=await this.readFromStream(e.subarray(r),t);if(0===n)break;r+=n}if(!t&&r<e.length)throw new Tr;return r}}class Ir extends Fr{constructor(e){super(),this.reader=e}async abort(){return this.close()}async close(){this.reader.releaseLock()}}class Lr extends Ir{async readFromStream(e,t){if(0===e.length)return 0;const r=await this.reader.read(new Uint8Array(e.length),{min:t?void 0:e.length});return r.done&&(this.endOfStream=r.done),r.value?(e.set(r.value),r.value.length):0}}class Mr extends Fr{constructor(e){super(),this.reader=e,this.buffer=null}writeChunk(e,t){const r=Math.min(t.length,e.length);return e.set(t.subarray(0,r)),r<t.length?this.buffer=t.subarray(r):this.buffer=null,r}async readFromStream(e,t){if(0===e.length)return 0;let r=0;for(this.buffer&&(r+=this.writeChunk(e,this.buffer));r<e.length&&!this.endOfStream;){const t=await this.reader.read();if(t.done){this.endOfStream=!0;break}t.value&&(r+=this.writeChunk(e.subarray(r),t.value))}if(!t&&0===r&&this.endOfStream)throw new Tr;return r}abort(){return this.interrupted=!0,this.reader.cancel()}async close(){await this.abort(),this.reader.releaseLock()}}class Nr{constructor(e){this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=e?.onClose,e?.abortSignal&&e.abortSignal.addEventListener("abort",()=>{this.abort()})}async readToken(e,t=this.position){const r=new Uint8Array(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new Tr;return e.get(r,0)}async peekToken(e,t=this.position){const r=new Uint8Array(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new Tr;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Tr;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Tr;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){await this.abort(),await(this.onClose?.())}normalizeOptions(e,t){if(!this.supportsRandomAccess()&&t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return{mayBeLess:!1,offset:0,length:e.length,position:this.position,...t}}abort(){return Promise.resolve()}}class Pr extends Nr{constructor(e,t){super(t),this.streamReader=e,this.fileInfo=t?.fileInfo??{}}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const i=await this.streamReader.read(e.subarray(0,r.length),r.mayBeLess);if(this.position+=i,(!t||!t.mayBeLess)&&i<r.length)throw new Tr;return i}async peekBuffer(e,t){const r=this.normalizeOptions(e,t);let n=0;if(r.position){const t=r.position-this.position;if(t>0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t)),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e.subarray(0,r.length),r.mayBeLess)}catch(e){if(t?.mayBeLess&&e instanceof Tr)return 0;throw e}if(!r.mayBeLess&&n<r.length)throw new Tr}return n}async ignore(e){const t=Math.min(256e3,e),r=new Uint8Array(t);let n=0;for(;n<e;){const i=e-n,o=await this.readBuffer(r,{length:Math.min(t,i)});if(o<0)return o;n+=o}return n}abort(){return this.streamReader.abort()}async close(){return this.streamReader.close()}supportsRandomAccess(){return!1}}class Ur extends Nr{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo={...t?.fileInfo??{},size:e.length}}async readBuffer(e,t){t?.position&&(this.position=t.position);const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Tr;return e.set(this.uint8Array.subarray(r.position,r.position+n)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}class zr extends Nr{constructor(e,t){super(t),this.blob=e,this.fileInfo={...t?.fileInfo??{},size:e.size,mimeType:e.type}}async readBuffer(e,t){t?.position&&(this.position=t.position);const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.blob.size-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Tr;const i=await this.blob.slice(r.position,r.position+n).arrayBuffer();return e.set(new Uint8Array(i)),n}close(){return super.close()}supportsRandomAccess(){return!0}setPosition(e){this.position=e}}var qr=i(7833);const Wr=67324752,$r=33639248,Vr={get:e=>({signature:Or.get(e,0),compressedSize:Or.get(e,8),uncompressedSize:Or.get(e,12)}),len:16},Zr={get(e){const t=xr.get(e,6);return{signature:Or.get(e,0),minVersion:xr.get(e,4),dataDescriptor:!!(8&t),compressedMethod:xr.get(e,8),compressedSize:Or.get(e,18),uncompressedSize:Or.get(e,22),filenameLength:xr.get(e,26),extraFieldLength:xr.get(e,28),filename:null}},len:30},Gr={get:e=>({signature:Or.get(e,0),nrOfThisDisk:xr.get(e,4),nrOfThisDiskWithTheStart:xr.get(e,6),nrOfEntriesOnThisDisk:xr.get(e,8),nrOfEntriesOfSize:xr.get(e,10),sizeOfCd:Or.get(e,12),offsetOfStartOfCd:Or.get(e,16),zipFileCommentLength:xr.get(e,20)}),len:22},Hr={get(e){const t=xr.get(e,8);return{signature:Or.get(e,0),minVersion:xr.get(e,6),dataDescriptor:!!(8&t),compressedMethod:xr.get(e,10),compressedSize:Or.get(e,20),uncompressedSize:Or.get(e,24),filenameLength:xr.get(e,28),extraFieldLength:xr.get(e,30),fileCommentLength:xr.get(e,32),relativeOffsetOfLocalHeader:Or.get(e,42),filename:null}},len:46};function Kr(e){const t=new Uint8Array(Or.len);return Or.put(t,0,e),t}const Yr=qr("tokenizer:inflate"),Jr=262144,Xr=Kr(134695760),Qr=Kr(101010256);class en{constructor(e){this.tokenizer=e,this.syncBuffer=new Uint8Array(Jr)}async isZip(){return await this.peekSignature()===Wr}peekSignature(){return this.tokenizer.peekToken(Or)}async findEndOfCentralDirectoryLocator(){const e=this.tokenizer,t=Math.min(16384,e.fileInfo.size),r=this.syncBuffer.subarray(0,t);await this.tokenizer.readBuffer(r,{position:e.fileInfo.size-t});for(let n=r.length-4;n>=0;n--)if(r[n]===Qr[0]&&r[n+1]===Qr[1]&&r[n+2]===Qr[2]&&r[n+3]===Qr[3])return e.fileInfo.size-t+n;return-1}async readCentralDirectory(){if(!this.tokenizer.supportsRandomAccess())return void Yr("Cannot reading central-directory without random-read support");Yr("Reading central-directory...");const e=this.tokenizer.position,t=await this.findEndOfCentralDirectoryLocator();if(t>0){Yr("Central-directory 32-bit signature found");const r=await this.tokenizer.readToken(Gr,t),n=[];this.tokenizer.setPosition(r.offsetOfStartOfCd);for(let e=0;e<r.nrOfEntriesOfSize;++e){const t=await this.tokenizer.readToken(Hr);if(t.signature!==$r)throw new Error("Expected Central-File-Header signature");t.filename=await this.tokenizer.readToken(new Cr(t.filenameLength,"utf-8")),await this.tokenizer.ignore(t.extraFieldLength),await this.tokenizer.ignore(t.fileCommentLength),n.push(t),Yr(`Add central-directory file-entry: n=${e+1}/${n.length}: filename=${n[e].filename}`)}return this.tokenizer.setPosition(e),n}this.tokenizer.setPosition(e)}async unzip(e){const t=await this.readCentralDirectory();if(t)return this.iterateOverCentralDirectory(t,e);let r=!1;do{const t=await this.readLocalFileHeader();if(!t)break;const n=e(t);let i;if(r=!!n.stop,await this.tokenizer.ignore(t.extraFieldLength),t.dataDescriptor&&0===t.compressedSize){const e=[];let r=Jr;Yr("Compressed-file-size unknown, scanning for next data-descriptor-signature....");let i=-1;for(;i<0&&r===Jr;){r=await this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0}),i=tn(this.syncBuffer.subarray(0,r),Xr);const t=i>=0?i:r;if(n.handler){const r=new Uint8Array(t);await this.tokenizer.readBuffer(r),e.push(r)}else await this.tokenizer.ignore(t)}Yr(`Found data-descriptor-signature at pos=${this.tokenizer.position}`),n.handler&&await this.inflate(t,rn(e),n.handler)}else n.handler?(Yr(`Reading compressed-file-data: ${t.compressedSize} bytes`),i=new Uint8Array(t.compressedSize),await this.tokenizer.readBuffer(i),await this.inflate(t,i,n.handler)):(Yr(`Ignoring compressed-file-data: ${t.compressedSize} bytes`),await this.tokenizer.ignore(t.compressedSize));if(Yr(`Reading data-descriptor at pos=${this.tokenizer.position}`),t.dataDescriptor&&134695760!==(await this.tokenizer.readToken(Vr)).signature)throw new Error("Expected data-descriptor-signature at position "+(this.tokenizer.position-Vr.len))}while(!r)}async iterateOverCentralDirectory(e,t){for(const r of e){const e=t(r);if(e.handler){this.tokenizer.setPosition(r.relativeOffsetOfLocalHeader);const t=await this.readLocalFileHeader();if(t){await this.tokenizer.ignore(t.extraFieldLength);const n=new Uint8Array(r.compressedSize);await this.tokenizer.readBuffer(n),await this.inflate(t,n,e.handler)}}if(e.stop)break}}async inflate(e,t,r){if(0===e.compressedMethod)return r(t);if(8!==e.compressedMethod)throw new Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);return Yr(`Decompress filename=${e.filename}, compressed-size=${t.length}`),r(await en.decompressDeflateRaw(t))}static async decompressDeflateRaw(e){const t=new ReadableStream({start(t){t.enqueue(e),t.close()}}),r=new DecompressionStream("deflate-raw"),n=t.pipeThrough(r);try{const e=new Response(n),t=await e.arrayBuffer();return new Uint8Array(t)}catch(e){const t=e instanceof Error?`Failed to deflate ZIP entry: ${e.message}`:"Unknown decompression error in ZIP entry";throw new TypeError(t)}}async readLocalFileHeader(){const e=await this.tokenizer.peekToken(Or);if(e===Wr){const e=await this.tokenizer.readToken(Zr);return e.filename=await this.tokenizer.readToken(new Cr(e.filenameLength,"utf-8")),e}if(e===$r)return!1;if(3759263696===e)throw new Error("Encrypted ZIP");throw new Error("Unexpected signature")}}function tn(e,t){const r=e.length,n=t.length;if(n>r)return-1;for(let i=0;i<=r-n;i++){let r=!0;for(let o=0;o<n;o++)if(e[i+o]!==t[o]){r=!1;break}if(r)return i}return-1}function rn(e){const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}class nn{constructor(e){this.tokenizer=e}inflate(){const e=this.tokenizer;return new ReadableStream({async pull(t){const r=new Uint8Array(1024),n=await e.readBuffer(r,{mayBeLess:!0});0!==n?t.enqueue(r.subarray(0,n)):t.close()}}).pipeThrough(new DecompressionStream("gzip"))}}function on(e){const{byteLength:t}=e;return 6===t?e.getUint16(0)*2**32+e.getUint32(2):5===t?e.getUint8(0)*2**32+e.getUint32(1):4===t?e.getUint32(0):3===t?65536*e.getUint8(0)+e.getUint16(1):2===t?e.getUint16(0):1===t?e.getUint8(0):void 0}Object.prototype.toString,new globalThis.TextDecoder("utf8"),new globalThis.TextEncoder,Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const an={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},sn=4100;async function un(e,t){return new fn(t).fromBuffer(e)}function cn(e){switch(e=e.toLowerCase()){case"application/epub+zip":return{ext:"epub",mime:e};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:e};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:e};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:e};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:e};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:e};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:e};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:e};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:e};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:e};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:e};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:e};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:e};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:e};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:e};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:e};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"}}}function ln(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}class fn{constructor(e){this.options={mpegOffsetTolerance:0,...e},this.detectors=[...e?.customDetectors??[],{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}],this.tokenizerOptions={abortSignal:e?.signal}}async fromTokenizer(e){const t=e.position;for(const r of this.detectors){const n=await r.detect(e);if(n)return n;if(t!==e.position)return}}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);var r,n;if(t?.length>1)return this.fromTokenizer((r=t,n=this.tokenizerOptions,new Ur(r,n)))}async fromBlob(e){const t=function(e,t){return new zr(e,t)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async fromStream(e){const t=function(e,t){const r=function(e){try{const t=e.getReader({mode:"byob"});return t instanceof ReadableStreamDefaultReader?new Mr(t):new Lr(t)}catch(t){if(t instanceof TypeError)return new Mr(e.getReader());throw t}}(e),n=t??{},i=n.onClose;return n.onClose=async()=>{if(await r.close(),i)return i()},new Pr(r,n)}(e,this.tokenizerOptions);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t){const{sampleSize:r=sn}=t;let n,i;const o=e.getReader({mode:"byob"});try{const{value:e,done:t}=await o.read(new Uint8Array(r));if(i=e,!t&&e)try{n=await this.fromBuffer(e.subarray(0,r))}catch(e){if(!(e instanceof Tr))throw e;n=void 0}i=e}finally{o.releaseLock()}const a=new TransformStream({async start(e){e.enqueue(i)},transform(e,t){t.enqueue(e)}}),s=e.pipeThrough(a);return s.fileType=n,s}check(e,t){return ln(this.buffer,e,t)}checkString(e,t){return this.check(function(e,t){if("utf-16le"===t){const t=[];for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t.push(255&n,n>>8&255)}return t}if("utf-16be"===t){const t=[];for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t.push(n>>8&255,255&n)}return t}return[...e].map(e=>e.charCodeAt(0))}(e,t?.encoding),t)}detectConfident=async e=>{if(this.buffer=new Uint8Array(sn),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:32,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.detectConfident(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8])){const t=new nn(e).inflate();let r=!0;try{let n;try{n=await this.fromStream(t)}catch{r=!1}if(n&&"tar"===n.ext)return{ext:"tar.gz",mime:"application/gzip"}}finally{r&&await t.cancel()}return{ext:"gz",mime:"application/gzip"}}if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const i=await e.readToken(an);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){let o;return await new en(e).unzip(e=>{switch(e.filename){case"META-INF/mozilla.rsa":return o={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return o={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return{async handler(e){const t=new TextDecoder("utf-8").decode(e).trim();o=cn(t)},stop:!0};case"[Content_Types].xml":return{async handler(e){let t=new TextDecoder("utf-8").decode(e);const r=t.indexOf('.main+xml"');if(-1===r){const e="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";t.includes(`ContentType="${e}"`)&&(o=cn(e))}else{t=t.slice(0,Math.max(0,r));const e=t.lastIndexOf('"'),n=t.slice(Math.max(0,e+1));o=cn(n)}},stop:!0};default:return/classes\d*\.dex/.test(e.filename)?(o={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}).catch(e=>{if(!(e instanceof Tr))throw e}),o??{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=new Uint8Array(8);return await e.readBuffer(a),ln(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/ogg; codecs=opus"}:ln(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:ln(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:ln(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:ln(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:ln(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const s=await this.readTiffHeader(!1);if(s)return s}if(this.check([77,77])){const u=await this.readTiffHeader(!0);if(u)return u}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function c(){const t=await e.peekNumber(Sr);let r=128,n=0;for(;0===(t&r)&&0!==r;)++n,r>>=1;const i=new Uint8Array(n+1);return await e.readBuffer(i),i}async function l(){const e=await c(),t=await c();t[0]^=128>>t.length-1;const r=Math.min(6,t.length),n=new DataView(e.buffer),i=new DataView(t.buffer,t.length-r,r);return{id:on(n),len:on(i)}}async function f(t){for(;t>0;){const r=await l();if(17026===r.id)return(await e.readToken(new Cr(r.len))).replaceAll(/\00.*$/g,"");await e.ignore(r.len),--t}}const h=await l();switch(await f(h.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/matroska"};default:return}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1")||this.checkString("PARE"))return{ext:"parquet",mime:"application/vnd.apache.parquet"};if(this.checkString("ttcf"))return{ext:"ttc",mime:"font/collection"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([4,34,77,24]))return{ext:"lz4",mime:"application/x-lz4"};if(this.checkString("regf"))return{ext:"dat",mime:"application/x-ft-windows-registry-hive"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.checkString(".RMF"))return{ext:"rm",mime:"application/vnd.rn-realmedia"};if(this.checkString("DRACO"))return{ext:"drc",mime:"application/vnd.google.draco"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const d=new Cr(4,"latin1").get(this.buffer,2);if(d.match("^d*")&&d>=1e3&&d<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Cr(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("WEBVTT")&&["\n","\r","\t"," ","\0"].some(e=>this.checkString(e,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){async function p(){return{length:await e.readToken(Br),type:await e.readToken(new Cr(4,"latin1"))}}await e.ignore(8);do{const g=await p();if(g.length<0)return;switch(g.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(g.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/vnd.apache.arrow.file"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const y=new Cr(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(y){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return y.startsWith("3g")?y.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("REGEDIT4\r\n"))return{ext:"reg",mime:"application/x-ms-regedit"};if(this.check([82,73,70,70])){if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function m(){const t=new Uint8Array(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(Rr))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const b=await m();let w=b.size-24;if(ln(b.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const v=new Uint8Array(16);if(w-=await e.readBuffer(v),ln(v,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(ln(v,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(w)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Cr(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.checkString("<?xml ",{offset:2,encoding:"utf-16be"})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("**ACE",{offset:7})&&this.checkString("**",{offset:12}))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const _=new DataView(this.buffer.buffer).getUint32(12,!0);if(_>12&&this.buffer.length>=_+16)try{const E=(new TextDecoder).decode(this.buffer.subarray(16,_+16));if(JSON.parse(E).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),this.checkString("ustar",{offset:257})&&(this.checkString("\0",{offset:262})||this.checkString(" ",{offset:262}))||this.check([0,0,0,0,0,0],{offset:257})&&function(e,t=0){const r=Number.parseInt(new Cr(6).get(e,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(r))return!1;let n=256;for(let r=t;r<t+148;r++)n+=e[r];for(let r=t+156;r<t+512;r++)n+=e[r];return r===n}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254])){const k="utf-16le";return this.checkString("<?xml ",{offset:2,encoding:k})?{ext:"xml",mime:"application/xml"}:this.check([255,14],{offset:2})&&this.checkString("SketchUp Model",{offset:4,encoding:k})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:this.checkString("Windows Registry Editor Version 5.00\r\n",{offset:2,encoding:k})?{ext:"reg",mime:"application/x-ms-regedit"}:void 0}return this.checkString("-----BEGIN PGP MESSAGE-----")?{ext:"pgp",mime:"application/pgp-encrypted"}:void 0};detectImprecise=async e=>{if(this.buffer=new Uint8Array(sn),await e.peekBuffer(this.buffer,{length:Math.min(8,e.fileInfo.size),mayBeLess:!0}),this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(await e.peekBuffer(this.buffer,{length:Math.min(2+this.options.mpegOffsetTolerance,e.fileInfo.size),mayBeLess:!0}),this.buffer.length>=2+this.options.mpegOffsetTolerance)for(let e=0;e<=this.options.mpegOffsetTolerance;++e){const t=this.scanMpeg(e);if(t)return t}};async readTiffTag(e){const t=await this.tokenizer.readToken(e?Ar:xr);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?Ar:xr);for(let r=0;r<t;++r){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?Ar:xr).get(this.buffer,2),r=(e?jr:Or).get(this.buffer,4);if(42===t){if(r>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8){const t=(e?Ar:xr).get(this.buffer,8),r=(e?Ar:xr).get(this.buffer,10);if(28===t&&254===r||31===t&&11===r)return{ext:"nef",mime:"image/x-nikon-nef"}}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}scanMpeg(e){if(this.check([255,224],{offset:e,mask:[255,224]})){if(this.check([16],{offset:e+1,mask:[22]}))return this.check([8],{offset:e+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:e+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:e+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:e+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","rm","ppsm","ppsx","tar.gz","reg","dat"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio","application/vnd.android.package-archive","application/vnd.google.draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-ms-regedit","application/x-ft-windows-registry-hive"]);var hn=i(7713),dn=i(6889),pn=i(8559),gn=i(6060),yn=i(8287).Buffer;const mn=["google-gax"],bn="sha256",wn="aes-256-gcm",vn=e=>xn(ct(e||(0,dn.networkInterfaces)())),_n=e=>xn(e,"md5"),En=(e,t)=>e&&String.isString(e)?e:Re(t,1),kn=e=>e?yn.isBuffer(e)?e:Ce(e,1):null,Sn=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map(r=>t.append(r,ct(e[r]))),t.toString()},xn=(e,t=bn)=>(0,gn.createHash)(t).update(e).digest("hex"),An=(e,t=bn)=>new Promise(r=>{const n=(0,gn.createHash)(t);(0,hn.createReadStream)(e).on("data",e=>n.update(e)).on("end",()=>r(n.digest("hex")))}),On=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,(0,gn.randomBytes)(r).toString(t).substring(0,e)},jn=(e,t)=>xn(Sn(e),t),Bn=e=>(e=`0x${ct(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Rn=e=>{const t=kn(e?.key)||(0,gn.randomBytes)((e?.length||256)/8);return{buffer:t,base64:En(e?.key,t)}},Cn=e=>{const t=kn(e?.iv)||(0,gn.randomBytes)(16);return{buffer:t,base64:En(e?.iv,t)}},Tn=e=>{const t=kn(e?.authTag);return{buffer:t,base64:En(e?.authTag,t)}},Dn=(e,t)=>{assert(e,"Invalid input.",400),e=yn.isBuffer(e)?e:yn.from(e);const[r,n]=[Rn,Cn].map(e=>e(t)),i=(0,gn.createCipheriv)(wn,r.buffer,n.buffer),o=ct(t?.expected||"BASE64",{case:"UP"});let a=yn.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Re(a);break;case"BUFFER":break;case"HEX":a=Te(a);break;default:throwError("Unsupported output type.",400)}return{key:r.base64,iv:n.base64,encrypted:a,encryption:wn,authTag:Re(i.getAuthTag(),!0)}},Fn=(e,t)=>{assert(e,"Invalid input.",400),e=yn.isBuffer(e)?e:Ce(e,!0);const[r,n,i]=[Rn,Cn,Tn].map(e=>e(t)),o=(0,gn.createDecipheriv)(wn,r.buffer,n.buffer),a=ct(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=yn.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Re(s);break;case"BUFFER":break;case"HEX":s=Te(s);break;default:throwError("Unsupported output type.",400)}return s},In=async e=>{const{GoogleAuth:t}=await dr("google-gax");return new t({keyFilename:e,scopes:["https://www.googleapis.com/auth/cloud-platform"]}).getClient()},Ln=async e=>{const t=await e.getAccessToken(),r=t?.token||null;return assert(r,"Failed to get Google API token."),r};var Mn=i(8287).Buffer,Nn=i(5606);const Pn=["file-type","mime-types","@google-cloud/storage"],Un={cacheControl:"public, max-age=31536000"},zn=e=>`https://storage.cloud.google.com/${e}`,qn=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),Wn=e=>(0,re.join)(e.substr(0,2),e.substr(2,2)),[$n,Vn]=[pn.deflate,pn.unzip].map(ne.promisify),Zn=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),Gn=(e,t)=>`data:${e};${Kn.toLowerCase()},${t}`,[Hn,Kn,Yn,Jn,Xn,Qn,ei,ti,ri,ni,ii,oi,ai,si,ui,ci,li,fi,hi,di,pi,gi,yi,mi,bi,wi,vi,_i,Ei,ki,Si,xi,Ai,Oi,ji,Bi,Ri,Ci,Ti,Di,Fi,Ii]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream","application/json","image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/mpeg","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","audio/x-wav","audio/ogg"],[Li,Mi,Ni]=[{encoding:Kn},{encoding:ri},{encoding:Hn}];let[Pi,Ui,zi]=[null,null,null];const qi=async(e,t)=>await hn.promises.readFile(e,[Hn,Yn].includes(ct(t?.encoding,{case:"UP"}))?null:t?.encoding||ti),Wi=async(e,t,r)=>await hn.promises.writeFile(e,t,r?.encoding||ti),$i=async(e,t,r)=>await Wi(e,Zi(t,r),r),Vi=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Zi=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),Gi=async(e,t)=>{let r={};try{r=JSON.parse(await qi(e,t))}catch(e){Vi(e,t)}return r},Hi=e=>(0,re.join)((0,dn.tmpdir)(),e?.sub||"",e?.seed?xn(e.seed):""),Ki=async(e,t)=>{let{filename:r,encoding:n,mode:i,prefix:o,suffix:a,hashName:s}=t||{};r=(o||"")+(r?s?xn(r):r:P())+(a?`.${a}`:""),"JSON"===String(n).toUpperCase()&&(e=Zi(e,t),n=null);const u=Hi({sub:r});return await Wi(u,e,{encoding:n||ti}),await hn.promises.chmod(u,i||oi),u},Yi=async(e,t,r,n,i,o)=>{var[i,a,s,u,c]=[i||500,"Path is not",e=>c=n||e];try{u=await hn.promises.stat(e)}catch(e){_e(n||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":u.isFile()||s(`${a} a file: '${e}'.`);break;case"D":u.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!c,c,i,o);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await hn.promises.access(e,hn.constants.R_OK);break;case"W":await hn.promises.access(e,hn.constants.R_OK|hn.constants.W_OK);break;default:s(`Unsupported access mode: '${r}'.`)}}catch(e){s(e.message)}return assert(!c,c,i,o),u},Ji=async(e,t)=>{const r=t?.length??1e3;let n;if(Mn.isBuffer(e))n=e.subarray(0,r);else{const t=await hn.promises.promises.open(e,"r");n=Mn.alloc(r),await t.read(n,0,r,0),await t.close()}for(let e=0;e<n.length;e++)if(0===n[e])return!1;return!0},Xi=async e=>{const t=(e=e||{}).config||(0,re.join)((0,dn.homedir)(),`.${(await Ut(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Qi=async e=>{const t=await Xi(e);return{filename:t,config:await Gi(t)}},eo=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t?.overwrite)r=await Xi(t);else{const{filename:e,config:i}=await Qi(t);r=e,n=i}return await $i(r,zt(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},to=async(e,t)=>(await hn.promises.mkdir(e,{recursive:!0}),await hn.promises.chmod(e,t?.permissions||ai),await hn.promises.stat(e)),ro=async(e,t)=>(e=((e=Ne(e))===ui?"":e)||kt(await un(t),"mime")||ui,assert(e,"MIME type is required.",400),assert(Mn.isBuffer(t),"Data buffer is required.",400),Gn(e,Re(t,!0))),no=e=>{const t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return{mime:r,buffer:Mn.from(i)}},io=e=>(assert(e=ct(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),oo=async e=>{assert(e=ct(e),"Path is required.",400);try{return await hn.promises.stat(e)}catch(e){return null}},ao=async(e,t)=>(assert(e,"Invalid input.",400),await co(await $n(Mn.isBuffer(e)?e:Mn.from(e),t),t)),so=async(e,t)=>(assert(e,"Invalid input.",400),await co(await Vn(Mn.isBuffer(e)?e:Ce(e,!0),t),t)),uo=async e=>{const t=new FileReader;return new Promise((r,n)=>{t.onload=()=>r(Mn.from(t.result)),t.onerror=n,t.readAsArrayBuffer(e)})},co=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);let r={},[n,i]=[Mn.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)||Uint8Array.isUint8Array(e)?Yn:t?.input,t?.expected||Yn].map(e=>ct(e,{case:"UP"})),[o,a,s,u]=[null,null,null,i];switch(n){case Jn:o=e;break;case Qn:e=Mn.from(e),s=si,n=Yn;break;case ni:e=await uo(e),n=Yn;break;case ii:const t=no(e);e=t.buffer,s=t.mime,n=Yn}switch(s||(s=(await lo(e,e))?.mime||ui),i){case Xn:u=Jn;break;case ii:case Qn:case ei:u=Yn}if(o&&(a=await Yi(e,"F","R")),n!==u)switch(`${n}-${u}`){case`${Kn}-${Yn}`:e=Ce(e,!0);break;case`${Kn}-${Jn}`:e=Ce(e,!0);case`${Yn}-${Jn}`:e=await(async(e,t)=>{const r=t?.encoding||ri;if(t?.file)return await Wi(t?.file,e,r),t?.file;const{extension:n}=await lo(e,t?.filename);return await Ki(e,{filename:t?.filename,encoding:r,suffix:t?.suffix||n})})(e,t);break;case`${Yn}-${Kn}`:e=Re(e,!0);break;case`${Jn}-${Yn}`:e=await qi(e,Ni);break;case`${Jn}-${Kn}`:e=await qi(e,Li);break;default:_e("Invalid input or expected format.",400)}switch(i){case Xn:r.content=(0,hn.createReadStream)(e);break;case Qn:r.content=e.toString();break;case ei:r.content=JSON.parse(e.toString());break;case ii:r.content=await ro(t?.mime||s,e);break;default:r.content=e}return o&&u!==Jn&&t?.cleanup&&await go(o,t),t?.withCleanupFunc&&(r.cleanup=async t=>{i===Xn&&await nr(r.content?.destroy),u===Jn&&(t?.force||!o)&&await go(e,t)}),t?.meta&&(r={...r,mime:s,meta:a}),1===Object.keys(r).length?r.content:r},lo=async(e,t)=>{const r=await nr(()=>dr("mime-types")),n=e&&Mn.isBuffer(e)&&kt(await un(e),"mime")||t&&String.isString(t)&&r?.lookup?.(t)||ui;return{mime:n,extension:r?.extension?.(n)||"bin"}},fo=async(e,t)=>{const{meta:r,content:n}=await co(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||bn,o=xn(n,i),a=t?.filename||(r?(0,re.basename)(e):null)||xn,{mime:s}=await lo(n,a);return{content:n,extname:(0,re.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:s,size:n.length}},ho=async(e,t)=>{const[r,n,i,o]=[{...await fo(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||bn];for(t?.zip&&(r.content=await ao(r.content,t),r.compressed="gzip");n*i.length<r.content.length;){const e=n*i.length;i.push(r.content.slice(e,e+n))}return delete r.content,assert(i.length,"Empty slices.",400),{...r,slices:i.map((e,t)=>({content:e,hash:xn(e,o)}))}},po=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[r,n]=[e?.hashAlgorithm||bn,[]];for(let i in e?.slices){const o=await co(e.slices[i]?.content,{...t||{},expected:Yn});e.slices[i]?.hash&&assert(e.slices[i].hash===xn(o,r),`Invalid hash for slice ${i}.`,400),n.push(o)}let i=Mn.concat(n);switch(ct(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await so(i,t);break;default:_e("Unsupported compression.",400)}return e?.hash&&assert(e.hash===xn(i,r),"Invalid file hash.",400),await co(i,{...t||{},input:Yn})},go=async(e,t)=>await nr(async()=>{await Yi(e,"F","W"),await hn.promises.unlink(e)},t),yo=async e=>{if(e)if("GOOGLE"===ct(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Ui=e?.bucket,"Google Cloud Storage bucket is required.",400),zi=e?.url||zn(Ui),1===~~Nn.env.FORKED&&Nt(`GOOGLE CLOUD STORAGE: ${zi}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await dr("@google-cloud/storage",{raw:!0});Pi=new t(e).bucket(Ui)}else _e("Invalid cloud storage provider.",500);return assert(Pi,"Cloud storage has not been initialized.",501),{client:Pi,bucket:Ui,url:zi}},mo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const{content:r,cleanup:n}=await co(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:Jn,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Pi.upload(r,{gzip:!1,destination:t?.destination||(0,re.join)(...t?.prefix?[t.prefix]:[],(0,re.basename)(r)),metadata:Un,...t||{}});await n();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},bo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).download(t);return t?.raw?r:await co(r[0],{...t||{},input:Yn})},wo=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await _o(e,{name:!0}):[e],i=await Promise.all(n.map(e=>bo(e,t)));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},vo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).exists();return t?.raw?r:r[0]?{}:null},_o=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);let r=await Pi.getFiles({prefix:e,...t||{}});return t?.raw||(r=(r[0]||[]).map(e=>e.metadata),t?.name&&(r=r.map(e=>e.name))),r},Eo=async(e,t)=>{assert(Pi,"Cloud storage has not been initialized.",500);const r=await Pi.file(e).delete(t);return t?.raw?r:r[0].toJSON()},ko=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await _o(e,{name:!0}):[e],i=await Promise.all(n.map(e=>Eo(e,t)));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o};let[So,xo]=[null,null];const Ao={name:"utilitas",description:"Just another common utility for JavaScript.",version:"2001.1.81",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^21.1.1",mathjs:"^15.1.0",uuid:"^13.0.0"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/discoveryengine":"^2.5.2","@google-cloud/storage":"^7.18.0","@google/genai":"^1.33.0","@mozilla/readability":"github:mozilla/readability","@sentry/node":"^10.30.0","@sentry/profiling-node":"^10.30.0","acme-client":"^5.4.0","browserify-fs":"^1.0.0",buffer:"^6.0.3","fake-indexeddb":"^6.2.5","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.5","google-gax":"^5.0.6",ioredis:"^5.8.2",jsdom:"^27.3.0","lorem-ipsum":"^2.0.8","mailgun.js":"^12.4.0",mailparser:"^3.9.1",mime:"^4.1.0",mysql2:"^3.15.3","node-mailjet":"^6.0.11","node-polyfill-webpack-plugin":"^4.1.0","office-text-extractor":"^3.0.3",openai:"^6.10.0","pdf-lib":"^1.17.1","pdfjs-dist":"^5.4.449",pg:"^8.16.3",pgvector:"^0.2.1",ping:"^1.0.0",process:"^0.11.10",puppeteer:"^24.33.0",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.4","tesseract.js":"^6.0.1",twilio:"^5.10.7",url:"github:Leask/node-url","webpack-cli":"^6.0.1","whisper-node":"^1.1.1",wrangler:"^4.54.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},Oo="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",jo=e=>e.replace(/\-/gi,""),Bo=e=>Bn(jo(e)),Ro=e=>To(BigInt(e).toString(16).padStart(32,"0")),Co=e=>To(_n(e??On())),To=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Do=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,Fo=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:P()},e||{})).type=e.type||Ye(e.file),1===(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${On(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},Io=e=>(Bt(e=e||Ao.homepage),$(e,$.URL)),Lo=(e,t,r)=>(e=Vt(e,t,{case:"UP",...r||{}}),assert(e,"Invalid reference.",400),$(e,Io(r?.url))),Mo=e=>$(`info:id/${encodeURIComponent(ct(e||vn()))}`,$.URL),No=Fo,Po={},Uo=e=>1e3*(isNaN(e=Number(e))?0:e),zo=e=>Po[e]&&(Po[e].lock=0),qo=()=>Po;let Wo=null;const $o=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!Po[t]||!Po[t].silent||r.force||e instanceof Error)&&Nt(e,Ye("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),r)},Vo=(e,t,r)=>Po[e].lock+r>t?Po[e].lock:!(Po[e].lock=t),Zo=async()=>{const e=Date.now();for(let t in Po)if(Po[t].lastRun+Po[t].interval<e){Po[t].lastRun=e;try{if(Vo(t,e,Po[t].timeout)){$o("Locked, skipped.",t);continue}$o("Emit...",t),await Po[t].function()}catch(e){$o(e,t)}$o("Done.",t),zo(t)}},Go=async(e,t,r,n,i,o)=>(Wo=Wo||$o("Initialized.")||setInterval(Zo,1e3),$o("Scheduled.",i=i||No({type:"EVENT"}),{force:!0}),Po[i]={function:e,interval:Uo(t),timeout:Uo(r),delay:n,lastRun:Date.now()+Uo(n-t),lock:0,silent:!!o?.silent,end:o?.end},Wo),Ho=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Go(e.func,e.interval,e.tout,e.delay,e.name,t)),Ko=async(e,t)=>{t=t||{},$o(`SERVICES: ${e}`);const[r,n]=[((0,hn.readdirSync)(e)||[]).filter(e=>/\.mjs$/i.test(e)&&!e.startsWith(".")),[]];for(let o of r){const r={...await i(765)((0,re.join)(e,o))};r.run&&(r.name=r.name||o.replace(/^(.*)\.mjs$/i,"$1"),n.push(Ho(r,t)))}return await Promise.all(n)},Yo=async e=>{if(e&&(delete Po[e],Object.keys(Po).length))return;clearInterval(Wo),Wo=null;const t=Date.now();for(let e in Po){if(Po[e].end)try{await Po[e].end()}catch(e){}for(;Vo(e,t,Po[e].timeout);)$o("Waiting...",e),await Me(1e3);$o("End.",e)}$o("Terminated.")},Jo=Go;var Xo=i(2822),Qo=i(9300);const ea=["whisper-node"],[ta,ra,na,ia,oa,aa]=["FILE","ogg","SPEAKER",!0,"base","Invalid audio data."],sa=["tiny","tiny-q5_1","tiny-q8_0","tiny.en","tiny.en-q5_1","tiny.en-q8_0",oa,"base-q5_1","base-q8_0","base.en","base.en-q5_1","base.en-q8_0","small","small-q5_1","small-q8_0","small.en","small.en-q5_1","small.en-q8_0","small.en-tdrz","medium","medium-q5_0","medium-q8_0","medium.en","medium.en-q5_0","medium.en-q8_0","large-v1","large-v2","large-v2-q5_0","large-v2-q8_0","large-v3","large-v3-q5_0","large-v3-turbo","large-v3-turbo-q5_0","large-v3-turbo-q8_0"],ua=async()=>{const e=!!await nr(async()=>"darwin"===(await Promise.all([dr("node:os"),dr("say"),(0,Qo.getFfmpeg)()]))[0].platform());return assert(e,"Say API is not available.",500),e},ca=async()=>{const e=!!await nr(()=>Promise.all([dr("whisper-node"),(0,Qo.getFfmpeg)()]));return assert(e,"Whisper API is not available.",500),e},la=async(e,t)=>{const r=await dr("say");assert(e,"Text is required.",400);let[n,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===na?n="speak":(n="export",i=Hi({sub:`${xn(JSON.stringify(o))}.wav`}),o.push(i)),await fe([r[n],r],...o),i&&!t?.raw&&(i=await(0,Qo.convertAudioTo16kNanoOpusOgg)(i,{frequency:16e3,cleanup:ia,input:ta,suffix:ra,...t||{}})),i},fa=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),ha=async(e,t)=>{const r=(await dr("whisper-node")).whisper,n=await(0,Qo.convertAudioTo16kNanoPcmWave)(e,{input:t?.input,expected:ta,errorMessage:aa}),i=await(async(e,t)=>(e=t?.model||oa,(await(0,Xo.get)((e=>(assert(sa.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content))(t?.model,t),o=await r(n,{modelPath:i,...t||{},whisperOptions:{...t?.whisperOptions||{}}});return assert(o,"Failed to recognize speech.",500),t?.raw?o:o.map(e=>e.speech).join("").trim()},da=async(e,t)=>{let r;return yr()?r=fa:await ua()?r=la:_e("Text-to-Speech engine is not available.",500),await r(e,t)},pa=async(e,t)=>{let r;return await ca()?r=ha:_e("Speech-to-Text engine is not available.",500),await r(e,t)};yr()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:oe,color:ue,encryption:r,event:a,manifest:Ao,math:c,speech:s,storage:n,uoid:o,utilitas:t,uuid:e},(async()=>{Nt(`(${Ao.homepage}) is ready!`,`${(await Ut(Ao)).title}.*`)})())})()})();
|
|
3
3
|
//# sourceMappingURL=utilitas.lite.mjs.map
|