mudlet-map-editor 0.20.0 → 0.22.0
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/dist-lib/{ScriptCodeEditor-Dtgis0Nh.js → ScriptCodeEditor-BHx_AhoB.js} +19 -7
- package/dist-lib/assets/sessionWorker-DrI4-wnQ.js +38 -0
- package/dist-lib/assets/{ts.worker-C20_IzgO.js → ts.worker-BcKzzBCP.js} +9 -9
- package/dist-lib/components/MapDiffModal.d.ts +3 -0
- package/dist-lib/components/Toolbar.d.ts +2 -1
- package/dist-lib/editor/diff/DiffHighlightOverlay.d.ts +48 -0
- package/dist-lib/editor/diff/diffScene.d.ts +27 -0
- package/dist-lib/editor/diff/mapDiff.d.ts +47 -0
- package/dist-lib/editor/sessionSaver.d.ts +11 -0
- package/dist-lib/editor/sessionWorker.d.ts +18 -0
- package/dist-lib/i18n/locales/en.d.ts +2 -0
- package/dist-lib/i18n/locales/modals.en.d.ts +16 -0
- package/dist-lib/index.js +12036 -11095
- package/dist-lib/{monaco.contribution-CRzon75s.js → monaco.contribution-CoQcDhVH.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/dist-lib/{tsMode-J2Knw729.js → tsMode-BnfSMFGJ.js} +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(e,t)=>()=>(e&&(t=e(e=0)),t),a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),o=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},s=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},c=t=>r.call(t,`module.exports`)?t[`module.exports`]:s(e({},`__esModule`,{value:!0}),t),l={},u={};u.byteLength=v,u.toByteArray=b,u.fromByteArray=C;for(var d=[],f=[],p=typeof Uint8Array<`u`?Uint8Array:Array,m=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,h=0,g=m.length;h<g;++h)d[h]=m[h],f[m.charCodeAt(h)]=h;f[45]=62,f[95]=63;function _(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function v(e){var t=_(e),n=t[0],r=t[1];return(n+r)*3/4-r}function y(e,t,n){return(t+n)*3/4-n}function b(e){var t,n=_(e),r=n[0],i=n[1],a=new p(y(e,r,i)),o=0,s=i>0?r-4:r,c;for(c=0;c<s;c+=4)t=f[e.charCodeAt(c)]<<18|f[e.charCodeAt(c+1)]<<12|f[e.charCodeAt(c+2)]<<6|f[e.charCodeAt(c+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=f[e.charCodeAt(c)]<<2|f[e.charCodeAt(c+1)]>>4,a[o++]=t&255),i===1&&(t=f[e.charCodeAt(c)]<<10|f[e.charCodeAt(c+1)]<<4|f[e.charCodeAt(c+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function x(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[e&63]}function S(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(x(r));return i.join(``)}function C(e){for(var t,n=e.length,r=n%3,i=[],a=16383,o=0,s=n-r;o<s;o+=a)i.push(S(e,o,o+a>s?s:o+a));return r===1?(t=e[n-1],i.push(d[t>>2]+d[t<<4&63]+`==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(d[t>>10]+d[t>>4&63]+d[t<<2&63]+`=`)),i.join(``)}var w={};w.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},w.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128},(function(e){let t=u,n=w,r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=d,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i;let{Uint8Array:a,ArrayBuffer:o,SharedArrayBuffer:s}=globalThis;d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&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.");function c(){try{let e=new a(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,`parent`,{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,`offset`,{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function l(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new a(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return h(e)}return f(e,t,n)}d.poolSize=8192;function f(e,t,n){if(typeof e==`string`)return g(e,t);if(o.isView(e))return v(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(I(e,o)||e&&I(e.buffer,o)||s!==void 0&&(I(e,s)||e&&I(e.buffer,s)))return y(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return d.from(r,t,n);let i=b(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return d.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}d.from=function(e,t,n){return f(e,t,n)},Object.setPrototypeOf(d.prototype,a.prototype),Object.setPrototypeOf(d,a);function p(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function m(e,t,n){return p(e),e<=0||t===void 0?l(e):typeof n==`string`?l(e).fill(t,n):l(e).fill(t)}d.alloc=function(e,t,n){return m(e,t,n)};function h(e){return p(e),l(e<0?0:x(e)|0)}d.allocUnsafe=function(e){return h(e)},d.allocUnsafeSlow=function(e){return h(e)};function g(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!d.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=C(e,t)|0,r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function _(e){let t=e.length<0?0:x(e.length)|0,n=l(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function v(e){if(I(e,a)){let t=new a(e);return y(t.buffer,t.byteOffset,t.byteLength)}return _(e)}function y(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new a(e):n===void 0?new a(e,t):new a(e,t,n),Object.setPrototypeOf(r,d.prototype),r}function b(e){if(d.isBuffer(e)){let t=x(e.length)|0,n=l(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||De(e.length)?l(0):_(e);if(e.type===`Buffer`&&Array.isArray(e.data))return _(e.data)}function x(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function S(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==d.prototype},d.compare=function(e,t){if(I(e,a)&&(e=d.from(e,e.offset,e.byteLength)),I(t,a)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},d.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}},d.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return d.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=d.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(I(t,a))i+t.length>r.length?(d.isBuffer(t)||(t=d.from(t)),t.copy(r,i)):a.prototype.set.call(r,t,i);else if(d.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function C(e,t){if(d.isBuffer(e))return e.length;if(o.isView(e)||I(e,o))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return Se(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Te(e).length;default:if(i)return r?-1:Se(e).length;t=(``+t).toLowerCase(),i=!0}}d.byteLength=C;function T(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return se(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return M(this,t,n);case`latin1`:case`binary`:return oe(this,t,n);case`base64`:return ie(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ce(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}d.prototype._isBuffer=!0;function E(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}d.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)E(this,t,t+1);return this},d.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},d.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},d.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):T.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(e){if(!d.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:d.compare(this,e)===0},d.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(e,t,n,r,i){if(I(e,a)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,s=n-t,c=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){o=l[e],s=u[e];break}return o<s?-1:+(s<o)};function D(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=d.from(t,r)),d.isBuffer(t))return t.length===0?-1:O(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof a.prototype.indexOf==`function`?i?a.prototype.indexOf.call(e,t,n):a.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function O(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}d.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},d.prototype.indexOf=function(e,t,n){return D(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return D(this,e,t,n,!1)};function ee(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(De(r))return o;e[n+o]=r}return o}function k(e,t,n,r){return Ee(Se(t,e.length-n),e,n,r)}function te(e,t,n,r){return Ee(Ce(t),e,n,r)}function ne(e,t,n,r){return Ee(Te(t),e,n,r)}function re(e,t,n,r){return Ee(we(t,e.length-n),e,n,r)}d.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return ee(this,e,t,n);case`utf8`:case`utf-8`:return k(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return te(this,e,t,n);case`base64`:return ne(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return re(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},d.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ie(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return ae(r)}let j=4096;function ae(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function M(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function oe(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function se(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=Oe[e[r]];return i}function ce(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}d.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,d.prototype),r};function N(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}d.prototype.readUintLE=d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},d.prototype.readUintBE=d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readBigUInt64LE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),d.prototype.readBigUInt64BE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},d.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readBigInt64LE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),d.prototype.readBigInt64BE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),d.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),n.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),n.read(this,e,!1,52,8)};function P(e,t,n,r,i,a){if(!d.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=e&255,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function le(e,t,n,r,i){ve(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ue(e,t,n,r,i){ve(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}d.prototype.writeBigUInt64LE=L(function(e,t=0){return le(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),d.prototype.writeBigUInt64BE=L(function(e,t=0){return ue(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(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]=e&255,t+4},d.prototype.writeBigInt64LE=L(function(e,t=0){return le(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),d.prototype.writeBigInt64BE=L(function(e,t=0){return ue(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function de(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function fe(e,t,r,i,a){return t=+t,r>>>=0,a||de(e,t,r,4),n.write(e,t,r,i,23,4),r+4}d.prototype.writeFloatLE=function(e,t,n){return fe(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return fe(this,e,t,!1,n)};function pe(e,t,r,i,a){return t=+t,r>>>=0,a||de(e,t,r,8),n.write(e,t,r,i,52,8),r+8}d.prototype.writeDoubleLE=function(e,t,n){return pe(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return pe(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof a.prototype.copyWithin==`function`?this.copyWithin(t,n,r):a.prototype.set.call(e,this.subarray(n,r),t),i},d.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!d.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=d.isBuffer(e)?e:d.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let me={};function he(e,t,n){me[e]=class extends n{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}`}}}he(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),he(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),he(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ge(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ge(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ge(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function _e(e,t,n){F(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ye(t,e.length-(n+1))}function ve(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new me.ERR_OUT_OF_RANGE(`value`,i,e)}_e(r,i,a)}function F(e,t){if(typeof e!=`number`)throw new me.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ye(e,t,n){throw Math.floor(e)===e?t<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(F(e,n),new me.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let be=/[^+/0-9A-Za-z-_]/g;function xe(e){if(e=e.split(`=`)[0],e=e.trim().replace(be,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function Se(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function Ce(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function we(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Te(e){return t.toByteArray(xe(e))}function Ee(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function I(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}let Oe=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function L(e){return typeof BigInt>`u`?ke:e}function ke(){throw Error(`BigInt not supported`)}})(l),l.Buffer,l.Blob,l.BlobOptions,l.Buffer,l.File,l.FileOptions,l.INSPECT_MAX_BYTES,l.SlowBuffer,l.TranscodeEncoding,l.atob,l.btoa,l.constants,l.isAscii,l.isUtf8,l.kMaxLength,l.kStringMaxLength,l.resolveObjectURL,l.transcode;var T=a(((e,t)=>{function n(e){return e.toString().replace(`\0`,``)}function r(e){let t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),i=Math.floor((14-n)/12),a=Math.floor(t+4800-i),o=n+12*i-3;return r+Math.floor((153*o+2)/5)+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)-32045}function i(e){let t=1461,n=4*(e+1401+Math.floor(Math.floor((4*e+274277)/146097)*3/4)+-38)+3,r=5*Math.floor(n%t/4)+2,i=Math.floor(r%153/5)+1,a=(Math.floor(r/153)+2)%12+1,o=Math.floor(n/t)-4716+Math.floor((14-a)/12);return new Date(o,a-1,i)}function a(e,t){let n=Object.keys(e);for(let r of n){let n=Object.getOwnPropertyDescriptor(e,r);Object.assign(n,{value:t(e[r])}),Object.defineProperty(e,r,n)}return e}function o(e,t){let n=e=>typeof e==`object`&&e?o(e,t):t(e);return Array.isArray(e)?e.map(n):typeof e==`object`&&e?a(e,n):e}t.exports={str:n,dateToJulianDay:r,julianDayToDate:i,mapObject:a,deepMap:o}})),E=a((e=>{(function(e){var t=`undefined`,n=t!==typeof Buffer&&Buffer,r=t!==typeof Uint8Array&&Uint8Array,i=t!==typeof ArrayBuffer&&ArrayBuffer,a=[0,0,0,0,0,0,0,0],o=Array.isArray||x,s=4294967296,c=16777216,l;u(`Uint64BE`,!0,!0),u(`Int64BE`,!0,!1),u(`Uint64LE`,!1,!0),u(`Int64LE`,!1,!1);function u(o,u,x){var S=u?0:4,C=u?4:0,w=u?0:3,T=u?1:2,E=u?2:1,D=u?3:0,O=u?_:y,ee=u?v:b,k=re.prototype,te=`is`+o,ne=`_`+te;return k.buffer=void 0,k.offset=0,k[ne]=!0,k.toNumber=ae,k.toString=M,k.toJSON=ae,k.toArray=d,n&&(k.toBuffer=f),r&&(k.toArrayBuffer=p),re[te]=ie,e[o]=re,re;function re(e,t,n,r){return this instanceof re?A(this,e,t,n,r):new re(e,t,n,r)}function ie(e){return!!(e&&e[ne])}function A(e,o,s,c,u){if(r&&i&&(o instanceof i&&(o=new r(o)),c instanceof i&&(c=new r(c))),!o&&!s&&!c&&!l){e.buffer=g(a,0);return}if(!m(o,s)){var d=l||Array;u=s,c=o,s=0,o=l===n?n.alloc(8):new d(8)}e.buffer=o,e.offset=s|=0,t!==typeof c&&(typeof c==`string`?j(o,s,c,u||10):m(c,u)?h(o,s,c,u):typeof u==`number`?(oe(o,s+S,c),oe(o,s+C,u)):c>0?O(o,s,c):c<0?ee(o,s,c):h(o,s,a,0))}function j(e,t,n,r){var i=0,a=n.length,o=0,c=0;n[0]===`-`&&i++;for(var l=i;i<a;){var u=parseInt(n[i++],r);if(!(u>=0))break;c=c*r+u,o=o*r+Math.floor(c/s),c%=s}l&&(o=~o,c?c=s-c:o++),oe(e,t+S,o),oe(e,t+C,c)}function ae(){var e=this.buffer,t=this.offset,n=se(e,t+S),r=se(e,t+C);return x||(n|=0),n?n*s+r:r}function M(e){var t=this.buffer,n=this.offset,r=se(t,n+S),i=se(t,n+C),a=``,o=!x&&r&2147483648;for(o&&(r=~r,i=s-i),e||=10;;){var c=r%e*s+i;if(r=Math.floor(r/e),i=Math.floor(c/e),a=(c%e).toString(e)+a,!r&&!i)break}return o&&(a=`-`+a),a}function oe(e,t,n){e[t+D]=n&255,n>>=8,e[t+E]=n&255,n>>=8,e[t+T]=n&255,n>>=8,e[t+w]=n&255}function se(e,t){return e[t+w]*c+(e[t+T]<<16)+(e[t+E]<<8)+e[t+D]}}function d(e){var t=this.buffer,n=this.offset;return l=null,e!==!1&&o(t)?t.length===8?t:t.slice(n,n+8):g(t,n)}function f(e){var t=this.buffer,r=this.offset;return l=n,e!==!1&&n.isBuffer(t)?t.length===8?t:t.slice(r,r+8):n.from(p.call(this,e))}function p(e){var t=this.buffer,n=this.offset,a=t.buffer;if(l=r,e!==!1&&!t.offset&&a instanceof i)return a.byteLength===8?a:a.slice(n,n+8);var o=new r(8);return h(o,0,t,n),o.buffer}function m(e,t){var n=e&&e.length;return t|=0,n&&t+8<=n&&typeof e[t]!=`string`}function h(e,t,n,r){t|=0,r|=0;for(var i=0;i<8;i++)e[t++]=n[r++]&255}function g(e,t){return Array.prototype.slice.call(e,t,t+8)}function _(e,t,n){for(var r=t+8;r>t;)e[--r]=n&255,n/=256}function v(e,t,n){var r=t+8;for(n++;r>t;)e[--r]=-n&255^255,n/=256}function y(e,t,n){for(var r=t+8;t<r;)e[t++]=n&255,n/=256}function b(e,t,n){var r=t+8;for(n++;t<r;)e[t++]=-n&255^255,n/=256}function x(e){return!!e&&Object.prototype.toString.call(e)==`[object Array]`}})(typeof e==`object`&&typeof e.nodeName!=`string`?e:e||{})})),D=a(((e,t)=>{let{Int64BE:n,Uint64BE:r}=E(),{dateToJulianDay:i,julianDayToDate:a,str:o}=T();var s=class{constructor(e){this.__obj=e}static from(e,t=!1){return e instanceof this&&!t||(e=u(e),e instanceof this)?e:new this(e)}};function c(e){return function(t){s.types||=new Map,e!==void 0&&s.types.set(e,t),t.qtype=e}}let l={INVALID:0,BOOL:1,INT:2,UINT:3,INT64:4,UINT64:5,DOUBLE:6,CHAR:7,MAP:8,LIST:9,STRING:10,STRINGLIST:11,BYTEARRAY:12,TIME:15,DATETIME:16,USERTYPE:127,SHORT:133};function u(e){return e!=null&&typeof e.export==`function`?e.export():e}var d=class extends s{static read(e){}toBuffer(){return Buffer.alloc(0)}};c(l.INVALID)(d);var f=class extends s{static read(e){return!!e.readInt8()}toBuffer(){let e=Buffer.alloc(1);return e.writeInt8(this.__obj,0),e}};c(l.BOOL)(f);var p=class extends s{static read(e){return e.readInt16BE()}toBuffer(){let e=Buffer.alloc(2);return e.writeUInt16BE(this.__obj,0,!0),e}};c(l.SHORT)(p);var m=class extends s{static read(e){return e.readInt32BE()}toBuffer(){let e=Buffer.alloc(4);return e.writeInt32BE(this.__obj,0,!0),e}};c(l.INT)(m);var h=class extends s{static read(e){return e.readUInt32BE()}toBuffer(){let e=Buffer.alloc(4);return e.writeUInt32BE(this.__obj,0,!0),e}};c(l.UINT)(h);var g=class extends s{static read(e){return e.readInt64BE()}toBuffer(){return new n(this.__obj).toBuffer()}};c(l.INT64)(g);var _=class extends s{static read(e){return e.readUInt64BE()}toBuffer(){return new r(this.__obj).toBuffer()}};c(l.UINT64)(_);var v=class extends s{static read(e){return e.readDoubleBE()}toBuffer(){let e=Buffer.alloc(8);return e.writeDoubleBE(this.__obj,0,!0),e}};c(l.DOUBLE)(v);var y=class extends s{constructor(e){if(super(e),typeof this.__obj!=`string`)throw Error(`${this.__obj} is not a string`);if(this.__obj.length!==1)throw Error(`${this.__obj} length must equal 1`)}static read(e){return e.slice(2).swap16().toString(`ucs2`)}toBuffer(){return Buffer.from(this.__obj,`ucs2`).swap16()}};c(l.CHAR)(y);var b=class extends h{};c(l.TIME)(b);var x=class extends s{static read(e){let t=h.read(e);return t===0||t===4294967295?null:e.slice(t)}toBuffer(){if(this.__obj===null)return h.from(4294967295).toBuffer();let e=Buffer.from(this.__obj),t=h.from(e.length).toBuffer();return Buffer.concat([t,e])}};c(l.BYTEARRAY)(x);var S=class extends s{static read(e){let t=h.read(e);return t===0||t===4294967295?``:e.slice(t).swap16().toString(`ucs2`)}toBuffer(){if(this.__obj===null)return h.from(4294967295).toBuffer();let e;e=typeof this.__obj==`number`?Buffer.from(String(this.__obj),`ucs2`):Buffer.from(this.__obj,`ucs2`),e.swap16();let t=h.from(e.length).toBuffer();return Buffer.concat([t,e])}};c(l.STRING)(S);var C=class extends s{static read(e){let t=h.read(e),n=Array(t);for(let r=0;r<t;r++)n[r]=k.read(e);return n}static of(e){typeof e==`string`&&(e=ee.get(e));let t=this;return class extends t{static from(n){return Array.isArray(n)&&(n=n.map(t=>u(e.from(t)))),t.from(n)}}}toBuffer(){let e=[];e.push(h.from(this.__obj.length).toBuffer());for(let t of this.__obj)e.push(k.from(t).toBuffer());return Buffer.concat(e)}};c(l.LIST)(C);var w=class extends s{static read(e){let t=h.read(e),n=Array(t);for(let r=0;r<t;r++)n[r]=S.read(e);return n}toBuffer(){let e=[];e.push(h.from(this.__obj.length).toBuffer());for(let t of this.__obj)e.push(S.from(t).toBuffer());return Buffer.concat(e)}};c(l.STRINGLIST)(w);var D=class extends s{static read(e){let t=h.read(e),n=h.read(e);f.read(e);let r=a(t);return r.setMilliseconds(n),r}toBuffer(){let e=[],t=(this.__obj.getTime()-this.__obj.getTimezoneOffset()*6e4)%864e5,n=i(this.__obj);return e.push(h.from(n).toBuffer()),e.push(h.from(t).toBuffer()),e.push(f.from(this.__obj.getTimezoneOffset()===0).toBuffer()),Buffer.concat(e)}};c(l.DATETIME)(D);var O=class extends s{static read(e){let t=h.read(e),n={},r,i;for(let a=0;a<t;a++)r=S.read(e),i=k.read(e),n[r]=i;return n}toBuffer(){let e=[];if(this.__obj instanceof Map){e.push(h.from(this.__obj.size).toBuffer());for(let[t,n]of this.__obj)e.push(S.from(t).toBuffer()),e.push(k.from(n).toBuffer())}else{let t=this.__obj?Object.keys(this.__obj):[];e.push(h.from(t.length).toBuffer());for(let n of t)e.push(S.from(n).toBuffer()),e.push(k.from(this.__obj[n]).toBuffer())}return Buffer.concat(e)}};c(l.MAP)(O);var ee=class e extends s{constructor(e,t){super(t),this.name=e}static from(t){return t instanceof e?t:new this(t)}static createComplexUserType(t,n){let r=[],i,a,o;for(o of n){if([i]=Object.keys(o),a={key:i},typeof o[i]==`string`?(a.quserclassname=o[i],a.quserclass=e.usertypes.get(o[i])):a.quserclass=s.types.get(o[i]),!a.quserclass)throw Error(`Type ${o[i]} does not exists`);r.push(a)}return class extends e{constructor(e){super(t,e)}static read(e){let t={};for(let n of r)Object.defineProperty(t,n.key,{enumerable:!0,configurable:!0,writable:!0,value:n.quserclass.read(e,a.quserclassname)});return t}toBuffer(e=!1){let t=[this._getNameBuffer(e)];for(let e of r)t.push(e.quserclass.from(this.__obj[e.key]).toBuffer(!0));return Buffer.concat(t)}}}static createUserType(t,n){if(Array.isArray(n))return e.createComplexUserType(t,n);let r=s.types.get(n);return class extends e{constructor(e){super(t,e)}static read(e){return r.read(e)}toBuffer(e=!1){let t=[this._getNameBuffer(e),r.from(this.__obj).toBuffer(!0)];return Buffer.concat(t)}}}static register(t,n){e.usertypes||=new Map,e.usertypes.set(t,e.createUserType(t,n))}static get(t){return e.usertypes.get(t)}static read(t,n){n||=o(x.read(t));let r=e.usertypes.get(n);if(!r)throw Error(`Unregistered usertype ${n}`);return r.read(t)}_getNameBuffer(e){if(!this.name)throw Error(`Abstract QUserType cannot be converted to a buffer`);return e?Buffer.alloc(0):x.from(this.name).toBuffer()}toBuffer(t=!1){let n=[this._getNameBuffer(t),e.usertypes.get(this.name).from(this.__obj).toBuffer(!0)];return Buffer.concat(n)}};c(l.USERTYPE)(ee);var k=class e extends s{static coerceNumbersTo(t){let n=s.types.get(t);if(n===void 0)throw Error(`undefined type ${t}`);e.coerceNumbersClass=n}static read(e){let t=h.read(e);return f.read(e),s.types.get(t).read(e)}toBuffer(){let t=this.__obj===void 0||this.__obj===null,n=typeof this.__obj,r;if(this.__obj===void 0)r=d;else if(this.__obj instanceof ee)r=ee;else if(this.__obj instanceof e)throw Error(`Can't nest QVariant`);else r=this.__obj instanceof s?this.__obj.constructor:n===`string`?S:n===`number`?e.coerceNumbersClass:n===`boolean`?f:this.__obj instanceof Date?D:this.__obj instanceof Array?C:O;let i=[h.from(r.qtype).toBuffer(),f.from(t).toBuffer()];return t||i.push(r.from(this.__obj).toBuffer()),Buffer.concat(i)}};k.coerceNumbersClass=h,t.exports={qtype:c,Types:l,QClass:s,QInvalid:d,QBool:f,QShort:p,QInt:m,QUInt:h,QInt64:g,QUInt64:_,QDouble:v,QChar:y,QTime:b,QByteArray:x,QString:S,QList:C,QStringList:w,QDateTime:D,QMap:O,QUserType:ee,QVariant:k}})),O=a(((e,t)=>{let{Int64BE:n,Uint64BE:r}=E();t.exports={ReadBuffer:class{constructor(e){this.buffer=e,this.read_offset=0}remaining(){return this.read_offset>=this.buffer.length?null:this.buffer.slice(this.read_offset)}readInt8(){let e=this.buffer.readInt8(this.read_offset);return this.read_offset+=1,e}readInt16BE(){let e=this.buffer.readInt16BE(this.read_offset);return this.read_offset+=2,e}readUInt16BE(){let e=this.buffer.readUInt16BE(this.read_offset);return this.read_offset+=2,e}readInt32BE(){let e=this.buffer.readInt32BE(this.read_offset);return this.read_offset+=4,e}readUInt32BE(){let e=this.buffer.readUInt32BE(this.read_offset);return this.read_offset+=4,e}readInt64BE(){let e=new n(this.buffer,this.read_offset).toNumber();return this.read_offset+=8,e}readUInt64BE(){let e=new r(this.buffer,this.read_offset).toNumber();return this.read_offset+=8,e}readDoubleBE(){let e=this.buffer.readDoubleBE(this.read_offset);return this.read_offset+=8,e}slice(e){let t=this.buffer.slice(this.read_offset,this.read_offset+e);return this.read_offset+=e,t}}}})),ee=a(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),k=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),te=a(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=k(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),ne=a(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.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`."))}})(),e.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`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=te()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),re=a(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ie=a(((e,t)=>{t.exports=ee().EventEmitter})),A=a((e=>{Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t={},n={};n.byteLength=u,n.toByteArray=f,n.fromByteArray=h;for(var r=[],i=[],a=typeof Uint8Array<`u`?Uint8Array:Array,o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;i[45]=62,i[95]=63;function l(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r}function d(e,t,n){return(t+n)*3/4-n}function f(e){var t,n=l(e),r=n[0],o=n[1],s=new a(d(e,r,o)),c=0,u=o>0?r-4:r,f;for(f=0;f<u;f+=4)t=i[e.charCodeAt(f)]<<18|i[e.charCodeAt(f+1)]<<12|i[e.charCodeAt(f+2)]<<6|i[e.charCodeAt(f+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=t&255;return o===2&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[c++]=t&255),o===1&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function m(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(p(r));return i.join(``)}function h(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(m(e,s,s+o>c?c:s+o));return i===1?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+`==`)):i===2&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+`=`)),a.join(``)}var g={};
|
|
2
|
+
/*!
|
|
3
|
+
* The buffer module from node.js, for the browser.
|
|
4
|
+
*
|
|
5
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
g.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},g.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128},(function(e){let t=n,r=g,i=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=d,e.SlowBuffer=C,e.INSPECT_MAX_BYTES=50;let a=2147483647;e.kMaxLength=a;let{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:c}=globalThis;d.TYPED_ARRAY_SUPPORT=l(),!d.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&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.");function l(){try{let e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,`parent`,{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,`offset`,{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function u(e){if(e>a)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new o(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return h(e)}return f(e,t,n)}d.poolSize=8192;function f(e,t,n){if(typeof e==`string`)return _(e,t);if(s.isView(e))return y(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(I(e,s)||e&&I(e.buffer,s)||c!==void 0&&(I(e,c)||e&&I(e.buffer,c)))return b(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return d.from(r,t,n);let i=x(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return d.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}d.from=function(e,t,n){return f(e,t,n)},Object.setPrototypeOf(d.prototype,o.prototype),Object.setPrototypeOf(d,o);function p(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function m(e,t,n){return p(e),e<=0||t===void 0?u(e):typeof n==`string`?u(e).fill(t,n):u(e).fill(t)}d.alloc=function(e,t,n){return m(e,t,n)};function h(e){return p(e),u(e<0?0:S(e)|0)}d.allocUnsafe=function(e){return h(e)},d.allocUnsafeSlow=function(e){return h(e)};function _(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!d.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=w(e,t)|0,r=u(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function v(e){let t=e.length<0?0:S(e.length)|0,n=u(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function y(e){if(I(e,o)){let t=new o(e);return b(t.buffer,t.byteOffset,t.byteLength)}return v(e)}function b(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new o(e):n===void 0?new o(e,t):new o(e,t,n),Object.setPrototypeOf(r,d.prototype),r}function x(e){if(d.isBuffer(e)){let t=S(e.length)|0,n=u(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||De(e.length)?u(0):v(e);if(e.type===`Buffer`&&Array.isArray(e.data))return v(e.data)}function S(e){if(e>=a)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+a.toString(16)+` bytes`);return e|0}function C(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==d.prototype},d.compare=function(e,t){if(I(e,o)&&(e=d.from(e,e.offset,e.byteLength)),I(t,o)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},d.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}},d.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return d.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=d.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(I(t,o))i+t.length>r.length?(d.isBuffer(t)||(t=d.from(t)),t.copy(r,i)):o.prototype.set.call(r,t,i);else if(d.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function w(e,t){if(d.isBuffer(e))return e.length;if(s.isView(e)||I(e,s))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return Se(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Te(e).length;default:if(i)return r?-1:Se(e).length;t=(``+t).toLowerCase(),i=!0}}d.byteLength=w;function T(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return se(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return M(this,t,n);case`latin1`:case`binary`:return oe(this,t,n);case`base64`:return ie(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ce(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}d.prototype._isBuffer=!0;function E(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}d.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)E(this,t,t+1);return this},d.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},d.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},d.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):T.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(e){if(!d.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:d.compare(this,e)===0},d.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},i&&(d.prototype[i]=d.prototype.inspect),d.prototype.compare=function(e,t,n,r,i){if(I(e,o)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,s=n-t,c=Math.min(a,s),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],s=u[e];break}return a<s?-1:+(s<a)};function D(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,De(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=d.from(t,r)),d.isBuffer(t))return t.length===0?-1:O(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof o.prototype.indexOf==`function`?i?o.prototype.indexOf.call(e,t,n):o.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function O(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}d.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},d.prototype.indexOf=function(e,t,n){return D(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return D(this,e,t,n,!1)};function ee(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(De(r))return o;e[n+o]=r}return o}function k(e,t,n,r){return Ee(Se(t,e.length-n),e,n,r)}function te(e,t,n,r){return Ee(Ce(t),e,n,r)}function ne(e,t,n,r){return Ee(Te(t),e,n,r)}function re(e,t,n,r){return Ee(we(t,e.length-n),e,n,r)}d.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return ee(this,e,t,n);case`utf8`:case`utf-8`:return k(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return te(this,e,t,n);case`base64`:return ne(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return re(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},d.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ie(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return ae(r)}let j=4096;function ae(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function M(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function oe(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function se(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=Oe[e[r]];return i}function ce(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}d.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,d.prototype),r};function N(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}d.prototype.readUintLE=d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},d.prototype.readUintBE=d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readBigUInt64LE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),d.prototype.readBigUInt64BE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},d.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readBigInt64LE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),d.prototype.readBigInt64BE=L(function(e){e>>>=0,F(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ye(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),d.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),r.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),r.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),r.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),r.read(this,e,!1,52,8)};function P(e,t,n,r,i,a){if(!d.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;P(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=e&255,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function le(e,t,n,r,i){ve(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ue(e,t,n,r,i){ve(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}d.prototype.writeBigUInt64LE=L(function(e,t=0){return le(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),d.prototype.writeBigUInt64BE=L(function(e,t=0){return ue(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(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]=e&255,t+4},d.prototype.writeBigInt64LE=L(function(e,t=0){return le(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),d.prototype.writeBigInt64BE=L(function(e,t=0){return ue(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function de(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function fe(e,t,n,i,a){return t=+t,n>>>=0,a||de(e,t,n,4),r.write(e,t,n,i,23,4),n+4}d.prototype.writeFloatLE=function(e,t,n){return fe(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return fe(this,e,t,!1,n)};function pe(e,t,n,i,a){return t=+t,n>>>=0,a||de(e,t,n,8),r.write(e,t,n,i,52,8),n+8}d.prototype.writeDoubleLE=function(e,t,n){return pe(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return pe(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof o.prototype.copyWithin==`function`?this.copyWithin(t,n,r):o.prototype.set.call(e,this.subarray(n,r),t),i},d.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!d.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=d.isBuffer(e)?e:d.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let me={};function he(e,t,n){me[e]=class extends n{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}`}}}he(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),he(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),he(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ge(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ge(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ge(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function _e(e,t,n){F(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ye(t,e.length-(n+1))}function ve(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new me.ERR_OUT_OF_RANGE(`value`,i,e)}_e(r,i,a)}function F(e,t){if(typeof e!=`number`)throw new me.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ye(e,t,n){throw Math.floor(e)===e?t<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(F(e,n),new me.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let be=/[^+/0-9A-Za-z-_]/g;function xe(e){if(e=e.split(`=`)[0],e=e.trim().replace(be,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function Se(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function Ce(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function we(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Te(e){return t.toByteArray(xe(e))}function Ee(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function I(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}let Oe=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function L(e){return typeof BigInt>`u`?ke:e}function ke(){throw Error(`BigInt not supported`)}})(t);let _=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=_,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})),j=a(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),ae=a(((e,t)=>{var n=j();t.exports=function(){return n()&&!!Symbol.toStringTag}})),M=a(((e,t)=>{t.exports=Object})),oe=a(((e,t)=>{t.exports=Error})),se=a(((e,t)=>{t.exports=EvalError})),ce=a(((e,t)=>{t.exports=RangeError})),N=a(((e,t)=>{t.exports=ReferenceError})),P=a(((e,t)=>{t.exports=SyntaxError})),le=a(((e,t)=>{t.exports=TypeError})),ue=a(((e,t)=>{t.exports=URIError})),de=a(((e,t)=>{t.exports=Math.abs})),fe=a(((e,t)=>{t.exports=Math.floor})),pe=a(((e,t)=>{t.exports=Math.max})),me=a(((e,t)=>{t.exports=Math.min})),he=a(((e,t)=>{t.exports=Math.pow})),ge=a(((e,t)=>{t.exports=Math.round})),_e=a(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ve=a(((e,t)=>{var n=_e();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),F=a(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),ye=a(((e,t)=>{var n=F();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),be=a(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),xe=a(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=j();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Se=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Ce=a(((e,t)=>{t.exports=M().getPrototypeOf||null})),we=a(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),Te=a(((e,t)=>{var n=we();t.exports=Function.prototype.bind||n})),Ee=a(((e,t)=>{t.exports=Function.prototype.call})),I=a(((e,t)=>{t.exports=Function.prototype.apply})),De=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Oe=a(((e,t)=>{var n=Te(),r=I(),i=Ee();t.exports=De()||n.call(i,r)})),L=a(((e,t)=>{var n=Te(),r=le(),i=Ee(),a=Oe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),ke=a(((e,t)=>{var n=L(),r=ye(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Ae=a(((e,t)=>{var n=Se(),r=Ce(),i=ke();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),je=a(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Te().call(n,r)})),Me=a(((e,t)=>{var n,r=M(),i=oe(),a=se(),o=ce(),s=N(),c=P(),l=le(),u=ue(),d=de(),f=fe(),p=pe(),m=me(),h=he(),g=ge(),_=ve(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=ye(),x=be(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=xe()(),T=Ae(),E=Ce(),D=Se(),O=I(),ee=Ee(),k={},te=typeof Uint8Array>`u`||!T?n:T(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":ee,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ne[`%Error.prototype%`]=T(T(e))}var re=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return ne[t]=n,n},ie={__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`]},A=Te(),j=je(),ae=A.call(ee,Array.prototype.concat),_e=A.call(O,Array.prototype.splice),F=A.call(ee,String.prototype.replace),we=A.call(ee,String.prototype.slice),De=A.call(ee,RegExp.prototype.exec),Oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,ke=function(e){var t=we(e,0,1),n=we(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,Oe,function(e,t,n,i){r[r.length]=n?F(i,L,`$1`):t||e}),r},Me=function(e,t){var n=e,r;if(j(ie,n)&&(r=ie[n],n=`%`+r[0]+`%`),j(ne,n)){var i=ne[n];if(i===k&&(i=re(n)),i===void 0&&!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!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(De(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ke(e),r=n.length>0?n[0]:``,i=Me(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],_e(n,ae([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=we(p,0,1),h=we(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,j(ne,a))o=ne[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=j(o,p),o=o[p];f&&!s&&(ne[a]=o)}}return o}})),Ne=a(((e,t)=>{var n=Me(),r=L(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Pe=a(((e,t)=>{var n=ae()(),r=Ne()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),Fe=a(((e,t)=>{var n=Ne(),r=ae()(),i=je(),a=ye(),o;if(r){var s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l};typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}}else{var d=n(`Object.prototype.toString`),f=`[object RegExp]`;o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f}}t.exports=o})),Ie=a(((e,t)=>{var n=Ne(),r=Fe(),i=n(`RegExp.prototype.exec`),a=le();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}})),Le=a(((e,t)=>{let n=function*(){}.constructor;t.exports=()=>n})),Re=a(((e,t)=>{var n=Ne(),r=Ie()(/^\s*(?:function)?\*/),i=ae()(),a=Ae(),o=n(`Object.prototype.toString`),s=n(`Function.prototype.toString`),c=Le();t.exports=function(e){if(typeof e!=`function`)return!1;if(r(s(e)))return!0;if(!i)return o(e)===`[object GeneratorFunction]`;if(!a)return!1;var t=c();return t&&a(e)===t.prototype}})),ze=a(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},`length`,{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return s(e)?!1:(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),Be=a(((e,t)=>{var n=ze(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),Ve=a(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),He=a(((e,t)=>{var n=Ve(),r=typeof globalThis>`u`?global:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),Ue=a(((e,t)=>{var n=be(),r=P(),i=le(),a=ye();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),We=a(((e,t)=>{var n=be(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),Ge=a(((e,t)=>{var n=Me(),r=Ue(),i=We()(),a=ye(),o=le(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),Ke=a(((e,t)=>{var n=Te(),r=I(),i=Oe();t.exports=function(){return i(n,r,arguments)}})),qe=a(((e,t)=>{var n=Ge(),r=be(),i=L(),a=Ke();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),Je=a(((e,t)=>{var n=Be(),r=He(),i=qe(),a=Ne(),o=ye(),s=Ae(),c=a(`Object.prototype.toString`),l=ae()(),u=typeof globalThis>`u`?global:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);if(!r&&n&&(r=o(s(n),Symbol.toStringTag)),r&&r.get){var a=i(r.get);m[`$`+e]=a}}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;if(n){var r=i(n);m[`$`+e]=r}});var h=function(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t},g=function(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return p(d,t)>-1?t:t===`Object`?g(e):!1}return o?h(e):null}})),Ye=a(((e,t)=>{var n=Je();t.exports=function(e){return!!n(e)}})),Xe=a((e=>{var t=Pe(),n=Re(),r=Je(),i=Ye();function a(e){return e.call.bind(e)}var o=typeof BigInt<`u`,s=typeof Symbol<`u`,c=a(Object.prototype.toString),l=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function h(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}e.isPromise=h;function g(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||oe(e)}e.isArrayBufferView=g;function _(e){return r(e)===`Uint8Array`}e.isUint8Array=_;function v(e){return r(e)===`Uint8ClampedArray`}e.isUint8ClampedArray=v;function y(e){return r(e)===`Uint16Array`}e.isUint16Array=y;function b(e){return r(e)===`Uint32Array`}e.isUint32Array=b;function x(e){return r(e)===`Int8Array`}e.isInt8Array=x;function S(e){return r(e)===`Int16Array`}e.isInt16Array=S;function C(e){return r(e)===`Int32Array`}e.isInt32Array=C;function w(e){return r(e)===`Float32Array`}e.isFloat32Array=w;function T(e){return r(e)===`Float64Array`}e.isFloat64Array=T;function E(e){return r(e)===`BigInt64Array`}e.isBigInt64Array=E;function D(e){return r(e)===`BigUint64Array`}e.isBigUint64Array=D;function O(e){return c(e)===`[object Map]`}O.working=typeof Map<`u`&&O(new Map);function ee(e){return typeof Map>`u`?!1:O.working?O(e):e instanceof Map}e.isMap=ee;function k(e){return c(e)===`[object Set]`}k.working=typeof Set<`u`&&k(new Set);function te(e){return typeof Set>`u`?!1:k.working?k(e):e instanceof Set}e.isSet=te;function ne(e){return c(e)===`[object WeakMap]`}ne.working=typeof WeakMap<`u`&&ne(new WeakMap);function re(e){return typeof WeakMap>`u`?!1:ne.working?ne(e):e instanceof WeakMap}e.isWeakMap=re;function ie(e){return c(e)===`[object WeakSet]`}ie.working=typeof WeakSet<`u`&&ie(new WeakSet);function A(e){return ie(e)}e.isWeakSet=A;function j(e){return c(e)===`[object ArrayBuffer]`}j.working=typeof ArrayBuffer<`u`&&j(new ArrayBuffer);function ae(e){return typeof ArrayBuffer>`u`?!1:j.working?j(e):e instanceof ArrayBuffer}e.isArrayBuffer=ae;function M(e){return c(e)===`[object DataView]`}M.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&M(new DataView(new ArrayBuffer(1),0,1));function oe(e){return typeof DataView>`u`?!1:M.working?M(e):e instanceof DataView}e.isDataView=oe;var se=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function ce(e){return c(e)===`[object SharedArrayBuffer]`}function N(e){return se===void 0?!1:(ce.working===void 0&&(ce.working=ce(new se)),ce.working?ce(e):e instanceof se)}e.isSharedArrayBuffer=N;function P(e){return c(e)===`[object AsyncFunction]`}e.isAsyncFunction=P;function le(e){return c(e)===`[object Map Iterator]`}e.isMapIterator=le;function ue(e){return c(e)===`[object Set Iterator]`}e.isSetIterator=ue;function de(e){return c(e)===`[object Generator]`}e.isGeneratorObject=de;function fe(e){return c(e)===`[object WebAssembly.Module]`}e.isWebAssemblyCompiledModule=fe;function pe(e){return m(e,l)}e.isNumberObject=pe;function me(e){return m(e,u)}e.isStringObject=me;function he(e){return m(e,d)}e.isBooleanObject=he;function ge(e){return o&&m(e,f)}e.isBigIntObject=ge;function _e(e){return s&&m(e,p)}e.isSymbolObject=_e;function ve(e){return pe(e)||me(e)||he(e)||ge(e)||_e(e)}e.isBoxedPrimitive=ve;function F(e){return typeof Uint8Array<`u`&&(ae(e)||N(e))}e.isAnyArrayBuffer=F,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})})),Ze=a(((e,t)=>{t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}})),Qe=a((e=>{var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;e.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(` `)}for(var r=1,i=arguments,a=i.length,s=String(e).replace(n,function(e){if(e===`%%`)return`%`;if(r>=a)return e;switch(e){case`%s`:return String(i[r++]);case`%d`:return Number(i[r++]);case`%j`:try{return JSON.stringify(i[r++])}catch{return`[Circular]`}default:return e}}),c=i[r];r<a;c=i[++r])v(c)||!T(c)?s+=` `+c:s+=` `+o(c);return s},e.deprecate=function(t,n){if(typeof process<`u`&&process.noDeprecation===!0)return t;if(typeof process>`u`)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(process.throwDeprecation)throw Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),i=RegExp(`^`+a+`$`,`i`)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t])if(i.test(t)){var n=process.pid;r[t]=function(){var r=e.format.apply(e,arguments);console.error(`%s %d: %s`,t,n,r)}}else r[t]=function(){};return r[t]};function o(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}e.inspect=o,o.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]},o.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function s(e,t){var n=o.styles[t];return n?`\x1B[`+o.colors[n][0]+`m`+e+`\x1B[`+o.colors[n][1]+`m`:e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(r,t);return x(i)||(i=u(t,i,r)),i}var a=d(t,n);if(a)return a;var o=Object.keys(n),s=l(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),D(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(O(n)){var c=n.name?`: `+n.name:``;return t.stylize(`[Function`+c+`]`,`special`)}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),`regexp`);if(E(n))return t.stylize(Date.prototype.toString.call(n),`date`);if(D(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),O(n)&&(_=` [Function`+(n.name?`: `+n.name:``)+`]`),w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),D(n)&&(_=` `+f(n)),o.length===0&&(!v||n.length==0))return y[0]+_+y[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push(n);var b=v?p(t,n,r,s,o):o.map(function(e){return m(t,n,r,s,e,v)});return t.seen.pop(),h(b,_,y)}function d(e,t){if(C(t))return e.stylize(`undefined`,`undefined`);if(x(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(b(t))return e.stylize(``+t,`number`);if(_(t))return e.stylize(``+t,`boolean`);if(v(t))return e.stylize(`null`,`null`)}function f(e){return`[`+Error.prototype.toString.call(e)+`]`}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)A(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push(``);return i.forEach(function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))}),a}function m(e,t,n,r,i,a){var o,s,c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(c.get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),A(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=v(n)?u(e,c.value,null):u(e,c.value,n-1),s.indexOf(`
|
|
9
|
+
`)>-1&&(s=a?s.split(`
|
|
10
|
+
`).map(function(e){return` `+e}).join(`
|
|
11
|
+
`).slice(2):`
|
|
12
|
+
`+s.split(`
|
|
13
|
+
`).map(function(e){return` `+e}).join(`
|
|
14
|
+
`))):s=e.stylize(`[Circular]`,`special`)),C(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(``+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,`name`)):(o=o.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),o=e.stylize(o,`string`))}return o+`: `+s}function h(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf(`
|
|
15
|
+
`)>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1},0)>60?n[0]+(t===``?``:t+`
|
|
16
|
+
`)+` `+e.join(`,
|
|
17
|
+
`)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}e.types=Xe();function g(e){return Array.isArray(e)}e.isArray=g;function _(e){return typeof e==`boolean`}e.isBoolean=_;function v(e){return e===null}e.isNull=v;function y(e){return e==null}e.isNullOrUndefined=y;function b(e){return typeof e==`number`}e.isNumber=b;function x(e){return typeof e==`string`}e.isString=x;function S(e){return typeof e==`symbol`}e.isSymbol=S;function C(e){return e===void 0}e.isUndefined=C;function w(e){return T(e)&&k(e)===`[object RegExp]`}e.isRegExp=w,e.types.isRegExp=w;function T(e){return typeof e==`object`&&!!e}e.isObject=T;function E(e){return T(e)&&k(e)===`[object Date]`}e.isDate=E,e.types.isDate=E;function D(e){return T(e)&&(k(e)===`[object Error]`||e instanceof Error)}e.isError=D,e.types.isNativeError=D;function O(e){return typeof e==`function`}e.isFunction=O;function ee(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=ee,e.isBuffer=Ze();function k(e){return Object.prototype.toString.call(e)}function te(e){return e<10?`0`+e.toString(10):e.toString(10)}var ne=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function ie(){var e=new Date,t=[te(e.getHours()),te(e.getMinutes()),te(e.getSeconds())].join(`:`);return[e.getDate(),ne[e.getMonth()],t].join(` `)}e.log=function(){console.log(`%s - %s`,ie(),e.format.apply(e,arguments))},e.inherits=re(),e._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;e.promisify=function(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(j&&e[j]){var n=e[j];if(typeof n!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(n,j,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),j&&Object.defineProperty(n,j,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},e.promisify.custom=j;function ae(e,t){if(!e){var n=Error(`Promise was rejected with a falsy value`);n.reason=e,e=n}return t(e)}function M(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);function n(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if(typeof r!=`function`)throw TypeError(`The last argument must be of type Function`);var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){process.nextTick(a.bind(null,null,e))},function(e){process.nextTick(ae.bind(null,e,a))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}e.callbackify=M})),$e=a(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=A().Buffer,d=Qe().inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{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};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?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(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),et=a(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){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)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),tt=a(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),nt=a(((e,t)=>{var n=tt().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),rt=a(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),it=a(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){ue(t,e)}}var r;T.WritableState=C;var i={deprecate:rt()},a=ie(),o=A().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=et(),d=nt().getHighWaterMark,f=tt().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;re()(T,a);function S(){}function C(e,t,i){r||=at(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=at();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&oe(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,s,r,i,a);return c}function k(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function te(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),P(e,t))}function ne(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function j(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(ne(n),t)te(e,n,r,t,i);else{var a=se(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&oe(e,n),r?process.nextTick(ae,e,n,a,i):ae(e,n,a,i)}}function ae(e,t,n,r){n||M(e,t),t.pendingcb--,r(),P(e,t)}function M(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function oe(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,k(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(k(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||le(this,r,n),this},Object.defineProperty(T.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function se(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ce(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),P(e,t)})}function N(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(ce,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function P(e,t){var n=se(t);if(n&&(N(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function le(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function ue(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),at=a(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=dt(),i=it();re()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),ot=a(((e,t)=>{
|
|
18
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
19
|
+
var n=A(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),st=a((e=>{var t=ot().Buffer,n=t.isEncoding||function(e){switch(e=``+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 r(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}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.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};function o(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,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?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-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),ct=a(((e,t)=>{var n=tt().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),lt=a(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=ct(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),ut=a(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),dt=a(((e,t)=>{t.exports=E;var n;E.ReadableState=T,ee().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=ie(),a=A().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=Qe(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=$e(),f=et(),p=nt().getHighWaterMark,m=tt().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;re()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=at(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,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&&(y||=st().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=at(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ae(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):se(e,o)):O(e,o,t,!1);else r||(o.reading=!1,se(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),se(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=st().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var te=1073741824;function ne(e){return e>=te?e=te:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=ne(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?me(this):M(this),null;if(e=j(e,t),e===0&&t.ended)return t.length===0&&me(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t)));var i=e>0?pe(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&me(this)),i!==null&&this.emit(`data`,i),i};function ae(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,oe(e)))}}function M(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(oe,e))}function oe(e){var t=e._readableState;u(`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,fe(e)}function se(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(ce,e,t))}function ce(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=N(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ge(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function N(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,fe(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=ge(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?M(this):r.reading||process.nextTick(le,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(P,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(P,this),t};function P(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 le(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,ue(this,e)),e.paused=!1,this};function ue(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(de,e,t))}function de(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),fe(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function fe(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=lt()),b(this)}),Object.defineProperty(E.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=pe,Object.defineProperty(E.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function pe(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function me(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(he,t,e))}function he(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=ut()),x(E,e,t)});function ge(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),ft=a(((e,t)=>{t.exports=l;var n=tt().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=at();re()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.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&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),pt=a(((e,t)=>{t.exports=r;var n=ft();re()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),mt=a(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=tt().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=ct()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a<e.length-1;return l(i,o,a>0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),ht=a(((e,t)=>{t.exports=r;var n=ee().EventEmitter;re()(r,n),r.Readable=dt(),r.Writable=it(),r.Duplex=at(),r.Transform=ft(),r.PassThrough=pt(),r.finished=ct(),r.pipeline=mt(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}})),gt=a(((e,t)=>{let{Transform:n}=ht(),r=ne(),{ReadBuffer:i}=O(),a=D(),o=r(`qtdatastream:transform:read`),s=r(`qtdatastream:transform:write`),c=r.enabled(`qtdatastream:*`);t.exports={ReadTransform:class e extends n{constructor(){super(Object.assign({readableObjectMode:!0,writableObjectMode:!1})),this.packet_no=0,this.data_state={size:1/0,data:[],recvd:0}}static getsize(e){let t;if(e[0]&&e[0].length>=4)[t]=e;else{let n=0,r=0;for(;n<4&&r<e.length;)n+=e[r++].length;if(n<4)return 1/0;t=Buffer.concat(e.slice(0,r),n)}return t.readUInt32BE(0)}chunkify(){let t=[];for(;;){let n=this.data_state;if(n.size===1/0&&n.recvd>=4&&(n.size=e.getsize(n.data)),n.size<1/0&&n.size>67108864)throw o(`Packets should not exceed 64MB (received %d bytes)`,n.size),Error(`oversized packet detected`);if(this.emit(`progress`,n.recvd,n.size),n.size+4>n.recvd)return c&&o(`(%d/%d) Waiting for end of buffer`,n.recvd,n.size+4),t;let r=new i(Buffer.concat(n.data,n.recvd)),s;c&&o(`(%d/%d) Received full buffer`,n.recvd,n.size+4);try{s=a.QUInt.read(r)}catch(e){throw o(e),Error(`Error while fetching buffer size`)}c&&o(`buffer size : %d`,s);let l=a.QVariant.read(r);c&&o(`Received result: %O`,l),t.push(l);let u=r.remaining();if(u!==null)this.data_state={data:[u],recvd:u.length,size:1/0};else return this.data_state={size:1/0,data:[],recvd:0},t}}_transform(e,t,n){e!==null&&(this.data_state.data.push(e),this.data_state.recvd+=e.length);let r;try{r=this.chunkify()}catch(e){n(e);return}for(let e=0;e<r.length;e++)this.push(r[e]);n()}_flush(e){this.data_state&&this.data_state.recvd>0&&e(`stream ended in the middle of a packet`)}},WriteTransform:class e extends n{constructor(){super(Object.assign({readableObjectMode:!1,writableObjectMode:!0}))}static getBuffer(e){let t=a.QVariant.from(e).toBuffer(),n=a.QUInt.from(t.length).toBuffer();return Buffer.concat([n,t])}_transform(t,n,r){s(t),r(null,e.getBuffer(t))}}}})),_t=a(((e,t)=>{let n=ee(),r=ne(),i=gt(),a=r(`qtdatastream:socket`),o=!!process.env.QTDSDEBUG||r.enabled(`qtdatastream:*`);o&&!r.enabled(`qtdatastream:*`)&&r.enable(`qtdatastream:*`),t.exports={Socket:class extends n.EventEmitter{constructor(e){super(),this.socket=e,this.data_state=null,this.write_stream=new i.WriteTransform,this.read_stream=new i.ReadTransform,this.read_stream.on(`data`,e=>{process.nextTick(()=>this.emit(`data`,e))}),e&&this.setSocket(e)}write(e){this.write_stream.write(e)}detachSocket(){o&&a(`removing socket`);let{socket:e}=this;return this.write_stream.unpipe(e),e.unpipe(this.read_stream),this.socket=null,e}setSocket(e){this.socket!==null&&this.detachSocket(),o&&a(`updating socket`),this.socket=e,this.write_stream.pipe(this.socket).pipe(this.read_stream),this.socket.on(`error`,e=>{o&&a(`ERROR`,e),this.emit(`error`,e)}),this.socket.on(`close`,()=>{o&&a(`Connection closed`),this.emit(`close`)}),this.socket.on(`end`,()=>{o&&a(`END`),this.emit(`end`)})}updateSocket(e){return this.setSocket(e)}}}})),vt=a(((e,t)=>{let{QUserType:n,QMap:r}=D(),{deepMap:i}=T();function a(e){return function(t){e&&Object.defineProperty(t,`__usertype`,{enumerable:!1,configurable:!1,writable:!1,value:e}),t.prototype.export=function(){let e=typeof this._export==`function`?this._export.bind(this):()=>this,t=this.__serialize?this._mapping_out():e();return t=i(t,s),(this.constructor.__usertype?n.get(this.constructor.__usertype):r).from(t)},t.prototype._mapping_out=function(){let e={},t=Object.keys(this.__serialize);for(let n of t)Object.defineProperty(e,n,{enumerable:!0,configurable:!0,writable:!1,value:this.__serialize[n](this)});return e},t.from=function(e){return new this(e)}}}function o(e,t={}){return typeof t==`string`&&(t={in:t,out:t}),function(n,r,i){return`set`in i||(i.writable=!0),Object.hasOwn(n,`__serialize`)||Object.defineProperty(n,`__serialize`,{enumerable:!0,configurable:!1,writable:!1,value:{}}),Object.defineProperty(n.__serialize,t.out||r,{enumerable:!0,configurable:!1,writable:!1,value:t=>e.from(t[r])}),t.in!==void 0&&t.in!==r&&Object.defineProperty(n,t.in,{enumerable:!1,set:function(e){this[r]=e},get:function(){return this[r]}}),i}}function s(e){return e!=null&&typeof e.export==`function`?e.export():e}t.exports={Serializable:a,serialize:o}})),R=a(((e,t)=>{t.exports={util:T(),types:D(),buffer:O(),socket:_t(),transform:gt(),serialization:vt()}})),yt=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MudletRooms=e.MudletAreas=e.MudletLabels=void 0;let t=D();e.MudletLabels=class extends t.QClass{static read(e){let n=t.QInt.read(e),r={};for(let i=0;i<n;i++){let n=t.QInt.read(e),i=t.QInt.read(e);r[i]=[];for(let a=0;a<n;a++)r[i].push(t.QUserType.get(`MudletLabel`).read(e))}return r}toBuffer(){let e=this.__obj,n=[];n.push(t.QInt.from(Object.keys(e).length).toBuffer());for(let r of Object.keys(e)){let i=parseInt(r);n.push(t.QInt.from(e[i].length).toBuffer()),n.push(t.QInt.from(i).toBuffer());for(let r of e[i])n.push(t.QUserType.get(`MudletLabel`).from(r).toBuffer(!0))}return Buffer.concat(n)}},e.MudletAreas=class extends t.QClass{static read(e){let n={},r=t.QInt.read(e);for(let i=0;i<r;i++){let r=t.QInt.read(e);n[r]=t.QUserType.get(`MudletArea`).read(e)}return n}toBuffer(){let e=this.__obj,n=[];n.push(t.QInt.from(Object.keys(e).length).toBuffer());for(let[r,i]of Object.entries(e).sort((e,t)=>parseInt(e[0])-parseInt(t[0])))n.push(t.QInt.from(parseInt(r)).toBuffer()),n.push(t.QUserType.get(`MudletArea`).from(i).toBuffer(!0));return Buffer.concat(n)}},e.MudletRooms=class extends t.QClass{static read(e){let n={};for(;e.buffer.length>e.read_offset;){let r=t.QInt.read(e);n[r]=t.QUserType.get(`MudletRoom`).read(e)}return n}toBuffer(){let e=this.__obj,n=[];for(let[r,i]of Object.entries(e).reverse())n.push(t.QInt.from(parseInt(r)).toBuffer()),n.push(t.QUserType.get(`MudletRoom`).from(i).toBuffer(!0));return Buffer.concat(n)}}})),bt=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.QMultiMap=p,e.QMap=m,e.QList=h,e.QPair=g;let t=D(),n=1e3,r={},i={},a={},o={};function s(e){return typeof e==`number`||!e.qtype?t.QClass.types.get(e):e}function c(e,t){return parseInt(e[0])===-1?-1:parseInt(t[0])===-1?1:parseInt(e[0])-parseInt(t[0])}function l(e,n){return class extends t.QClass{static read(r){let i={},a=t.QUInt.read(r);for(let t=0;t<a;t++){let t=e.read(r),a=n.read(r);i[t]===void 0&&(i[t]=[]),i[t].push(a)}return i}toBuffer(){let r=[],i=this.__obj;if(i instanceof Map){r.push(t.QUInt.from(i.size).toBuffer());for(let[t,a]of i)r.push(e.from(t).toBuffer()),r.push(n.from(a).toBuffer())}else{let a=0;for(let[t,o]of Object.entries(i).reverse())for(let i of o)a++,r.push(e.from(t).toBuffer()),r.push(n.from(i).toBuffer());r.unshift(t.QUInt.from(a).toBuffer())}return Buffer.concat(r)}}}function u(e,n){return class extends t.QClass{static read(r){let i={},a=t.QUInt.read(r);for(let t=0;t<a;t++){let t=e.read(r);i[t]=n.read(r)}return i}toBuffer(){let r=[],i=this.__obj;if(i instanceof Map){r.push(t.QUInt.from(i.size).toBuffer());for(let[t,a]of i)r.push(e.from(t).toBuffer()),r.push(n.from(a).toBuffer())}else{let a=Object.entries(i);r.push(t.QUInt.from(a.length).toBuffer());for(let[t,i]of a.sort(c))r.push(e.from(t).toBuffer()),r.push(n.from(i).toBuffer())}return Buffer.concat(r)}}}function d(e){return class extends t.QClass{static read(n){let r=[],i=t.QUInt.read(n);for(let t=0;t<i;t++)r.push(e.read(n));return r}toBuffer(){let n=[],r=this.__obj;n.push(t.QUInt.from(r.length).toBuffer());for(let t of r)n.push(e.from(t).toBuffer());return Buffer.concat(n)}}}function f(e,n){return class extends t.QClass{static read(t){return[e.read(t),n.read(t)]}toBuffer(){let t=this.__obj;return Buffer.concat([e.from(t[0]).toBuffer(),n.from(t[1]).toBuffer()])}}}function p(e,r){let a=s(e),o=s(r),c=String(a),u=String(o);if(i[c]||(i[c]={}),!i[c][u]){let e=l(a,o),r=n++;(0,t.qtype)(r)(e),i[c][u]=r}return i[c][u]}function m(e,i,a){let o=s(e),c=s(i),l=String(o),d=String(c);if(r[l]||(r[l]={}),!r[l][d]){let e=u(o,c),i=n++;(0,t.qtype)(i)(e),r[l][d]=i}return r[l][d]}function h(e){let r=String(e);if(!a[r]){let i=d(e),o=n++;(0,t.qtype)(o)(i),a[r]=o}return a[r]}function g(e,r){let i=`${e.name}#${r.name}`;if(!o[i]){let a=f(e,r),s=n++;(0,t.qtype)(s)(a),o[i]=s}return o[i]}})),xt=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.QPixMap=e.QVector=e.QPoint=e.QFont=e.QString=e.QColor=void 0;let t=D();var n=class extends t.QClass{static read(e){return e.readInt8()}toBuffer(){let e=Buffer.alloc(1);return e.writeInt8(this.__obj,0),e}},r=class extends t.QClass{static read(e){return e.readUInt16BE()}toBuffer(){let e=Buffer.alloc(2);return e.writeUInt16BE(this.__obj),e}};e.QColor=class extends t.QClass{static read(e){return{spec:n.read(e),alpha:r.read(e)>>8,r:r.read(e)>>8,g:r.read(e)>>8,b:r.read(e)>>8,pad:r.read(e)>>8}}toBuffer(){let e=this.__obj,t=[];return t.push(n.from(e.spec).toBuffer(!1)),t.push(r.from(e.alpha*257).toBuffer(!1)),t.push(r.from(e.r*257).toBuffer(!1)),t.push(r.from(e.g*257).toBuffer(!1)),t.push(r.from(e.b*257).toBuffer(!1)),t.push(r.from((e.pad??0)*257).toBuffer(!1)),Buffer.concat(t)}};var i=class extends t.QString{toBuffer(){return this.__obj===``?t.QUInt.from(4294967295).toBuffer():super.toBuffer()}};e.QString=i,e.QFont=class extends t.QClass{static read(e){let a=i.read(e),o=i.read(e),s=t.QDouble.read(e),c=t.QInt.read(e),l=n.read(e),u=r.read(e);e.readInt8();let d=e.readInt8()>>>0,f=e.readInt8()>>>0,p=e.readUInt16BE(),m=e.readInt8()>>>0;return{family:a,style:o,pointSize:s,pixelSize:c,styleHint:l,styleStrategy:u,weight:d,fontBits:f,stretch:p,extendedFontBits:m,letterSpacing:t.QInt.read(e),wordSpacing:t.QInt.read(e),hintingPreference:e.readInt8()>>>0,capital:e.readInt8()>>>0,styleSetting:(f&1)!=0,underline:(f&2)!=0,overline:(f&64)!=0,strikeOut:(f&4)!=0,fixedPitch:(f&8)!=0,kerning:(f&16)!=0,styleOblique:(f&128)!=0,ignorePitch:(m&1)!=0,letterSpacingIsAbsolute:(m&2)!=0}}toBuffer(){let e=this.__obj,a=e=>{let t=Buffer.alloc(1);return t.writeInt8(e),t};return Buffer.concat([i.from(e.family).toBuffer(),i.from(e.style).toBuffer(),t.QDouble.from(e.pointSize).toBuffer(),t.QInt.from(e.pixelSize).toBuffer(),n.from(e.styleHint).toBuffer(),r.from(e.styleStrategy).toBuffer(),Buffer.alloc(1),a(e.weight),a(e.fontBits),(e=>{let t=Buffer.alloc(2);return t.writeUint16BE(e),t})(e.stretch),a(e.extendedFontBits),t.QInt.from(e.letterSpacing).toBuffer(),t.QInt.from(e.wordSpacing).toBuffer(),a(e.hintingPreference),a(e.capital)])}},e.QPoint=class extends t.QClass{static read(e){return[t.QDouble.read(e),t.QDouble.read(e)]}toBuffer(){let[e,n]=this.__obj;return Buffer.concat([t.QDouble.from(e).toBuffer(),t.QDouble.from(n).toBuffer()])}},e.QVector=class extends t.QClass{static read(e){return[t.QDouble.read(e),t.QDouble.read(e),t.QDouble.read(e)]}toBuffer(){let[e,n,r]=this.__obj;return Buffer.concat([t.QDouble.from(e).toBuffer(),t.QDouble.from(n).toBuffer(),t.QDouble.from(r).toBuffer()])}},e.QPixMap=class extends t.QClass{static read(e){t.QUInt.read(e);let n=e.read_offset;if(e.slice(4).toString(`hex`)!==`89504e47`)return e.read_offset-=4,``;for(;e.slice(4).toString(`hex`)!==`49454e44`;)e.read_offset-=3;let r=e.read_offset;e.read_offset=n;let i=r-n;return e.slice(i+4)}toBuffer(){let e=this.__obj;return Buffer.concat([t.QUInt.from(1).toBuffer(),e===``?Buffer.from(``):e])}}})),St=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MudletTypeIds=e.QUserType=void 0;let t=D();Object.defineProperty(e,`QUserType`,{enumerable:!0,get:function(){return t.QUserType}});let n=R(),r=yt(),i=bt(),a=xt(),{qtype:o,QInt:s,QDouble:c,QUInt:l,Types:u}=n.types;u.POINT=25,u.FONT=64,u.PIXMAP=65,u.COLOR=67,u.VECTOR=84;let d={LABELS:200,ROOMS:201,AREAS:202};e.MudletTypeIds=d,o(u.POINT)(a.QPoint),o(u.FONT)(a.QFont),o(u.PIXMAP)(a.QPixMap),o(u.COLOR)(a.QColor),o(u.VECTOR)(a.QVector),o(d.LABELS)(r.MudletLabels),o(d.ROOMS)(r.MudletRooms),o(d.AREAS)(r.MudletAreas),t.QUserType.register(`MudletArea`,[{rooms:(0,i.QList)(l)},{zLevels:(0,i.QList)(s)},{mAreaExits:(0,i.QMultiMap)(s,(0,i.QPair)(s,s))},{gridMode:u.BOOL},{max_x:u.INT},{max_y:u.INT},{max_z:u.INT},{min_x:u.INT},{min_y:u.INT},{min_z:u.INT},{span:u.VECTOR},{xmaxForZ:(0,i.QMap)(s,s)},{ymaxForZ:(0,i.QMap)(s,s)},{xminForZ:(0,i.QMap)(s,s)},{yminForZ:(0,i.QMap)(s,s)},{pos:u.VECTOR},{isZone:u.BOOL},{zoneAreaRef:u.INT},{userData:(0,i.QMap)(a.QString,a.QString)}]),t.QUserType.register(`MudletRoom`,[{area:u.INT},{x:u.INT},{y:u.INT},{z:u.INT},{north:u.INT},{northeast:u.INT},{east:u.INT},{southeast:u.INT},{south:u.INT},{southwest:u.INT},{west:u.INT},{northwest:u.INT},{up:u.INT},{down:u.INT},{in:u.INT},{out:u.INT},{environment:u.INT},{weight:u.INT},{name:u.STRING},{isLocked:u.BOOL},{rawSpecialExits:(0,i.QMultiMap)(l,a.QString)},{symbol:u.STRING},{userData:(0,i.QMap)(a.QString,a.QString)},{customLines:(0,i.QMap)(a.QString,(0,i.QList)(a.QPoint))},{customLinesArrow:(0,i.QMap)(a.QString,t.QBool)},{customLinesColor:(0,i.QMap)(a.QString,a.QColor)},{customLinesStyle:(0,i.QMap)(a.QString,l)},{exitLocks:(0,i.QList)(s)},{stubs:(0,i.QList)(s)},{exitWeights:(0,i.QMap)(a.QString,s)},{doors:(0,i.QMap)(a.QString,s)}]),t.QUserType.register(`MudletLabel`,[{id:u.INT},{pos:u.VECTOR},{dummy1:u.DOUBLE},{dummy2:u.DOUBLE},{size:(0,i.QPair)(c,c)},{text:u.STRING},{fgColor:u.COLOR},{bgColor:u.COLOR},{pixMap:u.PIXMAP},{noScaling:u.BOOL},{showOnTop:u.BOOL}]),t.QUserType.register(`MudletMap`,[{version:u.INT},{envColors:(0,i.QMap)(s,s)},{areaNames:(0,i.QMap)(s,a.QString,!0)},{mCustomEnvColors:(0,i.QMap)(s,a.QColor)},{mpRoomDbHashToRoomId:(0,i.QMap)(a.QString,l)},{mUserData:(0,i.QMap)(a.QString,a.QString)},{mapSymbolFont:u.FONT},{mapFontFudgeFactor:u.DOUBLE},{useOnlyMapFont:u.BOOL},{areas:d.AREAS},{mRoomIdHash:(0,i.QMap)(a.QString,s)},{labels:d.LABELS},{rooms:d.ROOMS}])})),Ct=o({default:()=>Tt,readFileSync:()=>Et,writeFileSync:()=>z}),wt,Tt,Et,z,Dt=i((()=>{wt=e=>()=>{throw Error(`fs.${e} is not available in the browser build of mudlet-map-editor`)},Tt={readFileSync:wt(`readFileSync`),writeFileSync:wt(`writeFileSync`)},Et=wt(`readFileSync`),z=wt(`writeFileSync`)})),Ot=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.readMapFromBuffer=p,e.writeMapToBuffer=m,e.readMap=h,e.writeMap=g;let t=R(),n=St(),{ReadBuffer:r}=t.buffer,i=[`north`,`northeast`,`east`,`southeast`,`south`,`southwest`,`west`,`northwest`,`up`,`down`,`in`,`out`],a={north:1,northeast:2,northwest:3,east:4,west:5,south:6,southeast:7,southwest:8,up:9,down:10,in:11,out:12};function o(e){for(let t in e.areas)Object.hasOwn(e.areas,t)&&(e.areas[t].mAreaExits={});for(let t in e.rooms){if(!Object.hasOwn(e.rooms,t))continue;let n=Number(t),r=e.rooms[n],o=e.areas[r.area];if(!o)continue;let s=[];for(let t of i){let n=r[t];if(!n||n<1)continue;let i=e.rooms[n];!i||i.area===r.area||s.push([n,a[t]])}let c=r.mSpecialExits??{},l=Object.keys(c).sort();for(let t of l){let n=c[t];if(!n||n<1)continue;let i=e.rooms[n];!i||i.area===r.area||s.push([n,13])}s.length>0&&(o.mAreaExits[n]=s)}}function s(e){for(let t in e.areas){if(!Object.hasOwn(e.areas,t))continue;let n=e.areas[t];n.xminForZ={},n.xmaxForZ={},n.yminForZ={},n.ymaxForZ={},n.zLevels=[];let r=!0;for(let t of n.rooms){let i=e.rooms[t];if(!i)continue;let a=i.x,o=-i.y,s=i.z;if(r){n.min_x=a,n.max_x=a,n.min_y=o,n.max_y=o,n.min_z=s,n.max_z=s,n.zLevels.push(s),n.xminForZ[s]=a,n.xmaxForZ[s]=a,n.yminForZ[s]=o,n.ymaxForZ[s]=o,r=!1;continue}n.zLevels.includes(s)||n.zLevels.push(s),(n.xminForZ[s]===void 0||a<n.xminForZ[s])&&(n.xminForZ[s]=a),a<n.min_x&&(n.min_x=a),(n.xmaxForZ[s]===void 0||a>n.xmaxForZ[s])&&(n.xmaxForZ[s]=a),a>n.max_x&&(n.max_x=a),(n.yminForZ[s]===void 0||o<n.yminForZ[s])&&(n.yminForZ[s]=o),o<n.min_y&&(n.min_y=o),o>n.max_y&&(n.max_y=o),(n.ymaxForZ[s]===void 0||o>n.ymaxForZ[s])&&(n.ymaxForZ[s]=o),s<n.min_z&&(n.min_z=s),s>n.max_z&&(n.max_z=s)}n.zLevels.length>1&&n.zLevels.sort((e,t)=>e-t)}}function l(e){for(let t in e.mpRoomDbHashToRoomId){if(!Object.hasOwn(e.mpRoomDbHashToRoomId,t))continue;let n=e.mpRoomDbHashToRoomId[t],r=e.rooms[n];r&&(r.hash=t)}}function u(e){e.mpRoomDbHashToRoomId={};for(let t in e.rooms){if(!Object.hasOwn(e.rooms,t))continue;let n=e.rooms[t].hash;if(typeof n!=`string`||n.length===0)continue;let r=Number(t);if(Object.hasOwn(e.mpRoomDbHashToRoomId,n)){let t=e.mpRoomDbHashToRoomId[n];console.warn(`[mudlet-map-binary-reader] duplicate room hash "${n}" on rooms ${t} and ${r}; last wins`)}e.mpRoomDbHashToRoomId[n]=r}}function d(e){for(let t in e.rooms){if(!Object.hasOwn(e.rooms,t))continue;let n=e.rooms[t];n.mSpecialExits={},n.mSpecialExitLocks=[];for(let e in n.rawSpecialExits)if(Object.hasOwn(n.rawSpecialExits,e))for(let t of n.rawSpecialExits[e])t.startsWith(`0`)?n.mSpecialExits[t.substring(1)]=parseInt(e):t.startsWith(`1`)?(n.mSpecialExits[t.substring(1)]=parseInt(e),n.mSpecialExitLocks.push(parseInt(e))):n.mSpecialExits[t]=parseInt(e)}}function f(e){for(let t in e.rooms){let n=e.rooms[t],r={};for(let e in n.mSpecialExits){if(!Object.hasOwn(n.mSpecialExits,e))continue;let t=n.mSpecialExits[e];r[t]===void 0&&(r[t]=[]);let i=n.mSpecialExitLocks.indexOf(t)>-1;r[t].push((i?`1`:`0`)+e)}n.rawSpecialExits=r}}function p(e){let t=new r(e),i=n.QUserType.read(t,`MudletMap`);return d(i),l(i),i}function m(e){return f(e),o(e),s(e),u(e),n.QUserType.get(`MudletMap`).from(e).toBuffer(!0)}function h(e){return p((Dt(),c(Ct)).readFileSync(e))}function g(e,t){let n=m(e);(Dt(),c(Ct)).writeFileSync(t,n)}})),kt=a(((e,t)=>{(function(){var n,r=`4.18.0`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,E=512,D=30,O=`...`,ee=800,k=16,te=1,ne=2,re=3,ie=1/0,A=9007199254740991,j=17976931348623157e292,ae=NaN,M=4294967295,oe=M-1,se=M>>>1,ce=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,E],[`partial`,S],[`partialRight`,C],[`rearg`,T]],N=`[object Arguments]`,P=`[object Array]`,le=`[object AsyncFunction]`,ue=`[object Boolean]`,de=`[object Date]`,fe=`[object DOMException]`,pe=`[object Error]`,me=`[object Function]`,he=`[object GeneratorFunction]`,ge=`[object Map]`,_e=`[object Number]`,ve=`[object Null]`,F=`[object Object]`,ye=`[object Promise]`,be=`[object Proxy]`,xe=`[object RegExp]`,Se=`[object Set]`,Ce=`[object String]`,we=`[object Symbol]`,Te=`[object Undefined]`,Ee=`[object WeakMap]`,I=`[object WeakSet]`,De=`[object ArrayBuffer]`,Oe=`[object DataView]`,L=`[object Float32Array]`,ke=`[object Float64Array]`,Ae=`[object Int8Array]`,je=`[object Int16Array]`,Me=`[object Int32Array]`,Ne=`[object Uint8Array]`,Pe=`[object Uint8ClampedArray]`,Fe=`[object Uint16Array]`,Ie=`[object Uint32Array]`,Le=/\b__p \+= '';/g,Re=/\b(__p \+=) '' \+/g,ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Be=/&(?:amp|lt|gt|quot|#39);/g,Ve=/[&<>"']/g,He=RegExp(Be.source),Ue=RegExp(Ve.source),We=/<%-([\s\S]+?)%>/g,Ge=/<%([\s\S]+?)%>/g,Ke=/<%=([\s\S]+?)%>/g,qe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Je=/^\w*$/,Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xe=/[\\^$.*+?()[\]{}|]/g,Ze=RegExp(Xe.source),Qe=/^\s+/,$e=/\s/,et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tt=/\{\n\/\* \[wrapped with (.+)\] \*/,nt=/,? & /,rt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,it=/[()=,{}\[\]\/\s]/,at=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,st=/\w*$/,ct=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,dt=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,pt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,gt=`\\ud800-\\udfff`,_t=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,vt=`\\u2700-\\u27bf`,R=`a-z\\xdf-\\xf6\\xf8-\\xff`,yt=`\\xac\\xb1\\xd7\\xf7`,bt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,xt=`\\u2000-\\u206f`,St=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Ct=`A-Z\\xc0-\\xd6\\xd8-\\xde`,wt=`\\ufe0e\\ufe0f`,Tt=yt+bt+xt+St,Et=`['’]`,z=`[`+gt+`]`,Dt=`[`+Tt+`]`,Ot=`[`+_t+`]`,kt=`\\d+`,At=`[`+vt+`]`,jt=`[`+R+`]`,Mt=`[^`+gt+Tt+kt+vt+R+Ct+`]`,Nt=`\\ud83c[\\udffb-\\udfff]`,Pt=`(?:`+Ot+`|`+Nt+`)`,Ft=`[^`+gt+`]`,It=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Lt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Rt=`[`+Ct+`]`,zt=`\\u200d`,Bt=`(?:`+jt+`|`+Mt+`)`,Vt=`(?:`+Rt+`|`+Mt+`)`,Ht=`(?:`+Et+`(?:d|ll|m|re|s|t|ve))?`,Ut=`(?:`+Et+`(?:D|LL|M|RE|S|T|VE))?`,Wt=Pt+`?`,Gt=`[`+wt+`]?`,Kt=`(?:`+zt+`(?:`+[Ft,It,Lt].join(`|`)+`)`+Gt+Wt+`)*`,qt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Jt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Yt=Gt+Wt+Kt,Xt=`(?:`+[At,It,Lt].join(`|`)+`)`+Yt,Zt=`(?:`+[Ft+Ot+`?`,Ot,It,Lt,z].join(`|`)+`)`,Qt=RegExp(Et,`g`),$t=RegExp(Ot,`g`),en=RegExp(Nt+`(?=`+Nt+`)|`+Zt+Yt,`g`),tn=RegExp([Rt+`?`+jt+`+`+Ht+`(?=`+[Dt,Rt,`$`].join(`|`)+`)`,Vt+`+`+Ut+`(?=`+[Dt,Rt+Bt,`$`].join(`|`)+`)`,Rt+`?`+Bt+`+`+Ht,Rt+`+`+Ut,Jt,qt,kt,Xt].join(`|`),`g`),nn=RegExp(`[`+zt+gt+_t+wt+`]`),B=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rn=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),an=-1,V={};V[L]=V[ke]=V[Ae]=V[je]=V[Me]=V[Ne]=V[Pe]=V[Fe]=V[Ie]=!0,V[N]=V[P]=V[De]=V[ue]=V[Oe]=V[de]=V[pe]=V[me]=V[ge]=V[_e]=V[F]=V[xe]=V[Se]=V[Ce]=V[Ee]=!1;var H={};H[N]=H[P]=H[De]=H[Oe]=H[ue]=H[de]=H[L]=H[ke]=H[Ae]=H[je]=H[Me]=H[ge]=H[_e]=H[F]=H[xe]=H[Se]=H[Ce]=H[we]=H[Ne]=H[Pe]=H[Fe]=H[Ie]=!0,H[pe]=H[me]=H[Ee]=!1;var on={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},sn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},cn={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},ln={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},un=parseFloat,dn=parseInt,fn=typeof global==`object`&&global&&global.Object===Object&&global,pn=typeof self==`object`&&self&&self.Object===Object&&self,mn=fn||pn||Function(`return this`)(),hn=typeof e==`object`&&e&&!e.nodeType&&e,gn=hn&&typeof t==`object`&&t&&!t.nodeType&&t,_n=gn&&gn.exports===hn,vn=_n&&fn.process,yn=function(){try{return gn&&gn.require&&gn.require(`util`).types||vn&&vn.binding&&vn.binding(`util`)}catch{}}(),bn=yn&&yn.isArrayBuffer,xn=yn&&yn.isDate,Sn=yn&&yn.isMap,Cn=yn&&yn.isRegExp,wn=yn&&yn.isSet,Tn=yn&&yn.isTypedArray;function En(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function On(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function kn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function An(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function jn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Mn(e,t){return!!(e!=null&&e.length)&&Un(e,t,0)>-1}function Nn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function U(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Fn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function In(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ln(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Rn=qn(`length`);function zn(e){return e.split(``)}function Bn(e){return e.match(rt)||[]}function Vn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Hn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Un(e,t,n){return t===t?yr(e,t,n):Hn(e,Gn,n)}function Wn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Gn(e){return e!==e}function Kn(e,t){var n=e==null?0:e.length;return n?Zn(e,t)/n:ae}function qn(e){return function(t){return t==null?n:t[e]}}function Jn(e){return function(t){return e==null?n:e[t]}}function Yn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Xn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Zn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Qn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $n(e,t){return U(t,function(t){return[t,e[t]]})}function er(e){return e&&e.slice(0,Cr(e)+1).replace(Qe,``)}function tr(e){return function(t){return e(t)}}function nr(e,t){return U(t,function(t){return e[t]})}function rr(e,t){return e.has(t)}function ir(e,t){for(var n=-1,r=e.length;++n<r&&Un(t,e[n],0)>-1;);return n}function ar(e,t){for(var n=e.length;n--&&Un(t,e[n],0)>-1;);return n}function or(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var sr=Jn(on),cr=Jn(sn);function lr(e){return`\\`+ln[e]}function ur(e,t){return e==null?n:e[t]}function dr(e){return nn.test(e)}function fr(e){return B.test(e)}function pr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function mr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function hr(e,t){return function(n){return e(t(n))}}function gr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function _r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function vr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function yr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function br(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function xr(e){return dr(e)?Tr(e):Rn(e)}function Sr(e){return dr(e)?Er(e):zn(e)}function Cr(e){for(var t=e.length;t--&&$e.test(e.charAt(t)););return t}var wr=Jn(cn);function Tr(e){for(var t=en.lastIndex=0;en.test(e);)++t;return t}function Er(e){return e.match(en)||[]}function Dr(e){return e.match(tn)||[]}var Or=(function e(t){t=t==null?mn:Or.defaults(mn.Object(),t,Or.pick(mn,rn));var $e=t.Array,rt=t.Date,gt=t.Error,_t=t.Function,vt=t.Math,R=t.Object,yt=t.RegExp,bt=t.String,xt=t.TypeError,St=$e.prototype,Ct=_t.prototype,wt=R.prototype,Tt=t[`__core-js_shared__`],Et=Ct.toString,z=wt.hasOwnProperty,Dt=0,Ot=function(){var e=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),kt=wt.toString,At=Et.call(R),jt=mn._,Mt=yt(`^`+Et.call(z).replace(Xe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Nt=_n?t.Buffer:n,Pt=t.Symbol,Ft=t.Uint8Array,It=Nt?Nt.allocUnsafe:n,Lt=hr(R.getPrototypeOf,R),Rt=R.create,zt=wt.propertyIsEnumerable,Bt=St.splice,Vt=Pt?Pt.isConcatSpreadable:n,Ht=Pt?Pt.iterator:n,Ut=Pt?Pt.toStringTag:n,Wt=function(){try{var e=es(R,`defineProperty`);return e({},``,{}),e}catch{}}(),Gt=t.clearTimeout!==mn.clearTimeout&&t.clearTimeout,Kt=rt&&rt.now!==mn.Date.now&&rt.now,qt=t.setTimeout!==mn.setTimeout&&t.setTimeout,Jt=vt.ceil,Yt=vt.floor,Xt=R.getOwnPropertySymbols,Zt=Nt?Nt.isBuffer:n,en=t.isFinite,tn=St.join,nn=hr(R.keys,R),B=vt.max,on=vt.min,sn=rt.now,cn=t.parseInt,ln=vt.random,fn=St.reverse,pn=es(t,`DataView`),hn=es(t,`Map`),gn=es(t,`Promise`),vn=es(t,`Set`),yn=es(t,`WeakMap`),Rn=es(R,`create`),zn=yn&&new yn,Jn={},yr=zs(pn),Tr=zs(hn),Er=zs(gn),kr=zs(vn),Ar=zs(yn),jr=Pt?Pt.prototype:n,Mr=jr?jr.valueOf:n,Nr=jr?jr.toString:n;function W(e){if(Z(e)&&!J(e)&&!(e instanceof G)){if(e instanceof Ir)return e;if(z.call(e,`__wrapped__`))return Vs(e)}return new Ir(e)}var Pr=function(){function e(){}return function(t){if(!X(t))return{};if(Rt)return Rt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fr(){}function Ir(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}W.templateSettings={escape:We,evaluate:Ge,interpolate:Ke,variable:``,imports:{_:W}},W.prototype=Fr.prototype,W.prototype.constructor=W,Ir.prototype=Pr(Fr.prototype),Ir.prototype.constructor=Ir;function G(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function Lr(){var e=new G(this.__wrapped__);return e.__actions__=fo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=fo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=fo(this.__views__),e}function Rr(){if(this.__filtered__){var e=new G(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function zr(){var e=this.__wrapped__.value(),t=this.__dir__,n=J(e),r=t<0,i=n?e.length:0,a=as(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=on(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Ka(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==ne)g=b;else if(!b){if(y==te)continue outer;break outer}}m[f++]=g}return m}G.prototype=Pr(Fr.prototype),G.prototype.constructor=G;function Br(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vr(){this.__data__=Rn?Rn(null):{},this.size=0}function Hr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Ur(e){var t=this.__data__;if(Rn){var r=t[e];return r===l?n:r}return z.call(t,e)?t[e]:n}function Wr(e){var t=this.__data__;return Rn?t[e]!==n:z.call(t,e)}function Gr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Rn&&t===n?l:t,this}Br.prototype.clear=Vr,Br.prototype.delete=Hr,Br.prototype.get=Ur,Br.prototype.has=Wr,Br.prototype.set=Gr;function Kr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qr(){this.__data__=[],this.size=0}function Jr(e){var t=this.__data__,n=yi(t,e);return n<0?!1:(n==t.length-1?t.pop():Bt.call(t,n,1),--this.size,!0)}function Yr(e){var t=this.__data__,r=yi(t,e);return r<0?n:t[r][1]}function Xr(e){return yi(this.__data__,e)>-1}function Zr(e,t){var n=this.__data__,r=yi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Kr.prototype.clear=qr,Kr.prototype.delete=Jr,Kr.prototype.get=Yr,Kr.prototype.has=Xr,Kr.prototype.set=Zr;function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $r(){this.size=0,this.__data__={hash:new Br,map:new(hn||Kr),string:new Br}}function ei(e){var t=Qo(this,e).delete(e);return this.size-=+!!t,t}function ti(e){return Qo(this,e).get(e)}function ni(e){return Qo(this,e).has(e)}function ri(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Qr.prototype.clear=$r,Qr.prototype.delete=ei,Qr.prototype.get=ti,Qr.prototype.has=ni,Qr.prototype.set=ri;function ii(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Qr;++t<n;)this.add(e[t])}function ai(e){return this.__data__.set(e,l),this}function oi(e){return this.__data__.has(e)}ii.prototype.add=ii.prototype.push=ai,ii.prototype.has=oi;function si(e){var t=this.__data__=new Kr(e);this.size=t.size}function ci(){this.__data__=new Kr,this.size=0}function li(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ui(e){return this.__data__.get(e)}function di(e){return this.__data__.has(e)}function fi(e,t){var n=this.__data__;if(n instanceof Kr){var r=n.__data__;if(!hn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qr(r)}return n.set(e,t),this.size=n.size,this}si.prototype.clear=ci,si.prototype.delete=li,si.prototype.get=ui,si.prototype.has=di,si.prototype.set=fi;function pi(e,t){var n=J(e),r=!n&&mu(e),i=!n&&!r&&vu(e),a=!n&&!r&&!i&&Uu(e),o=n||r||i||a,s=o?Qn(e.length,bt):[],c=s.length;for(var l in e)(t||z.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||ps(l,c)))&&s.push(l);return s}function mi(e){var t=e.length;return t?e[Ea(0,t-1)]:n}function hi(e,t){return Is(fo(e),Ti(t,0,e.length))}function gi(e){return Is(fo(e))}function _i(e,t,r){(r!==n&&!du(e[t],r)||r===n&&!(t in e))&&Ci(e,t,r)}function vi(e,t,r){var i=e[t];(!(z.call(e,t)&&du(i,r))||r===n&&!(t in e))&&Ci(e,t,r)}function yi(e,t){for(var n=e.length;n--;)if(du(e[n][0],t))return n;return-1}function bi(e,t,n,r){return ji(e,function(e,i,a){t(r,e,n(e),a)}),r}function xi(e,t){return e&&po(t,Cd(t),e)}function Si(e,t){return e&&po(t,wd(t),e)}function Ci(e,t,n){t==`__proto__`&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function wi(e,t){for(var r=-1,i=t.length,a=$e(i),o=e==null;++r<i;)a[r]=o?n:_d(e,t[r]);return a}function Ti(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ei(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!X(e))return e;var d=J(e);if(d){if(s=cs(e),!c)return fo(e,s)}else{var h=is(e),g=h==me||h==he;if(vu(e))return to(e,c);if(h==F||h==N||g&&!a){if(s=l||g?{}:ls(e),!c)return l?ho(e,Si(s,e)):mo(e,xi(s,e))}else{if(!H[h])return a?e:{};s=us(e,h,c)}}o||=new si;var _=o.get(e);if(_)return _;o.set(e,s),Bu(e)?e.forEach(function(n){s.add(Ei(n,t,r,n,e,o))}):ku(e)&&e.forEach(function(n,i){s.set(i,Ei(n,t,r,i,e,o))});var v=d?n:(u?l?Jo:qo:l?wd:Cd)(e);return On(v||e,function(n,i){v&&(i=n,n=e[i]),vi(s,i,Ei(n,t,r,i,e,o))}),s}function Di(e){var t=Cd(e);return function(n){return Oi(n,e,t)}}function Oi(e,t,r){var i=r.length;if(e==null)return!i;for(e=R(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ki(e,t,r){if(typeof e!=`function`)throw new xt(o);return Ms(function(){e.apply(n,r)},t)}function Ai(e,t,n,r){var a=-1,o=Mn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=U(t,tr(n))),r?(o=Nn,s=!1):t.length>=i&&(o=rr,s=!1,t=new ii(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var ji=vo(Bi),Mi=vo(Vi,!0);function Ni(e,t){var n=!0;return ji(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Pi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Hu(s):r(s,c)))var c=s,l=o}return l}function Fi(e,t,r,i){var a=e.length;for(r=Q(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Q(i),i<0&&(i+=a),i=r>i?0:Zu(i);r<i;)e[r++]=t;return e}function Ii(e,t){var n=[];return ji(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Li(e,t,n,r,i){var a=-1,o=e.length;for(n||=fs,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Li(s,t-1,n,r,i):Pn(i,s):r||(i[i.length]=s)}return i}var Ri=yo(),zi=yo(!0);function Bi(e,t){return e&&Ri(e,t,Cd)}function Vi(e,t){return e&&zi(e,t,Cd)}function Hi(e,t){return jn(t,function(t){return Eu(e[t])})}function Ui(e,t){t=Za(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Rs(t[r++])];return r&&r==i?e:n}function Wi(e,t,n){var r=t(e);return J(e)?r:Pn(r,n(e))}function Gi(e){return e==null?e===n?Te:ve:Ut&&Ut in R(e)?ts(e):Es(e)}function Ki(e,t){return e>t}function qi(e,t){return e!=null&&z.call(e,t)}function Ji(e,t){return e!=null&&t in R(e)}function Yi(e,t,n){return e>=on(t,n)&&e<B(t,n)}function Xi(e,t,r){for(var i=r?Nn:Mn,a=e[0].length,o=e.length,s=o,c=$e(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=U(d,tr(t))),l=on(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new ii(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?rr(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?rr(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Zi(e,t,n,r){return Bi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Qi(e,t,r){t=Za(t,e),e=Os(e,t);var i=e==null?e:e[Rs(fc(t))];return i==null?n:En(i,e,r)}function $i(e){return Z(e)&&Gi(e)==N}function ea(e){return Z(e)&&Gi(e)==De}function ta(e){return Z(e)&&Gi(e)==de}function na(e,t,n,r,i){return e===t?!0:e==null||t==null||!Z(e)&&!Z(t)?e!==e&&t!==t:ra(e,t,n,r,na,i)}function ra(e,t,n,r,i,a){var o=J(e),s=J(t),c=o?P:is(e),l=s?P:is(t);c=c==N?F:c,l=l==N?F:l;var u=c==F,d=l==F,f=c==l;if(f&&vu(e)){if(!vu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new si,o||Uu(e)?Uo(e,t,n,r,i,a):Wo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&z.call(e,`__wrapped__`),m=d&&z.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new si,i(g,_,n,r,a)}}return f?(a||=new si,Go(e,t,n,r,i,a)):!1}function ia(e){return Z(e)&&is(e)==ge}function aa(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=R(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new si;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?na(d,u,h|g,i,f):p))return!1}}return!0}function oa(e){return!X(e)||vs(e)?!1:(Eu(e)?Mt:ut).test(zs(e))}function sa(e){return Z(e)&&Gi(e)==xe}function ca(e){return Z(e)&&is(e)==Se}function la(e){return Z(e)&&Ou(e.length)&&!!V[Gi(e)]}function ua(e){return typeof e==`function`?e:e==null?Mf:typeof e==`object`?J(e)?ga(e[0],e[1]):ha(e):Gf(e)}function da(e){if(!bs(e))return nn(e);var t=[];for(var n in R(e))z.call(e,n)&&n!=`constructor`&&t.push(n);return t}function fa(e){if(!X(e))return Ts(e);var t=bs(e),n=[];for(var r in e)r==`constructor`&&(t||!z.call(e,r))||n.push(r);return n}function pa(e,t){return e<t}function ma(e,t){var n=-1,r=gu(e)?$e(e.length):[];return ji(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function ha(e){var t=$o(e);return t.length==1&&t[0][2]?Ss(t[0][0],t[0][1]):function(n){return n===e||aa(n,e,t)}}function ga(e,t){return hs(e)&&xs(t)?Ss(Rs(e),t):function(r){var i=_d(r,e);return i===n&&i===t?yd(r,e):na(t,i,h|g)}}function _a(e,t,r,i,a){e!==t&&Ri(t,function(o,s){if(a||=new si,X(o))va(e,t,s,r,_a,i,a);else{var c=i?i(As(e,s),o,s+``,e,t,a):n;c===n&&(c=o),_i(e,s,c)}},wd)}function va(e,t,r,i,a,o,s){var c=As(e,r),l=As(t,r),u=s.get(l);if(u){_i(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=J(l),m=!p&&vu(l),h=!p&&!m&&Uu(l);d=l,p||m||h?J(c)?d=c:Y(c)?d=fo(c):m?(f=!1,d=to(l,!0)):h?(f=!1,d=oo(l,!0)):d=[]:Lu(l)||mu(l)?(d=c,mu(c)?d=$u(c):(!X(c)||Eu(c))&&(d=ls(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),_i(e,r,d)}function ya(e,t){var r=e.length;if(r)return t+=t<0?r:0,ps(t,r)?e[t]:n}function ba(e,t,n){t=t.length?U(t,function(e){return J(e)?function(t){return Ui(t,e.length===1?e[0]:e)}:e}):[Mf];var r=-1;return t=U(t,tr(q())),Xn(ma(e,function(e,n,i){return{criteria:U(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return co(e,t,n)})}function xa(e,t){return Sa(e,t,function(t,n){return yd(e,n)})}function Sa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ui(e,o);n(s,o)&&ja(a,Za(o,e),s)}return a}function Ca(e){return function(t){return Ui(t,e)}}function wa(e,t,n,r){var i=r?Wn:Un,a=-1,o=t.length,s=e;for(e===t&&(t=fo(t)),n&&(s=U(e,tr(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Bt.call(s,c,1),Bt.call(e,c,1);return e}function Ta(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ps(i)?Bt.call(e,i,1):Ua(e,i)}}return e}function Ea(e,t){return e+Yt(ln()*(t-e+1))}function Da(e,t,n,r){for(var i=-1,a=B(Jt((t-e)/(n||1)),0),o=$e(a);a--;)o[r?a:++i]=e,e+=n;return o}function Oa(e,t){var n=``;if(!e||t<1||t>A)return n;do t%2&&(n+=e),t=Yt(t/2),t&&(e+=e);while(t);return n}function K(e,t){return Ns(Ds(e,t,Mf),e+``)}function ka(e){return mi(Hd(e))}function Aa(e,t){var n=Hd(e);return Is(n,Ti(t,0,n.length))}function ja(e,t,r,i){if(!X(e))return e;t=Za(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Rs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=X(d)?d:ps(t[a+1])?[]:{})}vi(c,l,u),c=c[l]}return e}var Ma=zn?function(e,t){return zn.set(e,t),e}:Mf,Na=Wt?function(e,t){return Wt(e,`toString`,{configurable:!0,enumerable:!1,value:Of(t),writable:!0})}:Mf;function Pa(e){return Is(Hd(e))}function Fa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=$e(i);++r<i;)a[r]=e[r+t];return a}function Ia(e,t){var n;return ji(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function La(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=se){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Hu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Ra(e,t,Mf,n)}function Ra(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Hu(t),u=t===n;a<o;){var d=Yt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Hu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return on(o,oe)}function za(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!du(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ba(e){return typeof e==`number`?e:Hu(e)?ae:+e}function Va(e){if(typeof e==`string`)return e;if(J(e))return U(e,Va)+``;if(Hu(e))return Nr?Nr.call(e):``;var t=e+``;return t==`0`&&1/e==-ie?`-0`:t}function Ha(e,t,n){var r=-1,a=Mn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=Nn;else if(o>=i){var u=t?null:Lo(e);if(u)return _r(u);s=!1,a=rr,l=new ii}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ua(e,t){t=Za(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Rs(t[n]);if(i===`__proto__`&&!z.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Os(e,t);return a==null||delete a[Rs(fc(t))]}function Wa(e,t,n,r){return ja(e,t,n(Ui(e,t)),r)}function Ga(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Fa(e,r?0:a,r?a+1:i):Fa(e,r?a+1:0,r?i:a)}function Ka(e,t){var n=e;return n instanceof G&&(n=n.value()),Fn(t,function(e,t){return t.func.apply(t.thisArg,Pn([e],t.args))},n)}function qa(e,t,n){var r=e.length;if(r<2)return r?Ha(e[0]):[];for(var i=-1,a=$e(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ai(a[i]||o,e[s],t,n));return Ha(Li(a,1),t,n)}function Ja(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ya(e){return Y(e)?e:[]}function Xa(e){return typeof e==`function`?e:Mf}function Za(e,t){return J(e)?e:hs(e,t)?[e]:Ls($(e))}var Qa=K;function $a(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Fa(e,t,r)}var eo=Gt||function(e){return mn.clearTimeout(e)};function to(e,t){if(t)return e.slice();var n=e.length,r=It?It(n):new e.constructor(n);return e.copy(r),r}function no(e){var t=new e.constructor(e.byteLength);return new Ft(t).set(new Ft(e)),t}function ro(e,t){var n=t?no(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function io(e){var t=new e.constructor(e.source,st.exec(e));return t.lastIndex=e.lastIndex,t}function ao(e){return Mr?R(Mr.call(e)):{}}function oo(e,t){var n=t?no(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function so(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Hu(e),s=t!==n,c=t===null,l=t===t,u=Hu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function co(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=so(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function lo(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=B(a-o,0),u=$e(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function uo(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=B(a-s,0),d=$e(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function fo(e,t){var n=-1,r=e.length;for(t||=$e(r);++n<r;)t[n]=e[n];return t}function po(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?Ci(r,c,l):vi(r,c,l)}return r}function mo(e,t){return po(e,ns(e),t)}function ho(e,t){return po(e,rs(e),t)}function go(e,t){return function(n,r){var i=J(n)?Dn:bi,a=t?t():{};return i(n,e,q(r,2),a)}}function _o(e){return K(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&ms(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=R(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function vo(e,t){return function(n,r){if(n==null)return n;if(!gu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=R(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function yo(e){return function(t,n,r){for(var i=-1,a=R(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function bo(e,t,n){var r=t&_,i=Co(e);function a(){return(this&&this!==mn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function xo(e){return function(t){t=$(t);var r=dr(t)?Sr(t):n,i=r?r[0]:t.charAt(0),a=r?$a(r,1).join(``):t.slice(1);return i[e]()+a}}function So(e){return function(t){return Fn(Cf(Yd(t).replace(Qt,``)),e,``)}}function Co(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pr(e.prototype),r=e.apply(n,t);return X(r)?r:n}}function wo(e,t,r){var i=Co(e);function a(){for(var o=arguments.length,s=$e(o),c=o,l=Zo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:gr(s,l);return o-=u.length,o<r?Fo(e,t,Do,a.placeholder,n,s,u,n,n,r-o):En(this&&this!==mn&&this instanceof a?i:e,this,s)}return a}function To(e){return function(t,r,i){var a=R(t);if(!gu(t)){var o=q(r,3);t=Cd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function Eo(e){return Ko(function(t){var r=t.length,i=r,a=Ir.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new xt(o);if(a&&!c&&Xo(s)==`wrapper`)var c=new Ir([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=Xo(s),u=l==`wrapper`?Yo(s):n;c=u&&_s(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[Xo(u[0])].apply(c,u[3]):s.length==1&&_s(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&J(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function Do(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&E,g=p?n:Co(e);function y(){for(var n=arguments.length,_=$e(n),v=n;v--;)_[v]=arguments[v];if(m)var b=Zo(y),x=or(_,b);if(i&&(_=lo(_,i,a,m)),o&&(_=uo(_,o,s,m)),n-=x,m&&n<u){var S=gr(_,b);return Fo(e,t,Do,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=ks(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==mn&&this instanceof y&&(w=g||Co(w)),w.apply(C,_)}return y}function Oo(e,t){return function(n,r){return Zi(n,e,t(r),{})}}function ko(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Va(r),i=Va(i)):(r=Ba(r),i=Ba(i)),a=e(r,i)}return a}}function Ao(e){return Ko(function(t){return t=U(t,tr(q())),K(function(n){var r=this;return e(t,function(e){return En(e,r,n)})})})}function jo(e,t){t=t===n?` `:Va(t);var r=t.length;if(r<2)return r?Oa(t,e):t;var i=Oa(t,Jt(e/xr(t)));return dr(t)?$a(Sr(i),0,e).join(``):i.slice(0,e)}function Mo(e,t,n,r){var i=t&_,a=Co(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=$e(l+s),d=this&&this!==mn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return En(d,i?n:this,u)}return o}function No(e){return function(t,r,i){return i&&typeof i!=`number`&&ms(t,r,i)&&(r=i=n),t=Xu(t),r===n?(r=t,t=0):r=Xu(r),i=i===n?t<r?1:-1:Xu(i),Da(t,r,i,e)}}function Po(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Qu(t),n=Qu(n)),e(t,n)}}function Fo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return _s(e)&&js(x,g),x.placeholder=i,Ps(x,e,t)}function Io(e){var t=vt[e];return function(e,n){if(e=Qu(e),n=n==null?0:on(Q(n),292),n&&en(e)){var r=($(e)+`e`).split(`e`);return r=($(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Lo=vn&&1/_r(new vn([,-0]))[1]==ie?function(e){return new vn(e)}:Bf;function Ro(e){return function(t){var n=is(t);return n==ge?mr(t):n==Se?vr(t):$n(t,e(t))}}function zo(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new xt(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:B(Q(c),0),l=l===n?l:Q(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:Yo(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&ws(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:B(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=bo(e,t,r);else g=t==b||t==x?wo(e,t,l):(t==S||t==(_|S))&&!a.length?Mo(e,t,r,i):Do.apply(n,h);return Ps((m?Ma:js)(g,h),e,t)}function Bo(e,t,r,i){return e===n||du(e,wt[r])&&!z.call(i,r)?t:e}function Vo(e,t,r,i,a,o){return X(e)&&X(t)&&(o.set(t,e),_a(e,t,n,Vo,o),o.delete(t)),e}function Ho(e){return Lu(e)?n:e}function Uo(e,t,r,i,a,o){var s=r&h,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&g?new ii:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!Ln(t,function(e,t){if(!rr(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Wo(e,t,n,r,i,a,o){switch(n){case Oe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case De:return!(e.byteLength!=t.byteLength||!a(new Ft(e),new Ft(t)));case ue:case de:case _e:return du(+e,+t);case pe:return e.name==t.name&&e.message==t.message;case xe:case Ce:return e==t+``;case ge:var s=mr;case Se:var c=r&h;if(s||=_r,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=Uo(s(e),s(t),r,i,a,o);return o.delete(e),u;case we:if(Mr)return Mr.call(e)==Mr.call(t)}return!1}function Go(e,t,r,i,a,o){var s=r&h,c=qo(e),l=c.length;if(l!=qo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:z.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function Ko(e){return Ns(Ds(e,n,tc),e+``)}function qo(e){return Wi(e,Cd,ns)}function Jo(e){return Wi(e,wd,rs)}var Yo=zn?function(e){return zn.get(e)}:Bf;function Xo(e){for(var t=e.name+``,n=Jn[t],r=z.call(Jn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Zo(e){return(z.call(W,`placeholder`)?W:e).placeholder}function q(){var e=W.iteratee||Nf;return e=e===Nf?ua:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var n=e.__data__;return gs(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function $o(e){for(var t=Cd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xs(i)]}return t}function es(e,t){var r=ur(e,t);return oa(r)?r:n}function ts(e){var t=z.call(e,Ut),r=e[Ut];try{e[Ut]=n;var i=!0}catch{}var a=kt.call(e);return i&&(t?e[Ut]=r:delete e[Ut]),a}var ns=Xt?function(e){return e==null?[]:(e=R(e),jn(Xt(e),function(t){return zt.call(e,t)}))}:Yf,rs=Xt?function(e){for(var t=[];e;)Pn(t,ns(e)),e=Lt(e);return t}:Yf,is=Gi;(pn&&is(new pn(new ArrayBuffer(1)))!=Oe||hn&&is(new hn)!=ge||gn&&is(gn.resolve())!=ye||vn&&is(new vn)!=Se||yn&&is(new yn)!=Ee)&&(is=function(e){var t=Gi(e),r=t==F?e.constructor:n,i=r?zs(r):``;if(i)switch(i){case yr:return Oe;case Tr:return ge;case Er:return ye;case kr:return Se;case Ar:return Ee}return t});function as(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=on(t,e+o);break;case`takeRight`:e=B(e,t-o);break}}return{start:e,end:t}}function os(e){var t=e.match(tt);return t?t[1].split(nt):[]}function ss(e,t,n){t=Za(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Rs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ou(i)&&ps(o,i)&&(J(e)||mu(e)))}function cs(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&z.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ls(e){return typeof e.constructor==`function`&&!bs(e)?Pr(Lt(e)):{}}function us(e,t,n){var r=e.constructor;switch(t){case De:return no(e);case ue:case de:return new r(+e);case Oe:return ro(e,n);case L:case ke:case Ae:case je:case Me:case Ne:case Pe:case Fe:case Ie:return oo(e,n);case ge:return new r;case _e:case Ce:return new r(e);case xe:return io(e);case Se:return new r;case we:return ao(e)}}function ds(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(et,`{
|
|
20
|
+
/* [wrapped with `+t+`] */
|
|
21
|
+
`)}function fs(e){return J(e)||mu(e)||!!(Vt&&e&&e[Vt])}function ps(e,t){var n=typeof e;return t??=A,!!t&&(n==`number`||n!=`symbol`&&ft.test(e))&&e>-1&&e%1==0&&e<t}function ms(e,t,n){if(!X(n))return!1;var r=typeof t;return(r==`number`?gu(n)&&ps(t,n.length):r==`string`&&t in n)?du(n[t],e):!1}function hs(e,t){if(J(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Hu(e)?!0:Je.test(e)||!qe.test(e)||t!=null&&e in R(t)}function gs(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function _s(e){var t=Xo(e),n=W[t];if(typeof n!=`function`||!(t in G.prototype))return!1;if(e===n)return!0;var r=Yo(n);return!!r&&e===r[0]}function vs(e){return!!Ot&&Ot in e}var ys=Tt?Eu:Xf;function bs(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||wt)}function xs(e){return e===e&&!X(e)}function Ss(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in R(r))}}function Cs(e){var t=ql(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function ws(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?lo(c,s,t[4]):s,e[4]=c?gr(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?uo(c,s,t[6]):s,e[6]=c?gr(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:on(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function Ts(e){var t=[];if(e!=null)for(var n in R(e))t.push(n);return t}function Es(e){return kt.call(e)}function Ds(e,t,r){return t=B(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=B(n.length-t,0),o=$e(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=$e(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),En(e,this,s)}}function Os(e,t){return t.length<2?e:Ui(e,Fa(t,0,-1))}function ks(e,t){for(var r=e.length,i=on(t.length,r),a=fo(e);i--;){var o=t[i];e[i]=ps(o,r)?a[o]:n}return e}function As(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var js=Fs(Ma),Ms=qt||function(e,t){return mn.setTimeout(e,t)},Ns=Fs(Na);function Ps(e,t,n){var r=t+``;return Ns(e,ds(r,Bs(os(r),n)))}function Fs(e){var t=0,r=0;return function(){var i=sn(),a=k-(i-r);if(r=i,a>0){if(++t>=ee)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Is(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Ea(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Ls=Cs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ye,function(e,n,r,i){t.push(r?i.replace(at,`$1`):n||e)}),t});function Rs(e){if(typeof e==`string`||Hu(e))return e;var t=e+``;return t==`0`&&1/e==-ie?`-0`:t}function zs(e){if(e!=null){try{return Et.call(e)}catch{}try{return e+``}catch{}}return``}function Bs(e,t){return On(ce,function(n){var r=`_.`+n[0];t&n[1]&&!Mn(e,r)&&e.push(r)}),e.sort()}function Vs(e){if(e instanceof G)return e.clone();var t=new Ir(e.__wrapped__,e.__chain__);return t.__actions__=fo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Hs(e,t,r){t=(r?ms(e,t,r):t===n)?1:B(Q(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=$e(Jt(i/t));a<i;)s[o++]=Fa(e,a,a+=t);return s}function Us(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ws(){var e=arguments.length;if(!e)return[];for(var t=$e(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Pn(J(n)?fo(n):[n],Li(t,1))}var Gs=K(function(e,t){return Y(e)?Ai(e,Li(t,1,Y,!0)):[]}),Ks=K(function(e,t){var r=fc(t);return Y(r)&&(r=n),Y(e)?Ai(e,Li(t,1,Y,!0),q(r,2)):[]}),qs=K(function(e,t){var r=fc(t);return Y(r)&&(r=n),Y(e)?Ai(e,Li(t,1,Y,!0),n,r):[]});function Js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),Fa(e,t<0?0:t,i)):[]}function Ys(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),t=i-t,Fa(e,0,t<0?0:t)):[]}function Xs(e,t){return e&&e.length?Ga(e,q(t,3),!0,!0):[]}function Zs(e,t){return e&&e.length?Ga(e,q(t,3),!0):[]}function Qs(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ms(e,t,n)&&(n=0,r=i),Fi(e,t,n,r)):[]}function $s(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Q(n);return i<0&&(i=B(r+i,0)),Hn(e,q(t,3),i)}function ec(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Q(r),a=r<0?B(i+a,0):on(a,i-1)),Hn(e,q(t,3),a,!0)}function tc(e){return e!=null&&e.length?Li(e,1):[]}function nc(e){return e!=null&&e.length?Li(e,ie):[]}function rc(e,t){return e!=null&&e.length?(t=t===n?1:Q(t),Li(e,t)):[]}function ic(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Ci(r,i[0],i[1])}return r}function ac(e){return e&&e.length?e[0]:n}function oc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Q(n);return i<0&&(i=B(r+i,0)),Un(e,t,i)}function sc(e){return e!=null&&e.length?Fa(e,0,-1):[]}var cc=K(function(e){var t=U(e,Ya);return t.length&&t[0]===e[0]?Xi(t):[]}),lc=K(function(e){var t=fc(e),r=U(e,Ya);return t===fc(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Xi(r,q(t,2)):[]}),uc=K(function(e){var t=fc(e),r=U(e,Ya);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Xi(r,n,t):[]});function dc(e,t){return e==null?``:tn.call(e,t)}function fc(e){var t=e==null?0:e.length;return t?e[t-1]:n}function pc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Q(r),a=a<0?B(i+a,0):on(a,i-1)),t===t?br(e,t,a):Hn(e,Gn,a,!0)}function mc(e,t){return e&&e.length?ya(e,Q(t)):n}var hc=K(gc);function gc(e,t){return e&&e.length&&t&&t.length?wa(e,t):e}function _c(e,t,n){return e&&e.length&&t&&t.length?wa(e,t,q(n,2)):e}function vc(e,t,r){return e&&e.length&&t&&t.length?wa(e,t,n,r):e}var yc=Ko(function(e,t){var n=e==null?0:e.length,r=wi(e,t);return Ta(e,U(t,function(e){return ps(e,n)?+e:e}).sort(so)),r});function bc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=q(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Ta(e,i),n}function xc(e){return e==null?e:fn.call(e)}function Sc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&ms(e,t,r)?(t=0,r=i):(t=t==null?0:Q(t),r=r===n?i:Q(r)),Fa(e,t,r)):[]}function Cc(e,t){return La(e,t)}function wc(e,t,n){return Ra(e,t,q(n,2))}function Tc(e,t){var n=e==null?0:e.length;if(n){var r=La(e,t);if(r<n&&du(e[r],t))return r}return-1}function Ec(e,t){return La(e,t,!0)}function Dc(e,t,n){return Ra(e,t,q(n,2),!0)}function Oc(e,t){if(e!=null&&e.length){var n=La(e,t,!0)-1;if(du(e[n],t))return n}return-1}function kc(e){return e&&e.length?za(e):[]}function Ac(e,t){return e&&e.length?za(e,q(t,2)):[]}function jc(e){var t=e==null?0:e.length;return t?Fa(e,1,t):[]}function Mc(e,t,r){return e&&e.length?(t=r||t===n?1:Q(t),Fa(e,0,t<0?0:t)):[]}function Nc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),t=i-t,Fa(e,t<0?0:t,i)):[]}function Pc(e,t){return e&&e.length?Ga(e,q(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?Ga(e,q(t,3)):[]}var Ic=K(function(e){return Ha(Li(e,1,Y,!0))}),Lc=K(function(e){var t=fc(e);return Y(t)&&(t=n),Ha(Li(e,1,Y,!0),q(t,2))}),Rc=K(function(e){var t=fc(e);return t=typeof t==`function`?t:n,Ha(Li(e,1,Y,!0),n,t)});function zc(e){return e&&e.length?Ha(e):[]}function Bc(e,t){return e&&e.length?Ha(e,q(t,2)):[]}function Vc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ha(e,n,t):[]}function Hc(e){if(!(e&&e.length))return[];var t=0;return e=jn(e,function(e){if(Y(e))return t=B(e.length,t),!0}),Qn(t,function(t){return U(e,qn(t))})}function Uc(e,t){if(!(e&&e.length))return[];var r=Hc(e);return t==null?r:U(r,function(e){return En(t,n,e)})}var Wc=K(function(e,t){return Y(e)?Ai(e,t):[]}),Gc=K(function(e){return qa(jn(e,Y))}),Kc=K(function(e){var t=fc(e);return Y(t)&&(t=n),qa(jn(e,Y),q(t,2))}),qc=K(function(e){var t=fc(e);return t=typeof t==`function`?t:n,qa(jn(e,Y),n,t)}),Jc=K(Hc);function Yc(e,t){return Ja(e||[],t||[],vi)}function Xc(e,t){return Ja(e||[],t||[],ja)}var Zc=K(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Uc(e,r)});function Qc(e){var t=W(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function el(e,t){return t(e)}var tl=Ko(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return wi(t,e)};return t>1||this.__actions__.length||!(i instanceof G)||!ps(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:el,args:[a],thisArg:n}),new Ir(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function nl(){return Qc(this)}function rl(){return new Ir(this.value(),this.__chain__)}function il(){this.__values__===n&&(this.__values__=Yu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function al(){return this}function ol(e){for(var t,r=this;r instanceof Fr;){var i=Vs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function sl(){var e=this.__wrapped__;if(e instanceof G){var t=e;return this.__actions__.length&&(t=new G(this)),t=t.reverse(),t.__actions__.push({func:el,args:[xc],thisArg:n}),new Ir(t,this.__chain__)}return this.thru(xc)}function cl(){return Ka(this.__wrapped__,this.__actions__)}var ll=go(function(e,t,n){z.call(e,n)?++e[n]:Ci(e,n,1)});function ul(e,t,r){var i=J(e)?An:Ni;return r&&ms(e,t,r)&&(t=n),i(e,q(t,3))}function dl(e,t){return(J(e)?jn:Ii)(e,q(t,3))}var fl=To($s),pl=To(ec);function ml(e,t){return Li(Cl(e,t),1)}function hl(e,t){return Li(Cl(e,t),ie)}function gl(e,t,r){return r=r===n?1:Q(r),Li(Cl(e,t),r)}function _l(e,t){return(J(e)?On:ji)(e,q(t,3))}function vl(e,t){return(J(e)?kn:Mi)(e,q(t,3))}var yl=go(function(e,t,n){z.call(e,n)?e[n].push(t):Ci(e,n,[t])});function bl(e,t,n,r){e=gu(e)?e:Hd(e),n=n&&!r?Q(n):0;var i=e.length;return n<0&&(n=B(i+n,0)),Vu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Un(e,t,n)>-1}var xl=K(function(e,t,n){var r=-1,i=typeof t==`function`,a=gu(e)?$e(e.length):[];return ji(e,function(e){a[++r]=i?En(t,e,n):Qi(e,t,n)}),a}),Sl=go(function(e,t,n){Ci(e,n,t)});function Cl(e,t){return(J(e)?U:ma)(e,q(t,3))}function wl(e,t,r,i){return e==null?[]:(J(t)||(t=t==null?[]:[t]),r=i?n:r,J(r)||(r=r==null?[]:[r]),ba(e,t,r))}var Tl=go(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function El(e,t,n){var r=J(e)?Fn:Yn,i=arguments.length<3;return r(e,q(t,4),n,i,ji)}function Dl(e,t,n){var r=J(e)?In:Yn,i=arguments.length<3;return r(e,q(t,4),n,i,Mi)}function Ol(e,t){return(J(e)?jn:Ii)(e,Jl(q(t,3)))}function kl(e){return(J(e)?mi:ka)(e)}function Al(e,t,r){return t=(r?ms(e,t,r):t===n)?1:Q(t),(J(e)?hi:Aa)(e,t)}function jl(e){return(J(e)?gi:Pa)(e)}function Ml(e){if(e==null)return 0;if(gu(e))return Vu(e)?xr(e):e.length;var t=is(e);return t==ge||t==Se?e.size:da(e).length}function Nl(e,t,r){var i=J(e)?Ln:Ia;return r&&ms(e,t,r)&&(t=n),i(e,q(t,3))}var Pl=K(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ms(e,t[0],t[1])?t=[]:n>2&&ms(t[0],t[1],t[2])&&(t=[t[0]]),ba(e,Li(t,1),[])}),Fl=Kt||function(){return mn.Date.now()};function Il(e,t){if(typeof t!=`function`)throw new xt(o);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ll(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,zo(e,w,n,n,n,n,t)}function Rl(e,t){var r;if(typeof t!=`function`)throw new xt(o);return e=Q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var zl=K(function(e,t,n){var r=_;if(n.length){var i=gr(n,Zo(zl));r|=S}return zo(e,r,t,n,i)}),Bl=K(function(e,t,n){var r=_|v;if(n.length){var i=gr(n,Zo(Bl));r|=S}return zo(t,r,e,n,i)});function Vl(e,t,r){t=r?n:t;var i=zo(e,b,n,n,n,n,n,t);return i.placeholder=Vl.placeholder,i}function Hl(e,t,r){t=r?n:t;var i=zo(e,x,n,n,n,n,n,t);return i.placeholder=Hl.placeholder,i}function Ul(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new xt(o);t=Qu(t)||0,X(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?B(Qu(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?on(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Fl();if(v(e))return b(e);l=Ms(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&eo(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Fl())}function C(){var e=Fl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return eo(l),l=Ms(y,t),h(u)}return l===n&&(l=Ms(y,t)),c}return C.cancel=x,C.flush=S,C}var Wl=K(function(e,t){return ki(e,1,t)}),Gl=K(function(e,t,n){return ki(e,Qu(t)||0,n)});function Kl(e){return zo(e,E)}function ql(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new xt(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ql.Cache||Qr),n}ql.Cache=Qr;function Jl(e){if(typeof e!=`function`)throw new xt(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yl(e){return Rl(2,e)}var Xl=Qa(function(e,t){t=t.length==1&&J(t[0])?U(t[0],tr(q())):U(Li(t,1),tr(q()));var n=t.length;return K(function(r){for(var i=-1,a=on(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return En(e,this,r)})}),Zl=K(function(e,t){return zo(e,S,n,t,gr(t,Zo(Zl)))}),Ql=K(function(e,t){return zo(e,C,n,t,gr(t,Zo(Ql)))}),$l=Ko(function(e,t){return zo(e,T,n,n,n,t)});function eu(e,t){if(typeof e!=`function`)throw new xt(o);return t=t===n?t:Q(t),K(e,t)}function tu(e,t){if(typeof e!=`function`)throw new xt(o);return t=t==null?0:B(Q(t),0),K(function(n){var r=n[t],i=$a(n,0,t);return r&&Pn(i,r),En(e,this,i)})}function nu(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new xt(o);return X(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ul(e,t,{leading:r,maxWait:t,trailing:i})}function ru(e){return Ll(e,1)}function iu(e,t){return Zl(Xa(t),e)}function au(){if(!arguments.length)return[];var e=arguments[0];return J(e)?e:[e]}function ou(e){return Ei(e,m)}function su(e,t){return t=typeof t==`function`?t:n,Ei(e,m,t)}function cu(e){return Ei(e,f|m)}function lu(e,t){return t=typeof t==`function`?t:n,Ei(e,f|m,t)}function uu(e,t){return t==null||Oi(e,t,Cd(t))}function du(e,t){return e===t||e!==e&&t!==t}var fu=Po(Ki),pu=Po(function(e,t){return e>=t}),mu=$i(function(){return arguments}())?$i:function(e){return Z(e)&&z.call(e,`callee`)&&!zt.call(e,`callee`)},J=$e.isArray,hu=bn?tr(bn):ea;function gu(e){return e!=null&&Ou(e.length)&&!Eu(e)}function Y(e){return Z(e)&&gu(e)}function _u(e){return e===!0||e===!1||Z(e)&&Gi(e)==ue}var vu=Zt||Xf,yu=xn?tr(xn):ta;function bu(e){return Z(e)&&e.nodeType===1&&!Lu(e)}function xu(e){if(e==null)return!0;if(gu(e)&&(J(e)||typeof e==`string`||typeof e.splice==`function`||vu(e)||Uu(e)||mu(e)))return!e.length;var t=is(e);if(t==ge||t==Se)return!e.size;if(bs(e))return!da(e).length;for(var n in e)if(z.call(e,n))return!1;return!0}function Su(e,t){return na(e,t)}function Cu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?na(e,t,n,r):!!i}function wu(e){if(!Z(e))return!1;var t=Gi(e);return t==pe||t==fe||typeof e.message==`string`&&typeof e.name==`string`&&!Lu(e)}function Tu(e){return typeof e==`number`&&en(e)}function Eu(e){if(!X(e))return!1;var t=Gi(e);return t==me||t==he||t==le||t==be}function Du(e){return typeof e==`number`&&e==Q(e)}function Ou(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=A}function X(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Z(e){return typeof e==`object`&&!!e}var ku=Sn?tr(Sn):ia;function Au(e,t){return e===t||aa(e,t,$o(t))}function ju(e,t,r){return r=typeof r==`function`?r:n,aa(e,t,$o(t),r)}function Mu(e){return Iu(e)&&e!=+e}function Nu(e){if(ys(e))throw new gt(a);return oa(e)}function Pu(e){return e===null}function Fu(e){return e==null}function Iu(e){return typeof e==`number`||Z(e)&&Gi(e)==_e}function Lu(e){if(!Z(e)||Gi(e)!=F)return!1;var t=Lt(e);if(t===null)return!0;var n=z.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Et.call(n)==At}var Ru=Cn?tr(Cn):sa;function zu(e){return Du(e)&&e>=-A&&e<=A}var Bu=wn?tr(wn):ca;function Vu(e){return typeof e==`string`||!J(e)&&Z(e)&&Gi(e)==Ce}function Hu(e){return typeof e==`symbol`||Z(e)&&Gi(e)==we}var Uu=Tn?tr(Tn):la;function Wu(e){return e===n}function Gu(e){return Z(e)&&is(e)==Ee}function Ku(e){return Z(e)&&Gi(e)==I}var qu=Po(pa),Ju=Po(function(e,t){return e<=t});function Yu(e){if(!e)return[];if(gu(e))return Vu(e)?Sr(e):fo(e);if(Ht&&e[Ht])return pr(e[Ht]());var t=is(e);return(t==ge?mr:t==Se?_r:Hd)(e)}function Xu(e){return e?(e=Qu(e),e===ie||e===-ie?(e<0?-1:1)*j:e===e?e:0):e===0?e:0}function Q(e){var t=Xu(e),n=t%1;return t===t?n?t-n:t:0}function Zu(e){return e?Ti(Q(e),0,M):0}function Qu(e){if(typeof e==`number`)return e;if(Hu(e))return ae;if(X(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=X(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=er(e);var n=lt.test(e);return n||dt.test(e)?dn(e.slice(2),n?2:8):ct.test(e)?ae:+e}function $u(e){return po(e,wd(e))}function ed(e){return e?Ti(Q(e),-A,A):e===0?e:0}function $(e){return e==null?``:Va(e)}var td=_o(function(e,t){if(bs(t)||gu(t)){po(t,Cd(t),e);return}for(var n in t)z.call(t,n)&&vi(e,n,t[n])}),nd=_o(function(e,t){po(t,wd(t),e)}),rd=_o(function(e,t,n,r){po(t,wd(t),e,r)}),id=_o(function(e,t,n,r){po(t,Cd(t),e,r)}),ad=Ko(wi);function od(e,t){var n=Pr(e);return t==null?n:xi(n,t)}var sd=K(function(e,t){e=R(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ms(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=wd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||du(d,wt[u])&&!z.call(e,u))&&(e[u]=o[u])}return e}),cd=K(function(e){return e.push(n,Vo),En(Od,n,e)});function ld(e,t){return Vn(e,q(t,3),Bi)}function ud(e,t){return Vn(e,q(t,3),Vi)}function dd(e,t){return e==null?e:Ri(e,q(t,3),wd)}function fd(e,t){return e==null?e:zi(e,q(t,3),wd)}function pd(e,t){return e&&Bi(e,q(t,3))}function md(e,t){return e&&Vi(e,q(t,3))}function hd(e){return e==null?[]:Hi(e,Cd(e))}function gd(e){return e==null?[]:Hi(e,wd(e))}function _d(e,t,r){var i=e==null?n:Ui(e,t);return i===n?r:i}function vd(e,t){return e!=null&&ss(e,t,qi)}function yd(e,t){return e!=null&&ss(e,t,Ji)}var bd=Oo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=kt.call(t)),e[t]=n},Of(Mf)),xd=Oo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=kt.call(t)),z.call(e,t)?e[t].push(n):e[t]=[n]},q),Sd=K(Qi);function Cd(e){return gu(e)?pi(e):da(e)}function wd(e){return gu(e)?pi(e,!0):fa(e)}function Td(e,t){var n={};return t=q(t,3),Bi(e,function(e,r,i){Ci(n,t(e,r,i),e)}),n}function Ed(e,t){var n={};return t=q(t,3),Bi(e,function(e,r,i){Ci(n,r,t(e,r,i))}),n}var Dd=_o(function(e,t,n){_a(e,t,n)}),Od=_o(function(e,t,n,r){_a(e,t,n,r)}),kd=Ko(function(e,t){var n={};if(e==null)return n;var r=!1;t=U(t,function(t){return t=Za(t,e),r||=t.length>1,t}),po(e,Jo(e),n),r&&(n=Ei(n,f|p|m,Ho));for(var i=t.length;i--;)Ua(n,t[i]);return n});function Ad(e,t){return Md(e,Jl(q(t)))}var jd=Ko(function(e,t){return e==null?{}:xa(e,t)});function Md(e,t){if(e==null)return{};var n=U(Jo(e),function(e){return[e]});return t=q(t),Sa(e,n,function(e,n){return t(e,n[0])})}function Nd(e,t,r){t=Za(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Rs(t[i])];o===n&&(i=a,o=r),e=Eu(o)?o.call(e):o}return e}function Pd(e,t,n){return e==null?e:ja(e,t,n)}function Fd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ja(e,t,r,i)}var Id=Ro(Cd),Ld=Ro(wd);function Rd(e,t,n){var r=J(e),i=r||vu(e)||Uu(e);if(t=q(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:X(e)&&Eu(a)?Pr(Lt(e)):{}}return(i?On:Bi)(e,function(e,r,i){return t(n,e,r,i)}),n}function zd(e,t){return e==null?!0:Ua(e,t)}function Bd(e,t,n){return e==null?e:Wa(e,t,Xa(n))}function Vd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Wa(e,t,Xa(r),i)}function Hd(e){return e==null?[]:nr(e,Cd(e))}function Ud(e){return e==null?[]:nr(e,wd(e))}function Wd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Qu(r),r=r===r?r:0),t!==n&&(t=Qu(t),t=t===t?t:0),Ti(Qu(e),t,r)}function Gd(e,t,r){return t=Xu(t),r===n?(r=t,t=0):r=Xu(r),e=Qu(e),Yi(e,t,r)}function Kd(e,t,r){if(r&&typeof r!=`boolean`&&ms(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Xu(e),t===n?(t=e,e=0):t=Xu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=ln();return on(e+a*(t-e+un(`1e-`+((a+``).length-1))),t)}return Ea(e,t)}var qd=So(function(e,t,n){return t=t.toLowerCase(),e+(n?Jd(t):t)});function Jd(e){return Sf($(e).toLowerCase())}function Yd(e){return e=$(e),e&&e.replace(pt,sr).replace($t,``)}function Xd(e,t,r){e=$(e),t=Va(t);var i=e.length;r=r===n?i:Ti(Q(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Zd(e){return e=$(e),e&&Ue.test(e)?e.replace(Ve,cr):e}function Qd(e){return e=$(e),e&&Ze.test(e)?e.replace(Xe,`\\$&`):e}var $d=So(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),ef=So(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),tf=xo(`toLowerCase`);function nf(e,t,n){e=$(e),t=Q(t);var r=t?xr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return jo(Yt(i),n)+e+jo(Jt(i),n)}function rf(e,t,n){e=$(e),t=Q(t);var r=t?xr(e):0;return t&&r<t?e+jo(t-r,n):e}function af(e,t,n){e=$(e),t=Q(t);var r=t?xr(e):0;return t&&r<t?jo(t-r,n)+e:e}function of(e,t,n){return n||t==null?t=0:t&&=+t,cn($(e).replace(Qe,``),t||0)}function sf(e,t,r){return t=(r?ms(e,t,r):t===n)?1:Q(t),Oa($(e),t)}function cf(){var e=arguments,t=$(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var lf=So(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function uf(e,t,r){return r&&typeof r!=`number`&&ms(e,t,r)&&(t=r=n),r=r===n?M:r>>>0,r?(e=$(e),e&&(typeof t==`string`||t!=null&&!Ru(t))&&(t=Va(t),!t&&dr(e))?$a(Sr(e),0,r):e.split(t,r)):[]}var df=So(function(e,t,n){return e+(n?` `:``)+Sf(t)});function ff(e,t,n){return e=$(e),n=n==null?0:Ti(Q(n),0,e.length),t=Va(t),e.slice(n,n+t.length)==t}function pf(e,t,r){var i=W.templateSettings;r&&ms(e,t,r)&&(t=n),e=$(e),t=id({},t,i,Bo);var a=id({},t.imports,i.imports,Bo),o=Cd(a),l=nr(a,o);On(o,function(e){if(it.test(e))throw new gt(c)});var u,d,f=0,p=t.interpolate||mt,m=`__p += '`,h=yt((t.escape||mt).source+`|`+p.source+`|`+(p===Ke?ot:mt).source+`|`+(t.evaluate||mt).source+`|$`,`g`),g=`//# sourceURL=`+(z.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++an+`]`)+`
|
|
22
|
+
`;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(ht,lr),n&&(u=!0,m+=`' +
|
|
23
|
+
__e(`+n+`) +
|
|
24
|
+
'`),a&&(d=!0,m+=`';
|
|
25
|
+
`+a+`;
|
|
26
|
+
__p += '`),r&&(m+=`' +
|
|
27
|
+
((__t = (`+r+`)) == null ? '' : __t) +
|
|
28
|
+
'`),f=o+t.length,t}),m+=`';
|
|
29
|
+
`;var _=z.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
|
|
30
|
+
`+m+`
|
|
31
|
+
}
|
|
32
|
+
`;else if(it.test(_))throw new gt(s);m=(d?m.replace(Le,``):m).replace(Re,`$1`).replace(ze,`$1;`),m=`function(`+(_||`obj`)+`) {
|
|
33
|
+
`+(_?``:`obj || (obj = {});
|
|
34
|
+
`)+`var __t, __p = ''`+(u?`, __e = _.escape`:``)+(d?`, __j = Array.prototype.join;
|
|
35
|
+
function print() { __p += __j.call(arguments, '') }
|
|
36
|
+
`:`;
|
|
37
|
+
`)+m+`return __p
|
|
38
|
+
}`;var v=wf(function(){return _t(o,g+`return `+m).apply(n,l)});if(v.source=m,wu(v))throw v;return v}function mf(e){return $(e).toLowerCase()}function hf(e){return $(e).toUpperCase()}function gf(e,t,r){if(e=$(e),e&&(r||t===n))return er(e);if(!e||!(t=Va(t)))return e;var i=Sr(e),a=Sr(t);return $a(i,ir(i,a),ar(i,a)+1).join(``)}function _f(e,t,r){if(e=$(e),e&&(r||t===n))return e.slice(0,Cr(e)+1);if(!e||!(t=Va(t)))return e;var i=Sr(e);return $a(i,0,ar(i,Sr(t))+1).join(``)}function vf(e,t,r){if(e=$(e),e&&(r||t===n))return e.replace(Qe,``);if(!e||!(t=Va(t)))return e;var i=Sr(e);return $a(i,ir(i,Sr(t))).join(``)}function yf(e,t){var r=D,i=O;if(X(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Q(t.length):r,i=`omission`in t?Va(t.omission):i}e=$(e);var o=e.length;if(dr(e)){var s=Sr(e);o=s.length}if(r>=o)return e;var c=r-xr(i);if(c<1)return i;var l=s?$a(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Ru(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=yt(a.source,$(st.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Va(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function bf(e){return e=$(e),e&&He.test(e)?e.replace(Be,wr):e}var xf=So(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Sf=xo(`toUpperCase`);function Cf(e,t,r){return e=$(e),t=r?n:t,t===n?fr(e)?Dr(e):Bn(e):e.match(t)||[]}var wf=K(function(e,t){try{return En(e,n,t)}catch(e){return wu(e)?e:new gt(e)}}),Tf=Ko(function(e,t){return On(t,function(t){t=Rs(t),Ci(e,t,zl(e[t],e))}),e});function Ef(e){var t=e==null?0:e.length,n=q();return e=t?U(e,function(e){if(typeof e[1]!=`function`)throw new xt(o);return[n(e[0]),e[1]]}):[],K(function(n){for(var r=-1;++r<t;){var i=e[r];if(En(i[0],this,n))return En(i[1],this,n)}})}function Df(e){return Di(Ei(e,f))}function Of(e){return function(){return e}}function kf(e,t){return e==null||e!==e?t:e}var Af=Eo(),jf=Eo(!0);function Mf(e){return e}function Nf(e){return ua(typeof e==`function`?e:Ei(e,f))}function Pf(e){return ha(Ei(e,f))}function Ff(e,t){return ga(e,Ei(t,f))}var If=K(function(e,t){return function(n){return Qi(n,e,t)}}),Lf=K(function(e,t){return function(n){return Qi(e,n,t)}});function Rf(e,t,n){var r=Cd(t),i=Hi(t,r);n==null&&!(X(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Hi(t,Cd(t)));var a=!(X(n)&&`chain`in n)||!!n.chain,o=Eu(e);return On(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=fo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pn([this.value()],arguments))})}),e}function zf(){return mn._===this&&(mn._=jt),this}function Bf(){}function Vf(e){return e=Q(e),K(function(t){return ya(t,e)})}var Hf=Ao(U),Uf=Ao(An),Wf=Ao(Ln);function Gf(e){return hs(e)?qn(Rs(e)):Ca(e)}function Kf(e){return function(t){return e==null?n:Ui(e,t)}}var qf=No(),Jf=No(!0);function Yf(){return[]}function Xf(){return!1}function Zf(){return{}}function Qf(){return``}function $f(){return!0}function ep(e,t){if(e=Q(e),e<1||e>A)return[];var n=M,r=on(e,M);t=q(t),e-=M;for(var i=Qn(r,t);++n<e;)t(n);return i}function tp(e){return J(e)?U(e,Rs):Hu(e)?[e]:fo(Ls($(e)))}function np(e){var t=++Dt;return $(e)+t}var rp=ko(function(e,t){return e+t},0),ip=Io(`ceil`),ap=ko(function(e,t){return e/t},1),op=Io(`floor`);function sp(e){return e&&e.length?Pi(e,Mf,Ki):n}function cp(e,t){return e&&e.length?Pi(e,q(t,2),Ki):n}function lp(e){return Kn(e,Mf)}function up(e,t){return Kn(e,q(t,2))}function dp(e){return e&&e.length?Pi(e,Mf,pa):n}function fp(e,t){return e&&e.length?Pi(e,q(t,2),pa):n}var pp=ko(function(e,t){return e*t},1),mp=Io(`round`),hp=ko(function(e,t){return e-t},0);function gp(e){return e&&e.length?Zn(e,Mf):0}function _p(e,t){return e&&e.length?Zn(e,q(t,2)):0}return W.after=Il,W.ary=Ll,W.assign=td,W.assignIn=nd,W.assignInWith=rd,W.assignWith=id,W.at=ad,W.before=Rl,W.bind=zl,W.bindAll=Tf,W.bindKey=Bl,W.castArray=au,W.chain=Qc,W.chunk=Hs,W.compact=Us,W.concat=Ws,W.cond=Ef,W.conforms=Df,W.constant=Of,W.countBy=ll,W.create=od,W.curry=Vl,W.curryRight=Hl,W.debounce=Ul,W.defaults=sd,W.defaultsDeep=cd,W.defer=Wl,W.delay=Gl,W.difference=Gs,W.differenceBy=Ks,W.differenceWith=qs,W.drop=Js,W.dropRight=Ys,W.dropRightWhile=Xs,W.dropWhile=Zs,W.fill=Qs,W.filter=dl,W.flatMap=ml,W.flatMapDeep=hl,W.flatMapDepth=gl,W.flatten=tc,W.flattenDeep=nc,W.flattenDepth=rc,W.flip=Kl,W.flow=Af,W.flowRight=jf,W.fromPairs=ic,W.functions=hd,W.functionsIn=gd,W.groupBy=yl,W.initial=sc,W.intersection=cc,W.intersectionBy=lc,W.intersectionWith=uc,W.invert=bd,W.invertBy=xd,W.invokeMap=xl,W.iteratee=Nf,W.keyBy=Sl,W.keys=Cd,W.keysIn=wd,W.map=Cl,W.mapKeys=Td,W.mapValues=Ed,W.matches=Pf,W.matchesProperty=Ff,W.memoize=ql,W.merge=Dd,W.mergeWith=Od,W.method=If,W.methodOf=Lf,W.mixin=Rf,W.negate=Jl,W.nthArg=Vf,W.omit=kd,W.omitBy=Ad,W.once=Yl,W.orderBy=wl,W.over=Hf,W.overArgs=Xl,W.overEvery=Uf,W.overSome=Wf,W.partial=Zl,W.partialRight=Ql,W.partition=Tl,W.pick=jd,W.pickBy=Md,W.property=Gf,W.propertyOf=Kf,W.pull=hc,W.pullAll=gc,W.pullAllBy=_c,W.pullAllWith=vc,W.pullAt=yc,W.range=qf,W.rangeRight=Jf,W.rearg=$l,W.reject=Ol,W.remove=bc,W.rest=eu,W.reverse=xc,W.sampleSize=Al,W.set=Pd,W.setWith=Fd,W.shuffle=jl,W.slice=Sc,W.sortBy=Pl,W.sortedUniq=kc,W.sortedUniqBy=Ac,W.split=uf,W.spread=tu,W.tail=jc,W.take=Mc,W.takeRight=Nc,W.takeRightWhile=Pc,W.takeWhile=Fc,W.tap=$c,W.throttle=nu,W.thru=el,W.toArray=Yu,W.toPairs=Id,W.toPairsIn=Ld,W.toPath=tp,W.toPlainObject=$u,W.transform=Rd,W.unary=ru,W.union=Ic,W.unionBy=Lc,W.unionWith=Rc,W.uniq=zc,W.uniqBy=Bc,W.uniqWith=Vc,W.unset=zd,W.unzip=Hc,W.unzipWith=Uc,W.update=Bd,W.updateWith=Vd,W.values=Hd,W.valuesIn=Ud,W.without=Wc,W.words=Cf,W.wrap=iu,W.xor=Gc,W.xorBy=Kc,W.xorWith=qc,W.zip=Jc,W.zipObject=Yc,W.zipObjectDeep=Xc,W.zipWith=Zc,W.entries=Id,W.entriesIn=Ld,W.extend=nd,W.extendWith=rd,Rf(W,W),W.add=rp,W.attempt=wf,W.camelCase=qd,W.capitalize=Jd,W.ceil=ip,W.clamp=Wd,W.clone=ou,W.cloneDeep=cu,W.cloneDeepWith=lu,W.cloneWith=su,W.conformsTo=uu,W.deburr=Yd,W.defaultTo=kf,W.divide=ap,W.endsWith=Xd,W.eq=du,W.escape=Zd,W.escapeRegExp=Qd,W.every=ul,W.find=fl,W.findIndex=$s,W.findKey=ld,W.findLast=pl,W.findLastIndex=ec,W.findLastKey=ud,W.floor=op,W.forEach=_l,W.forEachRight=vl,W.forIn=dd,W.forInRight=fd,W.forOwn=pd,W.forOwnRight=md,W.get=_d,W.gt=fu,W.gte=pu,W.has=vd,W.hasIn=yd,W.head=ac,W.identity=Mf,W.includes=bl,W.indexOf=oc,W.inRange=Gd,W.invoke=Sd,W.isArguments=mu,W.isArray=J,W.isArrayBuffer=hu,W.isArrayLike=gu,W.isArrayLikeObject=Y,W.isBoolean=_u,W.isBuffer=vu,W.isDate=yu,W.isElement=bu,W.isEmpty=xu,W.isEqual=Su,W.isEqualWith=Cu,W.isError=wu,W.isFinite=Tu,W.isFunction=Eu,W.isInteger=Du,W.isLength=Ou,W.isMap=ku,W.isMatch=Au,W.isMatchWith=ju,W.isNaN=Mu,W.isNative=Nu,W.isNil=Fu,W.isNull=Pu,W.isNumber=Iu,W.isObject=X,W.isObjectLike=Z,W.isPlainObject=Lu,W.isRegExp=Ru,W.isSafeInteger=zu,W.isSet=Bu,W.isString=Vu,W.isSymbol=Hu,W.isTypedArray=Uu,W.isUndefined=Wu,W.isWeakMap=Gu,W.isWeakSet=Ku,W.join=dc,W.kebabCase=$d,W.last=fc,W.lastIndexOf=pc,W.lowerCase=ef,W.lowerFirst=tf,W.lt=qu,W.lte=Ju,W.max=sp,W.maxBy=cp,W.mean=lp,W.meanBy=up,W.min=dp,W.minBy=fp,W.stubArray=Yf,W.stubFalse=Xf,W.stubObject=Zf,W.stubString=Qf,W.stubTrue=$f,W.multiply=pp,W.nth=mc,W.noConflict=zf,W.noop=Bf,W.now=Fl,W.pad=nf,W.padEnd=rf,W.padStart=af,W.parseInt=of,W.random=Kd,W.reduce=El,W.reduceRight=Dl,W.repeat=sf,W.replace=cf,W.result=Nd,W.round=mp,W.runInContext=e,W.sample=kl,W.size=Ml,W.snakeCase=lf,W.some=Nl,W.sortedIndex=Cc,W.sortedIndexBy=wc,W.sortedIndexOf=Tc,W.sortedLastIndex=Ec,W.sortedLastIndexBy=Dc,W.sortedLastIndexOf=Oc,W.startCase=df,W.startsWith=ff,W.subtract=hp,W.sum=gp,W.sumBy=_p,W.template=pf,W.times=ep,W.toFinite=Xu,W.toInteger=Q,W.toLength=Zu,W.toLower=mf,W.toNumber=Qu,W.toSafeInteger=ed,W.toString=$,W.toUpper=hf,W.trim=gf,W.trimEnd=_f,W.trimStart=vf,W.truncate=yf,W.unescape=bf,W.uniqueId=np,W.upperCase=xf,W.upperFirst=Sf,W.each=_l,W.eachRight=vl,W.first=ac,Rf(W,function(){var e={};return Bi(W,function(t,n){z.call(W.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),W.VERSION=r,On([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){W[e].placeholder=W}),On([`drop`,`take`],function(e,t){G.prototype[e]=function(r){r=r===n?1:B(Q(r),0);var i=this.__filtered__&&!t?new G(this):this.clone();return i.__filtered__?i.__takeCount__=on(r,i.__takeCount__):i.__views__.push({size:on(r,M),type:e+(i.__dir__<0?`Right`:``)}),i},G.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),On([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==te||n==re;G.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:q(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),On([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);G.prototype[e]=function(){return this[n](1).value()[0]}}),On([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);G.prototype[e]=function(){return this.__filtered__?new G(this):this[n](1)}}),G.prototype.compact=function(){return this.filter(Mf)},G.prototype.find=function(e){return this.filter(e).head()},G.prototype.findLast=function(e){return this.reverse().find(e)},G.prototype.invokeMap=K(function(e,t){return typeof e==`function`?new G(this):this.map(function(n){return Qi(n,e,t)})}),G.prototype.reject=function(e){return this.filter(Jl(q(e)))},G.prototype.slice=function(e,t){e=Q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new G(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},G.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},G.prototype.toArray=function(){return this.take(M)},Bi(G.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=W[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(W.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof G,l=s[0],u=c||J(t),d=function(e){var t=a.apply(W,Pn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new G(this);var g=e.apply(t,s);return g.__actions__.push({func:el,args:[d],thisArg:n}),new Ir(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),On([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=St[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);W.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(J(i)?i:[],e)}return this[n](function(n){return t.apply(J(n)?n:[],e)})}}),Bi(G.prototype,function(e,t){var n=W[t];if(n){var r=n.name+``;z.call(Jn,r)||(Jn[r]=[]),Jn[r].push({name:t,func:n})}}),Jn[Do(n,v).name]=[{name:`wrapper`,func:n}],G.prototype.clone=Lr,G.prototype.reverse=Rr,G.prototype.value=zr,W.prototype.at=tl,W.prototype.chain=nl,W.prototype.commit=rl,W.prototype.next=il,W.prototype.plant=ol,W.prototype.reverse=sl,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=cl,W.prototype.first=W.prototype.head,Ht&&(W.prototype[Ht]=al),W})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(mn._=Or,define(function(){return Or})):gn?((gn.exports=Or)._=Or,hn._=Or):mn._=Or}).call(e)})),At=o({AliceBlue:()=>fs,AntiqueWhite:()=>Pa,BlanchedAlmond:()=>gn,BlueViolet:()=>Nc,CadetBlue:()=>ks,CornflowerBlue:()=>vl,DarkGoldenrod:()=>ha,DarkGreen:()=>yc,DarkKhaki:()=>rs,DarkOliveGreen:()=>sn,DarkOrange:()=>gi,DarkOrchid:()=>gl,DarkSalmon:()=>Or,DarkSeaGreen:()=>yo,DarkSlateBlue:()=>Ul,DarkSlateGray:()=>ka,DarkSlateGrey:()=>Oo,DarkTurquoise:()=>Yo,DarkViolet:()=>ar,DeepPink:()=>Yc,DeepSkyBlue:()=>oo,DimGray:()=>$a,DimGrey:()=>Ha,DodgerBlue:()=>Oc,FloralWhite:()=>Cs,ForestGreen:()=>pn,GhostWhite:()=>Zo,GreenYellow:()=>Ii,HotPink:()=>vn,IndianRed:()=>Fa,LavenderBlush:()=>du,LawnGreen:()=>lu,LemonChiffon:()=>xs,LightBlue:()=>_r,LightCoral:()=>js,LightCyan:()=>Vn,LightGoldenrod:()=>Yr,LightGoldenrodYellow:()=>ns,LightGray:()=>wr,LightGrey:()=>xn,LightPink:()=>wo,LightSalmon:()=>ms,LightSeaGreen:()=>Un,LightSkyBlue:()=>To,LightSlateBlue:()=>Gr,LightSlateGray:()=>Ga,LightSlateGrey:()=>zr,LightSteelBlue:()=>Gn,LightYellow:()=>Zl,LimeGreen:()=>Zs,MediumAquamarine:()=>Hi,MediumBlue:()=>Pl,MediumOrchid:()=>Hl,MediumPurple:()=>fo,MediumSeaGreen:()=>zl,MediumSlateBlue:()=>bn,MediumSpringGreen:()=>on,MediumTurquoise:()=>mr,MediumVioletRed:()=>Nl,MidnightBlue:()=>Fu,MintCream:()=>On,MistyRose:()=>wl,NavajoWhite:()=>nn,NavyBlue:()=>vi,OldLace:()=>Ss,OliveDrab:()=>Gt,OrangeRed:()=>Ht,PaleGoldenrod:()=>ei,PaleGreen:()=>Rt,PaleTurquoise:()=>ua,PaleVioletRed:()=>Jr,PapayaWhip:()=>Kt,PeachPuff:()=>el,PowderBlue:()=>Xc,RosyBrown:()=>qc,RoyalBlue:()=>Uo,SaddleBrown:()=>G,SandyBrown:()=>Ic,SeaGreen:()=>Pc,SkyBlue:()=>wc,SlateBlue:()=>xa,SlateGray:()=>Z,SlateGrey:()=>_c,SpringGreen:()=>va,SteelBlue:()=>hc,VioletRed:()=>_o,WhiteSmoke:()=>Bs,YellowGreen:()=>Is,alice_blue:()=>Oa,ansiBlack:()=>Ql,ansiBlue:()=>ys,ansiCyan:()=>Nr,ansiGreen:()=>Tl,ansiLightBlack:()=>Xl,ansiLightBlue:()=>tc,ansiLightCyan:()=>lc,ansiLightGreen:()=>Ps,ansiLightMagenta:()=>Va,ansiLightRed:()=>Jl,ansiLightWhite:()=>pu,ansiLightYellow:()=>bl,ansiMagenta:()=>bu,ansiRed:()=>Sa,ansiWhite:()=>Pi,ansiYellow:()=>Ya,ansi_000:()=>Kn,ansi_001:()=>si,ansi_002:()=>Pr,ansi_003:()=>Il,ansi_004:()=>Gu,ansi_005:()=>Ti,ansi_006:()=>Du,ansi_007:()=>zo,ansi_008:()=>B,ansi_009:()=>Di,ansi_010:()=>ii,ansi_011:()=>Zi,ansi_012:()=>ln,ansi_013:()=>br,ansi_014:()=>Wt,ansi_015:()=>es,ansi_016:()=>tr,ansi_017:()=>_i,ansi_018:()=>Ta,ansi_019:()=>Qc,ansi_020:()=>Go,ansi_021:()=>Mo,ansi_022:()=>Da,ansi_023:()=>Ln,ansi_024:()=>V,ansi_025:()=>un,ansi_026:()=>Y,ansi_027:()=>Mt,ansi_028:()=>Po,ansi_029:()=>Qi,ansi_030:()=>yl,ansi_031:()=>il,ansi_032:()=>nl,ansi_033:()=>Ea,ansi_034:()=>Vs,ansi_035:()=>Aa,ansi_036:()=>en,ansi_037:()=>da,ansi_038:()=>Ka,ansi_039:()=>Bc,ansi_040:()=>fc,ansi_041:()=>zt,ansi_042:()=>Ir,ansi_043:()=>Wu,ansi_044:()=>Rn,ansi_045:()=>zc,ansi_046:()=>ui,ansi_047:()=>Lt,ansi_048:()=>H,ansi_049:()=>mu,ansi_050:()=>dr,ansi_051:()=>Vl,ansi_052:()=>Lo,ansi_053:()=>Ni,ansi_054:()=>Kc,ansi_055:()=>ia,ansi_056:()=>Ds,ansi_057:()=>uc,ansi_058:()=>Zt,ansi_059:()=>ps,ansi_060:()=>Eo,ansi_061:()=>cs,ansi_062:()=>$o,ansi_063:()=>fa,ansi_064:()=>$n,ansi_065:()=>vo,ansi_066:()=>Ki,ansi_067:()=>Sc,ansi_068:()=>fi,ansi_069:()=>Fo,ansi_070:()=>ta,ansi_071:()=>ga,ansi_072:()=>Uu,ansi_073:()=>gs,ansi_074:()=>cl,ansi_075:()=>ls,ansi_076:()=>ju,ansi_077:()=>jr,ansi_078:()=>ec,ansi_079:()=>It,ansi_080:()=>su,ansi_081:()=>pc,ansi_082:()=>Ku,ansi_083:()=>ss,ansi_084:()=>Gl,ansi_085:()=>mc,ansi_086:()=>W,ansi_087:()=>gr,ansi_088:()=>Do,ansi_089:()=>po,ansi_090:()=>Zn,ansi_091:()=>sl,ansi_092:()=>Hu,ansi_093:()=>ya,ansi_094:()=>ur,ansi_095:()=>Sl,ansi_096:()=>Ec,ansi_097:()=>Ji,ansi_098:()=>or,ansi_099:()=>rl,ansi_100:()=>Ri,ansi_101:()=>ml,ansi_102:()=>Xi,ansi_103:()=>Ua,ansi_104:()=>mi,ansi_105:()=>Nu,ansi_106:()=>Hs,ansi_107:()=>Tc,ansi_108:()=>ul,ansi_109:()=>Si,ansi_110:()=>vu,ansi_111:()=>yr,ansi_112:()=>ll,ansi_113:()=>Lu,ansi_114:()=>Su,ansi_115:()=>oa,ansi_116:()=>ic,ansi_117:()=>kl,ansi_118:()=>ku,ansi_119:()=>Dr,ansi_120:()=>nu,ansi_121:()=>Tr,ansi_122:()=>bo,ansi_123:()=>q,ansi_124:()=>Mc,ansi_125:()=>ts,ansi_126:()=>Ci,ansi_127:()=>rr,ansi_128:()=>vs,ansi_129:()=>ni,ansi_130:()=>Bu,ansi_131:()=>_n,ansi_132:()=>Al,ansi_133:()=>sa,ansi_134:()=>Jc,ansi_135:()=>Wo,ansi_136:()=>Ko,ansi_137:()=>al,ansi_138:()=>jl,ansi_139:()=>fr,ansi_140:()=>Bi,ansi_141:()=>ao,ansi_142:()=>Io,ansi_143:()=>Hn,ansi_144:()=>Jn,ansi_145:()=>zi,ansi_146:()=>$i,ansi_147:()=>Zc,ansi_148:()=>La,ansi_149:()=>Es,ansi_150:()=>Dl,ansi_151:()=>tl,ansi_152:()=>ac,ansi_153:()=>Ca,ansi_154:()=>Kl,ansi_155:()=>wu,ansi_156:()=>Fr,ansi_157:()=>Dc,ansi_158:()=>xc,ansi_159:()=>As,ansi_160:()=>Yt,ansi_161:()=>Ho,ansi_162:()=>Gi,ansi_163:()=>In,ansi_164:()=>Mn,ansi_165:()=>Eu,ansi_166:()=>ho,ansi_167:()=>wa,ansi_168:()=>wi,ansi_169:()=>kc,ansi_170:()=>jc,ansi_171:()=>pr,ansi_172:()=>Wa,ansi_173:()=>zs,ansi_174:()=>Ac,ansi_175:()=>Qr,ansi_176:()=>ai,ansi_177:()=>$s,ansi_178:()=>Pt,ansi_179:()=>tu,ansi_180:()=>Vc,ansi_181:()=>qu,ansi_182:()=>fn,ansi_183:()=>$r,ansi_184:()=>Hr,ansi_185:()=>Ut,ansi_186:()=>Gc,ansi_187:()=>Ms,ansi_188:()=>kn,ansi_189:()=>Co,ansi_190:()=>Ml,ansi_191:()=>ma,ansi_192:()=>Yl,ansi_193:()=>uo,ansi_194:()=>mn,ansi_195:()=>oc,ansi_196:()=>Rc,ansi_197:()=>Fi,ansi_198:()=>mo,ansi_199:()=>Lr,ansi_200:()=>No,ansi_201:()=>_s,ansi_202:()=>Vi,ansi_203:()=>Os,ansi_204:()=>rn,ansi_205:()=>Js,ansi_206:()=>hu,ansi_207:()=>no,ansi_208:()=>Qo,ansi_209:()=>uu,ansi_210:()=>Lc,ansi_211:()=>kr,ansi_212:()=>Wr,ansi_213:()=>so,ansi_214:()=>Ar,ansi_215:()=>Pn,ansi_216:()=>ws,ansi_217:()=>Br,ansi_218:()=>cu,ansi_219:()=>os,ansi_220:()=>Fl,ansi_221:()=>qi,ansi_222:()=>ir,ansi_223:()=>ea,ansi_224:()=>Rs,ansi_225:()=>qo,ansi_226:()=>Vu,ansi_227:()=>Mi,ansi_228:()=>_a,ansi_229:()=>J,ansi_230:()=>En,ansi_231:()=>na,ansi_232:()=>is,ansi_233:()=>ra,ansi_234:()=>ti,ansi_235:()=>Ui,ansi_236:()=>Yi,ansi_237:()=>Ma,ansi_238:()=>Dn,ansi_239:()=>as,ansi_240:()=>bi,ansi_241:()=>K,ansi_242:()=>pa,ansi_243:()=>Wc,ansi_244:()=>cn,ansi_245:()=>Qa,ansi_246:()=>_l,ansi_247:()=>zu,ansi_248:()=>Fn,ansi_249:()=>Jo,ansi_250:()=>Us,ansi_251:()=>Xn,ansi_252:()=>au,ansi_253:()=>Ba,ansi_254:()=>Ru,ansi_255:()=>la,ansi_black:()=>Xt,ansi_blue:()=>za,ansi_cyan:()=>Wl,ansi_green:()=>$l,ansi_light_black:()=>qr,ansi_light_blue:()=>_u,ansi_light_cyan:()=>eo,ansi_light_green:()=>to,ansi_light_magenta:()=>Uc,ansi_light_red:()=>xr,ansi_light_white:()=>Xo,ansi_light_yellow:()=>sc,ansi_magenta:()=>oi,ansi_red:()=>ca,ansi_white:()=>Ia,ansi_yellow:()=>Tn,antique_white:()=>aa,aquamarine:()=>Iu,azure:()=>Gs,beige:()=>Ro,bisque:()=>Na,black:()=>Ei,blanched_almond:()=>hr,blue:()=>Sr,blue_violet:()=>yu,brown:()=>xu,burlywood:()=>hn,cadet_blue:()=>dc,chartreuse:()=>Ou,chocolate:()=>qt,coral:()=>Fs,cornflower_blue:()=>Jt,cornsilk:()=>So,cyan:()=>Fc,dark_goldenrod:()=>pl,dark_green:()=>Qn,dark_khaki:()=>ba,dark_olive_green:()=>di,dark_orange:()=>Ys,dark_orchid:()=>Ol,dark_salmon:()=>Tu,dark_sea_green:()=>yn,dark_slate_blue:()=>dl,dark_slate_gray:()=>io,dark_slate_grey:()=>Cr,dark_turquoise:()=>Cu,dark_violet:()=>Sn,deep_pink:()=>Bo,deep_sky_blue:()=>Ja,default:()=>Ju,dim_gray:()=>Pu,dim_grey:()=>gu,dodger_blue:()=>Mu,firebrick:()=>go,floral_white:()=>Mr,forest_green:()=>Ur,gainsboro:()=>co,ghost_white:()=>er,gold:()=>Qt,goldenrod:()=>Ai,gray:()=>nr,green:()=>Ll,green_yellow:()=>li,grey:()=>tn,honeydew:()=>Rr,hot_pink:()=>bs,indian_red:()=>qn,ivory:()=>fu,khaki:()=>hs,lavender:()=>ci,lavender_blush:()=>ji,lawn_green:()=>$t,lemon_chiffon:()=>Xs,light_blue:()=>Er,light_coral:()=>ds,light_cyan:()=>El,light_goldenrod:()=>Ra,light_goldenrod_yellow:()=>Vt,light_gray:()=>jt,light_grey:()=>ou,light_pink:()=>ru,light_salmon:()=>dn,light_sea_green:()=>xi,light_sky_blue:()=>iu,light_slate_blue:()=>Xr,light_slate_gray:()=>Kr,light_slate_grey:()=>ki,light_steel_blue:()=>Yn,light_yellow:()=>eu,lime_green:()=>qa,linen:()=>us,magenta:()=>Li,maroon:()=>cr,medium_aquamarine:()=>ql,medium_blue:()=>lo,medium_orchid:()=>wn,medium_purple:()=>Zr,medium_sea_green:()=>Bl,medium_slate_blue:()=>Rl,medium_spring_green:()=>hl,medium_turquoise:()=>Vo,medium_violet_red:()=>Ao,midnight_blue:()=>pi,mint_cream:()=>Nn,misty_rose:()=>Xa,moccasin:()=>hi,navajo_white:()=>Cl,navy:()=>xo,navy_blue:()=>xl,old_lace:()=>sr,olive_drab:()=>fl,orange:()=>Bn,orange_red:()=>X,orchid:()=>ol,pale_goldenrod:()=>jn,pale_green:()=>An,pale_turquoise:()=>Nt,pale_violet_red:()=>Qs,papaya_whip:()=>yi,peach_puff:()=>Au,peru:()=>jo,pink:()=>ko,plum:()=>Hc,powder_blue:()=>$c,purple:()=>Ft,red:()=>ri,rosy_brown:()=>Za,royal_blue:()=>Cc,saddle_brown:()=>Cn,salmon:()=>Wn,sandy_brown:()=>an,sea_green:()=>Ns,seashell:()=>vr,sienna:()=>Ts,sky_blue:()=>Bt,slate_blue:()=>ja,slate_gray:()=>bc,slate_grey:()=>vc,snow:()=>lr,spring_green:()=>zn,steel_blue:()=>gc,tan:()=>cc,thistle:()=>Wi,tomato:()=>Vr,transparent:()=>rc,turquoise:()=>nc,violet:()=>qs,violet_red:()=>U,wheat:()=>Ks,white:()=>Ws,white_smoke:()=>ro,yellow:()=>Oi,yellow_green:()=>Ls}),jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,B,rn,an,V,H,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,U,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,W,Pr,Fr,Ir,G,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,K,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,q,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,J,hu,gu,Y,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,X,Z,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu=i((()=>{jt=[211,211,211],Mt=[0,95,255],Nt=[175,238,238],Pt=[215,175,0],Ft=[160,32,240],It=[95,215,175],Lt=[0,255,95],Rt=[152,251,152],zt=[0,215,95],Bt=[135,206,235],Vt=[250,250,210],Ht=[255,69,0],Ut=[215,215,95],Wt=[0,255,255],Gt=[107,142,35],Kt=[255,239,213],qt=[210,105,30],Jt=[100,149,237],Yt=[215,0,0],Xt=[0,0,0],Zt=[95,95,0],Qt=[255,215,0],$t=[124,252,0],en=[0,175,135],tn=[190,190,190],nn=[255,222,173],B=[128,128,128],rn=[255,95,135],an=[244,164,96],V=[0,95,135],H=[0,255,135],on=[0,250,154],sn=[85,107,47],cn=[128,128,128],ln=[0,0,255],un=[0,95,175],dn=[255,160,122],fn=[215,175,215],pn=[34,139,34],mn=[215,255,215],hn=[222,184,135],gn=[255,235,205],_n=[175,95,95],vn=[255,105,180],yn=[143,188,143],bn=[123,104,238],xn=[211,211,211],Sn=[148,0,211],Cn=[139,69,19],wn=[186,85,211],Tn=[128,128,0],En=[255,255,215],Dn=[68,68,68],On=[245,255,250],kn=[215,215,215],An=[152,251,152],jn=[238,232,170],Mn=[215,0,215],Nn=[245,255,250],U=[208,32,144],Pn=[255,175,95],Fn=[168,168,168],In=[215,0,175],Ln=[0,95,95],Rn=[0,215,215],zn=[0,255,127],Bn=[255,165,0],Vn=[224,255,255],Hn=[175,175,95],Un=[32,178,170],Wn=[250,128,114],Gn=[176,196,222],Kn=[0,0,0],qn=[205,92,92],Jn=[175,175,135],Yn=[176,196,222],Xn=[198,198,198],Zn=[135,0,135],Qn=[0,100,0],$n=[95,135,0],er=[248,248,255],tr=[0,0,0],nr=[190,190,190],rr=[175,0,175],ir=[255,215,135],ar=[148,0,211],or=[135,95,215],sr=[253,245,230],cr=[176,48,96],lr=[255,250,250],ur=[135,95,0],dr=[0,255,215],fr=[175,135,175],pr=[215,95,255],mr=[72,209,204],hr=[255,235,205],gr=[95,255,255],_r=[173,216,230],vr=[255,245,238],yr=[135,175,255],br=[255,0,255],xr=[255,0,0],Sr=[0,0,255],Cr=[47,79,79],wr=[211,211,211],Tr=[135,255,175],Er=[173,216,230],Dr=[135,255,95],Or=[233,150,122],kr=[255,135,175],Ar=[255,175,0],jr=[95,215,95],Mr=[255,250,240],Nr=[0,128,128],W=[95,255,215],Pr=[0,128,0],Fr=[175,255,135],Ir=[0,215,135],G=[139,69,19],Lr=[255,0,175],Rr=[240,255,240],zr=[119,136,153],Br=[255,175,175],Vr=[255,99,71],Hr=[215,215,0],Ur=[34,139,34],Wr=[255,135,215],Gr=[132,112,255],Kr=[119,136,153],qr=[128,128,128],Jr=[219,112,147],Yr=[238,221,130],Xr=[132,112,255],Zr=[147,112,219],Qr=[215,135,175],$r=[215,175,255],ei=[238,232,170],ti=[28,28,28],ni=[175,0,255],ri=[255,0,0],ii=[0,255,0],ai=[215,135,215],oi=[128,0,128],si=[128,0,0],ci=[230,230,250],li=[173,255,47],ui=[0,255,0],di=[85,107,47],fi=[95,135,215],pi=[25,25,112],mi=[135,135,215],hi=[255,228,181],gi=[255,140,0],_i=[0,0,95],vi=[0,0,128],yi=[255,239,213],bi=[88,88,88],xi=[32,178,170],Si=[135,175,175],Ci=[175,0,135],wi=[215,95,135],Ti=[128,0,128],Ei=[0,0,0],Di=[255,0,0],Oi=[255,255,0],ki=[119,136,153],Ai=[218,165,32],ji=[255,240,245],Mi=[255,255,95],Ni=[95,0,95],Pi=[192,192,192],Fi=[255,0,95],Ii=[173,255,47],Li=[255,0,255],Ri=[135,135,0],zi=[175,175,175],Bi=[175,135,215],Vi=[255,95,0],Hi=[102,205,170],Ui=[38,38,38],Wi=[216,191,216],Gi=[215,0,135],Ki=[95,135,135],qi=[255,215,95],Ji=[135,95,175],Yi=[48,48,48],Xi=[135,135,135],Zi=[255,255,0],Qi=[0,135,95],$i=[175,175,215],ea=[255,215,175],ta=[95,175,0],na=[255,255,255],ra=[18,18,18],ia=[95,0,175],aa=[250,235,215],oa=[135,215,175],sa=[175,95,175],ca=[128,0,0],la=[238,238,238],ua=[175,238,238],da=[0,175,175],fa=[95,95,255],pa=[108,108,108],ma=[215,255,95],ha=[184,134,11],ga=[95,175,95],_a=[255,255,135],va=[0,255,127],ya=[135,0,255],ba=[189,183,107],xa=[106,90,205],Sa=[128,0,0],Ca=[175,215,255],wa=[215,95,95],Ta=[0,0,135],Ea=[0,135,255],Da=[0,95,0],Oa=[240,248,255],K=[98,98,98],ka=[47,79,79],Aa=[0,175,95],ja=[106,90,205],Ma=[58,58,58],Na=[255,228,196],Pa=[250,235,215],Fa=[205,92,92],Ia=[192,192,192],La=[175,215,0],Ra=[238,221,130],za=[0,0,128],Ba=[218,218,218],Va=[255,0,255],Ha=[105,105,105],Ua=[135,135,175],Wa=[215,135,0],Ga=[119,136,153],Ka=[0,175,215],qa=[50,205,50],Ja=[0,191,255],Ya=[128,128,0],Xa=[255,228,225],Za=[188,143,143],Qa=[138,138,138],$a=[105,105,105],eo=[0,255,255],to=[0,255,0],no=[255,95,255],ro=[245,245,245],io=[47,79,79],ao=[175,135,255],oo=[0,191,255],so=[255,135,255],co=[220,220,220],lo=[0,0,205],uo=[215,255,175],fo=[147,112,219],po=[135,0,95],mo=[255,0,135],ho=[215,95,0],go=[178,34,34],_o=[208,32,144],vo=[95,135,95],yo=[143,188,143],bo=[135,255,215],xo=[0,0,128],So=[255,248,220],Co=[215,215,255],wo=[255,182,193],To=[135,206,250],Eo=[95,95,135],Do=[135,0,0],Oo=[47,79,79],ko=[255,192,203],Ao=[199,21,133],jo=[205,133,63],Mo=[0,0,255],No=[255,0,215],Po=[0,135,0],Fo=[95,135,255],Io=[175,175,0],Lo=[95,0,0],Ro=[245,245,220],zo=[192,192,192],Bo=[255,20,147],Vo=[72,209,204],Ho=[215,0,95],Uo=[65,105,225],Wo=[175,95,255],Go=[0,0,215],Ko=[175,135,0],qo=[255,215,255],Jo=[178,178,178],Yo=[0,206,209],Xo=[255,255,255],Zo=[248,248,255],q=[135,255,255],Qo=[255,135,0],$o=[95,95,215],es=[255,255,255],ts=[175,0,95],ns=[250,250,210],rs=[189,183,107],is=[8,8,8],as=[78,78,78],os=[255,175,255],ss=[95,255,95],cs=[95,95,175],ls=[95,175,255],us=[250,240,230],ds=[240,128,128],fs=[240,248,255],ps=[95,95,95],ms=[255,160,122],hs=[240,230,140],gs=[95,175,175],_s=[255,0,255],vs=[175,0,215],ys=[0,0,128],bs=[255,105,180],xs=[255,250,205],Ss=[253,245,230],Cs=[255,250,240],ws=[255,175,135],Ts=[160,82,45],Es=[175,215,95],Ds=[95,0,215],Os=[255,95,95],ks=[95,158,160],As=[175,255,255],js=[240,128,128],Ms=[215,215,175],Ns=[46,139,87],Ps=[0,255,0],Fs=[255,127,80],Is=[154,205,50],Ls=[154,205,50],Rs=[255,215,215],zs=[215,135,95],Bs=[245,245,245],Vs=[0,175,0],Hs=[135,175,0],Us=[188,188,188],Ws=[255,255,255],Gs=[240,255,255],Ks=[245,222,179],qs=[238,130,238],Js=[255,95,175],Ys=[255,140,0],Xs=[255,250,205],Zs=[50,205,50],Qs=[219,112,147],$s=[215,135,255],ec=[95,215,135],tc=[0,0,255],nc=[64,224,208],rc=[255,255,255,0],ic=[135,215,215],ac=[175,215,215],oc=[215,255,255],sc=[255,255,0],cc=[210,180,140],lc=[0,255,255],uc=[95,0,255],dc=[95,158,160],fc=[0,215,0],pc=[95,215,255],mc=[95,255,175],hc=[70,130,180],gc=[70,130,180],_c=[112,128,144],vc=[112,128,144],yc=[0,100,0],bc=[112,128,144],xc=[175,255,215],Sc=[95,135,175],Cc=[65,105,225],wc=[135,206,235],Tc=[135,175,95],Ec=[135,95,135],Dc=[175,255,175],Oc=[30,144,255],kc=[215,95,175],Ac=[215,135,135],jc=[215,95,215],Mc=[175,0,0],Nc=[138,43,226],Pc=[46,139,87],Fc=[0,255,255],Ic=[244,164,96],Lc=[255,135,135],Rc=[255,0,0],zc=[0,215,255],Bc=[0,175,255],Vc=[215,175,135],Hc=[221,160,221],Uc=[255,0,255],Wc=[118,118,118],Gc=[215,215,135],Kc=[95,0,135],qc=[188,143,143],Jc=[175,95,215],Yc=[255,20,147],Xc=[176,224,230],Zc=[175,175,255],Qc=[0,0,175],$c=[176,224,230],el=[255,218,185],tl=[175,215,175],nl=[0,135,215],rl=[135,95,255],il=[0,135,175],al=[175,135,95],ol=[218,112,214],sl=[135,0,175],cl=[95,175,215],ll=[135,215,0],ul=[135,175,135],dl=[72,61,139],fl=[107,142,35],pl=[184,134,11],ml=[135,135,95],hl=[0,250,154],gl=[153,50,204],_l=[148,148,148],vl=[100,149,237],yl=[0,135,135],bl=[255,255,0],xl=[0,0,128],Sl=[135,95,95],Cl=[255,222,173],wl=[255,228,225],Tl=[0,128,0],El=[224,255,255],Dl=[175,215,135],Ol=[153,50,204],kl=[135,215,255],Al=[175,95,135],jl=[175,135,135],Ml=[215,255,0],Nl=[199,21,133],Pl=[0,0,205],Fl=[255,215,0],Il=[128,128,0],Ll=[0,255,0],Rl=[123,104,238],zl=[60,179,113],Bl=[60,179,113],Vl=[0,255,255],Hl=[186,85,211],Ul=[72,61,139],Wl=[0,128,128],Gl=[95,255,135],Kl=[175,255,0],ql=[102,205,170],Jl=[255,0,0],Yl=[215,255,135],Xl=[128,128,128],Zl=[255,255,224],Ql=[0,0,0],$l=[0,128,0],eu=[255,255,224],tu=[215,175,95],nu=[135,255,135],ru=[255,182,193],iu=[135,206,250],au=[208,208,208],ou=[211,211,211],su=[95,215,215],cu=[255,175,215],lu=[124,252,0],uu=[255,135,95],du=[255,240,245],fu=[255,255,240],pu=[255,255,255],mu=[0,255,175],J=[255,255,175],hu=[255,95,215],gu=[105,105,105],Y=[0,95,215],_u=[0,0,255],vu=[135,175,215],yu=[138,43,226],bu=[128,0,128],xu=[165,42,42],Su=[135,215,135],Cu=[0,206,209],wu=[175,255,95],Tu=[233,150,122],Eu=[215,0,255],Du=[0,128,128],Ou=[127,255,0],X=[255,69,0],Z=[112,128,144],ku=[135,255,0],Au=[255,218,185],ju=[95,215,0],Mu=[30,144,255],Nu=[135,135,255],Pu=[105,105,105],Fu=[25,25,112],Iu=[127,255,212],Lu=[135,215,95],Ru=[228,228,228],zu=[158,158,158],Bu=[175,95,0],Vu=[255,255,0],Hu=[135,0,215],Uu=[95,175,135],Wu=[0,215,175],Gu=[0,0,128],Ku=[95,255,0],qu=[215,175,175],Ju={light_gray:jt,ansi_027:Mt,pale_turquoise:Nt,ansi_178:Pt,purple:Ft,ansi_079:It,ansi_047:Lt,PaleGreen:Rt,ansi_041:zt,sky_blue:Bt,light_goldenrod_yellow:Vt,OrangeRed:Ht,ansi_185:Ut,ansi_014:Wt,OliveDrab:Gt,PapayaWhip:Kt,chocolate:qt,cornflower_blue:Jt,ansi_160:Yt,ansi_black:Xt,ansi_058:Zt,gold:Qt,lawn_green:$t,ansi_036:en,grey:tn,NavajoWhite:nn,ansi_008:B,ansi_204:rn,sandy_brown:an,ansi_024:V,ansi_048:H,MediumSpringGreen:on,DarkOliveGreen:sn,ansi_244:cn,ansi_012:ln,ansi_025:un,light_salmon:dn,ansi_182:fn,ForestGreen:pn,ansi_194:mn,burlywood:hn,BlanchedAlmond:gn,ansi_131:_n,HotPink:vn,dark_sea_green:yn,MediumSlateBlue:bn,LightGrey:xn,dark_violet:Sn,saddle_brown:Cn,medium_orchid:wn,ansi_yellow:Tn,ansi_230:En,ansi_238:Dn,MintCream:On,ansi_188:kn,pale_green:An,pale_goldenrod:jn,ansi_164:Mn,mint_cream:Nn,violet_red:U,ansi_215:Pn,ansi_248:Fn,ansi_163:In,ansi_023:Ln,ansi_044:Rn,spring_green:zn,orange:Bn,LightCyan:Vn,ansi_143:Hn,LightSeaGreen:Un,salmon:Wn,LightSteelBlue:Gn,ansi_000:Kn,indian_red:qn,ansi_144:Jn,light_steel_blue:Yn,ansi_251:Xn,ansi_090:Zn,dark_green:Qn,ansi_064:$n,ghost_white:er,ansi_016:tr,gray:nr,ansi_127:rr,ansi_222:ir,DarkViolet:ar,ansi_098:or,old_lace:sr,maroon:cr,snow:lr,ansi_094:ur,ansi_050:dr,ansi_139:fr,ansi_171:pr,MediumTurquoise:mr,blanched_almond:hr,ansi_087:gr,LightBlue:_r,seashell:vr,ansi_111:yr,ansi_013:br,ansi_light_red:xr,blue:Sr,dark_slate_grey:Cr,LightGray:wr,ansi_121:Tr,light_blue:Er,ansi_119:Dr,DarkSalmon:Or,ansi_211:kr,ansi_214:Ar,ansi_077:jr,floral_white:Mr,ansiCyan:Nr,ansi_086:W,ansi_002:Pr,ansi_156:Fr,ansi_042:Ir,SaddleBrown:G,ansi_199:Lr,honeydew:Rr,LightSlateGrey:zr,ansi_217:Br,tomato:Vr,ansi_184:Hr,forest_green:Ur,ansi_212:Wr,LightSlateBlue:Gr,light_slate_gray:Kr,ansi_light_black:qr,PaleVioletRed:Jr,LightGoldenrod:Yr,light_slate_blue:Xr,medium_purple:Zr,ansi_175:Qr,ansi_183:$r,PaleGoldenrod:ei,ansi_234:ti,ansi_129:ni,red:ri,ansi_010:ii,ansi_176:ai,ansi_magenta:oi,ansi_001:si,lavender:ci,green_yellow:li,ansi_046:ui,dark_olive_green:di,ansi_068:fi,midnight_blue:pi,ansi_104:mi,moccasin:hi,DarkOrange:gi,ansi_017:_i,NavyBlue:vi,papaya_whip:yi,ansi_240:bi,light_sea_green:xi,ansi_109:Si,ansi_126:Ci,ansi_168:wi,ansi_005:Ti,black:Ei,ansi_009:Di,yellow:Oi,light_slate_grey:ki,goldenrod:Ai,lavender_blush:ji,ansi_227:Mi,ansi_053:Ni,ansiWhite:Pi,ansi_197:Fi,GreenYellow:Ii,magenta:Li,ansi_100:Ri,ansi_145:zi,ansi_140:Bi,ansi_202:Vi,MediumAquamarine:Hi,ansi_235:Ui,thistle:Wi,ansi_162:Gi,ansi_066:Ki,ansi_221:qi,ansi_097:Ji,ansi_236:Yi,ansi_102:Xi,ansi_011:Zi,ansi_029:Qi,ansi_146:$i,ansi_223:ea,ansi_070:ta,ansi_231:na,ansi_233:ra,ansi_055:ia,antique_white:aa,ansi_115:oa,ansi_133:sa,ansi_red:ca,ansi_255:la,PaleTurquoise:ua,ansi_037:da,ansi_063:fa,ansi_242:pa,ansi_191:ma,DarkGoldenrod:ha,ansi_071:ga,ansi_228:_a,SpringGreen:va,ansi_093:ya,dark_khaki:ba,SlateBlue:xa,ansiRed:Sa,ansi_153:Ca,ansi_167:wa,ansi_018:Ta,ansi_033:Ea,ansi_022:Da,alice_blue:Oa,ansi_241:K,DarkSlateGray:ka,ansi_035:Aa,slate_blue:ja,ansi_237:Ma,bisque:Na,AntiqueWhite:Pa,IndianRed:Fa,ansi_white:Ia,ansi_148:La,light_goldenrod:Ra,ansi_blue:za,ansi_253:Ba,ansiLightMagenta:Va,DimGrey:Ha,ansi_103:Ua,ansi_172:Wa,LightSlateGray:Ga,ansi_038:Ka,lime_green:qa,deep_sky_blue:Ja,ansiYellow:Ya,misty_rose:Xa,rosy_brown:Za,ansi_245:Qa,DimGray:$a,ansi_light_cyan:eo,ansi_light_green:to,ansi_207:no,white_smoke:ro,dark_slate_gray:io,ansi_141:ao,DeepSkyBlue:oo,ansi_213:so,gainsboro:co,medium_blue:lo,ansi_193:uo,MediumPurple:fo,ansi_089:po,ansi_198:mo,ansi_166:ho,firebrick:go,VioletRed:_o,ansi_065:vo,DarkSeaGreen:yo,ansi_122:bo,navy:xo,cornsilk:So,ansi_189:Co,LightPink:wo,LightSkyBlue:To,ansi_060:Eo,ansi_088:Do,DarkSlateGrey:Oo,pink:ko,medium_violet_red:Ao,peru:jo,ansi_021:Mo,ansi_200:No,ansi_028:Po,ansi_069:Fo,ansi_142:Io,ansi_052:Lo,beige:Ro,ansi_007:zo,deep_pink:Bo,medium_turquoise:Vo,ansi_161:Ho,RoyalBlue:Uo,ansi_135:Wo,ansi_020:Go,ansi_136:Ko,ansi_225:qo,ansi_249:Jo,DarkTurquoise:Yo,ansi_light_white:Xo,GhostWhite:Zo,ansi_123:q,ansi_208:Qo,ansi_062:$o,ansi_015:es,ansi_125:ts,LightGoldenrodYellow:ns,DarkKhaki:rs,ansi_232:is,ansi_239:as,ansi_219:os,ansi_083:ss,ansi_061:cs,ansi_075:ls,linen:us,light_coral:ds,AliceBlue:fs,ansi_059:ps,LightSalmon:ms,khaki:hs,ansi_073:gs,ansi_201:_s,ansi_128:vs,ansiBlue:ys,hot_pink:bs,LemonChiffon:xs,OldLace:Ss,FloralWhite:Cs,ansi_216:ws,sienna:Ts,ansi_149:Es,ansi_056:Ds,ansi_203:Os,CadetBlue:ks,ansi_159:As,LightCoral:js,ansi_187:Ms,sea_green:Ns,ansiLightGreen:Ps,coral:Fs,YellowGreen:Is,yellow_green:Ls,ansi_224:Rs,ansi_173:zs,WhiteSmoke:Bs,ansi_034:Vs,ansi_106:Hs,ansi_250:Us,white:Ws,azure:Gs,wheat:Ks,violet:qs,ansi_205:Js,dark_orange:Ys,lemon_chiffon:Xs,LimeGreen:Zs,pale_violet_red:Qs,ansi_177:$s,ansi_078:ec,ansiLightBlue:tc,turquoise:nc,transparent:rc,ansi_116:ic,ansi_152:ac,ansi_195:oc,ansi_light_yellow:sc,tan:cc,ansiLightCyan:lc,ansi_057:uc,cadet_blue:dc,ansi_040:fc,ansi_081:pc,ansi_085:mc,SteelBlue:hc,steel_blue:gc,SlateGrey:_c,slate_grey:vc,DarkGreen:yc,slate_gray:bc,ansi_158:xc,ansi_067:Sc,royal_blue:Cc,SkyBlue:wc,ansi_107:Tc,ansi_096:Ec,ansi_157:Dc,DodgerBlue:Oc,ansi_169:kc,ansi_174:Ac,ansi_170:jc,ansi_124:Mc,BlueViolet:Nc,SeaGreen:Pc,cyan:Fc,SandyBrown:Ic,ansi_210:Lc,ansi_196:Rc,ansi_045:zc,ansi_039:Bc,ansi_180:Vc,plum:Hc,ansi_light_magenta:Uc,ansi_243:Wc,ansi_186:Gc,ansi_054:Kc,RosyBrown:qc,ansi_134:Jc,DeepPink:Yc,PowderBlue:Xc,ansi_147:Zc,ansi_019:Qc,powder_blue:$c,PeachPuff:el,ansi_151:tl,ansi_032:nl,ansi_099:rl,ansi_031:il,ansi_137:al,orchid:ol,ansi_091:sl,ansi_074:cl,ansi_112:ll,ansi_108:ul,dark_slate_blue:dl,olive_drab:fl,dark_goldenrod:pl,ansi_101:ml,medium_spring_green:hl,DarkOrchid:gl,ansi_246:_l,CornflowerBlue:vl,ansi_030:yl,ansiLightYellow:bl,navy_blue:xl,ansi_095:Sl,navajo_white:Cl,MistyRose:wl,ansiGreen:Tl,light_cyan:El,ansi_150:Dl,dark_orchid:Ol,ansi_117:kl,ansi_132:Al,ansi_138:jl,ansi_190:Ml,MediumVioletRed:Nl,MediumBlue:Pl,ansi_220:Fl,ansi_003:Il,green:Ll,medium_slate_blue:Rl,MediumSeaGreen:zl,medium_sea_green:Bl,ansi_051:Vl,MediumOrchid:Hl,DarkSlateBlue:Ul,ansi_cyan:Wl,ansi_084:Gl,ansi_154:Kl,medium_aquamarine:ql,ansiLightRed:Jl,ansi_192:Yl,ansiLightBlack:Xl,LightYellow:Zl,ansiBlack:Ql,ansi_green:$l,light_yellow:eu,ansi_179:tu,ansi_120:nu,light_pink:ru,light_sky_blue:iu,ansi_252:au,light_grey:ou,ansi_080:su,ansi_218:cu,LawnGreen:lu,ansi_209:uu,LavenderBlush:du,ivory:fu,ansiLightWhite:pu,ansi_049:mu,ansi_229:J,ansi_206:hu,dim_grey:gu,ansi_026:Y,ansi_light_blue:_u,ansi_110:vu,blue_violet:yu,ansiMagenta:bu,brown:xu,ansi_114:Su,dark_turquoise:Cu,ansi_155:wu,dark_salmon:Tu,ansi_165:Eu,ansi_006:Du,chartreuse:Ou,orange_red:X,SlateGray:Z,ansi_118:ku,peach_puff:Au,ansi_076:ju,dodger_blue:Mu,ansi_105:Nu,dim_gray:Pu,MidnightBlue:Fu,aquamarine:Iu,ansi_113:Lu,ansi_254:Ru,ansi_247:zu,ansi_130:Bu,ansi_226:Vu,ansi_092:Hu,ansi_072:Uu,ansi_043:Wu,ansi_004:Gu,ansi_082:Ku,ansi_181:qu}})),Xu=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=d;let n=t(kt()),r=t((Yu(),c(At).default)),i=[`north`,`northeast`,`east`,`southeast`,`south`,`southwest`,`west`,`northwest`,`up`,`down`,`in`,`out`],a={1:`solid line`,2:`dash line`,3:`dot line`,4:`dash dot line`,5:`dash dot dot line`};function o(e,t,n){let r={};for(let e of i){let n=t[e];n!==-1&&(r[e]=n)}let o={};for(let e in t.customLines)if(Object.hasOwn(t.customLines,e)){let n=t.customLinesColor[e];o[e]={points:t.customLines[e].map(([e,t])=>({x:e,y:t})),attributes:{color:{r:n.r,g:n.g,b:n.b},style:a[t.customLinesStyle[e]],arrow:t.customLinesArrow[e]}}}let{north:s,northeast:c,east:l,southeast:u,south:d,southwest:f,west:p,northwest:m,up:h,down:g,in:_,out:v,mSpecialExits:y,customLines:b,customLinesArrow:x,customLinesColor:S,customLinesStyle:C,environment:w,symbol:T,hash:E,...D}=t,O={...D,id:e,exits:r,specialExits:y,customLines:o};return w&&(O.env=w),T&&(O.roomChar=T),n&&(O.hash=n),O}function s(e){let t=Buffer.from(e.pixMap).toString(`base64`),{spec:n,pad:r,...i}=e.fgColor,{spec:a,pad:o,...s}=e.bgColor,{pos:c,size:l,text:u,fgColor:d,bgColor:f,dummy1:p,dummy2:m,pixMap:h,...g}=e;return{...g,X:c[0],Y:c[1],Z:c[2],Width:l[0],Height:l[1],Text:u,FgColor:i,BgColor:s,pixMap:t}}let l=r.default;function u(e){let t=e.mCustomEnvColors,n={};for(let e=0;e<=255;e++)if(e!==16){let t=`ansi_${String(e).padStart(3,`0`)}`,r;r=e===0||e===8?e+8:e,n[r]=l[t]}for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=[r.r,r.g,r.b]}for(let t in e.envColors)if(Object.hasOwn(e.envColors,t)){let r=e.envColors[t];n[t]&&(n[t]=l[`ansi_${String(r).padStart(3,`0`)}`])}return Object.entries(n).map(([e,t])=>({envId:parseInt(e),colors:t}))}function d(e){let t=n.default.cloneDeep(e),r=[],i=Object.entries(t.mpRoomDbHashToRoomId).reduce((e,[t,n])=>(e[n]=t,e),{});for(let e in t.areas)if(Object.hasOwn(t.areas,e)){let n=e,a=t.areas[n],c={areaName:t.areaNames[n],areaId:e,rooms:a.rooms.map(e=>o(e,t.rooms[e],i[e])),labels:t.labels[n]?t.labels[n].map(e=>s(e)):[]};r.push(c)}return{mapData:r,colors:u(t)}}})),Q=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=_;let n=t(kt()),r=[`north`,`northeast`,`northwest`,`east`,`west`,`south`,`southeast`,`southwest`,`up`,`down`,`in`,`out`],i=[`n`,`ne`,`nw`,`e`,`w`,`s`,`se`,`sw`,`up`,`down`,`in`,`out`],a=[void 0,`open`,`closed`,`locked`],o={2:`dash line`,3:`dot line`,4:`dash dot line`,5:`dash dot dot line`};function s(e){let t=[e.r,e.g,e.b];return e.alpha<255?{color32RGBA:[...t,e.alpha]}:{color24RGB:t}}function c(e){return o[e]}function l(e,t,n){let r=t[e];if(!(r===void 0||r===n))return r}function u(e,t,r,i){if(!(e===void 0||n.default.isEmpty(e)||r===void 0))return{...s(r),coordinates:e,endsInArrow:t??!1,style:i===void 0?void 0:c(i)}}function d(e,t){if(e.length!==0)return e.map(e=>{let n=r[e-1],o=i[e-1];return{name:n,door:t[o]===void 0?void 0:a[t[o]]}})}function f(e,t){return e.match(RegExp(`.{1,${t}}`,`g`))}function p(e){return{colors:[s(e.fgColor),s(e.bgColor)],coordinates:[e.pos[0],e.pos[1],e.pos[2]],id:e.id,image:f(Buffer.from(e.pixMap).toString(`base64`),64),scaledels:!e.noScaling,showOnTop:e.showOnTop,text:e.text,size:[e.size[0],e.size[1]]}}function m(e,t){let o=t.rooms[e],s=[];for(let e=0;e<r.length;e++){let t=r[e],c=i[e],d=o[t];d!==-1&&s.push({exitId:d,name:t,weight:l(c,o.exitWeights,1),locked:n.default.find(o.exitLocks,t=>e===t-1)?!0:void 0,door:o.doors[c]===void 0?void 0:a[o.doors[c]],customLine:u(o.customLines[c],o.customLinesArrow[c],o.customLinesColor[c],o.customLinesStyle[c])})}for(let e in o.mSpecialExits){let t=o.mSpecialExits[e];s.push({name:e,exitId:t,weight:l(e,o.exitWeights,1),locked:n.default.find(o.mSpecialExitLocks,e=>t===e)?!0:void 0,door:o.doors[e]===void 0?void 0:a[o.doors[e]],customLine:u(o.customLines[e],o.customLinesArrow[e],o.customLinesColor[e],o.customLinesStyle[e])})}return{id:e,name:o.name===``?void 0:o.name,coordinates:[o.x,o.y,o.z],locked:o.isLocked?!0:void 0,weight:o.weight===1?void 0:o.weight,symbol:o.symbol===``?void 0:{text:o.symbol},environment:o.environment,hash:o.hash,exits:s,stubExits:d(o.stubs,o.doors),userData:n.default.isEmpty(o.userData)?void 0:o.userData}}function h(e,t,r){let i=parseInt(t),a={id:i,name:r.areaNames[i]??``,gridMode:e.gridMode?!0:void 0,roomCount:e.rooms.length,rooms:n.default.map(e.rooms,e=>m(e,r)).sort((e,t)=>e.id-t.id)};return n.default.isEmpty(e.userData)||(a.userData=e.userData),n.default.isEmpty(r.labels[i])||(a.labels=n.default.map(r.labels[i],p)),a}function g(e){let t=n.default.map(e.areas,(t,n)=>h(t,n,e)).sort((e,t)=>e.id-t.id),r=n.default.map(e.mCustomEnvColors,(e,t)=>({...s(e),id:parseInt(t)})),i=e.mapSymbolFont,a=i.family.indexOf(`,`),o=`${a>-1?i.family.substring(0,a):i.family},${i.pointSize},${i.pixelSize},${i.styleHint},${i.weight},${+!!i.styleSetting},${+!!i.underline},${+!!i.strikeOut},${+!!i.fixedPitch},0`;return{formatVersion:1,...n.default.isEmpty(e.mUserData)?{}:{userData:e.mUserData},areas:t,areaCount:Object.keys(e.areas).length,roomCount:Object.keys(e.rooms).length,labelCount:n.default.flatMap(e.labels,e=>e).length,defaultAreaName:`Default Area`,anonymousAreaName:`Unnamed Area`,envToColorMapping:e.envColors,playersRoomId:e.mRoomIdHash,customEnvColors:r,mapSymbolFontDetails:o,mapSymbolFontFudgeFactor:e.mapFontFudgeFactor,onlyMapSymbolFontToBeUsed:e.useOnlyMapFont,playerRoomColors:[{color24RGB:[255,0,0]},{color24RGB:[255,255,255]}],playerRoomInnerDiameterPercentage:70,playerRoomOuterDiameterPercentage:120,playerRoomStyle:0}}function _(e,t){let n=g(e);return JSON.stringify(n,null,t?0:2)}})),Zu=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Qu=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.MudletMapReader=e.exportMap=e.readerExport=e.writeMapToBuffer=e.writeMap=e.readMapFromBuffer=e.readMap=void 0;let o=r(Ot()),s=a(Xu()),c=a(Q());e.readMap=o.readMap,e.readMapFromBuffer=o.readMapFromBuffer,e.writeMap=o.writeMap,e.writeMapToBuffer=o.writeMapToBuffer,e.readerExport=s.default,e.exportMap=c.default,i(Zu(),e),e.MudletMapReader={read:o.readMap,readBuffer:o.readMapFromBuffer,write:o.writeMap,writeBuffer:o.writeMapToBuffer,export:s.default,exportJson:c.default}}))();function $u(e){return new Uint8Array((0,Qu.writeMapToBuffer)(e))}const ed=`sessions`;function $(){return new Promise((e,t)=>{let n=indexedDB.open(`mudlet-map-editor`,2);n.onupgradeneeded=e=>{let t=n.result;e.oldVersion<2&&t.objectStoreNames.contains(ed)&&t.deleteObjectStore(ed),t.createObjectStore(ed,{keyPath:`id`})},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}function td(e){let t={};for(let n of Object.values(e.labels))for(let e of n)e.imageSrc&&(t[String(e.id)]=e.imageSrc);return t}async function nd(e,t,n,r,i,a){let o=$u(t),s=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength),c=a??crypto.randomUUID(),l={id:c,fileName:e,mapBytes:s,imageSrcs:td(t),undoStack:n,currentAreaId:r,currentZ:i,savedAt:Date.now(),roomCount:Object.keys(t.rooms).length},u=await $();return new Promise((e,t)=>{let n=u.transaction(ed,`readwrite`);n.objectStore(ed).put(l),n.oncomplete=()=>{u.close(),e(c)},n.onerror=()=>{u.close(),t(n.error)}})}const rd=self;rd.onmessage=async e=>{let{reqId:t,fileName:n,map:r,undoStack:i,currentAreaId:a,currentZ:o,existingId:s}=e.data;try{let e=await nd(n,r,i,a,o,s);rd.postMessage({reqId:t,id:e})}catch(e){rd.postMessage({reqId:t,error:e instanceof Error?e.message:String(e)})}};
|