CyberChef/modules/Image.js
2024-10-23 15:17:24 +00:00

2 lines
918 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see Image.js.LICENSE.txt */
(()=>{var __webpack_modules__={53265:(t,e,r)=>{"use strict";var n=r(67526),i=r(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=u,e.IS=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(G(t,Uint8Array)){var e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(G(t,SharedArrayBuffer)||t&&G(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||j(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return h(t),s(t<0?0:0|p(t))}function f(t){for(var e=t.length<0?0:0|p(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(i)return n?-1:D(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),j(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var h=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===h?0:a-h)){if(-1===h&&(h=a),a-h+1===u)return h*o}else-1!==h&&(a-=a-h),h=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var c=!0,f=0;f<u;f++)if(l(t,a+f)!==l(e,f)){c=!1;break}if(c)return a}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(j(s))return o;t[r+o]=s}return o}function _(t,e,r,n){return z(D(e,t.length-r),t,r,n)}function k(t,e,r,n){return z(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function B(t,e,r,n){return z(N(e),t,r,n)}function x(t,e,r,n){return z(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],h=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c<=r)switch(c){case 1:l<128&&(h=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(h=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(h=u)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return h(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return c(t)},u.allocUnsafeSlow=function(t){return c(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(G(a,Uint8Array))i+a.length>n.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),l=this.slice(n,i),h=t.slice(e,r),c=0;c<s;++c)if(l[c]!==h[c]){a=l[c],o=h[c];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=H[t[a]];return i}function P(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function F(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,a){return e=+e,r>>>=0,a||F(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function O(t,e,r,n,a){return e=+e,r>>>=0,a||F(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=u.isBuffer(t)?t:u.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function N(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function j(t){return t!=t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},31493:(t,e,r)=>{var n=r(46264);function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},46264:t=>{"use strict";function e(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}e.prototype.convert=function(t){var e,r,n,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,u="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*a+i[e])>=o?(i[n++]=parseInt(r/o,10),r%=o):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},e.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=e},34529:(t,e,r)=>{"use strict";function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.g.Buffer&&"function"==typeof r.g.Buffer.isBuffer?r.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=r(40537),o=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function h(t){return!i(t)&&"function"==typeof r.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var c=t.exports=b,f=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(a.isFunction(t)){if(u)return t.name;var e=t.toString().match(f);return e&&e[1]}}function p(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function m(t){if(u||!a.isFunction(t))return a.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function g(t,e,r,n,i){throw new c.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||g(t,!0,e,"==",c.ok)}function y(t,e,r,o){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(h(t)&&h(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var u=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===o.expected.indexOf(e)||(o.actual.push(t),o.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=v(t),o=v(e);if(i&&!o||!i&&o)return!1;if(i)return y(t=s.call(t),e=s.call(e),r);var u,l,h=k(t),c=k(e);if(h.length!==c.length)return!1;for(h.sort(),c.sort(),l=h.length-1;l>=0;l--)if(h[l]!==c[l])return!1;for(l=h.length-1;l>=0;l--)if(!y(t[u=h[l]],e[u],r,n))return!1;return!0}(t,e,r,o))}return r?t===e:t==e}function v(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function _(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&g(i,r,"Missing expected exception"+n);var o="string"==typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),t&&i&&r&&!w(i,r)||!t&&i)throw i}c.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return p(m(t.actual),128)+" "+t.operator+" "+p(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},a.inherits(c.AssertionError,Error),c.fail=g,c.ok=b,c.equal=function(t,e,r){t!=e&&g(t,e,r,"==",c.equal)},c.notEqual=function(t,e,r){t==e&&g(t,e,r,"!=",c.notEqual)},c.deepEqual=function(t,e,r){y(t,e,!1)||g(t,e,r,"deepEqual",c.deepEqual)},c.deepStrictEqual=function(t,e,r){y(t,e,!0)||g(t,e,r,"deepStrictEqual",c.deepStrictEqual)},c.notDeepEqual=function(t,e,r){y(t,e,!1)&&g(t,e,r,"notDeepEqual",c.notDeepEqual)},c.notDeepStrictEqual=function t(e,r,n){y(e,r,!0)&&g(e,r,n,"notDeepStrictEqual",t)},c.strictEqual=function(t,e,r){t!==e&&g(t,e,r,"===",c.strictEqual)},c.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,"!==",c.notStrictEqual)},c.throws=function(t,e,r){_(!0,t,e,r)},c.doesNotThrow=function(t,e,r){_(!1,t,e,r)},c.ifError=function(t){if(t)throw t};var k=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e}},67526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=s(t),o=a[0],u=a[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,u)),h=0,c=u>0?o-4:o;for(r=0;r<c;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[h++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,l=n-i;s<l;s+=o)a.push(u(t,s,s+o>l?l:s+o));return 1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,a,o=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},84252:(t,e,r)=>{var n=r(63684),i=r(98844);t.exports={encode:n,decode:i}},98844:(t,e,r)=>{var n=r(48287).Buffer;function i(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}i.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},i.prototype.parseRGBA=function(){var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new n(e),this[t]()},i.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var a=this.buffer.readUInt8(this.pos++),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[a>>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=u.blue,this.data[o+4*s+2]=u.green,this.data[o+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},i.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,r=!1;t<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?e--:e++,t=e*this.width*4,r=!1;continue}if(1==i)break;if(2==i){var a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?e-=o:e+=o,t+=o*this.width*4+4*a}else{for(var s=this.buffer.readUInt8(this.pos++),u=0;u<i;u++)r?l.call(this,15&s):l.call(this,(240&s)>>4),1&u&&u+1<i&&(s=this.buffer.readUInt8(this.pos++)),r=!r;1==(i+1>>1&1)&&this.pos++}}else for(u=0;u<n;u++)r?l.call(this,15&i):l.call(this,(240&i)>>4),r=!r}function l(e){var r=this.palette[e];this.data[t]=0,this.data[t+1]=r.blue,this.data[t+2]=r.green,this.data[t+3]=r.red,t+=4}}else{var h=Math.ceil(this.width/2),c=h%4;for(o=this.height-1;o>=0;o--){var f=this.bottom_up?o:this.height-1-o;for(a=0;a<h;a++){i=this.buffer.readUInt8(this.pos++),t=f*this.width*4+2*a*4;var d=i>>4,p=15&i,m=this.palette[d];if(this.data[t]=0,this.data[t+1]=m.blue,this.data[t+2]=m.green,this.data[t+3]=m.red,2*a+1>=this.width)break;m=this.palette[p],this.data[t+4]=0,this.data[t+4+1]=m.blue,this.data[t+4+2]=m.green,this.data[t+4+3]=m.red}0!=c&&(this.pos+=4-c)}}},i.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t<this.data.length;){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++);if(0==r){if(0==n){this.bottom_up?e--:e++,t=e*this.width*4;continue}if(1==n)break;if(2==n){var i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?e-=a:e+=a,t+=a*this.width*4+4*i}else{for(var o=0;o<n;o++){var s=this.buffer.readUInt8(this.pos++);u.call(this,s)}!0&n&&this.pos++}}else for(o=0;o<r;o++)u.call(this,n)}function u(e){var r=this.palette[e];this.data[t]=0,this.data[t+1]=r.blue,this.data[t+2]=r.green,this.data[t+3]=r.red,t+=4}}else{var l=this.width%4;for(a=this.height-1;a>=0;a--){var h=this.bottom_up?a:this.height-1-a;for(i=0;i<this.width;i++)if(n=this.buffer.readUInt8(this.pos++),t=h*this.width*4+4*i,n<this.palette.length){var c=this.palette[n];this.data[t]=0,this.data[t+1]=c.blue,this.data[t+2]=c.green,this.data[t+3]=c.red}else this.data[t]=0,this.data[t+1]=255,this.data[t+2]=255,this.data[t+3]=255;0!=l&&(this.pos+=4-l)}}},i.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,u=(a>>10&e)/e*255|0,l=a>>15?255:0,h=n*this.width*4+4*i;this.data[h]=l,this.data[h+1]=o,this.data[h+2]=s,this.data[h+3]=u}this.pos+=t}},i.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(o&this.maskBlue)<<e[0],u=(o&this.maskGreen)>>e[1],l=(o&this.maskRed)>>e[2],h=i*this.width*4+4*a;this.data[h]=0,this.data[h+1]=s,this.data[h+2]=u,this.data[h+3]=l}this.pos+=t}},i.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=e*this.width*4+4*r;this.data[o]=0,this.data[o+1]=n,this.data[o+2]=i,this.data[o+3]=a}this.pos+=this.width%4}},i.prototype.bit32=function(){if(3==this.compress){this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4;for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o}}else for(t=this.height-1;t>=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++)i=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r,this.data[s]=n,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=o},i.prototype.getData=function(){return this.data},t.exports=function(t){return new i(t)}},63684:(t,e,r)=>{var n=r(48287).Buffer;function i(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}i.prototype.encode=function(){var t=new n(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,r=3*this.width+this.extraBytes,i=0;i<this.height;i++){for(var a=0;a<this.width;a++){var o=this.pos+i*r+3*a;e++,t[o]=this.buffer[e++],t[o+1]=this.buffer[e++],t[o+2]=this.buffer[e++]}if(this.extraBytes>0){var s=this.pos+i*r+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new i(t).encode(),width:t.width,height:t.height}}},5974:(t,e,r)=>{"use strict";var n=r(48287).Buffer,i=r(65606),a=r(34529),o=r(44442),s=r(58411),u=r(71447),l=r(19681);for(var h in l)e[h]=l[h];function c(t){if("number"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7,c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||u.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},c.prototype.write=function(t,e,r,n,i,a,o){return this._write(!0,t,e,r,n,i,a,o)},c.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},c.prototype._write=function(t,r,o,s,u,l,h,c){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==e.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==e.Z_NO_FLUSH&&r!==e.Z_PARTIAL_FLUSH&&r!==e.Z_SYNC_FLUSH&&r!==e.Z_FULL_FLUSH&&r!==e.Z_FINISH&&r!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=n.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=c,this.strm.output=l,this.strm.next_out=h,this.flush=r,!t)return this._process(),this._checkError()?this._afterSync():void 0;var f=this;return i.nextTick((function(){f._process(),f._after()})),this},c.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},c.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},c.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},c.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(t,r,n,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(t>=8&&t<=15,"invalid windowBits"),a(r>=-1&&r<=9,"invalid compression level"),a(n>=1&&n<=9,"invalid memlevel"),a(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,t,n,i,o),this._setDictionary()},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(t,r,n,i,a){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},c.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=s.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=c},78559:(t,e,r)=>{"use strict";var n=r(65606),i=r(48287).Buffer,a=r(88310).Transform,o=r(5974),s=r(40537),u=r(34529).ok,l=r(48287).kMaxLength,h="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f<c.length;f++){var d=c[f];d.match(/^Z/)&&Object.defineProperty(e,d,{enumerable:!0,value:o[d],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(p),g=0;g<m.length;g++){var b=m[g];p[p[b]]=b}function y(t,e,r){var n=[],a=0;function o(){for(var e;null!==(e=t.read());)n.push(e),a+=e.length;t.once("readable",o)}function s(){var e,o=null;a>=l?o=new RangeError(h):e=i.concat(n,a),n=[],t.close(),r(o,e)}t.on("error",(function(e){t.removeListener("end",s),t.removeListener("readable",o),r(e)})),t.on("end",s),t.end(e),o()}function v(t,e){if("string"==typeof e&&(e=i.from(e)),!i.isBuffer(e))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return t._processChunk(e,r)}function w(t){if(!(this instanceof w))return new w(t);I.call(this,t,o.DEFLATE)}function _(t){if(!(this instanceof _))return new _(t);I.call(this,t,o.INFLATE)}function k(t){if(!(this instanceof k))return new k(t);I.call(this,t,o.GZIP)}function B(t){if(!(this instanceof B))return new B(t);I.call(this,t,o.GUNZIP)}function x(t){if(!(this instanceof x))return new x(t);I.call(this,t,o.DEFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);I.call(this,t,o.INFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);I.call(this,t,o.UNZIP)}function A(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function I(t,r){var n=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,a.call(this,t),t.flush&&!A(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!A(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!i.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit("error",n)};var u=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(u=t.level);var l=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(l=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,l,t.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function M(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function S(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=w,e.Inflate=_,e.Gzip=k,e.Gunzip=B,e.DeflateRaw=x,e.InflateRaw=E,e.Unzip=C,e.createDeflate=function(t){return new w(t)},e.createInflate=function(t){return new _(t)},e.createDeflateRaw=function(t){return new x(t)},e.createInflateRaw=function(t){return new E(t)},e.createGzip=function(t){return new k(t)},e.createGunzip=function(t){return new B(t)},e.createUnzip=function(t){return new C(t)},e.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new w(e),t,r)},e.deflateSync=function(t,e){return v(new w(e),t)},e.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new k(e),t,r)},e.gzipSync=function(t,e){return v(new k(e),t)},e.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new x(e),t,r)},e.deflateRawSync=function(t,e){return v(new x(e),t)},e.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new C(e),t,r)},e.unzipSync=function(t,e){return v(new C(e),t)},e.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new _(e),t,r)},e.inflateSync=function(t,e){return v(new _(e),t)},e.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new B(e),t,r)},e.gunzipSync=function(t,e){return v(new B(e),t)},e.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),y(new E(e),t,r)},e.inflateRawSync=function(t,e){return v(new E(e),t)},s.inherits(I,a),I.prototype.params=function(t,r,i){if(t<e.Z_MIN_LEVEL||t>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(t,r),a._hadError||(a._level=t,a._strategy=r,i&&i())}))}else n.nextTick(i)},I.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},I.prototype._flush=function(t){this._transform(i.alloc(0),"",t)},I.prototype.flush=function(t,e){var r=this,a=this._writableState;("function"==typeof t||void 0===t&&!e)&&(e=t,t=o.Z_FULL_FLUSH),a.ended?e&&n.nextTick(e):a.ending?e&&this.once("end",e):a.needDrain?e&&this.once("drain",(function(){return r.flush(t,e)})):(this._flushFlag=t,this.write(i.alloc(0),"",e))},I.prototype.close=function(t){M(this,t),n.nextTick(S,this)},I.prototype._transform=function(t,e,r){var n,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||i.isBuffer(t)?this._handle?(s?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},I.prototype._processChunk=function(t,e,r){var n=t&&t.length,a=this._chunkSize-this._offset,o=0,s=this,c="function"==typeof r;if(!c){var f,d=[],p=0;this.on("error",(function(t){f=t})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,o,n,this._buffer,this._offset,a)}while(!this._hadError&&y(m[0],m[1]));if(this._hadError)throw f;if(p>=l)throw M(this),new RangeError(h);var g=i.concat(d,p);return M(this),g}u(this._handle,"zlib binding closed");var b=this._handle.write(e,t,o,n,this._buffer,this._offset,a);function y(l,h){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var f=a-h;if(u(f>=0,"have should not go down"),f>0){var m=s._buffer.slice(s._offset,s._offset+f);s._offset+=f,c?s.push(m):(d.push(m),p+=m.length)}if((0===h||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===h){if(o+=n-l,n=l,!c)return!0;var g=s._handle.write(e,t,o,n,s._buffer,s._offset,s._chunkSize);return g.callback=y,void(g.buffer=t)}if(!c)return!1;r()}}b.buffer=t,b.callback=y},s.inherits(w,I),s.inherits(_,I),s.inherits(k,I),s.inherits(B,I),s.inherits(x,I),s.inherits(E,I),s.inherits(C,I)},33922:(t,e,r)=>{var n=r(48287).Buffer;t.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},48287:(t,e,r)=>{"use strict";const n=r(67526),i=r(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|m(t,e);let n=s(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return h(t),s(t<0?0:0|p(t))}function f(t){const e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(i)return n?-1:Z(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){let a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let n=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===u)return n*o}else-1!==n&&(a-=a-n),n=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){let r=!0;for(let n=0;n<u;n++)if(l(t,a+n)!==l(e,n)){r=!1;break}if(r)return a}return-1}function w(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const a=e.length;let o;for(n>a/2&&(n=a/2),o=0;o<n;++o){const n=parseInt(e.substr(2*o,2),16);if(X(n))return o;t[r+o]=n}return o}function _(t,e,r,n){return V(Z(e,t.length-r),t,r,n)}function k(t,e,r,n){return V(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function B(t,e,r,n){return V($(e),t,r,n)}function x(t,e,r,n){return V(function(t,e){let r,n,i;const a=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let a=null,o=e>239?4:e>223?3:e>191?2:1;if(i+o<=r){let r,n,s,u;switch(o){case 1:e<128&&(a=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(a=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(a=u))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=o}return function(t){const e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return h(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return c(t)},u.allocUnsafeSlow=function(t){return c(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0);const s=Math.min(a,o),l=this.slice(n,i),h=t.slice(e,r);for(let t=0;t<s;++t)if(l[t]!==h[t]){a=l[t],o=h[t];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function I(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function M(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=J[t[n]];return i}function P(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function F(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function L(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a>>=8,t[r+6]=a,a>>=8,t[r+5]=a,a>>=8,t[r+4]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],i=1,a=0;for(;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],i=1,a=0;for(;++a<e&&(i*=256);)n+=this[t+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=e,i=1,a=this[t+--n];for(;n>0&&(i*=256);)a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Q((function(t,e=0){return F(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Q((function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=0,a=1,o=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===o&&0!==this[e+i-1]&&(o=1),this[e+i]=(t/a|0)-o&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=r-1,a=1,o=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/a|0)-o&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Q((function(t,e=0){return F(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Q((function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const a=u.isBuffer(t)?t:u.from(t,n),o=a.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%o]}return this};const N={};function z(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function G(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function j(t,e,r,n,i,a){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=a>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(a+1)}${n}`:`>= -(2${n} ** ${8*(a+1)-1}${n}) and < 2 ** ${8*(a+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new N.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,a)}function H(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw H(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=G(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function Z(t,e){let r;e=e||1/0;const n=t.length;let i=null;const a=[];for(let o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function $(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?K:t}function K(){throw new Error("BigInt not supported")}},37007:t=>{function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function n(t){return"object"==typeof t&&null!==t}function i(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,a,o,s,u,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var h=new Error('Uncaught, unspecified "error" event. ('+e+")");throw h.context=e,h}if(i(a=this._events[t]))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),a.apply(this,s)}else if(n(a))for(s=Array.prototype.slice.call(arguments,1),o=(l=a.slice()).length,u=0;u<o;u++)l[u].apply(this,s);return!0},e.prototype.addListener=function(t,a){var o;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(a.listener)?a.listener:a),this._events[t]?n(this._events[t])?this._events[t].push(a):this._events[t]=[this._events[t],a]:this._events[t]=a,n(this._events[t])&&!this._events[t].warned&&(o=i(this._maxListeners)?e.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,a,o,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(i=this._events[t]).length,a=-1,i===e||r(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(n(i)){for(s=o;s-- >0;)if(i[s]===e||i[s].listener&&i[s].listener===e){a=s;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},e.listenerCount=function(t,e){return t.listenerCount(e)}},87833:(t,e,r)=>{var n=r(74942);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)("this")).ArrayBuffer){var i=r(84628);return new n(new i(t,0,t.byteLength,!0,e))}var a=r(83779);return new n(new a(t,0,t.length,!0))}}},83779:t=>{function e(t,e,r,n){this.buffer=t,this.offset=e||0,r="number"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}e.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(r){return r=(r||0)+this.offset,new e(t.buffer,r,t.endPosition-r,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,r){return r="number"==typeof r?r:this.endPosition-(this.offset+t),new e(this.buffer,this.offset+t,r,this.bigEndian)}},t.exports=e},32297:t=>{function e(t){return parseInt(t,10)}function r(t,r){t=t.map(e),r=r.map(e);var n=t[0],i=t[1]-1,a=t[2],o=r[0],s=r[1],u=r[2];return Date.UTC(n,i,a,o,s,u,0)/1e3}function n(t){var n=t.substr(0,10).split("-"),i=t.substr(11,8).split(":"),a=t.substr(19,6).split(":").map(e),o=3600*a[0]+60*a[1],s=r(n,i);if("number"==typeof(s-=o)&&!isNaN(s))return s}function i(t){var e=t.split(" "),n=r(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:i,parseDateWithTimezoneFormat:n,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?n(t):e?i(t):void 0}}},84628:t=>{function e(t,e,r,n,i,a){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(a||0)+e}e.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(r){return r=(r||0)+this.offset,new e(t.arrayBuffer,r,t.arrayBuffer.byteLength-r,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,r){return r="number"==typeof r?r:this.arrayBuffer.byteLength-(this.offset+t),new e(this.arrayBuffer,this.offset+t,r,!this.littleEndian,this.global,this.parentOffset)}},t.exports=e},26393:t=>{t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},58107:t=>{function e(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,r){var n,i,a=r.nextUInt16(),o=r.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),u=r.nextUInt32(),l=s*u;if(l>4&&(r=t.openWithOffset(r.nextUInt32())),2===o){var h=(n=r.nextString(u)).indexOf("\0");-1!==h&&(n=n.substr(0,h))}else if(7===o)n=r.nextBuffer(u);else if(0!==o)for(n=[],i=0;i<u;++i)n.push(e(o,r));return l<4&&r.skip(4-l),[a,n,o]}function n(t,e,n){var i,a,o=e.nextUInt16();for(a=0;a<o;++a)n((i=r(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,i,a,o;try{r=function(t){if("Exif\0\0"!==t.nextString(6))throw new Error("Invalid EXIF header");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error("Invalid TIFF header");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error("Invalid TIFF data");return e}(t)}catch(t){return!1}var s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;n(r,s,(function(t,r,n){switch(t){case 34853:a=r[0];break;case 34665:i=r[0];break;default:e(u,t,r,n)}}));var l=s.nextUInt32();if(0!==l){var h=r.openWithOffset(l);n(r,h,e.bind(null,this.IFD1))}if(a){var c=r.openWithOffset(a);n(r,c,e.bind(null,this.GPSIFD))}if(i){var f=r.openWithOffset(i),d=this.InteropIFD;n(r,f,(function(t,r,n){40965===t?o=r[0]:e(d,t,r,n)}))}if(o){var p=r.openWithOffset(o);n(r,p,e.bind(null,this.InteropIFD))}return!0}}},62335:t=>{t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");r=(n=t.nextUInt8())>=208&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",r=t-192):t>=208&&t<=215&&(e="RST",r=t-208)}var n={name:e};return"number"==typeof r&&(n.index=r),n}}},74942:(t,e,r)=>{var n=r(62335),i=r(58107),a=r(29062);function o(t,e,r,n,i,a,o){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=a,this.app1Offset=o}function s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}o.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength||"string"==typeof t&&("image/jpeg"===t.toLowerCase().trim()?6!==this.thumbnailType:"image/tiff"!==t.toLowerCase().trim()||1!==this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){"SOF"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var t,e,s,u,l,h,c,f,d,p=this.stream.mark(),m=p.openWithOffset(0),g=this.flags;return g.resolveTagNames&&(c=r(26393)),g.resolveTagNames?(t={},f=function(e){return t[e.name]},d=function(e,r){t[e.name]=r}):(t=[],f=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},d=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,o){var f=o.offsetFrom(p);225===r?i.parseTags(o,(function(e,r,n,o){if(g.readBinaryTags||7!==o){if(513===r){if(s=n[0],g.hidePointers)return}else if(514===r){if(u=n[0],g.hidePointers)return}else if(259===r&&(l=n[0],g.hidePointers))return;if(g.returnTags)if(g.simplifyValues&&(n=a.simplifyValue(n,o)),g.resolveTagNames){var h=(e===i.GPSIFD?c.gps:c.exif)[r];h||(h=c.exif[r]),t.hasOwnProperty(h)||(t[h]=n)}else t.push({section:e,type:r,value:n})}}))&&(h=f):g.imageSize&&"SOF"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(o))})),g.simplifyValues&&(a.castDegreeValues(f,d),a.castDateValues(f,d)),new o(p,t,e,s,u,l,h)}},t.exports=s},29062:(t,e,r)=>{var n=r(58107),i=r(32297),a=[{section:n.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:n.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],o=[{section:n.SubIFD,type:306,name:"ModifyDate"},{section:n.SubIFD,type:36867,name:"DateTimeOriginal"},{section:n.SubIFD,type:36868,name:"CreateDate"},{section:n.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,a=(n[0]+n[1]/60+n[2]/3600)*i;e(r,a)}}))},castDateValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var a=i.parseExifDate(n);void 0!==a&&e(r,a)}}))},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map((function(t){return 10===e||5===e?t[0]/t[1]:t}))).length&&(t=t[0]),t}}},5707:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(48287).Buffer;const Token=__webpack_require__(44266),strtok3=__webpack_require__(96452),{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=__webpack_require__(86760),supported=__webpack_require__(71664),minimumBytes=4100;async function fromStream(t){const e=await strtok3.fromStream(t);try{return await fromTokenizer(e)}finally{await e.close()}}async function fromBuffer(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof t}\``);const e=t instanceof Buffer?t:Buffer.from(t);if(e&&e.length>1)return fromTokenizer(strtok3.fromBuffer(e))}function _check(t,e,r){r={offset:0,...r};for(const[n,i]of e.entries())if(r.mask){if(i!==(r.mask[n]&t[n+r.offset]))return!1}else if(i!==t[n+r.offset])return!1;return!0}async function fromTokenizer(t){try{return _fromTokenizer(t)}catch(t){if(!(t instanceof strtok3.EndOfStreamError))throw t}}async function _fromTokenizer(t){let e=Buffer.alloc(minimumBytes);const r=(t,r)=>_check(e,t,r),n=(t,e)=>r(stringToBytes(t),e);if(t.fileInfo.size||(t.fileInfo.size=Number.MAX_SAFE_INTEGER),await t.peekBuffer(e,{length:12,mayBeLess:!0}),r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(r([37,33]))return await t.peekBuffer(e,{length:24,mayBeLess:!0}),n("PS-Adobe-",{offset:2})&&n(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n("ID3")){await t.ignore(6);const i=await t.readToken(uint32SyncSafeToken);return t.position+i>t.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await t.ignore(i),fromTokenizer(t))}if(n("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===e[0]||70===e[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n("FLIF"))return{ext:"flif",mime:"image/flif"};if(n("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(n("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(n("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(r([80,75,3,4])){try{for(;t.position+30<t.fileInfo.size;){await t.readBuffer(e,{length:30});const a={compressedSize:e.readUInt32LE(18),uncompressedSize:e.readUInt32LE(22),filenameLength:e.readUInt16LE(26),extraFieldLength:e.readUInt16LE(28)};if(a.filename=await t.readToken(new Token.StringType(a.filenameLength,"utf-8")),await t.ignore(a.extraFieldLength),"META-INF/mozilla.rsa"===a.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(a.filename.endsWith(".rels")||a.filename.endsWith(".xml"))switch(a.filename.split("/")[0]){case"_rels":default:break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(a.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(a.filename.startsWith("3D/")&&a.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if("mimetype"===a.filename&&a.compressedSize===a.uncompressedSize)switch(await t.readToken(new Token.StringType(a.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}if(0===a.compressedSize){let o=-1;for(;o<0&&t.position<t.fileInfo.size;)await t.peekBuffer(e,{mayBeLess:!0}),o=e.indexOf("504B0304",0,"hex"),await t.ignore(o>=0?o:e.length)}else await t.ignore(a.compressedSize)}}catch(s){if(!(s instanceof strtok3.EndOfStreamError))throw s}return{ext:"zip",mime:"application/zip"}}if(n("OggS")){await t.ignore(28);const u=Buffer.alloc(8);return await t.readBuffer(u),_check(u,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(u,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(u,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(u,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(u,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(u,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(r([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n("ftyp",{offset:4})&&96&e[8]){const l=e.toString("binary",8,12).replace("\0"," ").trim();switch(l){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return l.startsWith("3g")?l.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n("MThd"))return{ext:"mid",mime:"audio/midi"};if(n("wOFF")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(n("wOF2")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(n("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(n("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(n("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(n("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(n("%PDF")){await t.ignore(1350);const h=10485760,c=Buffer.alloc(Math.min(h,t.fileInfo.size));return await t.readBuffer(c,{mayBeLess:!0}),c.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([73,73,42,0]))return n("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:r([28,0,254,0],{offset:8})||r([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:r([8,0,0,0],{offset:4})&&(r([45,0,254,0],{offset:8})||r([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(e=Buffer.alloc(24),await t.peekBuffer(e),(r([16,251,134,1],{offset:4})||r([8,0,0,0],{offset:4}))&&r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n("MAC "))return{ext:"ape",mime:"audio/ape"};if(r([26,69,223,163])){async function f(){const e=await t.peekNumber(Token.UINT8);let r=128,n=0;for(;!(e&r)&&0!==r;)++n,r>>=1;const i=Buffer.alloc(n+1);return await t.readBuffer(i),i}async function d(){const t=await f(),e=await f();e[0]^=128>>e.length-1;const r=Math.min(6,e.length);return{id:t.readUIntBE(0,t.length),len:e.readUIntBE(e.length-r,r)}}async function p(e,r){for(;r>0;){const e=await d();if(17026===e.id)return t.readToken(new Token.StringType(e.len,"utf-8"));await t.ignore(e.len),--r}}const m=await d();switch(await p(0,m.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(n("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(n("MSCF")||n("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(r([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(n("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(n("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(n("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n("-lh0-",{offset:2})||n("-lh1-",{offset:2})||n("-lh2-",{offset:2})||n("-lh3-",{offset:2})||n("-lh4-",{offset:2})||n("-lh5-",{offset:2})||n("-lh6-",{offset:2})||n("-lh7-",{offset:2})||n("-lzs-",{offset:2})||n("-lz4-",{offset:2})||n("-lz5-",{offset:2})||n("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(r([0,0,1,186])){if(r([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(r([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n("solid "))return{ext:"stl",mime:"model/stl"};if(n("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(n("!<arch>"))return await t.ignore(8),"debian-binary"===await t.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(r([137,80,78,71,13,10,26,10])){async function g(){return{length:await t.readToken(Token.INT32_BE),type:await t.readToken(new Token.StringType(4,"binary"))}}await t.ignore(8);do{const b=await g();if(b.length<0)return;switch(b.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await t.ignore(b.length+4)}}while(t.position+8<t.fileInfo.size);return{ext:"png",mime:"image/png"}}if(r([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(r([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(r([102,114,101,101],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(n("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(r([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(r([48,38,178,117,142,102,207,17,166,217])){async function y(){const e=Buffer.alloc(16);return await t.readBuffer(e),{id:e,size:Number(await t.readToken(Token.UINT64_LE))}}for(await t.ignore(30);t.position+24<t.fileInfo.size;){const v=await y();let w=v.size-24;if(_check(v.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const _=Buffer.alloc(16);if(w-=await t.readBuffer(_),_check(_,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(_,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await t.ignore(w)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((r([126,16,4])||r([126,24,4]))&&r([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(r([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(r([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await t.ignore(20),await t.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(r([255,10])||r([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await t.peekBuffer(e,{length:Math.min(256,t.fileInfo.size),mayBeLess:!0}),n("BEGIN:")){if(n("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(n("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(n("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(n("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(n("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(r([4,0,0,0])&&e.length>=16){const k=e.readUInt32LE(12);if(k>12&&e.length>=k+16)try{const B=e.slice(16,k+16).toString();if(JSON.parse(B).files)return{ext:"asar",mime:"application/x-asar"}}catch(x){}}if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(n("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await t.peekBuffer(e,{length:Math.min(512,t.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(e))return{ext:"tar",mime:"application/x-tar"};if(r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(n("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(e.length>=2&&r([255,224],{offset:0,mask:[255,224]})){if(r([16],{offset:1,mask:[22]}))return r([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(r([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",(async()=>{const t=new stream.PassThrough;let e;e=stream.pipeline?stream.pipeline(readableStream,t,(()=>{})):readableStream.pipe(t);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const e=await fromBuffer(r);t.fileType=e}catch(t){reject(t)}resolve(e)}))})),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType},53846:(t,e,r)=>{"use strict";const n=r(80363),i=r(5707),a={fromFile:async function(t){const e=await n.fromFile(t);try{return await i.fromTokenizer(e)}finally{await e.close()}}};Object.assign(a,i),Object.defineProperty(a,"extensions",{get:()=>i.extensions}),Object.defineProperty(a,"mimeTypes",{get:()=>i.mimeTypes}),t.exports=a},71664:t=>{"use strict";t.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},86760:(t,e)=>{"use strict";e.stringToBytes=t=>[...t].map((t=>t.charCodeAt(0))),e.tarHeaderChecksumMatches=(t,e=0)=>{const r=parseInt(t.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let n=256;for(let r=e;r<e+148;r++)n+=t[r];for(let r=e+156;r<e+512;r++)n+=t[r];return r===n},e.uint32SyncSafeToken={get:(t,e)=>127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21,len:4}},19208:(t,e,r)=>{"use strict";var n=r(48287).Buffer;class i{constructor(...t){if(0===t.length)throw new Error("constructor requires parameters");const e=t[0];if(null!==e&&"object"==typeof e)if(e instanceof i){const t=e.bitmap;this.bitmap={width:t.width,height:t.height,data:new n(t.width*t.height*4)},t.data.copy(this.bitmap.data)}else{if(!(e.width&&e.height&&e.data))throw new Error("unrecognized constructor parameters");this.bitmap=e}else{if("number"!=typeof e||"number"!=typeof t[1])throw new Error("unrecognized constructor parameters");{const r=e,i=t[1],a=t[2];this.bitmap={width:r,height:i},n.isBuffer(a)?this.bitmap.data=a:(this.bitmap.data=new n(r*i*4),"number"==typeof a&&this.fillRGBA(a))}}}blit(t,e,r,n,i,a,o){if(n+a>this.bitmap.width)throw new Error("copy exceeds width of source bitmap");if(e+a>t.bitmap.width)throw new Error("copy exceeds width of target bitmap");if(i+o>this.bitmap.height)throw new Error("copy exceeds height of source bitmap");if(r+o>t.bitmap.height)throw new Erro("copy exceeds height of target bitmap");const s=this.bitmap.data,u=t.bitmap.data,l=4*this.bitmap.width,h=4*t.bitmap.width,c=4*a;let f=i*l+4*n,d=r*h+4*e;for(;--o>=0;)s.copy(u,d,f,f+c),f+=l,d+=h;return this}fillRGBA(t){const e=this.bitmap.data,r=4*this.bitmap.height;let n=0;for(;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}getRGBA(t,e){const r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}getRGBASet(){const t=new Set,e=this.bitmap.data;for(let r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}greyscale(){const t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,((e,r,n)=>{const i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}reframe(t,e,r,n,a){const o=t<0?0:t,s=e<0?0:e,u=r+o>this.bitmap.width?this.bitmap.width-o:r,l=n+s>this.bitmap.height?this.bitmap.height-s:n,h=t<0?-t:0,c=e<0?-e:0;let f;if(void 0===a){if(o!==t||s!=e||u!==r||l!==n)throw new GifError("fillRGBA required for this reframing");f=new i(r,n)}else f=new i(r,n,a);return this.blit(f,h,c,o,s,u,l),this.bitmap=f.bitmap,this}scale(t){if(1===t)return;if(!Number.isInteger(t)||t<1)throw new Error("the scale must be an integer >= 1");const e=this.bitmap.width,r=this.bitmap.height,i=e*t*4,a=this.bitmap.data,o=new n(r*i*t);let s,u=0,l=0;for(let n=0;n<r;++n){s=l;for(let r=0;r<e;++r){const e=a.readUInt32BE(u,!0);for(let r=0;r<t;++r)o.writeUInt32BE(e,l),l+=4;u+=4}for(let e=1;e<t;++e)o.copy(o,l,s,l),l+=i,s+=i}return this.bitmap={width:e*t,height:r*t,data:o},this}scanAllCoords(t){const e=this.bitmap.width,r=this.bitmap.data.length;let n=0,i=0;for(let a=0;a<r;a+=4)t(n,i,a),++n===e&&(n=0,++i)}scanAllIndexes(t){const e=this.bitmap.data.length;for(let r=0;r<e;r+=4)t(r)}}t.exports=i},11658:(t,e)=>{"use strict";class r{constructor(t,e,r){this.width=r.width,this.height=r.height,this.loops=r.loops,this.usesTransparency=r.usesTransparency,this.colorScope=r.colorScope,this.frames=e,this.buffer=t}}r.GlobalColorsPreferred=0,r.GlobalColorsOnly=1,r.LocalColorsOnly=2;class n extends Error{constructor(t){super(t),t instanceof Error&&(this.stack="Gif"+t.stack)}}e.Gif=r,e.GifError=n},16154:(t,e,r)=>{"use strict";var n=r(48287).Buffer;const i=r(34399),{Gif:a,GifError:o}=r(11658);function s(){const t=r(33606);return s=function(){return t},t}const{GifFrame:u}=r(39925);function l(t,e){const r=t.indexOf(e);return-1===r?null:r}function h(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function c(t){const e=t.colors;t.usesTransparency&&e.push(0);const r=e.length;let n=2;for(;r>n;)n<<=1;e.length=n,e.fill(0,r)}function f(t,e){let r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),r+=Math.ceil(r/255),100+r+768}function d(t){let e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function p(t,e,r,i,a){if(r.interlaced)throw new o("writing interlaced GIFs is not supported");const s=function(t,e,r){const i=r.colors,a=i.length<=8?l:h,s=e.bitmap.data,u=new n(s.length/4);let c=i.length,f=0,d=0;for(;f<s.length;){if(0!==s[f+3]){const t=s.readUInt32BE(f,!0)>>8&16777215;u[d]=a(i,t)}else u[d]=c;f+=4,++d}if(r.usesTransparency){if(256===c)throw new o(`Frame ${t} already has 256 colorsand so can't use transparency`)}else c=null;return{buffer:u,transparentIndex:c}}(e,r,i),u={delay:r.delayCentisecs,disposal:r.disposalMethod,transparent:s.transparentIndex};a&&(c(i),u.palette=i.colors);try{let e,i=t.getOutputBuffer(),a=t.getOutputBufferPosition(),o=!0;for(;o;)if(e=t.addFrame(r.xOffset,r.yOffset,r.bitmap.width,r.bitmap.height,s.buffer,u),o=!1,e>=i.length-1){const e=new n(1.5*i.length);i.copy(e),t.setOutputBuffer(e),t.setOutputBufferPosition(a),i=e,o=!0}return i}catch(t){throw new o(t)}}e.GifCodec=class{constructor(t={}){this._transparentRGB=null,"number"==typeof t.transparentRGB&&0!==t.transparentRGB&&(this._transparentRGBA=256*t.transparentRGB),this._testInitialBufferSize=0}decodeGif(t){try{let e;try{e=new i.GifReader(t)}catch(t){throw new o(t)}const r=e.numFrames(),n=[],s={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1};for(let t=0;t<r;++t){const r=this._decodeFrame(e,t,s.usesTransparency);n.push(r.frame),r.usesTransparency&&(s.usesTransparency=!0)}return Promise.resolve(new a(t,n,s))}catch(t){return Promise.reject(t)}}encodeGif(t,e={}){try{if(null===t||0===t.length)throw new o("there are no frames");const r=s().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,void 0===e.loops&&(e.loops=0),e.colorScope=e.colorScope||a.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}_decodeFrame(t,e,r){let i,a;try{if(i=t.frameInfo(e),a=new n(t.width*t.height*4),t.decodeAndBlitFrameRGBA(e,a),i.width!==t.width||i.height!==t.height){if(i.y&&(a=a.slice(i.y*t.width*4)),t.width>i.width)for(let e=0;e<i.height;++e)a.copy(a,e*i.width*4,4*(i.x+e*t.width),4*(i.x+e*t.width)+4*i.width);a=a.slice(0,i.width*i.height*4)}}catch(t){throw new o(t)}let s=!1;if(null===this._transparentRGBA){if(!r)for(let t=3;t<a.length;t+=4)0===a[t]&&(s=!0,t=a.length)}else for(let t=3;t<a.length;t+=4)0===a[t]&&(a.writeUInt32BE(this._transparentRGBA,t-3),s=!0);return{frame:new u(i.width,i.height,a,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}_encodeGif(t,e){let r;if(e.colorScope===a.LocalColorsOnly)r=s().getColorInfo(t,0);else if(r=s().getColorInfo(t,256),!r.colors){if(e.colorScope===a.GlobalColorsOnly)throw new o("Too many color indexes for global color table");e.colorScope=a.LocalColorsOnly}e.usesTransparency=r.usesTransparency;const u=r.palettes;return e.colorScope===a.LocalColorsOnly?function(t,e,r,s){const u={loop:e.loops};let l,h=new n(2e3);try{l=new i.GifWriter(h,e.width,e.height,u)}catch(t){throw new o(t)}for(let e=0;e<t.length;++e)h=p(l,e,t[e],s[e],!0);return new a(h.slice(0,l.end()),t,e)}(t,e,0,u):function(t,e,r,s){const u={colors:s.colors.slice(),usesTransparency:s.usesTransparency};c(u);const l={palette:u.colors,loop:e.loops};let h,f=new n(2e3);try{h=new i.GifWriter(f,e.width,e.height,l)}catch(t){throw new o(t)}for(let e=0;e<t.length;++e)f=p(h,e,t[e],s,!1);return new a(f.slice(0,h.end()),t,e)}(t,e,0,r)}_getSizeEstimateGlobal(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let r=968;const n=d(t);return e.forEach((t=>{r+=f(t,n)})),r}_getSizeEstimateLocal(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let r=200;for(let n=0;n<e.length;++n){const i=d(t[n]);r+=f(e[n],i)}return r}}},39925:(t,e,r)=>{"use strict";const n=r(19208),{GifError:i}=r(11658);class a extends n{constructor(...t){if(super(...t),t[0]instanceof a){const e=t[0];this.xOffset=e.xOffset,this.yOffset=e.yOffset,this.disposalMethod=e.disposalMethod,this.delayCentisecs=e.delayCentisecs,this.interlaced=e.interlaced}else{const e=t[t.length-1];let r={};"object"!=typeof e||e instanceof n||(r=e),this.xOffset=r.xOffset||0,this.yOffset=r.yOffset||0,this.disposalMethod=void 0!==r.disposalMethod?r.disposalMethod:a.DisposeToBackgroundColor,this.delayCentisecs=r.delayCentisecs||8,this.interlaced=r.interlaced||!1}}getPalette(){const t=new Set,e=this.bitmap.data;let r=0,n=!1;for(;r<e.length;){if(0===e[r+3])n=!0;else{const n=e.readUInt32BE(r,!0)>>8&16777215;t.add(n)}r+=4}const i=new Array(t.size),a=t.values();for(r=0;r<i.length;++r)i[r]=a.next().value;i.sort(((t,e)=>t-e));let o=i.length;return n&&++o,{colors:i,usesTransparency:n,indexCount:o}}}a.DisposeToAnything=0,a.DisposeNothing=1,a.DisposeToBackgroundColor=2,a.DisposeToPrevious=3,e.GifFrame=a},33606:(t,e,r)=>{"use strict";var n=r(48287).Buffer;const i=r(25359),a=r(65565),o=r(19208),{GifFrame:s}=r(39925),{GifError:u}=r(11658),{GifCodec:l}=r(16154),h=[".jpg",".jpeg",".png",".bmp"],c=new l;function f(t,e,r,n,i){const o=Array.isArray(t)?t:[t];if(i){if(["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"].indexOf(i.ditherAlgorithm)<0)throw new Error(`Invalid ditherAlgorithm '${i.ditherAlgorithm}'`);void 0===i.serpentine&&(i.serpentine=!0),void 0===i.minimumColorDistanceToDither&&(i.minimumColorDistanceToDither=0),void 0===i.calculateErrorLikeGIMP&&(i.calculateErrorLikeGIMP=!1)}const s=new a.distance.Euclidean,u=new a.palette[e](s,r,n);let l;l=i?new a.image.ErrorDiffusionArray(s,a.image.ErrorDiffusionArrayKernel[i.ditherAlgorithm],i.serpentine,i.minimumColorDistanceToDither,i.calculateErrorLikeGIMP):new a.image.NearestColor(s);const h=[];o.forEach((t=>{const e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r);for(let t=0,r=0;t<e.length;t+=4,++r)n[r]=e.readUInt32LE(t,!0);const i=a.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);u.sample(i),h.push(i)}));const c=u.quantizeSync();for(let t=0;t<o.length;++t){const e=o[t].bitmap.data,r=l.quantizeSync(h[t],c).toUint32Array();for(let t=0,n=0;t<e.length;t+=4,++n)e.writeUInt32LE(r[n],t)}}e.cloneFrames=function(t){let e=[];return t.forEach((t=>{e.push(new s(t))})),e},e.getColorInfo=function(t,e){let r=!1;const n=[];for(let e=0;e<t.length;++e){let i=t[e].getPalette();if(i.usesTransparency&&(r=!0),i.indexCount>256)throw new u(`Frame ${e} uses more than 256 color indexes`);n.push(i)}if(0===e)return{usesTransparency:r,palettes:n};const i=new Set;n.forEach((t=>{t.colors.forEach((t=>{i.add(t)}))}));let a=i.size;if(r&&++a,e&&a>e)return{usesTransparency:r,palettes:n};const o=new Array(i.size),s=i.values();for(let t=0;t<o.length;++t)o[t]=s.next().value;return o.sort(((t,e)=>t-e)),{colors:o,indexCount:a,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new o(r))},e.getMaxDimensions=function(t){let e=0,r=0;return t.forEach((t=>{const n=t.xOffset+t.bitmap.width;n>e&&(e=n);const i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){f(t,"NeuQuantFloat",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){let i;switch(e=e||256,r=r||"min-pop"){case"min-pop":i=2;break;case"top-pop":i=1;break;default:throw new Error(`Invalid quantizeSorokin histogram '${r}'`)}f(t,"RGBQuant",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error("Invalid quantization quality");f(t,"WuQuant",e,r,n)},e.read=function(t,e){return e=e||c,n.isBuffer(t)?e.decodeGif(t):(r=t,new Promise(((t,e)=>{i.readFile(r,((r,n)=>r?e(r):t(n)))}))).then((t=>e.decodeGif(t)));var r},e.shareAsJimp=function(t,e){const r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,n){n=n||c;const a=t.match(/\.[a-zA-Z]+$/);if(null!==a&&h.includes(a[0].toLowerCase()))throw new Error(`GIF '${t}' has an unexpected suffix`);return n.encodeGif(e,r).then((e=>function(t,e){return new Promise(((r,n)=>{i.writeFile(t,e,(t=>t?n(t):r()))}))}(t,e.buffer).then((()=>e))))}},31224:(t,e,r)=>{"use strict";const n=r(19208),{Gif:i,GifError:a}=r(11658),{GifCodec:o}=r(16154),{GifFrame:s}=r(39925),u=r(33606);t.exports={BitmapImage:n,Gif:i,GifCodec:o,GifFrame:s,GifUtil:u,GifError:a}},89840:(t,e,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t.exports=n},251:(t,e)=>{e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,h=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,a=d&(1<<-h)-1,d>>=-h,h+=s;h>0;a=256*a+t[e+c],c+=f,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=f,h-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,h=(1<<l)-1,c=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+c>=1?f/u:f*Math.pow(2,1-c))*u>=2&&(o++,u/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(e*u-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*m}},56698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},37056:t=>{t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"==typeof t&&"[object RegExp]"!==r||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},60328:(t,e,r)=>{r(78624),t.exports=self.fetch.bind(self)},15609:(t,e,r)=>{var n=r(52521),i=r(83877);t.exports={encode:n,decode:i}},83877:(t,e,r)=>{var n=r(48287).Buffer,i=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,i=2276,a=1567,o=3784,s=5793,u=2896;function l(){}function h(t,e){for(var r,n,i=0,a=[],o=16;o>0&&!t[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[i];u.index>0;){if(0===a.length)throw new Error("Could not recreate Huffman Table");u=a.pop()}for(u.index++,a.push(u);a.length<=r;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function c(e,r,n,i,a,o,s,u,l,h){n.precision,n.samplesPerLine,n.scanLines;var c=n.mcusPerLine,f=n.progressive,d=(n.maxH,n.maxV,r),p=0,m=0;function g(){if(m>0)return m--,p>>m&1;if(255==(p=e[r++])){var t=e[r++];if(t)throw new Error("unexpected marker: "+(p<<8|t).toString(16))}return m=7,p>>>7}function b(t){for(var e,r=t;null!==(e=g());){if("number"==typeof(r=r[e]))return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function y(t){for(var e=0;t>0;){var r=g();if(null===r)return;e=e<<1|r,t--}return e}function v(t){var e=y(t);return e>=1<<t-1?e:e+(-1<<t)+1}var w,_=0,k=0;function B(t,e,r,n,i){var a=r%c,o=(r/c|0)*t.v+n,s=a*t.h+i;void 0===t.blocks[o]&&h.tolerantDecoding||e(t,t.blocks[o][s])}function x(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&h.tolerantDecoding||e(t,t.blocks[n][i])}var E,C,A,I,M,S,P=i.length;S=f?0===o?0===u?function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:v(r)<<l;e[0]=t.pred+=n}:function(t,e){e[0]|=g()<<l}:0===u?function(e,r){if(_>0)_--;else for(var n=o,i=s;n<=i;){var a=b(e.huffmanTableAC),u=15&a,h=a>>4;if(0!==u)r[t[n+=h]]=v(u)*(1<<l),n++;else{if(h<15){_=y(h)+(1<<h)-1;break}n+=16}}}:function(e,r){for(var n=o,i=s,a=0;n<=i;){var u=t[n],h=r[u]<0?-1:1;switch(k){case 0:var c=b(e.huffmanTableAC),f=15&c;if(a=c>>4,0===f)a<15?(_=y(a)+(1<<a),k=4):(a=16,k=1);else{if(1!==f)throw new Error("invalid ACn encoding");w=v(f),k=a?2:3}continue;case 1:case 2:r[u]?r[u]+=(g()<<l)*h:0==--a&&(k=2==k?3:0);break;case 3:r[u]?r[u]+=(g()<<l)*h:(r[u]=w<<l,k=0);break;case 4:r[u]&&(r[u]+=(g()<<l)*h)}n++}4===k&&0==--_&&(k=0)}:function(e,r){var n=b(e.huffmanTableDC),i=0===n?0:v(n);r[0]=e.pred+=i;for(var a=1;a<64;){var o=b(e.huffmanTableAC),s=15&o,u=o>>4;if(0!==s)r[t[a+=u]]=v(s),a++;else{if(u<15)break;a+=16}}};var T,R,F,L,O=0;for(R=1==P?i[0].blocksPerLine*i[0].blocksPerColumn:c*n.mcusPerColumn,a||(a=R);O<R;){for(C=0;C<P;C++)i[C].pred=0;if(_=0,1==P)for(E=i[0],M=0;M<a;M++)x(E,S,O),O++;else for(M=0;M<a;M++){for(C=0;C<P;C++)for(F=(E=i[C]).h,L=E.v,A=0;A<L;A++)for(I=0;I<F;I++)B(E,S,O,A,I);if(++O===R)break}if(O===R)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(m=0,(T=e[r]<<8|e[r+1])<65280)throw new Error("marker was not found");if(!(T>=65488&&T<=65495))break;r+=2}return r-d}function f(t,l){var h,c,f=[],d=l.blocksPerLine,p=l.blocksPerColumn,m=d<<3,b=new Int32Array(64),y=new Uint8Array(64);function v(t,h,c){var f,d,p,m,g,b,y,v,w,_,k=l.quantizationTable,B=c;for(_=0;_<64;_++)B[_]=t[_]*k[_];for(_=0;_<8;++_){var x=8*_;0!=B[1+x]||0!=B[2+x]||0!=B[3+x]||0!=B[4+x]||0!=B[5+x]||0!=B[6+x]||0!=B[7+x]?(f=s*B[0+x]+128>>8,d=s*B[4+x]+128>>8,p=B[2+x],m=B[6+x],g=u*(B[1+x]-B[7+x])+128>>8,v=u*(B[1+x]+B[7+x])+128>>8,b=B[3+x]<<4,y=B[5+x]<<4,w=f-d+1>>1,f=f+d+1>>1,d=w,w=p*o+m*a+128>>8,p=p*a-m*o+128>>8,m=w,w=g-y+1>>1,g=g+y+1>>1,y=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=f-m+1>>1,f=f+m+1>>1,m=w,w=d-p+1>>1,d=d+p+1>>1,p=w,w=g*i+v*n+2048>>12,g=g*n-v*i+2048>>12,v=w,w=b*r+y*e+2048>>12,b=b*e-y*r+2048>>12,y=w,B[0+x]=f+v,B[7+x]=f-v,B[1+x]=d+y,B[6+x]=d-y,B[2+x]=p+b,B[5+x]=p-b,B[3+x]=m+g,B[4+x]=m-g):(w=s*B[0+x]+512>>10,B[0+x]=w,B[1+x]=w,B[2+x]=w,B[3+x]=w,B[4+x]=w,B[5+x]=w,B[6+x]=w,B[7+x]=w)}for(_=0;_<8;++_){var E=_;0!=B[8+E]||0!=B[16+E]||0!=B[24+E]||0!=B[32+E]||0!=B[40+E]||0!=B[48+E]||0!=B[56+E]?(f=s*B[0+E]+2048>>12,d=s*B[32+E]+2048>>12,p=B[16+E],m=B[48+E],g=u*(B[8+E]-B[56+E])+2048>>12,v=u*(B[8+E]+B[56+E])+2048>>12,b=B[24+E],y=B[40+E],w=f-d+1>>1,f=f+d+1>>1,d=w,w=p*o+m*a+2048>>12,p=p*a-m*o+2048>>12,m=w,w=g-y+1>>1,g=g+y+1>>1,y=w,w=v+b+1>>1,b=v-b+1>>1,v=w,w=f-m+1>>1,f=f+m+1>>1,m=w,w=d-p+1>>1,d=d+p+1>>1,p=w,w=g*i+v*n+2048>>12,g=g*n-v*i+2048>>12,v=w,w=b*r+y*e+2048>>12,b=b*e-y*r+2048>>12,y=w,B[0+E]=f+v,B[56+E]=f-v,B[8+E]=d+y,B[48+E]=d-y,B[16+E]=p+b,B[40+E]=p-b,B[24+E]=m+g,B[32+E]=m-g):(w=s*c[_+0]+8192>>14,B[0+E]=w,B[8+E]=w,B[16+E]=w,B[24+E]=w,B[32+E]=w,B[40+E]=w,B[48+E]=w,B[56+E]=w)}for(_=0;_<64;++_){var C=128+(B[_]+8>>4);h[_]=C<0?0:C>255?255:C}}g(m*p*8);for(var w=0;w<p;w++){var _=w<<3;for(h=0;h<8;h++)f.push(new Uint8Array(m));for(var k=0;k<d;k++){v(l.blocks[w][k],y,b);var B=0,x=k<<3;for(c=0;c<8;c++){var E=f[_+c];for(h=0;h<8;h++)E[x+h]=y[B++]}}}return f}function d(t){return t<0?0:t>255?255:t}l.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=1e3*this.opts.maxResolutionInMP*1e3,n=0;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function a(t){var e,r,n=1,i=1;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var a=Math.ceil(t.samplesPerLine/8/n),o=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),l=a*e.h,h=o*e.v,c=[];g(h*l*256);for(var f=0;f<h;f++){for(var d=[],p=0;p<l;p++)d.push(new Int32Array(64));c.push(d)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=c}t.maxH=n,t.maxV=i,t.mcusPerLine=a,t.mcusPerColumn=o}e.length;var o,s,u,l,d=null,p=null,m=[],b=[],y=[],v=[],w=i(),_=-1;if(this.comments=[],65496!=w)throw new Error("SOI not found");for(w=i();65497!=w;){switch(w){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var k=(u=void 0,l=void 0,u=i(),l=e.subarray(n,n+u-2),n+=l.length,l);if(65534===w){var B=String.fromCharCode.apply(null,k);this.comments.push(B)}65504===w&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(d={version:{major:k[5],minor:k[6]},densityUnits:k[7],xDensity:k[8]<<8|k[9],yDensity:k[10]<<8|k[11],thumbWidth:k[12],thumbHeight:k[13],thumbData:k.subarray(14,14+3*k[12]*k[13])}),65505===w&&69===k[0]&&120===k[1]&&105===k[2]&&102===k[3]&&0===k[4]&&(this.exifBuffer=k.subarray(5,k.length)),65518===w&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&0===k[5]&&(p={version:k[6],flags0:k[7]<<8|k[8],flags1:k[9]<<8|k[10],transformCode:k[11]});break;case 65499:for(var x=i()+n-2;n<x;){var E=e[n++];g(256);var C=new Int32Array(64);if(E>>4){if(E>>4!=1)throw new Error("DQT: invalid table spec");for(V=0;V<64;V++)C[t[V]]=i()}else for(V=0;V<64;V++)C[t[V]]=e[n++];m[15&E]=C}break;case 65472:case 65473:case 65474:i(),(o={}).extended=65473===w,o.progressive=65474===w,o.precision=e[n++],o.scanLines=i(),o.samplesPerLine=i(),o.components={},o.componentsOrder=[];var A=o.scanLines*o.samplesPerLine;if(A>r){var I=Math.ceil((A-r)/1e6);throw new Error(`maxResolutionInMP limit exceeded by ${I}MP`)}var M,S=e[n++];for(Z=0;Z<S;Z++){M=e[n];var P=e[n+1]>>4,T=15&e[n+1],R=e[n+2];if(P<=0||T<=0)throw new Error("Invalid sampling factor, expected values above 0");o.componentsOrder.push(M),o.components[M]={h:P,v:T,quantizationIdx:R},n+=3}a(o),b.push(o);break;case 65476:var F=i();for(Z=2;Z<F;){var L=e[n++],O=new Uint8Array(16),U=0;for(V=0;V<16;V++,n++)U+=O[V]=e[n];g(16+U);var D=new Uint8Array(U);for(V=0;V<U;V++,n++)D[V]=e[n];Z+=17+U,(L>>4?y:v)[15&L]=h(O,D)}break;case 65501:i(),s=i();break;case 65500:i(),i();break;case 65498:i();var N=e[n++],z=[];for(Z=0;Z<N;Z++){Y=o.components[e[n++]];var G=e[n++];Y.huffmanTableDC=v[G>>4],Y.huffmanTableAC=y[15&G],z.push(Y)}var j=e[n++],H=e[n++],W=e[n++],q=c(e,n,o,z,s,j,H,W>>4,15&W,this.opts);n+=q;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===w||225==w){if(-1!==_)throw new Error(`first unknown JPEG marker at offset ${_.toString(16)}, second unknown JPEG marker ${w.toString(16)} at offset ${(n-1).toString(16)}`);_=n-1;const t=i();if(255===e[n+t-2]){n+=t-2;break}}throw new Error("unknown JPEG marker "+w.toString(16))}w=i()}if(1!=b.length)throw new Error("only single frame JPEGs supported");for(var Z=0;Z<b.length;Z++){var $=b[Z].components;for(var V in $)$[V].quantizationTable=m[$[V].quantizationIdx],delete $[V].quantizationIdx}for(this.width=o.samplesPerLine,this.height=o.scanLines,this.jfif=d,this.adobe=p,this.components=[],Z=0;Z<o.componentsOrder.length;Z++){var Y=o.components[o.componentsOrder[Z]];this.components.push({lines:f(0,Y),scaleX:Y.h/o.maxH,scaleY:Y.v/o.maxV})}},getData:function(t,e){var r,n,i,a,o,s,u,l,h,c,f,p,m,b,y,v,w,_,k,B,x,E=this.width/t,C=this.height/e,A=0,I=t*e*this.components.length;g(I);var M=new Uint8Array(I);switch(this.components.length){case 1:for(r=this.components[0],c=0;c<e;c++)for(o=r.lines[0|c*r.scaleY*C],h=0;h<t;h++)f=o[0|h*r.scaleX*E],M[A++]=f;break;case 2:for(r=this.components[0],n=this.components[1],c=0;c<e;c++)for(o=r.lines[0|c*r.scaleY*C],s=n.lines[0|c*n.scaleY*C],h=0;h<t;h++)f=o[0|h*r.scaleX*E],M[A++]=f,f=s[0|h*n.scaleX*E],M[A++]=f;break;case 3:for(x=!0,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.opts.colorTransform&&(x=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],c=0;c<e;c++)for(o=r.lines[0|c*r.scaleY*C],s=n.lines[0|c*n.scaleY*C],u=i.lines[0|c*i.scaleY*C],h=0;h<t;h++)x?(f=o[0|h*r.scaleX*E],p=s[0|h*n.scaleX*E],_=d(f+1.402*((m=u[0|h*i.scaleX*E])-128)),k=d(f-.3441363*(p-128)-.71413636*(m-128)),B=d(f+1.772*(p-128))):(_=o[0|h*r.scaleX*E],k=s[0|h*n.scaleX*E],B=u[0|h*i.scaleX*E]),M[A++]=_,M[A++]=k,M[A++]=B;break;case 4:if(!this.adobe)throw new Error("Unsupported color mode (4 components)");for(x=!1,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.opts.colorTransform&&(x=!!this.opts.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],a=this.components[3],c=0;c<e;c++)for(o=r.lines[0|c*r.scaleY*C],s=n.lines[0|c*n.scaleY*C],u=i.lines[0|c*i.scaleY*C],l=a.lines[0|c*a.scaleY*C],h=0;h<t;h++)x?(f=o[0|h*r.scaleX*E],p=s[0|h*n.scaleX*E],m=u[0|h*i.scaleX*E],b=l[0|h*a.scaleX*E],y=255-d(f+1.402*(m-128)),v=255-d(f-.3441363*(p-128)-.71413636*(m-128)),w=255-d(f+1.772*(p-128))):(y=o[0|h*r.scaleX*E],v=s[0|h*n.scaleX*E],w=u[0|h*i.scaleX*E],b=l[0|h*a.scaleX*E]),M[A++]=255-y,M[A++]=255-v,M[A++]=255-w,M[A++]=255-b;break;default:throw new Error("Unsupported color mode")}return M},copyToImageData:function(t,e){var r,n,i,a,o,s,u,l,h,c=t.width,f=t.height,p=t.data,m=this.getData(c,f),g=0,b=0;switch(this.components.length){case 1:for(n=0;n<f;n++)for(r=0;r<c;r++)i=m[g++],p[b++]=i,p[b++]=i,p[b++]=i,e&&(p[b++]=255);break;case 3:for(n=0;n<f;n++)for(r=0;r<c;r++)u=m[g++],l=m[g++],h=m[g++],p[b++]=u,p[b++]=l,p[b++]=h,e&&(p[b++]=255);break;case 4:for(n=0;n<f;n++)for(r=0;r<c;r++)o=m[g++],s=m[g++],i=m[g++],u=255-d(o*(1-(a=m[g++])/255)+a),l=255-d(s*(1-a/255)+a),h=255-d(i*(1-a/255)+a),p[b++]=u,p[b++]=l,p[b++]=h,e&&(p[b++]=255);break;default:throw new Error("Unsupported color mode")}}};var p=0,m=0;function g(t=0){var e=p+t;if(e>m){var r=Math.ceil((e-m)/1024/1024);throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${r}MB`)}p=e}return l.resetMaxMemoryUsage=function(t){p=0,m=t},l.getBytesAllocated=function(){return p},l.requestMemoryAllocation=g,l}();t.exports=function(t,e={}){var r={colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512,...e},a=new Uint8Array(t),o=new i;o.opts=r,i.resetMaxMemoryUsage(1024*r.maxMemoryUsageInMB*1024),o.parse(a);var s=r.formatAsRGBA?4:3,u=o.width*o.height*s;try{i.requestMemoryAllocation(u);var l={width:o.width,height:o.height,exifBuffer:o.exifBuffer,data:r.useTArray?new Uint8Array(u):n.alloc(u)};o.comments.length>0&&(l.comments=o.comments)}catch(t){if(t instanceof RangeError)throw new Error("Could not allocate enough memory for the image. Required: "+u);if(t instanceof ReferenceError&&"Buffer is not defined"===t.message)throw new Error("Buffer is not globally defined in this environment. Consider setting useTArray to true");throw t}return o.copyToImageData(l,r.formatAsRGBA),l}},52521:(t,e,r)=>{var n=r(48287).Buffer;function i(t){Math.round;var e,r,i,a,o,s=Math.floor,u=new Array(64),l=new Array(64),h=new Array(64),c=new Array(64),f=new Array(65535),d=new Array(65535),p=new Array(64),m=new Array(64),g=[],b=0,y=7,v=new Array(64),w=new Array(64),_=new Array(64),k=new Array(256),B=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function R(t,e){for(var r=0,n=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function F(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(b|=1<<y),r--,--y<0&&(255==b?(L(255),L(0)):L(b),y=7,b=0)}function L(t){g.push(t)}function O(t){L(t>>8&255),L(255&t)}function U(t,e,r,n,i){for(var a,o=i[0],s=i[240],u=function(t,e){var r,n,i,a,o,s,u,l,h,c,f=0;for(h=0;h<8;++h){r=t[f],n=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],u=t[f+6];var d=r+(l=t[f+7]),m=r-l,g=n+u,b=n-u,y=i+s,v=i-s,w=a+o,_=a-o,k=d+w,B=d-w,x=g+y,E=g-y;t[f]=k+x,t[f+4]=k-x;var C=.707106781*(E+B);t[f+2]=B+C,t[f+6]=B-C;var A=.382683433*((k=_+v)-(E=b+m)),I=.5411961*k+A,M=1.306562965*E+A,S=.707106781*(x=v+b),P=m+S,T=m-S;t[f+5]=T+I,t[f+3]=T-I,t[f+1]=P+M,t[f+7]=P-M,f+=8}for(f=0,h=0;h<8;++h){r=t[f],n=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],u=t[f+48];var R=r+(l=t[f+56]),F=r-l,L=n+u,O=n-u,U=i+s,D=i-s,N=a+o,z=a-o,G=R+N,j=R-N,H=L+U,W=L-U;t[f]=G+H,t[f+32]=G-H;var q=.707106781*(W+j);t[f+16]=j+q,t[f+48]=j-q;var Z=.382683433*((G=z+D)-(W=O+F)),$=.5411961*G+Z,V=1.306562965*W+Z,Y=.707106781*(H=D+O),X=F+Y,J=F-Y;t[f+40]=J+$,t[f+24]=J-$,t[f+8]=X+V,t[f+56]=X-V,f++}for(h=0;h<64;++h)c=t[h]*e[h],p[h]=c>0?c+.5|0:c-.5|0;return p}(t,e),l=0;l<64;++l)m[x[l]]=u[l];var h=m[0]-r;r=m[0],0==h?F(n[0]):(F(n[d[a=32767+h]]),F(f[a]));for(var c=63;c>0&&0==m[c];c--);if(0==c)return F(o),r;for(var g,b=1;b<=c;){for(var y=b;0==m[b]&&b<=c;++b);var v=b-y;if(v>=16){g=v>>4;for(var w=1;w<=g;++w)F(s);v&=15}a=32767+m[b],F(i[(v<<4)+d[a]]),F(f[a]),b++}return 63!=c&&F(o),r}function D(t){t<=0&&(t=1),t>100&&(t=100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[x[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var o=s((i[a]*t+50)/100);o<1?o=1:o>255&&(o=255),l[x[a]]=o}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var m=0;m<8;m++)h[d]=1/(u[x[d]]*f[p]*f[m]*8),c[d]=1/(l[x[d]]*f[p]*f[m]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){var s;(new Date).getTime(),o&&D(o),g=new Array,b=0,y=7,O(65496),O(65504),O(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),O(1),O(1),L(0),L(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((t=>{if("string"==typeof t){O(65534);var e,r=t.length;for(O(r+2),e=0;e<r;e++)L(t.charCodeAt(e))}})),function(t){if(t){O(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?O(t.length+2):(O(t.length+5+2),L(69),L(120),L(105),L(102),L(0));for(var e=0;e<t.length;e++)L(t[e])}}(t.exifBuffer),function(){O(65499),O(132),L(0);for(var t=0;t<64;t++)L(u[t]);L(1);for(var e=0;e<64;e++)L(l[e])}(),function(t,e){O(65472),O(17),L(8),O(e),O(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){O(65476),O(418),L(0);for(var t=0;t<16;t++)L(E[t+1]);for(var e=0;e<=11;e++)L(C[e]);L(16);for(var r=0;r<16;r++)L(A[r+1]);for(var n=0;n<=161;n++)L(I[n]);L(1);for(var i=0;i<16;i++)L(M[i+1]);for(var a=0;a<=11;a++)L(S[a]);L(17);for(var o=0;o<16;o++)L(P[o+1]);for(var s=0;s<=161;s++)L(T[s])}(),O(65498),O(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var f=0,d=0,p=0;b=0,y=7,this.encode.displayName="_encode_";for(var m,k,x,R,N,z,G,j,H,W=t.data,q=t.width,Z=t.height,$=4*q,V=0;V<Z;){for(m=0;m<$;){for(z=N=$*V+m,G=-1,j=0,H=0;H<64;H++)z=N+(j=H>>3)*$+(G=4*(7&H)),V+j>=Z&&(z-=$*(V+1+j-Z)),m+G>=$&&(z-=m+G-$+4),k=W[z++],x=W[z++],R=W[z++],v[H]=(B[k]+B[x+256|0]+B[R+512|0]>>16)-128,w[H]=(B[k+768|0]+B[x+1024|0]+B[R+1280|0]>>16)-128,_[H]=(B[k+1280|0]+B[x+1536|0]+B[R+1792|0]>>16)-128;f=U(v,h,f,e,i),d=U(w,c,d,r,a),p=U(_,c,p,r,a),m+=32}V+=8}if(y>=0){var Y=[];Y[1]=y+1,Y[0]=(1<<y+1)-1,F(Y)}return O(65497),n.from(g)},(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)k[e]=t(e)}(),e=R(E,C),r=R(M,S),i=R(A,I),a=R(P,T),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)d[32767+n]=r,f[32767+n]=[],f[32767+n][1]=r,f[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)d[32767+i]=r,f[32767+i]=[],f[32767+i][1]=r,f[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256|0]=38470*t,B[t+512|0]=7471*t+32768,B[t+768|0]=-11059*t,B[t+1024|0]=-21709*t,B[t+1280|0]=32768*t+8421375,B[t+1536|0]=-27439*t,B[t+1792|0]=-5329*t}(),D(t),(new Date).getTime()}t.exports=function(t,e){return void 0===e&&(e=50),{data:new i(e).encode(t,e),width:t.width,height:t.height}}},66624:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.width=e,this.height=t.length/e,this.data=t}return t.createEmpty=function(e,r){return new t(new Uint8ClampedArray(e*r),e)},t.prototype.get=function(t,e){return!(t<0||t>=this.width||e<0||e>=this.height||!this.data[e*this.width+t])},t.prototype.set=function(t,e,r){this.data[e*this.width+t]=r?1:0},t.prototype.setRegion=function(t,e,r,n,i){for(var a=e;a<e+n;a++)for(var o=t;o<t+r;o++)this.set(o,a,!!i)},t}();e.BitMatrix=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.addOrSubtractGF=function(t,e){return t^e};var i=function(){function t(t,e,r){this.primitive=t,this.size=e,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var i=1,a=0;a<this.size;a++)this.expTable[a]=i,(i*=2)>=this.size&&(i=(i^this.primitive)&this.size-1);for(a=0;a<this.size-1;a++)this.logTable[this.expTable[a]]=a;this.zero=new n.default(this,Uint8ClampedArray.from([0])),this.one=new n.default(this,Uint8ClampedArray.from([1]))}return t.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]},t.prototype.inverse=function(t){if(0===t)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[t]-1]},t.prototype.buildMonomial=function(t,e){if(t<0)throw new Error("Invalid monomial degree less than 0");if(0===e)return this.zero;var r=new Uint8ClampedArray(t+1);return r[0]=e,new n.default(this,r)},t.prototype.log=function(t){if(0===t)throw new Error("Can't take log(0)");return this.logTable[t]},t.prototype.exp=function(t){return this.expTable[t]},t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=function(){function t(t,e){if(0===e.length)throw new Error("No coefficients.");this.field=t;var r=e.length;if(r>1&&0===e[0]){for(var n=1;n<r&&0===e[n];)n++;if(n===r)this.coefficients=t.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-n);for(var i=0;i<this.coefficients.length;i++)this.coefficients[i]=e[n+i]}}else this.coefficients=e}return t.prototype.degree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.addOrSubtract=function(e){var r;if(this.isZero())return e;if(e.isZero())return this;var i=this.coefficients,a=e.coefficients;i.length>a.length&&(i=(r=[a,i])[0],a=r[1]);for(var o=new Uint8ClampedArray(a.length),s=a.length-i.length,u=0;u<s;u++)o[u]=a[u];for(u=s;u<a.length;u++)o[u]=n.addOrSubtractGF(i[u-s],a[u]);return new t(this.field,o)},t.prototype.multiply=function(e){if(0===e)return this.field.zero;if(1===e)return this;for(var r=this.coefficients.length,n=new Uint8ClampedArray(r),i=0;i<r;i++)n[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,n)},t.prototype.multiplyPoly=function(e){if(this.isZero()||e.isZero())return this.field.zero;for(var r=this.coefficients,i=r.length,a=e.coefficients,o=a.length,s=new Uint8ClampedArray(i+o-1),u=0;u<i;u++)for(var l=r[u],h=0;h<o;h++)s[u+h]=n.addOrSubtractGF(s[u+h],this.field.multiply(l,a[h]));return new t(this.field,s)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new Error("Invalid degree less than 0");if(0===r)return this.field.zero;for(var n=this.coefficients.length,i=new Uint8ClampedArray(n+e),a=0;a<n;a++)i[a]=this.field.multiply(this.coefficients[a],r);return new t(this.field,i)},t.prototype.evaluateAt=function(t){var e=0;if(0===t)return this.getCoefficient(0);var r=this.coefficients.length;if(1===t)return this.coefficients.forEach((function(t){e=n.addOrSubtractGF(e,t)})),e;e=this.coefficients[0];for(var i=1;i<r;i++)e=n.addOrSubtractGF(this.field.multiply(t,e),this.coefficients[i]);return e},t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),i=r(5),a=r(11),o=r(12);function s(t){var e=o.locate(t);if(!e)return null;for(var r=0,n=e;r<n.length;r++){var s=n[r],u=a.extract(t,s),l=i.decode(u.matrix);if(l)return{binaryData:l.bytes,data:l.text,chunks:l.chunks,version:l.version,location:{topRightCorner:u.mappingFunction(s.dimension,0),topLeftCorner:u.mappingFunction(0,0),bottomRightCorner:u.mappingFunction(s.dimension,s.dimension),bottomLeftCorner:u.mappingFunction(0,s.dimension),topRightFinderPattern:s.topRight,topLeftFinderPattern:s.topLeft,bottomLeftFinderPattern:s.bottomLeft,bottomRightAlignmentPattern:s.alignmentPattern}}}return null}var u={inversionAttempts:"attemptBoth"};function l(t,e,r,i){void 0===i&&(i={});var a=u;Object.keys(a||{}).forEach((function(t){a[t]=i[t]||a[t]}));var o="attemptBoth"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,l="onlyInvert"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,h=n.binarize(t,e,r,o),c=h.binarized,f=h.inverted,d=s(l?f:c);return d||"attemptBoth"!==a.inversionAttempts&&"invertFirst"!==a.inversionAttempts||(d=s(l?c:f)),d}l.default=l,e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);function i(t,e,r){return t<e?e:t>r?r:t}var a=function(){function t(t,e){this.width=t,this.data=new Uint8ClampedArray(t*e)}return t.prototype.get=function(t,e){return this.data[e*this.width+t]},t.prototype.set=function(t,e,r){this.data[e*this.width+t]=r},t}();e.binarize=function(t,e,r,o){if(t.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var s=new a(e,r),u=0;u<e;u++)for(var l=0;l<r;l++){var h=t[4*(l*e+u)+0],c=t[4*(l*e+u)+1],f=t[4*(l*e+u)+2];s.set(u,l,.2126*h+.7152*c+.0722*f)}for(var d=Math.ceil(e/8),p=Math.ceil(r/8),m=new a(d,p),g=0;g<p;g++)for(var b=0;b<d;b++){var y=0,v=1/0,w=0;for(l=0;l<8;l++)for(u=0;u<8;u++){var _=s.get(8*b+u,8*g+l);y+=_,v=Math.min(v,_),w=Math.max(w,_)}var k=y/Math.pow(8,2);if(w-v<=24&&(k=v/2,g>0&&b>0)){var B=(m.get(b,g-1)+2*m.get(b-1,g)+m.get(b-1,g-1))/4;v<B&&(k=B)}m.set(b,g,k)}var x=n.BitMatrix.createEmpty(e,r),E=null;for(o&&(E=n.BitMatrix.createEmpty(e,r)),g=0;g<p;g++)for(b=0;b<d;b++){for(var C=i(b,2,d-3),A=i(g,2,p-3),I=(y=0,-2);I<=2;I++)for(var M=-2;M<=2;M++)y+=m.get(C+I,A+M);var S=y/25;for(I=0;I<8;I++)for(M=0;M<8;M++){u=8*b+I,l=8*g+M;var P=s.get(u,l);x.set(u,l,P<=S),o&&E.set(u,l,!(P<=S))}}return o?{binarized:x,inverted:E}:{binarized:x}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(6),a=r(9),o=r(10);function s(t,e){for(var r=t^e,n=0;r;)n++,r&=r-1;return n}function u(t,e){return e<<1|t}var l=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],h=[function(t){return(t.y+t.x)%2==0},function(t){return t.y%2==0},function(t){return t.x%3==0},function(t){return(t.y+t.x)%3==0},function(t){return(Math.floor(t.y/2)+Math.floor(t.x/3))%2==0},function(t){return t.x*t.y%2+t.x*t.y%3==0},function(t){return(t.y*t.x%2+t.y*t.x%3)%2==0},function(t){return((t.y+t.x)%2+t.y*t.x%3)%2==0}];function c(t){var e=function(t){var e=t.height,r=Math.floor((e-17)/4);if(r<=6)return o.VERSIONS[r-1];for(var n=0,i=5;i>=0;i--)for(var a=e-9;a>=e-11;a--)n=u(t.get(a,i),n);var l=0;for(a=5;a>=0;a--)for(i=e-9;i>=e-11;i--)l=u(t.get(a,i),l);for(var h,c=1/0,f=0,d=o.VERSIONS;f<d.length;f++){var p=d[f];if(p.infoBits===n||p.infoBits===l)return p;var m=s(n,p.infoBits);m<c&&(h=p,c=m),(m=s(l,p.infoBits))<c&&(h=p,c=m)}return c<=3?h:void 0}(t);if(!e)return null;var r=function(t){for(var e=0,r=0;r<=8;r++)6!==r&&(e=u(t.get(r,8),e));for(var n=7;n>=0;n--)6!==n&&(e=u(t.get(8,n),e));var i=t.height,a=0;for(n=i-1;n>=i-7;n--)a=u(t.get(8,n),a);for(r=i-8;r<i;r++)a=u(t.get(r,8),a);for(var o=1/0,h=null,c=0,f=l;c<f.length;c++){var d=f[c],p=d.bits,m=d.formatInfo;if(p===e||p===a)return m;var g=s(e,p);g<o&&(h=m,o=g),e!==a&&(g=s(a,p))<o&&(h=m,o=g)}return o<=3?h:null}(t);if(!r)return null;var c=function(t,e,r){var n=e.errorCorrectionLevels[r],i=[],a=0;if(n.ecBlocks.forEach((function(t){for(var e=0;e<t.numBlocks;e++)i.push({numDataCodewords:t.dataCodewordsPerBlock,codewords:[]}),a+=t.dataCodewordsPerBlock+n.ecCodewordsPerBlock})),t.length<a)return null;t=t.slice(0,a);for(var o=n.ecBlocks[0].dataCodewordsPerBlock,s=0;s<o;s++)for(var u=0,l=i;u<l.length;u++)l[u].codewords.push(t.shift());if(n.ecBlocks.length>1){var h=n.ecBlocks[0].numBlocks,c=n.ecBlocks[1].numBlocks;for(s=0;s<c;s++)i[h+s].codewords.push(t.shift())}for(;t.length>0;)for(var f=0,d=i;f<d.length;f++)d[f].codewords.push(t.shift());return i}(function(t,e,r){for(var i=h[r.dataMask],a=t.height,o=function(t){var e=17+4*t.versionNumber,r=n.BitMatrix.createEmpty(e,e);r.setRegion(0,0,9,9,!0),r.setRegion(e-8,0,8,9,!0),r.setRegion(0,e-8,9,8,!0);for(var i=0,a=t.alignmentPatternCenters;i<a.length;i++)for(var o=a[i],s=0,u=t.alignmentPatternCenters;s<u.length;s++){var l=u[s];6===o&&6===l||6===o&&l===e-7||o===e-7&&6===l||r.setRegion(o-2,l-2,5,5,!0)}return r.setRegion(6,9,1,e-17,!0),r.setRegion(9,6,e-17,1,!0),t.versionNumber>6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}(e),s=[],l=0,c=0,f=!0,d=a-1;d>0;d-=2){6===d&&d--;for(var p=0;p<a;p++)for(var m=f?a-1-p:p,g=0;g<2;g++){var b=d-g;if(!o.get(b,m)){c++;var y=t.get(b,m);i({y:m,x:b})&&(y=!y),l=u(y,l),8===c&&(s.push(l),c=0,l=0)}}f=!f}return s}(t,e,r),e,r.errorCorrectionLevel);if(!c)return null;for(var f=c.reduce((function(t,e){return t+e.numDataCodewords}),0),d=new Uint8ClampedArray(f),p=0,m=0,g=c;m<g.length;m++){var b=g[m],y=a.decode(b.codewords,b.codewords.length-b.numDataCodewords);if(!y)return null;for(var v=0;v<b.numDataCodewords;v++)d[p++]=y[v]}try{return i.decode(d,e.versionNumber)}catch(t){return null}}e.decode=function(t){if(null==t)return null;var e=c(t);if(e)return e;for(var r=0;r<t.width;r++)for(var n=r+1;n<t.height;n++)t.get(r,n)!==t.get(n,r)&&(t.set(r,n,!t.get(r,n)),t.set(n,r,!t.get(n,r)));return c(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,a=r(7),o=r(8);function s(t,e){for(var r=[],n="",i=[10,12,14][e],a=t.readBits(i);a>=3;){if((l=t.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var o=Math.floor(l/100),s=Math.floor(l/10)%10,u=l%10;r.push(48+o,48+s,48+u),n+=o.toString()+s.toString()+u.toString(),a-=3}if(2===a){if((l=t.readBits(7))>=100)throw new Error("Invalid numeric value above 99");o=Math.floor(l/10),s=l%10,r.push(48+o,48+s),n+=o.toString()+s.toString()}else if(1===a){var l;if((l=t.readBits(4))>=10)throw new Error("Invalid numeric value above 9");r.push(48+l),n+=l.toString()}return{bytes:r,text:n}}!function(t){t.Numeric="numeric",t.Alphanumeric="alphanumeric",t.Byte="byte",t.Kanji="kanji",t.ECI="eci"}(n=e.Mode||(e.Mode={})),function(t){t[t.Terminator=0]="Terminator",t[t.Numeric=1]="Numeric",t[t.Alphanumeric=2]="Alphanumeric",t[t.Byte=4]="Byte",t[t.Kanji=8]="Kanji",t[t.ECI=7]="ECI"}(i||(i={}));var u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function l(t,e){for(var r=[],n="",i=[9,11,13][e],a=t.readBits(i);a>=2;){var o=t.readBits(11),s=Math.floor(o/45),l=o%45;r.push(u[s].charCodeAt(0),u[l].charCodeAt(0)),n+=u[s]+u[l],a-=2}return 1===a&&(s=t.readBits(6),r.push(u[s].charCodeAt(0)),n+=u[s]),{bytes:r,text:n}}function h(t,e){for(var r=[],n="",i=[8,16,16][e],a=t.readBits(i),o=0;o<a;o++){var s=t.readBits(8);r.push(s)}try{n+=decodeURIComponent(r.map((function(t){return"%"+("0"+t.toString(16)).substr(-2)})).join(""))}catch(t){}return{bytes:r,text:n}}function c(t,e){for(var r=[],n="",i=[8,10,12][e],a=t.readBits(i),s=0;s<a;s++){var u=t.readBits(13),l=Math.floor(u/192)<<8|u%192;l+=l<7936?33088:49472,r.push(l>>8,255&l),n+=String.fromCharCode(o.shiftJISTable[l])}return{bytes:r,text:n}}e.decode=function(t,e){for(var r,o,u,f,d=new a.BitStream(t),p=e<=9?0:e<=26?1:2,m={text:"",bytes:[],chunks:[],version:e};d.available()>=4;){var g=d.readBits(4);if(g===i.Terminator)return m;if(g===i.ECI)0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(7)}):0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(14)}):0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(21)}):m.chunks.push({type:n.ECI,assignmentNumber:-1});else if(g===i.Numeric){var b=s(d,p);m.text+=b.text,(r=m.bytes).push.apply(r,b.bytes),m.chunks.push({type:n.Numeric,text:b.text})}else if(g===i.Alphanumeric){var y=l(d,p);m.text+=y.text,(o=m.bytes).push.apply(o,y.bytes),m.chunks.push({type:n.Alphanumeric,text:y.text})}else if(g===i.Byte){var v=h(d,p);m.text+=v.text,(u=m.bytes).push.apply(u,v.bytes),m.chunks.push({type:n.Byte,bytes:v.bytes,text:v.text})}else if(g===i.Kanji){var w=c(d,p);m.text+=w.text,(f=m.bytes).push.apply(f,w.bytes),m.chunks.push({type:n.Kanji,bytes:w.bytes,text:w.text})}}if(0===d.available()||0===d.readBits(d.available()))return m}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.byteOffset=0,this.bitOffset=0,this.bytes=t}return t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Error("Cannot read "+t.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,n=t<r?t:r,i=255>>8-n<<(a=r-n);e=(this.bytes[this.byteOffset]&i)>>a,t-=n,this.bitOffset+=n,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(t>0){for(;t>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,t-=8;var a;t>0&&(i=255>>(a=8-t)<<a,e=e<<t|(this.bytes[this.byteOffset]&i)>>a,this.bitOffset+=t)}return e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();e.BitStream=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(2);e.decode=function(t,e){var r=new Uint8ClampedArray(t.length);r.set(t);for(var a=new n.default(285,256,0),o=new i.default(a,r),s=new Uint8ClampedArray(e),u=!1,l=0;l<e;l++){var h=o.evaluateAt(a.exp(l+a.generatorBase));s[s.length-1-l]=h,0!==h&&(u=!0)}if(!u)return r;var c=new i.default(a,s),f=function(t,e,r,n){var i;e.degree()<r.degree()&&(e=(i=[r,e])[0],r=i[1]);for(var a=e,o=r,s=t.zero,u=t.one;o.degree()>=n/2;){var l=a,h=s;if(s=u,(a=o).isZero())return null;o=l;for(var c=t.zero,f=a.getCoefficient(a.degree()),d=t.inverse(f);o.degree()>=a.degree()&&!o.isZero();){var p=o.degree()-a.degree(),m=t.multiply(o.getCoefficient(o.degree()),d);c=c.addOrSubtract(t.buildMonomial(p,m)),o=o.addOrSubtract(a.multiplyByMonomial(p,m))}if(u=c.multiplyPoly(s).addOrSubtract(h),o.degree()>=a.degree())return null}var g=u.getCoefficient(0);if(0===g)return null;var b=t.inverse(g);return[u.multiply(b),o.multiply(b)]}(a,a.buildMonomial(e,1),c,e);if(null===f)return null;var d=function(t,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var n=new Array(r),i=0,a=1;a<t.size&&i<r;a++)0===e.evaluateAt(a)&&(n[i]=t.inverse(a),i++);return i!==r?null:n}(a,f[0]);if(null==d)return null;for(var p=function(t,e,r){for(var i=r.length,a=new Array(i),o=0;o<i;o++){for(var s=t.inverse(r[o]),u=1,l=0;l<i;l++)o!==l&&(u=t.multiply(u,n.addOrSubtractGF(1,t.multiply(r[l],s))));a[o]=t.multiply(e.evaluateAt(s),t.inverse(u)),0!==t.generatorBase&&(a[o]=t.multiply(a[o],s))}return a}(a,f[1],d),m=0;m<d.length;m++){var g=r.length-1-a.log(d[m]);if(g<0)return null;r[g]=n.addOrSubtractGF(r[g],p[m])}return r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);function i(t,e,r,n){var i=t.x-e.x+r.x-n.x,a=t.y-e.y+r.y-n.y;if(0===i&&0===a)return{a11:e.x-t.x,a12:e.y-t.y,a13:0,a21:r.x-e.x,a22:r.y-e.y,a23:0,a31:t.x,a32:t.y,a33:1};var o=e.x-r.x,s=n.x-r.x,u=e.y-r.y,l=n.y-r.y,h=o*l-s*u,c=(i*l-s*a)/h,f=(o*a-i*u)/h;return{a11:e.x-t.x+c*e.x,a12:e.y-t.y+c*e.y,a13:c,a21:n.x-t.x+f*n.x,a22:n.y-t.y+f*n.y,a23:f,a31:t.x,a32:t.y,a33:1}}e.extract=function(t,e){for(var r,a,o=function(t,e,r,n){var a=i({x:3.5,y:3.5},e,r,n);return{a11:a.a22*a.a33-a.a23*a.a32,a12:a.a13*a.a32-a.a12*a.a33,a13:a.a12*a.a23-a.a13*a.a22,a21:a.a23*a.a31-a.a21*a.a33,a22:a.a11*a.a33-a.a13*a.a31,a23:a.a13*a.a21-a.a11*a.a23,a31:a.a21*a.a32-a.a22*a.a31,a32:a.a12*a.a31-a.a11*a.a32,a33:a.a11*a.a22-a.a12*a.a21}}(0,{x:e.dimension-3.5,y:3.5},{x:e.dimension-6.5,y:e.dimension-6.5},{x:3.5,y:e.dimension-3.5}),s=(a=o,{a11:(r=i(e.topLeft,e.topRight,e.alignmentPattern,e.bottomLeft)).a11*a.a11+r.a21*a.a12+r.a31*a.a13,a12:r.a12*a.a11+r.a22*a.a12+r.a32*a.a13,a13:r.a13*a.a11+r.a23*a.a12+r.a33*a.a13,a21:r.a11*a.a21+r.a21*a.a22+r.a31*a.a23,a22:r.a12*a.a21+r.a22*a.a22+r.a32*a.a23,a23:r.a13*a.a21+r.a23*a.a22+r.a33*a.a23,a31:r.a11*a.a31+r.a21*a.a32+r.a31*a.a33,a32:r.a12*a.a31+r.a22*a.a32+r.a32*a.a33,a33:r.a13*a.a31+r.a23*a.a32+r.a33*a.a33}),u=n.BitMatrix.createEmpty(e.dimension,e.dimension),l=function(t,e){var r=s.a13*t+s.a23*e+s.a33;return{x:(s.a11*t+s.a21*e+s.a31)/r,y:(s.a12*t+s.a22*e+s.a32)/r}},h=0;h<e.dimension;h++)for(var c=0;c<e.dimension;c++){var f=l(c+.5,h+.5);u.set(c,h,t.get(Math.floor(f.x),Math.floor(f.y)))}return{matrix:u,mappingFunction:l}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};function i(t){return t.reduce((function(t,e){return t+e}))}function a(t,e,r,i){var a,o,s,u,l=[{x:Math.floor(t.x),y:Math.floor(t.y)}],h=Math.abs(e.y-t.y)>Math.abs(e.x-t.x);h?(a=Math.floor(t.y),o=Math.floor(t.x),s=Math.floor(e.y),u=Math.floor(e.x)):(a=Math.floor(t.x),o=Math.floor(t.y),s=Math.floor(e.x),u=Math.floor(e.y));for(var c=Math.abs(s-a),f=Math.abs(u-o),d=Math.floor(-c/2),p=a<s?1:-1,m=o<u?1:-1,g=!0,b=a,y=o;b!==s+p;b+=p){var v=h?y:b,w=h?b:y;if(r.get(v,w)!==g&&(g=!g,l.push({x:v,y:w}),l.length===i+1))break;if((d+=f)>0){if(y===u)break;y+=m,d-=c}}for(var _=[],k=0;k<i;k++)l[k]&&l[k+1]?_.push(n(l[k],l[k+1])):_.push(0);return _}function o(t,e,r,n){var i,o=e.y-t.y,s=e.x-t.x,u=a(t,e,r,Math.ceil(n/2)),l=a(t,{x:t.x-s,y:t.y-o},r,Math.ceil(n/2)),h=u.shift()+l.shift()-1;return(i=l.concat(h)).concat.apply(i,u)}function s(t,e){var r=i(t)/i(e),n=0;return e.forEach((function(e,i){n+=Math.pow(t[i]-e*r,2)})),{averageSize:r,error:n}}function u(t,e,r){try{var n=o(t,{x:-1,y:t.y},r,e.length),i=o(t,{x:t.x,y:-1},r,e.length),a=o(t,{x:Math.max(0,t.x-t.y)-1,y:Math.max(0,t.y-t.x)-1},r,e.length),u=o(t,{x:Math.min(r.width,t.x+t.y)+1,y:Math.min(r.height,t.y+t.x)+1},r,e.length),l=s(n,e),h=s(i,e),c=s(a,e),f=s(u,e),d=Math.sqrt(l.error*l.error+h.error*h.error+c.error*c.error+f.error*f.error),p=(l.averageSize+h.averageSize+c.averageSize+f.averageSize)/4;return d+(Math.pow(l.averageSize-p,2)+Math.pow(h.averageSize-p,2)+Math.pow(c.averageSize-p,2)+Math.pow(f.averageSize-p,2))/p}catch(t){return 1/0}}function l(t,e){for(var r=Math.round(e.x);t.get(r,Math.round(e.y));)r--;for(var n=Math.round(e.x);t.get(n,Math.round(e.y));)n++;for(var i=(r+n)/2,a=Math.round(e.y);t.get(Math.round(i),a);)a--;for(var o=Math.round(e.y);t.get(Math.round(i),o);)o++;return{x:i,y:(a+o)/2}}function h(t,e,r,a,s){var l,h,c;try{l=function(t,e,r,a){var s=(i(o(t,r,a,5))/7+i(o(t,e,a,5))/7+i(o(r,t,a,5))/7+i(o(e,t,a,5))/7)/4;if(s<1)throw new Error("Invalid module size");var u=Math.round(n(t,e)/s),l=Math.round(n(t,r)/s),h=Math.floor((u+l)/2)+7;switch(h%4){case 0:h++;break;case 2:h--}return{dimension:h,moduleSize:s}}(a,r,s,t),h=l.dimension,c=l.moduleSize}catch(t){return null}var f=r.x-a.x+s.x,d=r.y-a.y+s.y,p=(n(a,s)+n(a,r))/2/c,m=1-3/p,g={x:a.x+m*(f-a.x),y:a.y+m*(d-a.y)},b=e.map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,a=(e.top.y+e.bottom.y+1)/2;if(t.get(Math.floor(r),Math.floor(a)))return i([e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1]),{x:r,y:a,score:u({x:Math.floor(r),y:Math.floor(a)},[1,1,1],t)+n({x:r,y:a},g)}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score}));return{alignmentPattern:p>=15&&b.length?b[0]:g,dimension:h}}e.locate=function(t){for(var e=[],r=[],a=[],o=[],s=function(n){for(var s=0,u=!1,l=[0,0,0,0,0],h=function(e){var a=t.get(e,n);if(a===u)s++;else{l=[l[1],l[2],l[3],l[4],s],s=1,u=a;var h=i(l)/7,c=Math.abs(l[0]-h)<h&&Math.abs(l[1]-h)<h&&Math.abs(l[2]-3*h)<3*h&&Math.abs(l[3]-h)<h&&Math.abs(l[4]-h)<h&&!a,f=i(l.slice(-3))/3,d=Math.abs(l[2]-f)<f&&Math.abs(l[3]-f)<f&&Math.abs(l[4]-f)<f&&a;if(c){var p=e-l[3]-l[4],m=p-l[2],g={startX:m,endX:p,y:n};(b=r.filter((function(t){return m>=t.bottom.startX&&m<=t.bottom.endX||p>=t.bottom.startX&&m<=t.bottom.endX||m<=t.bottom.startX&&p>=t.bottom.endX&&l[2]/(t.bottom.endX-t.bottom.startX)<1.5&&l[2]/(t.bottom.endX-t.bottom.startX)>.5}))).length>0?b[0].bottom=g:r.push({top:g,bottom:g})}if(d){var b,y=e-l[4],v=y-l[3];g={startX:v,y:n,endX:y},(b=o.filter((function(t){return v>=t.bottom.startX&&v<=t.bottom.endX||y>=t.bottom.startX&&v<=t.bottom.endX||v<=t.bottom.startX&&y>=t.bottom.endX&&l[2]/(t.bottom.endX-t.bottom.startX)<1.5&&l[2]/(t.bottom.endX-t.bottom.startX)>.5}))).length>0?b[0].bottom=g:o.push({top:g,bottom:g})}}},c=-1;c<=t.width;c++)h(c);e.push.apply(e,r.filter((function(t){return t.bottom.y!==n&&t.bottom.y-t.top.y>=2}))),r=r.filter((function(t){return t.bottom.y===n})),a.push.apply(a,o.filter((function(t){return t.bottom.y!==n}))),o=o.filter((function(t){return t.bottom.y===n}))},c=0;c<=t.height;c++)s(c);e.push.apply(e,r.filter((function(t){return t.bottom.y-t.top.y>=2}))),a.push.apply(a,o);var f=e.filter((function(t){return t.bottom.y-t.top.y>=2})).map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,n=(e.top.y+e.bottom.y+1)/2;if(t.get(Math.round(r),Math.round(n))){var a=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],o=i(a)/a.length;return{score:u({x:Math.round(r),y:Math.round(n)},[1,1,3,1,1],t),x:r,y:n,size:o}}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score})).map((function(t,e,r){if(e>4)return null;var n=r.filter((function(t,r){return e!==r})).map((function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-t.size,2)/t.size,size:e.size}})).sort((function(t,e){return t.score-e.score}));if(n.length<2)return null;var i=t.score+n[0].score+n[1].score;return{points:[t].concat(n.slice(0,2)),score:i}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score}));if(0===f.length)return null;var d=function(t,e,r){var i,a,o,s,u,l,h,c=n(t,e),f=n(e,r),d=n(t,r);return f>=c&&f>=d?(u=(i=[e,t,r])[0],l=i[1],h=i[2]):d>=f&&d>=c?(u=(a=[t,e,r])[0],l=a[1],h=a[2]):(u=(o=[t,r,e])[0],l=o[1],h=o[2]),(h.x-l.x)*(u.y-l.y)-(h.y-l.y)*(u.x-l.x)<0&&(u=(s=[h,u])[0],h=s[1]),{bottomLeft:u,topLeft:l,topRight:h}}(f[0].points[0],f[0].points[1],f[0].points[2]),p=d.topRight,m=d.topLeft,g=d.bottomLeft,b=h(t,a,p,m,g),y=[];b&&y.push({alignmentPattern:{x:b.alignmentPattern.x,y:b.alignmentPattern.y},bottomLeft:{x:g.x,y:g.y},dimension:b.dimension,topLeft:{x:m.x,y:m.y},topRight:{x:p.x,y:p.y}});var v=l(t,p),w=l(t,m),_=l(t,g),k=h(t,a,v,w,_);return k&&y.push({alignmentPattern:{x:k.alignmentPattern.x,y:k.alignmentPattern.y},bottomLeft:{x:_.x,y:_.y},topLeft:{x:w.x,y:w.y},topRight:{x:v.x,y:v.y},dimension:k.dimension}),0===y.length?null:y}}]).default},t.exports=e()},92908:(t,e,r)=>{var n=r(48287).Buffer,i=r(69005),a=function(){},o=r(74361),s=r(223),u=r(30791),l=r(89690),h=r(57510),c=self.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;t.exports=function(t,e){e="function"==typeof e?e:a,"string"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(c)return h(t,{responseType:"arraybuffer"});if(void 0===self.XMLHttpRequest)throw new Error("your browser does not support XHR loading");var e=new self.XMLHttpRequest;return e.overrideMimeType("text/plain; charset=x-user-defined"),h({xhr:e},t)}(t)),i(t,(function(r,i,h){if(r)return e(r);if(!/^2/.test(i.statusCode))return e(new Error("http status code: "+i.statusCode));if(!h)return e(new Error("no body result"));var c,f,d=!1;if(c=h,"[object ArrayBuffer]"===Object.prototype.toString.call(c)){var p=new Uint8Array(h);h=n.from(p,"binary")}l(h)&&(d=!0,"string"==typeof h&&(h=n.from(h,"binary"))),d||(n.isBuffer(h)&&(h=h.toString(t.encoding)),h=h.trim());try{var m=i.headers["content-type"];f=d?u(h):/json/.test(m)||"{"===h.charAt(0)?JSON.parse(h):/xml/.test(m)||"<"===h.charAt(0)?s(h):o(h)}catch(t){e(new Error("error parsing font "+t.message)),e=a}e(null,f)}))}},89690:(t,e,r)=>{var n=r(48287).Buffer,i=r(33922),a=n.from([66,77,70,3]);t.exports=function(t){return"string"==typeof t?"BMF"===t.substring(0,3):t.length>4&&i(t.slice(0,4),a)}},73065:function(t,e,r){var n,i;!function(a,o){"use strict";n=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},a=null;function o(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var a=n[i];this[a]=i<r?t:this.methodFactory(a,r,this.name)}if(this.log=this.debug,typeof console===e&&r<this.levels.SILENT)return"No console available for logging"}function l(t){return function(){typeof console!==e&&(u.call(this),this[t].apply(this,arguments))}}function h(n,i,a){return function(n){return"debug"===n&&(n="log"),typeof console!==e&&("trace"===n&&r?s:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):t)}(n)||l.apply(this,arguments)}function c(t,r){var o,s,l,c=this,f="loglevel";function d(){var t;if(typeof window!==e&&f){try{t=window.localStorage[f]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=encodeURIComponent(f),i=r.indexOf(n+"=");-1!==i&&(t=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(t){}return void 0===c.levels[t]&&(t=void 0),t}}function p(t){var e=t;if("string"==typeof e&&void 0!==c.levels[e.toUpperCase()]&&(e=c.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=c.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?f+=":"+t:"symbol"==typeof t&&(f=void 0),c.name=t,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=r||h,c.getLevel=function(){return null!=l?l:null!=s?s:o},c.setLevel=function(t,r){return l=p(t),!1!==r&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&f){try{return void(window.localStorage[f]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(t){}}}(l),u.call(c)},c.setDefaultLevel=function(t){s=p(t),d()||c.setLevel(t,!1)},c.resetLevel=function(){l=null,function(){if(typeof window!==e&&f){try{window.localStorage.removeItem(f)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),u.call(c)},c.enableAll=function(t){c.setLevel(c.levels.TRACE,t)},c.disableAll=function(t){c.setLevel(c.levels.SILENT,t)},c.rebuild=function(){if(a!==c&&(o=p(a.getLevel())),u.call(c),a===c)for(var t in i)i[t].rebuild()},o=p(a?a.getLevel():"WARN");var m=d();null!=m&&(l=p(m)),u.call(c)}(a=new c).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=i[t];return e||(e=i[t]=new c(t,a.methodFactory)),e};var f=typeof window!==e?window.log:void 0;return a.noConflict=function(){return typeof window!==e&&window.log===a&&(window.log=f),a},a.getLoggers=function(){return i},a.default=a,a},void 0===(i=n.call(e,r,e,t))||(t.exports=i)}()},34399:(t,e)=>{"use strict";function r(t,e,r,n){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,u=i+1,l=(1<<u)-1,h=0,c=0,f=0,d=t[e++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=t[e++]<<h,h+=8,1===d?d=t[e++]:--d;if(h<u)break;var g=c&l;if(c>>=u,h-=u,g!==a){if(g===o)break;for(var b=g<s?g:m,y=0,v=b;v>a;)v=p[v]>>8,++y;var w=v;if(f+y+(b!==g?1:0)>n)return void console.log("Warning, gif stream longer than expected.");r[f++]=w;var _=f+=y;for(b!==g&&(r[f++]=w),v=b;y--;)v=p[v],r[--_]=255&v,v>>=8;null!==m&&s<4096&&(p[s++]=m<<8|w,s>=l+1&&u<12&&(++u,l=l<<1|1)),m=g}else s=o+1,l=(1<<(u=i+1))-1,m=null}return f!==n&&console.log("Warning, gif stream shorter than expected."),r}try{e.GifWriter=function(t,e,r,n){var i=0,a=void 0===(n=void 0===n?{}:n).loop?null:n.loop,o=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,l=0;if(null!==o){for(var h=s(o);h>>=1;)++u;if(h=1<<u,--u,void 0!==n.background){if((l=n.background)>=h)throw new Error("Background index out of range.");if(0===l)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==o?128:0)|u,t[i++]=l,t[i++]=0,null!==o)for(var c=0,f=o.length;c<f;++c){var d=o[c];t[i++]=d>>16&255,t[i++]=d>>8&255,t[i++]=255&d}if(null!==a){if(a<0||a>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=0}var p=!1;this.addFrame=function(e,r,n,a,u,l){if(!0===p&&(--i,p=!1),l=void 0===l?{}:l,e<0||r<0||e>65535||r>65535)throw new Error("x/y invalid.");if(n<=0||a<=0||n>65535||a>65535)throw new Error("Width/Height invalid.");if(u.length<n*a)throw new Error("Not enough pixels for the frame size.");var h=!0,c=l.palette;if(null==c&&(h=!1,c=o),null==c)throw new Error("Must supply either a local or global palette.");for(var f=s(c),d=0;f>>=1;)++d;f=1<<d;var m=void 0===l.delay?0:l.delay,g=void 0===l.disposal?0:l.disposal;if(g<0||g>3)throw new Error("Disposal out of range.");var b=!1,y=0;if(void 0!==l.transparent&&null!==l.transparent&&(b=!0,(y=l.transparent)<0||y>=f))throw new Error("Transparent color index.");if((0!==g||b||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=g<<2|(!0===b?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=y,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=!0===h?128|d-1:0,!0===h)for(var v=0,w=c.length;v<w;++v){var _=c[v];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,a=1<<r,o=a-1,s=a+1,u=s+1,l=r+1,h=0,c=0;function f(r){for(;h>=r;)t[e++]=255&c,c>>=8,h-=8,e===i+256&&(t[i]=255,i=e++)}function d(t){c|=t<<h,h+=l,f(8)}var p=n[0]&o,m={};d(a);for(var g=1,b=n.length;g<b;++g){var y=n[g]&o,v=p<<8|y,w=m[v];if(void 0===w){for(c|=p<<h,h+=l;h>=8;)t[e++]=255&c,c>>=8,h-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(d(a),u=s+1,l=r+1,m={}):(u>=1<<l&&++l,m[v]=u++),p=y}else p=w}return d(p),d(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,d<2?2:d,u),i},this.end=function(){return!1===p&&(t[i++]=59,p=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,a=t[e++],o=a>>7,s=1<<1+(7&a);t[e++],t[e++];var u=null,l=null;o&&(u=e,l=s,e+=3*s);var h=!0,c=[],f=0,d=null,p=0,m=null;for(this.width=n,this.height=i;h&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];f=t[e++]|t[e++]<<8,d=t[e++],1&g||(d=null),p=g>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],k=_>>6&1,B=1<<1+(7&_),x=u,E=l,C=!1;_>>7&&(C=!0,x=e,E=B,e+=3*B);var A=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}c.push({x:b,y,width:v,height:w,has_local_palette:C,palette_offset:x,palette_size:E,data_offset:A,data_length:e-A,transparent_index:d,interlaced:!!k,delay:f,disposal:p});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var h=a.width,c=n-h,f=h,d=4*(a.y*n+a.x),p=4*((a.y+a.height)*n+a.x),m=d,g=4*c;!0===a.interlaced&&(g+=4*n*7);for(var b=8,y=0,v=s.length;y<v;++y){var w=s[y];if(0===f&&(f=h,(m+=g)>=p&&(g=4*c+4*n*(b-1),m=d+(h+c)*(b<<1),b>>=1)),w===l)m+=4;else{var _=t[u+3*w],k=t[u+3*w+1],B=t[u+3*w+2];i[m++]=B,i[m++]=k,i[m++]=_,i[m++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var h=a.width,c=n-h,f=h,d=4*(a.y*n+a.x),p=4*((a.y+a.height)*n+a.x),m=d,g=4*c;!0===a.interlaced&&(g+=4*n*7);for(var b=8,y=0,v=s.length;y<v;++y){var w=s[y];if(0===f&&(f=h,(m+=g)>=p&&(g=4*c+4*n*(b-1),m=d+(h+c)*(b<<1),b>>=1)),w===l)m+=4;else{var _=t[u+3*w],k=t[u+3*w+1],B=t[u+3*w+2];i[m++]=_,i[m++]=k,i[m++]=B,i[m++]=255}--f}}}}catch(t){}},51668:(t,e,r)=>{"use strict";var n={};(0,r(9805).assign)(n,r(63303),r(87083),r(19681)),t.exports=n},63303:(t,e,r)=>{"use strict";var n=r(58411),i=r(9805),a=r(41996),o=r(54674),s=r(44442),u=Object.prototype.toString,l=0,h=-1,c=0,f=8;function d(t){if(!(this instanceof d))return new d(t);this.options=i.assign({level:h,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==l)throw new Error(o[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[r]);this._dict_set=!0}}function p(t,e){var r=new d(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}d.prototype.push=function(t,e){var r,o,s=this.strm,h=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(h),s.next_out=0,s.avail_out=h),1!==(r=n.deflate(s,o))&&r!==l)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==o||(this.onEnd(l),s.avail_out=0,!0)},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=d,e.deflate=p,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},87083:(t,e,r)=>{"use strict";var n=r(71447),i=r(9805),a=r(41996),o=r(19681),s=r(54674),u=r(44442),l=r(15033),h=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=a.string2buf(e.dictionary):"[object ArrayBuffer]"===h.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==o.Z_OK))throw new Error(s[r])}function f(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}c.prototype.push=function(t,e){var r,s,u,l,c,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===h.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(u=a.utf8border(f.output,f.next_out),l=f.next_out-u,c=a.buf2string(f.output,u),f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,u,l,0),this.onData(c)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=c,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},9805:(t,e)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},a={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},41996:(t,e,r)=>{"use strict";var n=r(9805),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",o=0;o<e;o++)r+=String.fromCharCode(t[o]);return r}o[254]=o[254]=1,e.string2buf=function(t){var e,r,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),o=0,a=0;o<u;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,a,s=e||t.length,l=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)l[n++]=i;else if((a=o[i])>4)l[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<s;)i=i<<6|63&t[r++],a--;a>1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return u(l,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}},53269:t=>{"use strict";t.exports=function(t,e,r,n){for(var i=65535&t,a=t>>>16&65535,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},19681:t=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},14823:t=>{"use strict";var e=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,r,n,i){var a=e,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^r[s])];return~t}},58411:(t,e,r)=>{"use strict";var n,i=r(9805),a=r(23665),o=r(53269),s=r(14823),u=r(54674),l=0,h=0,c=-2,f=2,d=8,p=286,m=30,g=19,b=2*p+1,y=15,v=3,w=258,_=w+v+1,k=42,B=103,x=113,E=666;function C(t,e){return t.msg=u[e],e}function A(t){return(t<<1)-(t>4?9:0)}function I(t){for(var e=t.length;--e>=0;)t[e]=0}function M(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function S(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,M(t.strm)}function P(t,e){t.pending_buf[t.pending++]=e}function T(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-_?t.strstart-(t.w_size-_):0,l=t.window,h=t.w_mask,c=t.prev,f=t.strstart+w,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<f);if(n=w-(f-a),a=f-w,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=c[e&h])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function F(t){var e,r,n,a,u,l,h,c,f,d,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-_)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);a+=p}if(0===t.strm.avail_in)break;if(l=t.strm,h=t.window,c=t.strstart+t.lookahead,f=a,d=void 0,(d=l.avail_in)>f&&(d=f),r=0===d?0:(l.avail_in-=d,i.arraySet(h,l.input,l.next_in,d,c),1===l.state.wrap?l.adler=o(l.adler,h,d,c):2===l.state.wrap&&(l.adler=s(l.adler,h,d,c)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=v)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+v-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<v)););}while(t.lookahead<_&&0!==t.strm.avail_in)}function L(t,e){for(var r,n;;){if(t.lookahead<_){if(F(t),t.lookahead<_&&e===l)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=v&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-_&&(t.match_length=R(t,r)),t.match_length>=v)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-v),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=v){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(S(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<v-1?t.strstart:v-1,4===e?(S(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(S(t,!1),0===t.strm.avail_out)?1:2}function O(t,e){for(var r,n,i;;){if(t.lookahead<_){if(F(t),t.lookahead<_&&e===l)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=v&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=v-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_&&(t.match_length=R(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===v&&t.strstart-t.match_start>4096)&&(t.match_length=v-1)),t.prev_length>=v&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-v,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-v),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=v-1,t.strstart++,n&&(S(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&S(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<v-1?t.strstart:v-1,4===e?(S(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(S(t,!1),0===t.strm.avail_out)?1:2}function U(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function D(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=d,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*b),this.dyn_dtree=new i.Buf16(2*(2*m+1)),this.bl_tree=new i.Buf16(2*(2*g+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(y+1),this.heap=new i.Buf16(2*p+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*p+1),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=f,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:x,t.adler=2===e.wrap?0:1,e.last_flush=l,a._tr_init(e),h):C(t,c)}function z(t){var e,r=N(t);return r===h&&((e=t.state).window_size=2*e.w_size,I(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=v-1,e.match_available=0,e.ins_h=0),r}function G(t,e,r,n,a,o){if(!t)return c;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>9||r!==d||n<8||n>15||e<0||e>9||o<0||o>4)return C(t,c);8===n&&(n=9);var u=new D;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+v-1)/v),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,z(t)}n=[new U(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===l)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,S(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-_&&(S(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(S(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(S(t,!1),t.strm.avail_out),1)})),new U(4,4,8,4,L),new U(4,5,16,8,L),new U(4,6,32,32,L),new U(4,4,16,16,O),new U(8,16,32,32,O),new U(8,16,128,128,O),new U(8,32,128,256,O),new U(32,128,258,1024,O),new U(32,258,258,4096,O)],e.deflateInit=function(t,e){return G(t,e,d,15,8,0)},e.deflateInit2=G,e.deflateReset=z,e.deflateResetKeep=N,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,h):c},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?C(t,c):c;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===E&&4!==e)return C(t,0===t.avail_out?-5:c);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===k)if(2===i.wrap)t.adler=0,P(i,31),P(i,139),P(i,8),i.gzhead?(P(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),P(i,255&i.gzhead.time),P(i,i.gzhead.time>>8&255),P(i,i.gzhead.time>>16&255),P(i,i.gzhead.time>>24&255),P(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),P(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(P(i,255&i.gzhead.extra.length),P(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(P(i,0),P(i,0),P(i,0),P(i,0),P(i,0),P(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),P(i,3),i.status=x);else{var f=d+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=x,T(i,f),0!==i.strstart&&(T(i,t.adler>>>16),T(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending!==i.pending_buf_size));)P(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,P(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,P(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=B)}else i.status=B;if(i.status===B&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&M(t),i.pending+2<=i.pending_buf_size&&(P(i,255&t.adler),P(i,t.adler>>8&255),t.adler=0,i.status=x)):i.status=x),0!==i.pending){if(M(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&A(e)<=A(r)&&4!==e)return C(t,-5);if(i.status===E&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==E){var p=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===l)return 1;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(S(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(S(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(S(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=w){if(F(t),t.lookahead<=w&&e===l)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=v&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+w;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=w-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=v?(r=a._tr_tally(t,1,t.match_length-v),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(S(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(S(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(S(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==p&&4!==p||(i.status=E),1===p||3===p)return 0===t.avail_out&&(i.last_flush=-1),h;if(2===p&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),M(t),0===t.avail_out))return i.last_flush=-1,h}return 4!==e?h:i.wrap<=0?1:(2===i.wrap?(P(i,255&t.adler),P(i,t.adler>>8&255),P(i,t.adler>>16&255),P(i,t.adler>>24&255),P(i,255&t.total_in),P(i,t.total_in>>8&255),P(i,t.total_in>>16&255),P(i,t.total_in>>24&255)):(T(i,t.adler>>>16),T(i,65535&t.adler)),M(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&e!==B&&e!==x&&e!==E?C(t,c):(t.state=null,e===x?C(t,-3):h):c},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,l,f,d,p=e.length;if(!t||!t.state)return c;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==k||r.lookahead)return c;for(1===s&&(t.adler=o(t.adler,e,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(I(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,e,p-r.w_size,r.w_size,0),e=d,p=r.w_size),u=t.avail_in,l=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,F(r);r.lookahead>=v;){n=r.strstart,a=r.lookahead-(v-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+v-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=v-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=v-1,r.match_available=0,t.next_in=l,t.input=f,t.avail_in=u,r.wrap=s,h},e.deflateInfo="pako deflate (from Nodeca project)"},15033:t=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},47293:t=>{"use strict";t.exports=function(t,e){var r,n,i,a,o,s,u,l,h,c,f,d,p,m,g,b,y,v,w,_,k,B,x,E,C;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),a=t.next_out,C=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,h=r.whave,c=r.wnext,f=r.window,d=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),v=m[d&b];e:for(;;){if(d>>>=w=v>>>24,p-=w,0==(w=v>>>16&255))C[a++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}v=m[(65535&v)+(d&(1<<w)-1)];continue e}for(_=65535&v,(w&=15)&&(p<w&&(d+=E[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),v=g[d&y];;){if(d>>>=w=v>>>24,p-=w,16&(w=v>>>16&255)){if(k=65535&v,p<(w&=15)&&(d+=E[n++]<<p,(p+=8)<w&&(d+=E[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=a-o)){if((w=k-w)>h&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(B=0,x=f,0===c){if(B+=l-w,w<_){_-=w;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}}else if(c<w){if(B+=l+c-w,(w-=c)<_){_-=w;do{C[a++]=f[B++]}while(--w);if(B=0,c<_){_-=w=c;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}}}else if(B+=c-w,w<_){_-=w;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}for(;_>2;)C[a++]=x[B++],C[a++]=x[B++],C[a++]=x[B++],_-=3;_&&(C[a++]=x[B++],_>1&&(C[a++]=x[B++]))}else{B=a-k;do{C[a++]=C[B++],C[a++]=C[B++],C[a++]=C[B++],_-=3}while(_>2);_&&(C[a++]=C[B++],_>1&&(C[a++]=C[B++]))}break}if(64&w){t.msg="invalid distance code",r.mode=30;break t}v=g[(65535&v)+(d&(1<<w)-1)]}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p}},71447:(t,e,r)=>{"use strict";var n=r(9805),i=r(53269),a=r(14823),o=r(47293),s=r(21998),u=0,l=-2,h=1,c=12,f=30,d=852,p=592;function m(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(d),e.distcode=e.distdyn=new n.Buf32(p),e.sane=1,e.back=-1,u):l}function y(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function v(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,y(t))):l}function w(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=v(t,e))!==u&&(t.state=null),r):l}var _,k,B=!0;function x(t){if(B){var e;for(_=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,_,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,k,0,t.work,{bits:5}),B=!1}t.lencode=_,t.lenbits=9,t.distcode=k,t.distbits=5}function E(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=y,e.inflateReset2=v,e.inflateResetKeep=b,e.inflateInit=function(t){return w(t,15)},e.inflateInit2=w,e.inflate=function(t,e){var r,d,p,g,b,y,v,w,_,k,B,C,A,I,M,S,P,T,R,F,L,O,U,D,N=0,z=new n.Buf8(4),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(r=t.state).mode===c&&(r.mode=13),b=t.next_out,p=t.output,v=t.avail_out,g=t.next_in,d=t.input,y=t.avail_in,w=r.hold,_=r.bits,k=y,B=v,O=u;t:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(2&r.wrap&&35615===w){r.check=0,z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0),w=0,_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){t.msg="incorrect header check",r.mode=f;break}if(8!=(15&w)){t.msg="unknown compression method",r.mode=f;break}if(_-=4,L=8+(15&(w>>>=4)),0===r.wbits)r.wbits=L;else if(L>r.wbits){t.msg="invalid window size",r.mode=f;break}r.dmax=1<<L,t.adler=r.check=1,r.mode=512&w?10:c,w=0,_=0;break;case 2:for(;_<16;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=f;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=f;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0,r.mode=3;case 3:for(;_<32;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,z[2]=w>>>16&255,z[3]=w>>>24&255,r.check=a(r.check,z,4,0)),w=0,_=0,r.mode=4;case 4:for(;_<16;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((C=r.length)>y&&(C=y),C&&(r.head&&(L=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,g,C,L)),512&r.flags&&(r.check=a(r.check,d,C,g)),y-=C,g+=C,r.length-=C),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break t;C=0;do{L=d[g+C++],r.head&&L&&r.length<65536&&(r.head.name+=String.fromCharCode(L))}while(L&&C<y);if(512&r.flags&&(r.check=a(r.check,d,C,g)),y-=C,g+=C,L)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break t;C=0;do{L=d[g+C++],r.head&&L&&r.length<65536&&(r.head.comment+=String.fromCharCode(L))}while(L&&C<y);if(512&r.flags&&(r.check=a(r.check,d,C,g)),y-=C,g+=C,L)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(w!==(65535&r.check)){t.msg="header crc mismatch",r.mode=f;break}w=0,_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=c;break;case 10:for(;_<32;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}t.adler=r.check=m(w),w=0,_=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=v,t.next_in=g,t.avail_in=y,r.hold=w,r.bits=_,2;t.adler=r.check=1,r.mode=c;case c:if(5===e||6===e)break t;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6===e){w>>>=2,_-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=f}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){t.msg="invalid stored block lengths",r.mode=f;break}if(r.length=65535&w,w=0,_=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(C=r.length){if(C>y&&(C=y),C>v&&(C=v),0===C)break t;n.arraySet(p,d,g,C,b),y-=C,g+=C,v-=C,b+=C,r.length-=C;break}r.mode=c;break;case 17:for(;_<14;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=f;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.lens[G[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,U={bits:r.lenbits},O=s(0,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,O){t.msg="invalid code lengths set",r.mode=f;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;S=(N=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,P=65535&N,!((M=N>>>24)<=_);){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(P<16)w>>>=M,_-=M,r.lens[r.have++]=P;else{if(16===P){for(D=M+2;_<D;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(w>>>=M,_-=M,0===r.have){t.msg="invalid bit length repeat",r.mode=f;break}L=r.lens[r.have-1],C=3+(3&w),w>>>=2,_-=2}else if(17===P){for(D=M+3;_<D;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}_-=M,L=0,C=3+(7&(w>>>=M)),w>>>=3,_-=3}else{for(D=M+7;_<D;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}_-=M,L=0,C=11+(127&(w>>>=M)),w>>>=7,_-=7}if(r.have+C>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=f;break}for(;C--;)r.lens[r.have++]=L}}if(r.mode===f)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=f;break}if(r.lenbits=9,U={bits:r.lenbits},O=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,O){t.msg="invalid literal/lengths set",r.mode=f;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},O=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,O){t.msg="invalid distances set",r.mode=f;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(y>=6&&v>=258){t.next_out=b,t.avail_out=v,t.next_in=g,t.avail_in=y,r.hold=w,r.bits=_,o(t,B),b=t.next_out,p=t.output,v=t.avail_out,g=t.next_in,d=t.input,y=t.avail_in,w=r.hold,_=r.bits,r.mode===c&&(r.back=-1);break}for(r.back=0;S=(N=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,P=65535&N,!((M=N>>>24)<=_);){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(S&&!(240&S)){for(T=M,R=S,F=P;S=(N=r.lencode[F+((w&(1<<T+R)-1)>>T)])>>>16&255,P=65535&N,!(T+(M=N>>>24)<=_);){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}w>>>=T,_-=T,r.back+=T}if(w>>>=M,_-=M,r.back+=M,r.length=P,0===S){r.mode=26;break}if(32&S){r.back=-1,r.mode=c;break}if(64&S){t.msg="invalid literal/length code",r.mode=f;break}r.extra=15&S,r.mode=22;case 22:if(r.extra){for(D=r.extra;_<D;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;S=(N=r.distcode[w&(1<<r.distbits)-1])>>>16&255,P=65535&N,!((M=N>>>24)<=_);){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(!(240&S)){for(T=M,R=S,F=P;S=(N=r.distcode[F+((w&(1<<T+R)-1)>>T)])>>>16&255,P=65535&N,!(T+(M=N>>>24)<=_);){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}w>>>=T,_-=T,r.back+=T}if(w>>>=M,_-=M,r.back+=M,64&S){t.msg="invalid distance code",r.mode=f;break}r.offset=P,r.extra=15&S,r.mode=24;case 24:if(r.extra){for(D=r.extra;_<D;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=f;break}r.mode=25;case 25:if(0===v)break t;if(C=B-v,r.offset>C){if((C=r.offset-C)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=f;break}C>r.wnext?(C-=r.wnext,A=r.wsize-C):A=r.wnext-C,C>r.length&&(C=r.length),I=r.window}else I=p,A=b-r.offset,C=r.length;C>v&&(C=v),v-=C,r.length-=C;do{p[b++]=I[A++]}while(--C);0===r.length&&(r.mode=21);break;case 26:if(0===v)break t;p[b++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===y)break t;y--,w|=d[g++]<<_,_+=8}if(B-=v,t.total_out+=B,r.total+=B,B&&(t.adler=r.check=r.flags?a(r.check,p,B,b-B):i(r.check,p,B,b-B)),B=v,(r.flags?w:m(w))!==r.check){t.msg="incorrect data check",r.mode=f;break}w=0,_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===y)break t;y--,w+=d[g++]<<_,_+=8}if(w!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=f;break}w=0,_=0}r.mode=29;case 29:O=1;break t;case f:O=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=v,t.next_in=g,t.avail_in=y,r.hold=w,r.bits=_,(r.wsize||B!==t.avail_out&&r.mode<f&&(r.mode<27||4!==e))&&E(t,t.output,t.next_out,B-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,B-=t.avail_out,t.total_in+=k,t.total_out+=B,r.total+=B,r.wrap&&B&&(t.adler=r.check=r.flags?a(r.check,p,B,t.next_out-B):i(r.check,p,B,t.next_out-B)),t.data_type=r.bits+(r.last?64:0)+(r.mode===c?128:0)+(20===r.mode||15===r.mode?256:0),(0===k&&0===B||4===e)&&O===u&&(O=-5),O)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,u},e.inflateGetHeader=function(t,e){var r;return t&&t.state&&2&(r=t.state).wrap?(r.head=e,e.done=!1,u):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:E(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,u):l},e.inflateInfo="pako inflate (from Nodeca project)"},21998:(t,e,r)=>{"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,u,l,h,c,f){var d,p,m,g,b,y,v,w,_,k=f.bits,B=0,x=0,E=0,C=0,A=0,I=0,M=0,S=0,P=0,T=0,R=null,F=0,L=new n.Buf16(16),O=new n.Buf16(16),U=null,D=0;for(B=0;B<=15;B++)L[B]=0;for(x=0;x<u;x++)L[e[r+x]]++;for(A=k,C=15;C>=1&&0===L[C];C--);if(A>C&&(A=C),0===C)return l[h++]=20971520,l[h++]=20971520,f.bits=1,0;for(E=1;E<C&&0===L[E];E++);for(A<E&&(A=E),S=1,B=1;B<=15;B++)if(S<<=1,(S-=L[B])<0)return-1;if(S>0&&(0===t||1!==C))return-1;for(O[1]=0,B=1;B<15;B++)O[B+1]=O[B]+L[B];for(x=0;x<u;x++)0!==e[r+x]&&(c[O[e[r+x]]++]=x);if(0===t?(R=U=c,y=19):1===t?(R=i,F-=257,U=a,D-=257,y=256):(R=o,U=s,y=-1),T=0,x=0,B=E,b=h,I=A,M=0,m=-1,g=(P=1<<A)-1,1===t&&P>852||2===t&&P>592)return 1;for(;;){v=B-M,c[x]<y?(w=0,_=c[x]):c[x]>y?(w=U[D+c[x]],_=R[F+c[x]]):(w=96,_=0),d=1<<B-M,E=p=1<<I;do{l[b+(T>>M)+(p-=d)]=v<<24|w<<16|_}while(0!==p);for(d=1<<B-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,x++,0==--L[B]){if(B===C)break;B=e[r+c[x]]}if(B>A&&(T&g)!==m){for(0===M&&(M=A),b+=E,S=1<<(I=B-M);I+M<C&&!((S-=L[I+M])<=0);)I++,S<<=1;if(P+=1<<I,1===t&&P>852||2===t&&P>592)return 1;l[m=T&g]=A<<24|I<<16|b-h}}return 0!==T&&(l[b+T]=B-M<<24|64<<16),f.bits=A,0}},54674:t=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},23665:(t,e,r)=>{"use strict";var n=r(9805);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,o=286,s=30,u=15,l=16,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var m=new Array(60);i(m);var g=new Array(512);i(g);var b=new Array(256);i(b);var y=new Array(29);i(y);var v,w,_,k=new Array(s);function B(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function E(t){return t<256?g[t]:g[256+(t>>>7)]}function C(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function A(t,e,r){t.bi_valid>l-r?(t.bi_buf|=e<<t.bi_valid&65535,C(t,t.bi_buf),t.bi_buf=e>>l-t.bi_valid,t.bi_valid+=r-l):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function I(t,e,r){A(t,r[2*e],r[2*e+1])}function M(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function S(t,e,r){var n,i,a=new Array(u+1),o=0;for(n=1;n<=u;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=M(a[s]++,s))}}function P(t){var e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){t.bi_valid>8?C(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function F(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&R(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!R(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function L(t,e,r){var n,i,o,s,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?I(t,i,e):(I(t,(o=b[i])+a+1,e),0!==(s=h[o])&&A(t,i-=y[o],s),I(t,o=E(--n),r),0!==(s=c[o])&&A(t,n-=k[o],s))}while(u<t.last_lit);I(t,256,e)}function O(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)F(t,a,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,F(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,h=e.max_code,c=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(a=0;a<=u;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=l[2*l[2*(n=t.heap[r])+1]+1]+1)>m&&(a=m,g++),l[2*n+1]=a,n>h||(t.bl_count[a]++,o=0,n>=p&&(o=d[n-p]),s=l[2*n],t.opt_len+=s*(a+o),f&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(a=m-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[m]--,g-=2}while(g>0);for(a=m;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>h||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(t,e),S(a,h,t.bl_count)}function U(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function D(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{I(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(I(t,i,t.bl_tree),s--),I(t,16,t.bl_tree),A(t,s-3,2)):s<=10?(I(t,17,t.bl_tree),A(t,s-3,3)):(I(t,18,t.bl_tree),A(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(k);var N=!1;function z(t,e,r,i){A(t,0+(i?1:0),3),function(t,e,r,i){T(t),C(t,r),C(t,~r),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}e._tr_init=function(t){N||(function(){var t,e,r,n,i,a=new Array(u+1);for(r=0,n=0;n<28;n++)for(y[n]=r,t=0;t<1<<h[n];t++)b[r++]=n;for(b[r-1]=n,i=0,n=0;n<16;n++)for(k[n]=i,t=0;t<1<<c[n];t++)g[i++]=n;for(i>>=7;n<s;n++)for(k[n]=i<<7,t=0;t<1<<c[n]-7;t++)g[256+i++]=n;for(e=0;e<=u;e++)a[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,a[8]++;for(;t<=255;)p[2*t+1]=9,t++,a[9]++;for(;t<=279;)p[2*t+1]=7,t++,a[7]++;for(;t<=287;)p[2*t+1]=8,t++,a[8]++;for(S(p,287,a),t=0;t<s;t++)m[2*t+1]=5,m[2*t]=M(t,5);v=new B(p,h,257,o,u),w=new B(m,c,0,s,u),_=new B(new Array(0),f,0,19,7)}(),N=!0),t.l_desc=new x(t.dyn_ltree,v),t.d_desc=new x(t.dyn_dtree,w),t.bl_desc=new x(t.bl_tree,_),t.bi_buf=0,t.bi_valid=0,P(t)},e._tr_stored_block=z,e._tr_flush_block=function(t,e,r,n){var i,o,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),O(t,t.l_desc),O(t,t.d_desc),s=function(t){var e;for(U(t,t.dyn_ltree,t.l_desc.max_code),U(t,t.dyn_dtree,t.d_desc.max_code),O(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?z(t,e,r,n):4===t.strategy||o===i?(A(t,2+(n?1:0),3),L(t,p,m)):(A(t,4+(n?1:0),3),function(t,e,r,n){var i;for(A(t,e-257,5),A(t,r-1,5),A(t,n-4,4),i=0;i<n;i++)A(t,t.bl_tree[2*d[i]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),L(t,t.dyn_ltree,t.dyn_dtree)),P(t),n&&T(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(b[r]+a+1)]++,t.dyn_dtree[2*E(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){A(t,2,3),I(t,256,p),function(t){16===t.bi_valid?(C(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},44442:t=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},74361:t=>{function e(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map((function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)}));for(var a=[],o=0;o<t.length;o++){var s=t[o];0===o?a.push({key:s[0],data:""}):o===t.length-1?a[a.length-1].data=r(s[0]):(a[a.length-1].data=r(s[0]),a.push({key:s[1],data:""}))}var u={key:i,data:{}};return a.forEach((function(t){u.data[t.key]=t.data})),u}function r(t){return t&&0!==t.length?0===t.indexOf('"')||0===t.indexOf("'")?t.substring(1,t.length-1):-1!==t.indexOf(",")?function(t){return t.split(",").map((function(t){return parseInt(t,10)}))}(t):parseInt(t,10):""}t.exports=function(t){if(!t)throw new Error("no data provided");var r={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\r\n?|\n/g);if(0===n.length)throw new Error("no data in BMFont file");for(var i=0;i<n.length;i++){var a=e(n[i],i);if(a)if("page"===a.key){if("number"!=typeof a.data.id)throw new Error("malformed file at line "+i+" -- needs page id=N");if("string"!=typeof a.data.file)throw new Error("malformed file at line "+i+' -- needs page file="path"');r.pages[a.data.id]=a.data.file}else"chars"===a.key||"kernings"===a.key||("char"===a.key?r.chars.push(a.data):"kerning"===a.key?r.kernings.push(a.data):r[a.key]=a.data)}return r}},30791:t=>{var e=[66,77,70];function r(t,e,r){if(r>e.length-1)return 0;var i=e.readUInt8(r++),a=e.readInt32LE(r);switch(r+=4,i){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var i=t.readUInt8(e+2);return r.smooth=i>>7&1,r.unicode=i>>6&1,r.italic=i>>5&1,r.bold=i>>4&1,i>>3&1&&(r.fixedHeight=1),r.charset=t.readUInt8(e+3)||"",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return n(t,e).toString("utf8")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};return r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8),t.readUInt8(e+10),r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var i=[],a=n(t,e),o=a.length+1,s=r/o,u=0;u<s;u++)i[u]=t.slice(e,e+a.length).toString("utf8"),e+=o;return i}(e,r,a);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,a=0;a<i;a++){var o={},s=20*a;o.id=t.readUInt32LE(e+0+s),o.x=t.readUInt16LE(e+4+s),o.y=t.readUInt16LE(e+6+s),o.width=t.readUInt16LE(e+8+s),o.height=t.readUInt16LE(e+10+s),o.xoffset=t.readInt16LE(e+12+s),o.yoffset=t.readInt16LE(e+14+s),o.xadvance=t.readInt16LE(e+16+s),o.page=t.readUInt8(e+18+s),o.chnl=t.readUInt8(e+19+s),n[a]=o}return n}(e,r,a);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,a=0;a<i;a++){var o={},s=10*a;o.first=t.readUInt32LE(e+0+s),o.second=t.readUInt32LE(e+4+s),o.amount=t.readInt16LE(e+8+s),n[a]=o}return n}(e,r,a)}return 5+a}function n(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error("invalid buffer length for BMFont");var n=e.every((function(e,r){return t.readUInt8(r)===e}));if(!n)throw new Error("BMFont missing BMF byte header");var i=3;if(t.readUInt8(i++)>3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var a={kernings:[],chars:[]},o=0;o<5;o++)i+=r(a,t,i);return a}},223:(t,e,r)=>{var n=r(55272),i=r(99087),a={scaleh:"scaleH",scalew:"scaleW",stretchh:"stretchH",lineheight:"lineHeight",alphachnl:"alphaChnl",redchnl:"redChnl",greenchnl:"greenChnl",bluechnl:"blueChnl"};function o(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,a[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};["info","common"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(o(i)))}));var a=e.getElementsByTagName("pages")[0];if(!a)throw new Error("malformed file -- no <pages> element");for(var s=a.getElementsByTagName("page"),u=0;u<s.length;u++){var l=s[u],h=parseInt(l.getAttribute("id"),10),c=l.getAttribute("file");if(isNaN(h))throw new Error('malformed file -- page "id" attribute is NaN');if(!c)throw new Error('malformed file -- needs page "file" attribute');r.pages[parseInt(h,10)]=c}return["chars","kernings"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var a=t.substring(0,t.length-1),s=i.getElementsByTagName(a),u=0;u<s.length;u++){var l=s[u];r[t].push(n(o(l)))}})),r}},55272:t=>{var e="chasrset";t.exports=function(t){for(var r in t=Object.assign({},t),e in t&&(t.charset=t[e],delete t[e]),t)"face"!==r&&"charset"!==r&&(t[r]="padding"===r||"spacing"===r?t[r].split(",").map((function(t){return parseInt(t,10)})):parseInt(t[r],10));return t}},78023:t=>{var e=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var r,n={},i=e(t).split("\n"),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(":"),u=e(o.slice(0,s)).toLowerCase(),l=e(o.slice(s+1));void 0===n[u]?n[u]=l:(r=n[u],"[object Array]"===Object.prototype.toString.call(r)?n[u].push(l):n[u]=[n[u],l])}return n}},43627:(t,e,r)=>{"use strict";var n=r(65606),i="win32"===n.platform,a=r(40537);function o(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():e&&r.push(".."):r.push(i))}return r}function s(t){for(var e=t.length-1,r=0;r<=e&&!t[r];r++);for(var n=e;n>=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,h={};function c(t){var e=u.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",i=l.exec(n);return[r,i[1],i[2],i[3]]}function f(t){var e=u.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function d(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}h.resolve=function(){for(var t="",e="",r=!1,i=arguments.length-1;i>=-1;i--){var s;if(i>=0?s=arguments[i]:t?(s=n.env["="+t])&&s.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\"):s=n.cwd(),!a.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=f(s),l=u.device,h=u.isUnc,c=u.isAbsolute,p=u.tail;if((!l||!t||l.toLowerCase()===t.toLowerCase())&&(t||(t=l),r||(e=p+"\\"+e,r=c),t&&r))break}}return h&&(t=d(t)),t+(r?"\\":"")+(e=o(e.split(/[\\\/]+/),!r).join("\\"))||"."},h.normalize=function(t){var e=f(t),r=e.device,n=e.isUnc,i=e.isAbsolute,a=e.tail,s=/[\\\/]$/.test(a);return(a=o(a.split(/[\\\/]+/),!i).join("\\"))||i||(a="."),a&&s&&(a+="\\"),n&&(r=d(r)),r+(i?"\\":"")+a},h.isAbsolute=function(t){return f(t).isAbsolute},h.join=function(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(!a.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&t.push(r)}var n=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(n=n.replace(/^[\\\/]{2,}/,"\\")),h.normalize(n)},h.relative=function(t,e){t=h.resolve(t),e=h.resolve(e);for(var r=t.toLowerCase(),n=e.toLowerCase(),i=s(e.split("\\")),a=s(r.split("\\")),o=s(n.split("\\")),u=Math.min(a.length,o.length),l=u,c=0;c<u;c++)if(a[c]!==o[c]){l=c;break}if(0==l)return e;var f=[];for(c=l;c<a.length;c++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},h._makeLong=function(t){if(!a.isString(t))return t;if(!t)return"";var e=h.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t},h.dirname=function(t){var e=c(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},h.basename=function(t,e){var r=c(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},h.extname=function(t){return c(t)[3]},h.format=function(t){if(!a.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!a.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var r=t.dir,n=t.base||"";return r?r[r.length-1]===h.sep?r+n:r+h.sep+n:n},h.parse=function(t){if(!a.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=c(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},h.sep="\\",h.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m={};function g(t){return p.exec(t).slice(1)}m.resolve=function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var i=r>=0?arguments[r]:n.cwd();if(!a.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,e="/"===i[0])}return(e?"/":"")+(t=o(t.split("/"),!e).join("/"))||"."},m.normalize=function(t){var e=m.isAbsolute(t),r=t&&"/"===t[t.length-1];return(t=o(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},m.isAbsolute=function(t){return"/"===t.charAt(0)},m.join=function(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];if(!a.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&(t+=t?"/"+r:r)}return m.normalize(t)},m.relative=function(t,e){t=m.resolve(t).substr(1),e=m.resolve(e).substr(1);for(var r=s(t.split("/")),n=s(e.split("/")),i=Math.min(r.length,n.length),a=i,o=0;o<i;o++)if(r[o]!==n[o]){a=o;break}var u=[];for(o=a;o<r.length;o++)u.push("..");return(u=u.concat(n.slice(a))).join("/")},m._makeLong=function(t){return t},m.dirname=function(t){var e=g(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},m.basename=function(t,e){var r=g(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},m.extname=function(t){return g(t)[3]},m.format=function(t){if(!a.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!a.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+m.sep:"")+(t.base||"")},m.parse=function(t){if(!a.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=g(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},m.sep="/",m.delimiter=":",t.exports=i?h:m,t.exports.posix=m,t.exports.win32=h},78122:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=void 0,e.Deferred=class{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((t,e)=>{this.reject=e,this.resolve=t}))}}},75523:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class r extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=r},51510:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const n=r(75523),i=r(78122);var a=r(75523);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.StreamReader=class{constructor(t){if(this.s=t,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!t.read||!t.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new n.EndOfStreamError))),this.s.once("error",(t=>this.reject(t))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(t,e,r){const n=await this.read(t,e,r);return this.peekQueue.push(t.subarray(e,e+n)),n}async read(t,e,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new n.EndOfStreamError;let i=r,a=0;for(;this.peekQueue.length>0&&i>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const n=Math.min(r.length,i);t.set(r.subarray(0,n),e+a),a+=n,i-=n,n<r.length&&this.peekQueue.push(r.subarray(n))}for(;i>0&&!this.endOfStream;){const r=Math.min(i,1048576),n=await this.readFromStream(t,e+a,r);if(a+=n,n<r)break;i-=n}return a}async readFromStream(t,e,r){const n=this.s.read(r);if(n)return t.set(n,e),n.length;{const n={buffer:t,offset:e,length:r,deferred:new i.Deferred};return this.deferred=n.deferred,this.s.once("readable",(()=>{this.readDeferred(n)})),n.deferred.promise}}readDeferred(t){const e=this.s.read(t.length);e?(t.buffer.set(e,t.offset),t.deferred.resolve(e.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(t)}))}reject(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}},48705:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(75523);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(51510);Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},68160:t=>{"use strict";function e(t,n,i,a,o,s){for(var u,l,h,c,f=Math.max(n-1,0),d=Math.max(i-1,0),p=Math.min(n+1,a-1),m=Math.min(i+1,o-1),g=4*(i*a+n),b=0,y=0,v=0,w=0,_=0,k=f;k<=p;k++)for(var B=d;B<=m;B++)if(k!==n||B!==i){var x=r(t,t,g,4*(B*a+k),!0);if(0===x?b++:x<0?v++:x>0&&y++,b>2)return!1;s&&(x<w&&(w=x,u=k,l=B),x>_&&(_=x,h=k,c=B))}return!s||0!==v&&0!==y&&(!e(t,u,l,a,o)&&!e(s,u,l,a,o)||!e(t,h,c,a,o)&&!e(s,h,c,a,o))}function r(t,e,r,s,u){var l=t[r+3]/255,h=e[s+3]/255,c=o(t[r+0],l),f=o(t[r+1],l),d=o(t[r+2],l),p=o(e[s+0],h),m=o(e[s+1],h),g=o(e[s+2],h),b=n(c,f,d)-n(p,m,g);if(u)return b;var y=i(c,f,d)-i(p,m,g),v=a(c,f,d)-a(p,m,g);return.5053*b*b+.299*y*y+.1957*v*v}function n(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function i(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function a(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function o(t,e){return 255+(t-255)*e}function s(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,i,a,u,l,h){h||(h={});for(var c=void 0===h.threshold?.1:h.threshold,f=35215*c*c,d=0,p=0;p<l;p++)for(var m=0;m<u;m++){var g=4*(p*u+m);if(r(t,i,g,g)>f)h.includeAA||!e(t,m,p,u,l,i)&&!e(i,m,p,u,l,t)?(a&&s(a,g,255,0,0),d++):a&&s(a,g,255,255,0);else if(a){var b=o((void 0,w=(y=t)[(v=g)+3]/255,n(o(y[v+0],w),o(y[v+1],w),o(y[v+2],w))),.1);s(a,g,b,b,b)}}var y,v,w;return d}},55913:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(22582),a=[function(){},function(t,e,r,n){if(n===e.length)throw new Error("Ran out of data");let i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error("Ran out of data");let i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],o=[function(){},function(t,e,r,n){let i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){let n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function s(t,e,r,n,i,o){let s=t.width,u=t.height,l=t.index;for(let t=0;t<u;t++)for(let u=0;u<s;u++){let s=r(u,t,l);a[n](e,i,s,o),o+=n}return o}function u(t,e,r,n,i,a){let s=t.width,u=t.height,l=t.index;for(let t=0;t<u;t++){for(let u=0;u<s;u++){let s=i.get(n),h=r(u,t,l);o[n](e,s,h,a)}i.resetAfterLine()}}e.dataToBitMap=function(t,e){let r,a,o=e.width,l=e.height,h=e.depth,c=e.bpp,f=e.interlace;8!==h&&(r=function(t,e){let r=[],n=0;function i(){if(n===t.length)throw new Error("Ran out of data");let i,a,o,s,u,l,h,c,f=t[n];switch(n++,e){default:throw new Error("unrecognised depth");case 16:h=t[n],n++,r.push((f<<8)+h);break;case 4:h=15&f,c=f>>4,r.push(c,h);break;case 2:u=3&f,l=f>>2&3,h=f>>4&3,c=f>>6&3,r.push(c,h,l,u);break;case 1:i=1&f,a=f>>1&1,o=f>>2&1,s=f>>3&1,u=f>>4&1,l=f>>5&1,h=f>>6&1,c=f>>7&1,r.push(c,h,l,u,s,o,a,i)}}return{get:function(t){for(;r.length<t;)i();let e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error("extra data found")}}}(t,h)),a=h<=8?n.alloc(o*l*4):new Uint16Array(o*l*4);let d,p,m=Math.pow(2,h)-1,g=0;if(f)d=i.getImagePasses(o,l),p=i.getInterlaceIterator(o,l);else{let t=0;p=function(){let e=t;return t+=4,e},d=[{width:o,height:l}]}for(let e=0;e<d.length;e++)8===h?g=s(d[e],a,p,c,t,g):u(d[e],a,p,c,r,m);if(8===h){if(g!==t.length)throw new Error("extra data found")}else r.end();return a}},91638:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(6402);t.exports=function(t,e,r,a){let o=-1!==[i.COLORTYPE_COLOR_ALPHA,i.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){let e=function(){let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256!==new Int16Array(t)[0]}();if(8===a.bitDepth||16===a.bitDepth&&e)return t}let s=16!==a.bitDepth?t:new Uint16Array(t.buffer),u=255,l=i.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!==l||a.inputHasAlpha||(l=3);let h=i.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(u=65535,h*=2);let c=n.alloc(e*r*h),f=0,d=0,p=a.bgColor||{};function m(){let t,e,r,n=u;switch(a.inputColorType){case i.COLORTYPE_COLOR_ALPHA:n=s[f+3],t=s[f],e=s[f+1],r=s[f+2];break;case i.COLORTYPE_COLOR:t=s[f],e=s[f+1],r=s[f+2];break;case i.COLORTYPE_ALPHA:n=s[f+1],t=s[f],e=t,r=t;break;case i.COLORTYPE_GRAYSCALE:t=s[f],e=t,r=t;break;default:throw new Error("input color type:"+a.inputColorType+" is not supported at present")}return a.inputHasAlpha&&(o||(n/=u,t=Math.min(Math.max(Math.round((1-n)*p.red+n*t),0),u),e=Math.min(Math.max(Math.round((1-n)*p.green+n*e),0),u),r=Math.min(Math.max(Math.round((1-n)*p.blue+n*r),0),u))),{red:t,green:e,blue:r,alpha:n}}void 0===p.red&&(p.red=u),void 0===p.green&&(p.green=u),void 0===p.blue&&(p.blue=u);for(let t=0;t<r;t++)for(let t=0;t<e;t++){let t=m();switch(a.colorType){case i.COLORTYPE_COLOR_ALPHA:case i.COLORTYPE_COLOR:8===a.bitDepth?(c[d]=t.red,c[d+1]=t.green,c[d+2]=t.blue,o&&(c[d+3]=t.alpha)):(c.writeUInt16BE(t.red,d),c.writeUInt16BE(t.green,d+2),c.writeUInt16BE(t.blue,d+4),o&&c.writeUInt16BE(t.alpha,d+6));break;case i.COLORTYPE_ALPHA:case i.COLORTYPE_GRAYSCALE:{let e=(t.red+t.green+t.blue)/3;8===a.bitDepth?(c[d]=e,o&&(c[d+1]=t.alpha)):(c.writeUInt16BE(e,d),o&&c.writeUInt16BE(t.alpha,d+2));break}default:throw new Error("unrecognised color Type "+a.colorType)}f+=l,d+=h}return c}},39402:(t,e,r)=>{"use strict";var n=r(65606),i=r(48287).Buffer;let a=r(40537),o=r(88310),s=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};a.inherits(s,o),s.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e}),n.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))},s.prototype.write=function(t,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let r;return r=i.isBuffer(t)?t:i.from(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused},s.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},s.prototype.destroySoon=s.prototype.end,s.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},s.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},s.prototype._processReadAllowingLess=function(t){this._reads.shift();let e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},s.prototype._processRead=function(t){this._reads.shift();let e=0,r=0,n=i.alloc(t.length);for(;e<t.length;){let i=this._buffers[r++],a=Math.min(i.length,t.length-e);i.copy(n,e,0,a),e+=a,a!==i.length&&(this._buffers[--r]=i.slice(a))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,n)},s.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},6402:t=>{"use strict";t.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},67613:t=>{"use strict";let e=[];!function(){for(let t=0;t<256;t++){let r=t;for(let t=0;t<8;t++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r}}();let r=t.exports=function(){this._crc=-1};r.prototype.write=function(t){for(let r=0;r<t.length;r++)this._crc=e[255&(this._crc^t[r])]^this._crc>>>8;return!0},r.prototype.crc32=function(){return~this._crc},r.crc32=function(t){let r=-1;for(let n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return~r}},90947:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(276),a={0:function(t,e,r,n,i){for(let a=0;a<r;a++)n[i+a]=t[e+a]},1:function(t,e,r,n,i,a){for(let o=0;o<r;o++){let r=o>=a?t[e+o-a]:0,s=t[e+o]-r;n[i+o]=s}},2:function(t,e,r,n,i){for(let a=0;a<r;a++){let o=e>0?t[e+a-r]:0,s=t[e+a]-o;n[i+a]=s}},3:function(t,e,r,n,i,a){for(let o=0;o<r;o++){let s=o>=a?t[e+o-a]:0,u=e>0?t[e+o-r]:0,l=t[e+o]-(s+u>>1);n[i+o]=l}},4:function(t,e,r,n,a,o){for(let s=0;s<r;s++){let u=s>=o?t[e+s-o]:0,l=e>0?t[e+s-r]:0,h=e>0&&s>=o?t[e+s-(r+o)]:0,c=t[e+s]-i(u,l,h);n[a+s]=c}}},o={0:function(t,e,r){let n=0,i=e+r;for(let r=e;r<i;r++)n+=Math.abs(t[r]);return n},1:function(t,e,r,n){let i=0;for(let a=0;a<r;a++){let r=a>=n?t[e+a-n]:0,o=t[e+a]-r;i+=Math.abs(o)}return i},2:function(t,e,r){let n=0,i=e+r;for(let a=e;a<i;a++){let i=e>0?t[a-r]:0,o=t[a]-i;n+=Math.abs(o)}return n},3:function(t,e,r,n){let i=0;for(let a=0;a<r;a++){let o=a>=n?t[e+a-n]:0,s=e>0?t[e+a-r]:0,u=t[e+a]-(o+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,n){let a=0;for(let o=0;o<r;o++){let s=o>=n?t[e+o-n]:0,u=e>0?t[e+o-r]:0,l=e>0&&o>=n?t[e+o-(r+n)]:0,h=t[e+o]-i(s,u,l);a+=Math.abs(h)}return a}};t.exports=function(t,e,r,i,s){let u;if("filterType"in i&&-1!==i.filterType){if("number"!=typeof i.filterType)throw new Error("unrecognised filter types");u=[i.filterType]}else u=[0,1,2,3,4];16===i.bitDepth&&(s*=2);let l=e*s,h=0,c=0,f=n.alloc((l+1)*r),d=u[0];for(let e=0;e<r;e++){if(u.length>1){let e=1/0;for(let r=0;r<u.length;r++){let n=o[u[r]](t,c,l,s);n<e&&(d=u[r],e=n)}}f[h]=d,h++,a[d](t,c,l,f,h,s),h+=l,c+=l}return f}},42170:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(40537),a=r(39402),o=r(70695),s=t.exports=function(t){a.call(this);let e=[],r=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){r.emit("complete",n.concat(e))}}),this._filter.start()};i.inherits(s,a)},96479:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(21402),a=r(70695);e.process=function(t,e){let r=[],o=new i(t);return new a(e,{read:o.read.bind(o),write:function(t){r.push(t)},complete:function(){}}).start(),o.process(),n.concat(r)}},70695:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(22582),a=r(276);function o(t,e,r){let n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}let s=t.exports=function(t,e){let r=t.width,n=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a){let t=i.getImagePasses(r,n);for(let e=0;e<t.length;e++)this._images.push({byteWidth:o(t[e].width,s,u),height:t[e].height,lineIndex:0})}else this._images.push({byteWidth:o(r,s,u),height:n,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};s.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},s.prototype._unFilterType1=function(t,e,r){let n=this._xComparison,i=n-1;for(let a=0;a<r;a++){let r=t[1+a],o=a>i?e[a-n]:0;e[a]=r+o}},s.prototype._unFilterType2=function(t,e,r){let n=this._lastLine;for(let i=0;i<r;i++){let r=t[1+i],a=n?n[i]:0;e[i]=r+a}},s.prototype._unFilterType3=function(t,e,r){let n=this._xComparison,i=n-1,a=this._lastLine;for(let o=0;o<r;o++){let r=t[1+o],s=a?a[o]:0,u=o>i?e[o-n]:0,l=Math.floor((u+s)/2);e[o]=r+l}},s.prototype._unFilterType4=function(t,e,r){let n=this._xComparison,i=n-1,o=this._lastLine;for(let s=0;s<r;s++){let r=t[1+s],u=o?o[s]:0,l=s>i?e[s-n]:0,h=s>i&&o?o[s-n]:0,c=a(l,u,h);e[s]=r+c}},s.prototype._reverseFilterLine=function(t){let e,r=t[0],i=this._images[this._imageIndex],a=i.byteWidth;if(0===r)e=t.slice(1,a+1);else switch(e=n.alloc(a),r){case 1:this._unFilterType1(t,e,a);break;case 2:this._unFilterType2(t,e,a);break;case 3:this._unFilterType3(t,e,a);break;case 4:this._unFilterType4(t,e,a);break;default:throw new Error("Unrecognised filter type - "+r)}this.write(e),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=e,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},64721:(t,e,r)=>{"use strict";var n=r(48287).Buffer;t.exports=function(t,e,r=!1){let i=e.depth,a=e.width,o=e.height,s=e.colorType,u=e.transColor,l=e.palette,h=t;return 3===s?function(t,e,r,n,i){let a=0;for(let o=0;o<n;o++)for(let n=0;n<r;n++){let r=i[t[a]];if(!r)throw new Error("index "+t[a]+" not in palette");for(let t=0;t<4;t++)e[a+t]=r[t];a+=4}}(t,h,a,o,l):(u&&function(t,e,r,n,i){let a=0;for(let o=0;o<n;o++)for(let n=0;n<r;n++){let r=!1;if(1===i.length?i[0]===t[a]&&(r=!0):i[0]===t[a]&&i[1]===t[a+1]&&i[2]===t[a+2]&&(r=!0),r)for(let t=0;t<4;t++)e[a+t]=0;a+=4}}(t,h,a,o,u),8===i||r||(16===i&&(h=n.alloc(a*o*4)),function(t,e,r,n,i){let a=Math.pow(2,i)-1,o=0;for(let i=0;i<n;i++)for(let n=0;n<r;n++){for(let r=0;r<4;r++)e[o+r]=Math.floor(255*t[o+r]/a+.5);o+=4}}(t,h,a,o,i))),h}},22582:(t,e)=>{"use strict";let r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){let n=[],i=t%8,a=e%8,o=(t-i)/8,s=(e-a)/8;for(let t=0;t<r.length;t++){let e=r[t],u=o*e.x.length,l=s*e.y.length;for(let t=0;t<e.x.length&&e.x[t]<i;t++)u++;for(let t=0;t<e.y.length&&e.y[t]<a;t++)l++;u>0&&l>0&&n.push({width:u,height:l,index:t})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){let a=e%r[i].x.length,o=(e-a)/r[i].x.length*8+r[i].x[a],s=n%r[i].y.length;return 4*o+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},20008:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(40537),a=r(88310),o=r(6402),s=r(13769),u=t.exports=function(t){a.call(this);let e=t||{};this._packer=new s(e),this._deflate=this._packer.createDeflate(),this.readable=!0};i.inherits(u,a),u.prototype.pack=function(t,e,r,i){this.emit("data",n.from(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,r)),i&&this.emit("data",this._packer.packGAMA(i));let a=this._packer.filterData(t,e,r);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(a)}},41497:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=!0,a=r(78559);a.deflateSync||(i=!1);let o=r(6402),s=r(13769);t.exports=function(t,e){if(!i)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let r=new s(e||{}),u=[];u.push(n.from(o.PNG_SIGNATURE)),u.push(r.packIHDR(t.width,t.height)),t.gamma&&u.push(r.packGAMA(t.gamma));let l=r.filterData(t.data,t.width,t.height),h=a.deflateSync(l,r.getDeflateOptions());if(l=null,!h||!h.length)throw new Error("bad png - invalid compressed data response");return u.push(r.packIDAT(h)),u.push(r.packIEND()),n.concat(u)}},13769:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(6402),a=r(67613),o=r(91638),s=r(90947),u=r(78559),l=t.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||u.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType="number"==typeof t.colorType?t.colorType:i.COLORTYPE_COLOR_ALPHA,t.inputColorType="number"==typeof t.inputColorType?t.inputColorType:i.COLORTYPE_COLOR_ALPHA,-1===[i.COLORTYPE_GRAYSCALE,i.COLORTYPE_COLOR,i.COLORTYPE_COLOR_ALPHA,i.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error("option color type:"+t.colorType+" is not supported at present");if(-1===[i.COLORTYPE_GRAYSCALE,i.COLORTYPE_COLOR,i.COLORTYPE_COLOR_ALPHA,i.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error("option input color type:"+t.inputColorType+" is not supported at present");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error("option bit depth:"+t.bitDepth+" is not supported at present")};l.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},l.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},l.prototype.filterData=function(t,e,r){let n=o(t,e,r,this._options),a=i.COLORTYPE_TO_BPP_MAP[this._options.colorType];return s(n,e,r,this._options,a)},l.prototype._packChunk=function(t,e){let r=e?e.length:0,i=n.alloc(r+12);return i.writeUInt32BE(r,0),i.writeUInt32BE(t,4),e&&e.copy(i,8),i.writeInt32BE(a.crc32(i.slice(4,i.length-4)),i.length-4),i},l.prototype.packGAMA=function(t){let e=n.alloc(4);return e.writeUInt32BE(Math.floor(t*i.GAMMA_DIVISION),0),this._packChunk(i.TYPE_gAMA,e)},l.prototype.packIHDR=function(t,e){let r=n.alloc(13);return r.writeUInt32BE(t,0),r.writeUInt32BE(e,4),r[8]=this._options.bitDepth,r[9]=this._options.colorType,r[10]=0,r[11]=0,r[12]=0,this._packChunk(i.TYPE_IHDR,r)},l.prototype.packIDAT=function(t){return this._packChunk(i.TYPE_IDAT,t)},l.prototype.packIEND=function(){return this._packChunk(i.TYPE_IEND,null)}},276:t=>{"use strict";t.exports=function(t,e,r){let n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),o=Math.abs(n-r);return i<=a&&i<=o?t:a<=o?e:r}},77089:(t,e,r)=>{"use strict";let n=r(40537),i=r(78559),a=r(39402),o=r(42170),s=r(50336),u=r(55913),l=r(64721),h=t.exports=function(t){a.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(h,a),h.prototype._handleError=function(t){this.emit("error",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",(function(){}))),this.errord=!0},h.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3))*this._bitmapInfo.height,e=Math.max(t,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:e});let r=t,n=this.emit.bind(this,"error");this._inflate.on("error",(function(t){r&&n(t)})),this._filter.on("complete",this._complete.bind(this));let a=this._filter.write.bind(this._filter);this._inflate.on("data",(function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))})),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},h.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},h.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},h.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},h.prototype._simpleTransparency=function(){this._metaData.alpha=!0},h.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},h.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))},h.prototype._complete=function(t){if(this.errord)return;let e;try{let r=u.dataToBitMap(t,this._bitmapInfo);e=l(r,this._bitmapInfo,this._options.skipRescale),r=null}catch(t){return void this._handleError(t)}this.emit("parsed",e)}},4346:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=!0,a=r(78559),o=r(69874);a.deflateSync||(i=!1);let s=r(21402),u=r(96479),l=r(50336),h=r(55913),c=r(64721);t.exports=function(t,e){if(!i)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let r,f,d,p=[],m=new s(t),g=new l(e,{read:m.read.bind(m),error:function(t){r=t},metadata:function(t){f=t},gamma:function(t){d=t},palette:function(t){f.palette=t},transColor:function(t){f.transColor=t},inflateData:function(t){p.push(t)},simpleTransparency:function(){f.alpha=!0}});if(g.start(),m.process(),r)throw r;let b,y=n.concat(p);if(p.length=0,f.interlace)b=a.inflateSync(y);else{let t=(1+(f.width*f.bpp*f.depth+7>>3))*f.height;b=o(y,{chunkSize:t,maxLength:t})}if(y=null,!b||!b.length)throw new Error("bad png - invalid inflate data response");let v=u.process(b,f);y=null;let w=h.dataToBitMap(v,f);v=null;let _=c(w,f,e.skipRescale);return f.data=_,f.gamma=d||0,f}},50336:(t,e,r)=>{"use strict";var n=r(48287).Buffer;let i=r(6402),a=r(67613),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[i.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[i.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[i.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[i.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[i.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[i.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(i.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){let e=i.PNG_SIGNATURE;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error("Invalid file signature"));this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(t){let e=t.readUInt32BE(0),r=t.readUInt32BE(4),o="";for(let e=4;e<8;e++)o+=String.fromCharCode(t[e]);let s=Boolean(32&t[4]);if(this._hasIHDR||r===i.TYPE_IHDR){if(this._crc=new a,this._crc.write(n.from(o)),this._chunks[r])return this._chunks[r](e);s?this.read(e+4,this._skipChunk.bind(this)):this.error(new Error("Unsupported critical chunk type "+o))}else this.error(new Error("Expected IHDR on beggining"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(t){let e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error("Crc error - "+e+" - "+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);let e=t.readUInt32BE(0),r=t.readUInt32BE(4),n=t[8],a=t[9],o=t[10],s=t[11],u=t[12];if(8!==n&&4!==n&&2!==n&&1!==n&&16!==n)return void this.error(new Error("Unsupported bit depth "+n));if(!(a in i.COLORTYPE_TO_BPP_MAP))return void this.error(new Error("Unsupported color type"));if(0!==o)return void this.error(new Error("Unsupported compression method"));if(0!==s)return void this.error(new Error("Unsupported filter method"));if(0!==u&&1!==u)return void this.error(new Error("Unsupported interlace method"));this._colorType=a;let l=i.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:n,interlace:Boolean(u),palette:Boolean(a&i.COLORTYPE_PALETTE),color:Boolean(a&i.COLORTYPE_COLOR),alpha:Boolean(a&i.COLORTYPE_ALPHA),bpp:l,colorType:a}),this._handleChunkEnd()},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(t){this._crc.write(t);let e=Math.floor(t.length/3);for(let r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===i.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error("Transparency chunk must be after palette"));if(t.length>this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(let e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===i.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===i.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/i.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===i.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error("Expected palette not found");this.inflateData(e);let r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},32122:(t,e,r)=>{"use strict";let n=r(4346),i=r(41497);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},99904:(t,e,r)=>{"use strict";var n=r(48287).Buffer,i=r(65606);let a=r(40537),o=r(88310),s=r(77089),u=r(20008),l=r(32122),h=e.O=function(t){o.call(this),t=t||{},this.width=0|t.width,this.height=0|t.height,this.data=this.width>0&&this.height>0?n.alloc(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new s(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new u(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};a.inherits(h,o),h.sync=l,h.prototype.pack=function(){return this.data&&this.data.length?(i.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},h.prototype.parse=function(t,e){if(e){let t,r;t=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(r){this.removeListener("parsed",t),e(r,null)}.bind(this),this.once("parsed",t),this.once("error",r)}return this.end(t),this},h.prototype.write=function(t){return this._parser.write(t),!0},h.prototype.end=function(t){this._parser.end(t)},h.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},h.prototype._gamma=function(t){this.gamma=t},h.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},h.bitblt=function(t,e,r,n,i,a,o,s){if(n|=0,i|=0,a|=0,o|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+a>t.height)throw new Error("bitblt reading outside image");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error("bitblt writing outside image");for(let u=0;u<a;u++)t.data.copy(e.data,(s+u)*e.width+o<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},h.prototype.bitblt=function(t,e,r,n,i,a,o){return h.bitblt(this,t,e,r,n,i,a,o),this},h.adjustGamma=function(t){if(t.gamma){for(let e=0;e<t.height;e++)for(let r=0;r<t.width;r++){let n=t.width*e+r<<2;for(let e=0;e<3;e++){let r=t.data[n+e]/255;r=Math.pow(r,1/2.2/t.gamma),t.data[n+e]=Math.round(255*r)}}t.gamma=0}},h.prototype.adjustGamma=function(){h.adjustGamma(this)}},69874:(t,e,r)=>{"use strict";var n=r(65606),i=r(48287).Buffer;let a=r(34529).ok,o=r(78559),s=r(40537),u=r(48287).kMaxLength;function l(t){if(!(this instanceof l))return new l(t);t&&t.chunkSize<o.Z_MIN_CHUNK&&(t.chunkSize=o.Z_MIN_CHUNK),o.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function h(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function c(t,e){return function(t,e){if("string"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError("Not a string or buffer");let r=t._finishFlushFlag;return null==r&&(r=o.Z_FINISH),t._processChunk(e,r)}(new l(e),t)}l.prototype._processChunk=function(t,e,r){if("function"==typeof r)return o.Inflate._processChunk.call(this,t,e,r);let n,s,l=this,c=t&&t.length,f=this._chunkSize-this._offset,d=this._maxLength,p=0,m=[],g=0;function b(t,e){if(l._hadError)return;let r=f-e;if(a(r>=0,"have should not go down"),r>0){let t=l._buffer.slice(l._offset,l._offset+r);if(l._offset+=r,t.length>d&&(t=t.slice(0,d)),m.push(t),g+=t.length,d-=t.length,0===d)return!1}return(0===e||l._offset>=l._chunkSize)&&(f=l._chunkSize,l._offset=0,l._buffer=i.allocUnsafe(l._chunkSize)),0===e&&(p+=c-t,c=t,!0)}this.on("error",(function(t){n=t})),a(this._handle,"zlib binding closed");do{s=this._handle.writeSync(e,t,p,c,this._buffer,this._offset,f),s=s||this._writeState}while(!this._hadError&&b(s[0],s[1]));if(this._hadError)throw n;if(g>=u)throw h(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes");let y=i.concat(m,g);return h(this),y},s.inherits(l,o.Inflate),t.exports=e=c,e.Inflate=l,e.createInflate=function(t){return new l(t)},e.inflateSync=c},21402:t=>{"use strict";let e=t.exports=function(t){this._buffer=t,this._reads=[]};e.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},e.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;{this._reads.shift();let e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}}if(this._reads.length>0)throw new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw new Error("unrecognised content at end of stream")}},65606:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,u=[],l=!1,h=-1;function c(){l&&s&&(l=!1,s.length?u=s.concat(u):h=-1,u.length&&f())}function f(){if(!l){var t=o(c);l=!0;for(var e=u.length;e;){for(s=u,u=[];++h<e;)s&&s[h].run();h=-1,e=u.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||l||o(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},84461:(t,e,r)=>{"use strict";var n=r(65606),i=r(48287).Buffer;!function(){if("arm"!==n.arch){var e=[];!function(){for(var t=0;t<256;t++){for(var r=t,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r>>>0}}(),t.exports=function(){for(var t=arguments.length,e=-1,r=0;r<t;r++)e=a(e,new i(arguments[r]));return~e>>>0}}else t.exports=r(29275);function a(t,r){for(var n=r.length,i=0;i<n;i++)t=e[255&(t^r[i])]^t>>>8;return t}}()},29275:(t,e,r)=>{"use strict";for(var n=r(48287).Buffer,i=[],a=0;a<256;a++){var o=i[a]=new n(4);o.writeUInt32BE(a,0);for(var s=0;s<8;s++){var u=1&o[0],l=1&o[1],h=1&o[2],c=1&o[3];o[0]=o[0]>>1^(c?237:0),o[1]=o[1]>>1^(c?184:0)^(u?128:0),o[2]=o[2]>>1^(c?131:0)^(l?128:0),o[3]=o[3]>>1^(c?32:0)^(h?128:0)}}function f(t,e){for(var r=e.length,n=0;n<r;n++){var a=i[t[3]^e[n]];t[3]=a[3]^t[2],t[2]=a[2]^t[1],t[1]=a[1]^t[0],t[0]=a[0]}}t.exports=function(){var t=arguments.length,e=new n(4);e.fill(255);for(var r=0;r<t;r++)f(e,new n(arguments[r]));return e[0]=255^e[0],e[1]=255^e[1],e[2]=255^e[2],e[3]=255^e[3],e.readUInt32BE(0)}},99602:(t,e,r)=>{"use strict";var n=r(48287).Buffer;function i(t,e,r){for(var n=1<<e-1;n;n>>>=1)t.push(n&r?1:0)}var a=function(t){for(var e={},r=0;r<45;r++)e["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"[r]]=r;return e}();t.exports=function t(e,r){var o,s=typeof e;if("string"==s||"number"==s)e=new n(o=""+e);else if(n.isBuffer(e))o=e.toString();else{if(!Array.isArray(e))throw new Error("Bad data");o=(e=new n(e)).toString()}if(/^[0-9]+$/.test(o)){if(e.length>7089)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n+=3){var a=t.substr(n,3);i(r,Math.ceil(10*a.length/3),parseInt(a,10))}var o,s={};return i(o=[0,0,0,1],14,e),s.data27=o.concat(r),e<4096&&(i(o=[0,0,0,1],12,e),s.data10=o.concat(r)),e<1024&&(i(o=[0,0,0,1],10,e),s.data1=o.concat(r)),s}(o)}if(/^[0-9A-Z \$%\*\+\.\/\:\-]+$/.test(o)){if(e.length>4296)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n+=2){var o=6,s=a[t[n]];t[n+1]&&(o=11,s=45*s+a[t[n+1]]),i(r,o,s)}var u,l={};return i(u=[0,0,1,0],13,e),l.data27=u.concat(r),e<2048&&(i(u=[0,0,1,0],11,e),l.data10=u.concat(r)),e<512&&(i(u=[0,0,1,0],9,e),l.data1=u.concat(r)),l}(o)}if(r&&/^https?:/i.test(o))return function(e){var r=e.indexOf("/",8)+1||e.length,n=t(e.slice(0,r).toUpperCase(),!1);if(r>=e.length)return n;var i=t(e.slice(r),!1);return n.data27=n.data27.concat(i.data27),n.data10&&i.data10&&(n.data10=n.data10.concat(i.data10)),n.data1&&i.data1&&(n.data1=n.data1.concat(i.data1)),n}(o);if(e.length>2953)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n++)i(r,8,t[n]);var a,o={};return i(a=[0,1,0,0],16,e),o.data10=o.data27=a.concat(r),e<256&&(i(a=[0,1,0,0],8,e),o.data1=a.concat(r)),o}(e)}},78213:(t,e,r)=>{"use strict";for(var n=r(48287).Buffer,i=[1],a=[],o=1;o<256;o++){var s=i[o-1]<<1;s>255&&(s^=285),i[o]=s}for(o=0;o<255;o++)a[i[o]]=o;function u(t){for(;t<0;)t+=255;for(;t>255;)t-=255;return i[t]}function l(t){if(t<1||t>255)throw Error("Bad log("+t+")");return a[t]}var h=[[0],[0,0],[0,25,1]];function c(t){if(h[t])return h[t];var e=c(t-1),r=[];r[0]=e[0];for(var n=1;n<=t;n++)r[n]=l(u(e[n])^u(e[n-1]+t-1));return h[t]=r,r}t.exports=function(t,e){t=[].slice.call(t);for(var r=c(e),i=0;i<e;i++)t.push(0);for(;t.length>e;)if(t[0]){var a=l(t[0]);for(i=0;i<=e;i++)t[i]=t[i]^u(r[i]+a);t.shift()}else t.shift();return new n(t)}},94081:(t,e,r)=>{"use strict";var n=r(48287).Buffer;function i(t){var e=4*t+17,r=[],i=new n(e);i.fill(0),i=[].slice.call(i);for(var a=0;a<e;a++)r[a]=i.slice();return r}function a(t){for(var e=t.length,r=-3;r<=3;r++)for(var n=-3;n<=3;n++){var i=Math.max(r,n),a=Math.min(r,n),o=2==i&&a>=-2||-2==a&&i<=2?128:129;t[3+r][3+n]=o,t[3+r][e-4+n]=o,t[e-4+r][3+n]=o}for(r=0;r<8;r++)t[7][r]=t[r][7]=t[7][e-r-1]=t[r][e-8]=t[e-8][r]=t[e-1-r][7]=128}function o(t){var e=t.length;if(e>21){var r=e-13,n=Math.round(r/Math.ceil(r/28));n%2&&n++;for(var i=[],a=r+6;a>10;a-=n)i.unshift(a);i.unshift(6);for(var o=0;o<i.length;o++)for(var s=0;s<i.length;s++){var u=i[o],l=i[s];if(!t[u][l])for(var h=-2;h<=2;h++)for(var c=-2;c<=2;c++){var f=Math.max(h,c),d=Math.min(h,c),p=1==f&&d>=-1||-1==d&&f<=1?128:129;t[u+h][l+c]=p}}}for(o=8;o<e-8;o++)t[6][o]=t[o][6]=o%2?128:129}function s(t){for(var e=t.length,r=0;r<8;r++)6!=r&&(t[8][r]=t[r][8]=128),t[8][e-1-r]=128,t[e-1-r][8]=128;if(t[8][8]=128,t[e-8][8]=129,!(e<45))for(r=e-11;r<e-8;r++)for(var n=0;n<6;n++)t[r][n]=t[n][r]=128}var u,l=function(){for(var t=Array(32),e=Array(40),r=0;r<32;r++){for(var n=r<<10,i=5;i>0;i--)n>>>9+i&&(n^=1335<<i-1);t[r]=21522^(n|r<<10)}for(var a=7;a<=40;a++){for(n=a<<12,i=6;i>0;i--)n>>>11+i&&(n^=7973<<i-1);e[a]=n|a<<12}var o={L:1,M:0,Q:3,H:2};return function(r,n,i){var a=r.length,s=t[o[n]<<3|i];function u(t){return s>>t&1?129:128}for(var l=0;l<8;l++)r[8][a-1-l]=u(l),l<6&&(r[l][8]=u(l));for(l=8;l<15;l++)r[a-15+l][8]=u(l),l>8&&(r[8][14-l]=u(l));r[7][8]=u(6),r[8][8]=u(7),r[8][7]=u(8);var h=e[(a-17)/4];if(h)for(l=0;l<6;l++)for(var c=0;c<3;c++)r[a-11+c][l]=r[l][a-11+c]=h>>3*l+c&1?129:128}}(),h=(u=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return(t*e%3+(t+e)%2)%2==0}],function(t,e,r){var n,i,a=t.length,o=-1;n=i=a-1;for(var s=u[r],l=e.blocks[e.blocks.length-1].length,h=0;h<l;h++)for(var c=0;c<e.blocks.length;c++)e.blocks[c].length<=h||f(e.blocks[c][h]);for(l=e.ec_len,h=0;h<l;h++)for(c=0;c<e.ec.length;c++)f(e.ec[c][h]);if(i>-1)do{t[n][i]=s(n,i)?1:0}while(d());function f(e){for(var r=128;r;r>>=1){var a=!!(r&e);s(n,i)&&(a=!a),t[n][i]=a?1:0,d()}}function d(){do{if(i%2^i<6?o<0&&0==n||o>0&&n==a-1?(i--,o=-o):(i++,n+=o):i--,6==i&&i--,i<0)return!1}while(240&t[n][i]);return!0}});function c(t){for(var e=t.length,r=0,n=0;n<e;n++){for(var i=1&t[n][0],a=1,o=1;o<e;o++)(s=1&t[n][o])!=i?(a>=5&&(r+=a-2),i=s,a=1):a++;a>=5&&(r+=a-2)}for(o=0;o<e;o++){for(i=1&t[0][o],a=1,n=1;n<e;n++){var s;(s=1&t[n][o])!=i?(a>=5&&(r+=a-2),i=s,a=1):a++}a>=5&&(r+=a-2)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var u=t[n][o]+t[n][o+1]+t[n+1][o]+t[n+1][o+1]&7;0!=u&&4!=u||(r+=3)}function l(e){return 1&t[n][o+e]}function h(e){return 1&t[n+e][o]}for(n=0;n<e;n++)for(o=0;o<e;o++)o<e-6&&l(0)&&!l(1)&&l(2)&&l(3)&&l(4)&&!l(5)&&l(6)&&(o>=4&&!(l(-4)||l(-3)||l(-2)||l(-1))&&(r+=40),o<e-10&&!(l(7)||l(8)||l(9)||l(10))&&(r+=40)),n<e-6&&h(0)&&!h(1)&&h(2)&&h(3)&&h(4)&&!h(5)&&h(6)&&(n>=4&&!(h(-4)||h(-3)||h(-2)||h(-1))&&(r+=40),n<e-10&&!(h(7)||h(8)||h(9)||h(10))&&(r+=40));var c=0;for(n=0;n<e;n++)for(o=0;o<e;o++)1&t[n][o]&&c++;return r+10*Math.floor(Math.abs(10-20*c/(e*e)))}t.exports={getMatrix:function(t){var e=i(t.version);a(e),o(e),s(e);for(var r=1/0,n=0,u=0;u<8;u++){h(e,t,u),l(e,t.ec_level,u);var f=c(e);f<r&&(r=f,n=u)}return h(e,t,n),l(e,t.ec_level,n),e.map((function(t){return t.map((function(t){return 1&t}))}))},init:i,fillFinders:a,fillAlignAndTiming:o,fillStub:s,fillReserved:l,fillData:h,calculatePenalty:c}},77641:(t,e,r)=>{"use strict";var n=r(48287).Buffer,i=r(78559),a=r(84461),o=new n([137,80,78,71,13,10,26,10]),s=new n([0,0,0,13,73,72,68,82,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0]),u=new n([0,0,0,0,73,68,65,84]),l=new n([0,0,0,0,73,69,78,68,174,66,96,130]);t.exports={bitmap:function(t,e,r){var i=t.length,a=(i+2*r)*e,o=new n((a+1)*a);o.fill(255);for(var s=0;s<a;s++)o[s*(a+1)]=0;for(s=0;s<i;s++)for(var u=0;u<i;u++)if(t[s][u]){var l=((r+s)*(a+1)+(r+u))*e+1;o.fill(0,l,l+e);for(var h=1;h<e;h++)o.copy(o,l+h*(a+1),l,l+e)}return{data:o,size:a}},png:function(t,e){e.push(o);var r=n.concat([s]);r.writeUInt32BE(t.size,8),r.writeUInt32BE(t.size,12),r.writeUInt32BE(a(r.slice(4,-4)),21),e.push(r);var h=n.concat([u,i.deflateSync(t.data,{level:9}),new n(4)]);h.writeUInt32BE(h.length-12,0),h.writeUInt32BE(a(h.slice(4,-4)),h.length-4),e.push(h),e.push(l),e.push(null)}}},32129:(t,e,r)=>{"use strict";var n=r(48287).Buffer,i=r(99602),a=r(78213),o=r(94081);function s(t){return JSON.parse(JSON.stringify(t))}var u=["L","M","Q","H"],l=[[],[26,7,1,10,1,13,1,17,1],[44,10,1,16,1,22,1,28,1],[70,15,1,26,1,36,2,44,2],[100,20,1,36,2,52,2,64,4],[134,26,1,48,2,72,4,88,4],[172,36,2,64,4,96,4,112,4],[196,40,2,72,4,108,6,130,5],[242,48,2,88,4,132,6,156,6],[292,60,2,110,5,160,8,192,8],[346,72,4,130,5,192,8,224,8],[404,80,4,150,5,224,8,264,11],[466,96,4,176,8,260,10,308,11],[532,104,4,198,9,288,12,352,16],[581,120,4,216,9,320,16,384,16],[655,132,6,240,10,360,12,432,18],[733,144,6,280,10,408,17,480,16],[815,168,6,308,11,448,16,532,19],[901,180,6,338,13,504,18,588,21],[991,196,7,364,14,546,21,650,25],[1085,224,8,416,16,600,20,700,25],[1156,224,8,442,17,644,23,750,25],[1258,252,9,476,17,690,23,816,34],[1364,270,9,504,18,750,25,900,30],[1474,300,10,560,20,810,27,960,32],[1588,312,12,588,21,870,29,1050,35],[1706,336,12,644,23,952,34,1110,37],[1828,360,12,700,25,1020,34,1200,40],[1921,390,13,728,26,1050,35,1260,42],[2051,420,14,784,28,1140,38,1350,45],[2185,450,15,812,29,1200,40,1440,48],[2323,480,16,868,31,1290,43,1530,51],[2465,510,17,924,33,1350,45,1620,54],[2611,540,18,980,35,1440,48,1710,57],[2761,570,19,1036,37,1530,51,1800,60],[2876,570,19,1064,38,1590,53,1890,63],[3034,600,20,1120,40,1680,56,1980,66],[3196,630,21,1204,43,1770,59,2100,70],[3362,660,22,1260,45,1860,62,2220,74],[3532,720,24,1316,47,1950,65,2310,77],[3706,750,25,1372,49,2040,68,2430,81]];function h(t,e){var r,n=1;for(t.data1?r=Math.ceil(t.data1.length/8):n=10;n<10;n++)if((i=l[n][e]).data_len>=r)return s(i);for(t.data10?r=Math.ceil(t.data10.length/8):n=27;n<27;n++)if((i=l[n][e]).data_len>=r)return s(i);for(r=Math.ceil(t.data27.length/8);n<41;n++){var i;if((i=l[n][e]).data_len>=r)return s(i)}throw new Error("Too much data")}function c(t,e){var r=new n(e.data_len);r.fill(0);for(var i=(t=e.version<10?t.data1:e.version<27?t.data10:t.data27).length,o=0;o<i;o+=8){for(var s=0,u=0;u<8;u++)s=s<<1|(t[o+u]?1:0);r[o/8]=s}var l=236;for(o=Math.ceil((i+4)/8);o<r.length;o++)r[o]=l,l=236==l?17:236;var h=0;return e.blocks=e.blocks.map((function(t){var n=r.slice(h,h+t);return h+=t,e.ec.push(a(n,e.ec_len)),n})),e}l=l.map((function(t,e){if(!e)return{};for(var r={},n=1;n<8;n+=2){for(var i=t[0]-t[n],a=t[n+1],o=u[n/2|0],s={version:e,ec_level:o,data_len:i,ec_len:t[n]/a,blocks:[],ec:[]},l=a,h=i;l>0;l--){var c=h/l|0;s.blocks.push(c),h-=c}r[o]=s}return r})),t.exports={QR:function(t,e,r){e=u.indexOf(e)>-1?e:"M";var n=i(t,r),a=c(n,h(n,e));return o.getMatrix(a)},getTemplate:h,fillTemplate:c}},65235:(t,e,r)=>{"use strict";var n=r(65606),i=r(48287).Buffer,a=r(88310).Readable,o=r(32129).QR,s=r(77641),u=r(13087),l=function(){},h={parse_url:!1,ec_level:"M",size:5,margin:4,customize:null},c={parse_url:!1,ec_level:"M",margin:1,size:0};function f(t,e){t="string"==typeof t?{ec_level:t}:t||{};var r={type:String(e||t.type||"png").toLowerCase()},n="png"==r.type?h:c;for(var i in n)r[i]=i in t?t[i]:n[i];return r}t.exports={matrix:o,image:function(t,e){e=f(e);var r=o(t,e.ec_level,e.parse_url),i=new a;switch(i._read=l,e.type){case"svg":case"pdf":case"eps":n.nextTick((function(){u[e.type](r,i,e.margin,e.size)}));break;case"svgpath":n.nextTick((function(){var t=u.svg_object(r,e.margin,e.size);i.push(t.path),i.push(null)}));break;default:n.nextTick((function(){var t=s.bitmap(r,e.size,e.margin);e.customize&&e.customize(t),s.png(t,i)}))}return i},imageSync:function(t,e){e=f(e);var r,n=o(t,e.ec_level,e.parse_url),a=[];switch(e.type){case"svg":case"pdf":case"eps":u[e.type](n,a,e.margin,e.size),r=a.filter(Boolean).join("");break;default:var l=s.bitmap(n,e.size,e.margin);e.customize&&e.customize(l),s.png(l,a),r=i.concat(a.filter(Boolean))}return r},svgObject:function(t,e){e=f(e,"svg");var r=o(t,e.ec_level);return u.svg_object(r,e.margin)}}},13087:t=>{"use strict";function e(t){for(var e=t.length,r=[],n=-1;n<=e;n++)r[n]=[];var i=[];for(n=0;n<e;n++)for(var a=0;a<e;a++)r[n][a]||(r[n][a]=1,o(n,a)?o(n-1,a)||i.push(s(n,a,"right")):o(n,a-1)&&i.push(s(n,a,"down")));return i;function o(r,n){return!(r<0||n<0||r>=e||n>=e||!t[r][n])}function s(t,e,n){r[t][e]=1;var i=[];i.push(["M",e,t]);var a=t,s=e,u=0;do{switch(n){case"right":r[a][s]=1,o(a,s)?(r[a-1][s]=1,o(a-1,s)?(i.push(["h",u]),u=0,n="up"):(u++,s++)):(i.push(["h",u]),u=0,n="down");break;case"left":r[a-1][s-1]=1,o(a-1,s-1)?(r[a][s-1]=1,o(a,s-1)?(i.push(["h",-u]),u=0,n="down"):(u++,s--)):(i.push(["h",-u]),u=0,n="up");break;case"down":r[a][s-1]=1,o(a,s-1)?(r[a][s]=1,o(a,s)?(i.push(["v",u]),u=0,n="right"):(u++,a++)):(i.push(["v",u]),u=0,n="left");break;case"up":r[a-1][s]=1,o(a-1,s)?(r[a-1][s-1]=1,o(a-1,s-1)?(i.push(["v",-u]),u=0,n="left"):(u++,a--)):(i.push(["v",-u]),u=0,n="right")}}while(a!=t||s!=e);return i}}function r(t,r,n){e(t).forEach((function(t){for(var e="",i=0;i<t.length;i++){var a=t[i];"M"===a[0]?e+="M"+(a[1]+n)+" "+(a[2]+n):e+=a.join("")}e+="z",r.push(e)}))}t.exports={svg:function(t,e,n,i){var a=t.length+2*n;if(e.push('<svg xmlns="http://www.w3.org/2000/svg" '),i>0){var o=a*i;e.push('width="'+o+'" height="'+o+'" ')}e.push('viewBox="0 0 '+a+" "+a+'">'),e.push('<path d="'),r(t,e,n),e.push('"/></svg>'),e.push(null)},eps:function(t,r,n){var i=t.length,a=9*(i+2*n);r.push(["%!PS-Adobe-3.0 EPSF-3.0","%%BoundingBox: 0 0 "+a+" "+a,"/h { 0 rlineto } bind def","/v { 0 exch neg rlineto } bind def","/M { neg "+(i+n)+" add moveto } bind def","/z { closepath } bind def","9 9 scale",""].join("\n")),e(t).forEach((function(t){for(var e="",i=0;i<t.length;i++){var a=t[i];"M"===a[0]?e+=a[1]+n+" "+a[2]+" M ":e+=a[1]+" "+a[0]+" "}e+="z\n",r.push(e)})),r.push("fill\n%%EOF\n"),r.push(null)},pdf:function(t,r,n){var i=t.length,a=9*(i+2*n),o=["%PDF-1.0\n\n","1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj\n","2 0 obj << /Type /Pages /Count 1 /Kids [ 3 0 R ] >> endobj\n"];o.push("3 0 obj << /Type /Page /Parent 2 0 R /Resources <<>> /Contents 4 0 R /MediaBox [ 0 0 "+a+" "+a+" ] >> endobj\n");var s="9 0 0 9 0 0 cm\n";s+=e(t).map((function(t){for(var e,r,a="",o=0;o<t.length;o++){var s=t[o];switch(s[0]){case"M":a+=(e=s[1]+n)+" "+(r=i-s[2]+n)+" m ";break;case"h":a+=(e+=s[1])+" "+r+" l ";break;case"v":a+=e+" "+(r-=s[1])+" l "}}return a+"h"})).join("\n"),s+="\nf\n",o.push("4 0 obj << /Length "+s.length+" >> stream\n"+s+"endstream\nendobj\n");for(var u="xref\n0 5\n0000000000 65535 f \n",l=1,h=o[0].length;l<5;l++)u+=("0000000000"+h).substr(-10)+" 00000 n \n",h+=o[l].length;o.push(u,"trailer << /Root 1 0 R /Size 5 >>\n","startxref\n"+h+"\n%%EOF\n"),r.push(o.join("")),r.push(null)},svg_object:function(t,e){var n=[];return r(t,n,e),{size:t.length+2*e,path:n.filter(Boolean).join("")}}}},86048:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,a,o,s,u;if("string"==typeof e&&(a="not ",e.substr(0,4)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var l=("number"!=typeof u&&(u=0),u+1>(s=t).length||-1===s.indexOf(".",u)?"argument":"property");o='The "'.concat(t,'" ').concat(l," ").concat(i," ").concat(n(e,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},25382:(t,e,r)=>{"use strict";var n=r(65606),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var a=r(45412),o=r(16708);r(56698)(h,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];h.prototype[l]||(h.prototype[l]=o.prototype[l])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},63600:(t,e,r)=>{"use strict";t.exports=i;var n=r(74610);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(56698)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},45412:(t,e,r)=>{"use strict";var n,i=r(65606);t.exports=E,E.ReadableState=x,r(37007).EventEmitter;var a,o=function(t,e){return t.listeners(e).length},s=r(40345),u=r(48287).Buffer,l=r.g.Uint8Array||function(){},h=r(79838);a=h&&h.debuglog?h.debuglog("stream"):function(){};var c,f,d,p=r(80345),m=r(75896),g=r(65291).getHighWaterMark,b=r(86048).F,y=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(56698)(E,s);var k=m.errorOrDestroy,B=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||r(25382),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=r(83141).I),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function E(t){if(n=n||r(25382),!(this instanceof E))return new E(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(t,e,r,n,i){a("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(a("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?S(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,P(t)))}}(t,s);else if(i||(o=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e)),r}(s,e)),o)k(t,o);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)s.endEmitted?k(t,new _):A(t,s,e,!0);else if(s.ended)k(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?A(t,s,e,!1):T(t,s)):A(t,s,e,!1)}else n||(s.reading=!1,T(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&S(t)),T(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},E.prototype.unshift=function(t){return C(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){c||(c=r(83141).I);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function M(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(P,t))}function P(t){var e=t._readableState;a("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function T(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(a("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function F(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function L(t){a("readable nexttick read 0"),t.read(0)}function O(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(z,e,t))}function z(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function G(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){a("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return a("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):S(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return a("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&a("length less than watermark",i=!0),e.ended||e.reading?a("reading or ended",i=!1):i&&(a("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){k(this,new w("_read()"))},E.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?m:u;function u(){a("onend"),t.end()}n.endEmitted?i.nextTick(s):r.once("end",s),t.on("unpipe",(function e(i,o){a("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",e),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",c),h=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,U(t))}}(r);t.on("drain",l);var h=!1;function c(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==G(n.pipes,t))&&!h&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(e){a("onerror",e),m(),t.removeListener("error",f),0===o(t,"error")&&k(t,e)}function d(){t.removeListener("finish",p),m()}function p(){a("onfinish"),t.removeListener("close",d),m()}function m(){a("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",f),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=G(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?S(this):n.reading||i.nextTick(L,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(F,this),r},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(F,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(a("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(O,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(a("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<B.length;o++)t.on(B[o],this.emit.bind(this,B[o]));return this._read=function(e){a("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(2955)),f(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(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,e){return void 0===d&&(d=r(55157)),d(E,t,e)})},74610:(t,e,r)=>{"use strict";t.exports=h;var n=r(86048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(25382);function l(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function h(t){if(!(this instanceof h))return new h(t);u.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,r){f(t,e,r)}))}function f(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;return t.push(null)}r(56698)(h,u),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,r){r(new i("_transform()"))},h.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},16708:(t,e,r)=>{"use strict";var n,i=r(65606);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(undefined),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=E,E.WritableState=x;var o,s={deprecate:r(94643)},u=r(40345),l=r(48287).Buffer,h=r.g.Uint8Array||function(){},c=r(75896),f=r(65291).getHighWaterMark,d=r(86048).F,p=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=c.errorOrDestroy;function B(){}function x(t,e,o){n=n||r(25382),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,a){--e.pendingcb,r?(i.nextTick(a,n),i.nextTick(P,t,e),t._writableState.errorEmitted=!0,k(t,n)):(a(n),t._writableState.errorEmitted=!0,k(t,n),P(t,e))}(t,r,n,e,a);else{var o=M(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?i.nextTick(A,t,r,o,a):A(t,r,o,a)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(t){var e=this instanceof(n=n||r(25382));if(!e&&!o.call(E,this))return new E(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function C(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),P(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,C(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,h=r.encoding,c=r.callback;if(C(t,e,!1,e.objectMode?1:l.length,l,h,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final((function(r){e.pendingcb--,r&&k(t,r),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var r=M(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(S,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(56698)(E,u),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===E&&t&&t._writableState instanceof x}})):o=function(t){return t instanceof this},E.prototype.pipe=function(){k(this,new b)},E.prototype.write=function(t,e,r){var n,a=this._writableState,o=!1,s=!a.objectMode&&(n=t,l.isBuffer(n)||n instanceof h);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=a.defaultEncoding),"function"!=typeof r&&(r=B),a.ending?function(t,e){var r=new w;k(t,r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var a;return null===r?a=new v:"string"==typeof r||e.objectMode||(a=new p("chunk",["string","Buffer"],r)),!a||(k(t,a),i.nextTick(n,a),!1)}(this,a,t,r))&&(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r)),e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else C(t,e,!1,s,n,i,a);return u}(this,a,s,t,e,r)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},E.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,P(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=c.destroy,E.prototype._undestroy=c.undestroy,E.prototype._destroy=function(t,e){e(t)}},2955:(t,e,r)=>{"use strict";var n,i=r(65606);function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(86238),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),h=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function m(t){var e=t[s];if(null!==e){var r=t[d].read();null!==r&&(t[c]=null,t[s]=null,t[u]=null,e(p(r,!1)))}}function g(t){i.nextTick(m,t)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[h])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[l]?r(t[l]):e(p(void 0,!0))}))}));var r,n=this[c];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[h]?r(p(void 0,!0)):e[f](r,n)}),n)}}(n,this));else{var a=this[d].read();if(null!==a)return Promise.resolve(p(a,!1));r=new Promise(this[f])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),b);t.exports=function(t){var e,r=Object.create(y,(a(e={},d,{value:t,writable:!0}),a(e,s,{value:null,writable:!0}),a(e,u,{value:null,writable:!0}),a(e,l,{value:null,writable:!0}),a(e,h,{value:t._readableState.endEmitted,writable:!0}),a(e,f,{value:function(t,e){var n=r[d].read();n?(r[c]=null,r[s]=null,r[u]=null,t(p(n,!1))):(r[s]=t,r[u]=e)},writable:!0}),e));return r[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[c]=null,r[s]=null,r[u]=null,e(t)),void(r[l]=t)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[h]=!0})),t.on("readable",g.bind(null,r)),r}},80345:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(48287).Buffer,s=r(15340).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,a=t>i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&a(e.prototype,r),t}()},75896:(t,e,r)=>{"use strict";var n=r(65606);function i(t,e){o(t,e),a(t)}function a(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,t)):n.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(a,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(a,r),e(t)):n.nextTick(a,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},86238:(t,e,r)=>{"use strict";var n=r(86048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,a){if("function"==typeof r)return t(e,null,r);r||(r={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||h()},l=e._writableState&&e._writableState.finished,h=function(){s=!1,l=!0,o||a.call(e)},c=e._readableState&&e._readableState.endEmitted,f=function(){o=!1,c=!0,s||a.call(e)},d=function(t){a.call(e,t)},p=function(){var t;return o&&!c?(e._readableState&&e._readableState.ended||(t=new n),a.call(e,t)):s&&!l?(e._writableState&&e._writableState.ended||(t=new n),a.call(e,t)):void 0},m=function(){e.req.on("finish",h)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",h),e.on("abort",p),e.req?m():e.on("request",m)):s&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",h),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",d),e.removeListener("close",p)}}},55157:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},57758:(t,e,r)=>{"use strict";var n,i=r(86048).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t){t()}function l(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var h,c=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var f=e.map((function(t,i){var a=i<e.length-1;return function(t,e,i,a){a=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(a);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(86238)),n(t,{readable:e,writable:i},(function(t){if(t)return a(t);s=!0,a()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new o("pipe"))}}(t,a,i>0,(function(t){h||(h=t),t&&f.forEach(u),a||(f.forEach(u),c(h))}))}));return e.reduce(l)}},65291:(t,e,r)=>{"use strict";var n=r(86048).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}}},40345:(t,e,r)=>{t.exports=r(37007).EventEmitter},88310:(t,e,r)=>{t.exports=i;var n=r(37007).EventEmitter;function i(){n.call(this)}r(56698)(i,n),i.Readable=r(45412),i.Writable=r(16708),i.Duplex=r(25382),i.Transform=r(74610),i.PassThrough=r(63600),i.finished=r(86238),i.pipeline=r(57758),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var o=!1;function s(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(h(),0===n.listenerCount(this,"error"))throw t}function h(){r.removeListener("data",i),t.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",h),r.removeListener("close",h),t.removeListener("close",h)}return r.on("error",l),t.on("error",l),r.on("end",h),r.on("close",h),t.on("close",h),t.emit("pipe",r),t}},83141:(t,e,r)=>{"use strict";var n=r(15003).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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 a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=a,a.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},a.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},15003:(t,e,r)=>{var n=r(48287),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},98632:(t,e,r)=>{"use strict";var n=r(48287).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTokenizer=void 0;const i=r(48705);e.AbstractTokenizer=class{constructor(t){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=t||{}}async readToken(t,e=this.position){const r=n.alloc(t.len);if(await this.readBuffer(r,{position:e})<t.len)throw new i.EndOfStreamError;return t.get(r,0)}async peekToken(t,e=this.position){const r=n.alloc(t.len);if(await this.peekBuffer(r,{position:e})<t.len)throw new i.EndOfStreamError;return t.get(r,0)}async readNumber(t){if(await this.readBuffer(this.numBuffer,{length:t.len})<t.len)throw new i.EndOfStreamError;return t.get(this.numBuffer,0)}async peekNumber(t){if(await this.peekBuffer(this.numBuffer,{length:t.len})<t.len)throw new i.EndOfStreamError;return t.get(this.numBuffer,0)}async ignore(t){if(void 0!==this.fileInfo.size){const e=this.fileInfo.size-this.position;if(t>e)return this.position+=e,e}return this.position+=t,t}async close(){}normalizeOptions(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}},93492:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BufferTokenizer=void 0;const n=r(48705),i=r(98632);class a extends i.AbstractTokenizer{constructor(t,e){super(e),this.uint8Array=t,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:t.length}async readBuffer(t,e){if(e&&e.position){if(e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=e.position}const r=await this.peekBuffer(t,e);return this.position+=r,r}async peekBuffer(t,e){const r=this.normalizeOptions(t,e),i=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&i<r.length)throw new n.EndOfStreamError;return t.set(this.uint8Array.subarray(r.position,r.position+i),r.offset),i}async close(){}}e.BufferTokenizer=a},91456:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromFile=e.FileTokenizer=void 0;const n=r(98632),i=r(48705),a=r(91343);class o extends n.AbstractTokenizer{constructor(t,e){super(e),this.fd=t}async readBuffer(t,e){const r=this.normalizeOptions(t,e);this.position=r.position;const n=await a.read(this.fd,t,r.offset,r.length,r.position);if(this.position+=n.bytesRead,n.bytesRead<r.length&&(!e||!e.mayBeLess))throw new i.EndOfStreamError;return n.bytesRead}async peekBuffer(t,e){const r=this.normalizeOptions(t,e),n=await a.read(this.fd,t,r.offset,r.length,r.position);if(!r.mayBeLess&&n.bytesRead<r.length)throw new i.EndOfStreamError;return n.bytesRead}async close(){return a.close(this.fd)}}e.FileTokenizer=o,e.fromFile=async function(t){const e=await a.stat(t);if(!e.isFile)throw new Error(`File not a file: ${t}`);const r=await a.open(t,"r");return new o(r,{path:t,size:e.size})}},91343:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;const n=r(54428);e.pathExists=n.existsSync,e.createReadStream=n.createReadStream,e.stat=async function(t){return new Promise(((e,r)=>{n.stat(t,((t,n)=>{t?r(t):e(n)}))}))},e.close=async function(t){return new Promise(((e,r)=>{n.close(t,(t=>{t?r(t):e()}))}))},e.open=async function(t,e){return new Promise(((r,i)=>{n.open(t,e,((t,e)=>{t?i(t):r(e)}))}))},e.read=async function(t,e,r,i,a){return new Promise(((o,s)=>{n.read(t,e,r,i,a,((t,e,r)=>{t?s(t):o({bytesRead:e,buffer:r})}))}))},e.writeFile=async function(t,e){return new Promise(((r,i)=>{n.writeFile(t,e,(t=>{t?i(t):r()}))}))},e.writeFileSync=function(t,e){n.writeFileSync(t,e)},e.readFile=async function(t){return new Promise(((e,r)=>{n.readFile(t,((t,n)=>{t?r(t):e(n)}))}))}},36066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStreamTokenizer=void 0;const n=r(98632),i=r(48705);class a extends n.AbstractTokenizer{constructor(t,e){super(e),this.streamReader=new i.StreamReader(t)}async getFileInfo(){return this.fileInfo}async readBuffer(t,e){const r=this.normalizeOptions(t,e),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(t,e);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const a=await this.streamReader.read(t,r.offset,r.length);if(this.position+=a,(!e||!e.mayBeLess)&&a<r.length)throw new i.EndOfStreamError;return a}async peekBuffer(t,e){const r=this.normalizeOptions(t,e);let n=0;if(r.position){const e=r.position-this.position;if(e>0){const i=new Uint8Array(r.length+e);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),t.set(i.subarray(e),r.offset),n-e}if(e<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(t,r.offset,r.length)}catch(t){if(e&&e.mayBeLess&&t instanceof i.EndOfStreamError)return 0;throw t}if(!r.mayBeLess&&n<r.length)throw new i.EndOfStreamError}return n}async ignore(t){const e=Math.min(256e3,t),r=new Uint8Array(e);let n=0;for(;n<t;){const i=t-n,a=await this.readBuffer(r,{length:Math.min(e,i)});if(a<0)return a;n+=a}return n}}e.ReadStreamTokenizer=a},96452:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const n=r(36066),i=r(93492);var a=r(48705);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},80363:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;const n=r(91343),i=r(96452);var a=r(91456);Object.defineProperty(e,"fromFile",{enumerable:!0,get:function(){return a.fromFile}});var o=r(96452);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),Object.defineProperty(e,"fromBuffer",{enumerable:!0,get:function(){return o.fromBuffer}}),e.fromStream=async function(t,e){if(e=e||{},t.path){const r=await n.stat(t.path);e.path=t.path,e.size=r.size}return i.fromStream(t,e)}},99027:(t,e)=>{"use strict";e.D9=function(t,e,r,n,i,a,...o){return o.length?u.call(null,!1,!0,t,e,r,n,i,a,...o):u(!1,!0,t,e,r,n,i,a)};const r="INVALID_ARGS",n=!1;function i(t){throw new Error(t)}function a(t){const e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}function o(t){if(Array.isArray(t))return t.slice();const e=t,r=a(e),n={};for(let t=0;t<r.length;t++){const i=r[t];n[i]=e[i]}return n}function s(t){return null!=t&&"object"==typeof t}function u(t,e,l,...h){let c=l;null==c&&i(n?"At least one object should be provided to merge()":r);let f=!1;for(let r=0;r<h.length;r++){const n=h[r];if(null==n)continue;const i=a(n);if(i.length)for(let r=0;r<=i.length;r++){const a=i[r];if(t&&void 0!==c[a])continue;let l=n[a];e&&s(c[a])&&s(l)&&(l=u(t,e,c[a],l)),void 0!==l&&l!==c[a]&&(f||(f=!0,c=o(c)),c[a]=l)}}return c}},44266:(t,e,r)=>{"use strict";var n=r(48287).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const i=r(251);function a(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:(t,e)=>a(t).getUint8(e),put:(t,e,r)=>(a(t).setUint8(e,r),e+1)},e.UINT16_LE={len:2,get:(t,e)=>a(t).getUint16(e,!0),put:(t,e,r)=>(a(t).setUint16(e,r,!0),e+2)},e.UINT16_BE={len:2,get:(t,e)=>a(t).getUint16(e),put:(t,e,r)=>(a(t).setUint16(e,r),e+2)},e.UINT24_LE={len:3,get(t,e){const r=a(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put(t,e,r){const n=a(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get(t,e){const r=a(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put(t,e,r){const n=a(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:(t,e)=>a(t).getUint32(e,!0),put:(t,e,r)=>(a(t).setUint32(e,r,!0),e+4)},e.UINT32_BE={len:4,get:(t,e)=>a(t).getUint32(e),put:(t,e,r)=>(a(t).setUint32(e,r),e+4)},e.INT8={len:1,get:(t,e)=>a(t).getInt8(e),put:(t,e,r)=>(a(t).setInt8(e,r),e+1)},e.INT16_BE={len:2,get:(t,e)=>a(t).getInt16(e),put:(t,e,r)=>(a(t).setInt16(e,r),e+2)},e.INT16_LE={len:2,get:(t,e)=>a(t).getInt16(e,!0),put:(t,e,r)=>(a(t).setInt16(e,r,!0),e+2)},e.INT24_LE={len:3,get(t,r){const n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put(t,e,r){const n=a(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get(t,r){const n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put(t,e,r){const n=a(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:(t,e)=>a(t).getInt32(e),put:(t,e,r)=>(a(t).setInt32(e,r),e+4)},e.INT32_LE={len:4,get:(t,e)=>a(t).getInt32(e,!0),put:(t,e,r)=>(a(t).setInt32(e,r,!0),e+4)},e.UINT64_LE={len:8,get:(t,e)=>a(t).getBigUint64(e,!0),put:(t,e,r)=>(a(t).setBigUint64(e,r,!0),e+8)},e.INT64_LE={len:8,get:(t,e)=>a(t).getBigInt64(e,!0),put:(t,e,r)=>(a(t).setBigInt64(e,r,!0),e+8)},e.UINT64_BE={len:8,get:(t,e)=>a(t).getBigUint64(e),put:(t,e,r)=>(a(t).setBigUint64(e,r),e+8)},e.INT64_BE={len:8,get:(t,e)=>a(t).getBigInt64(e),put:(t,e,r)=>(a(t).setBigInt64(e,r),e+8)},e.Float16_BE={len:2,get(t,e){return i.read(t,e,!1,10,this.len)},put(t,e,r){return i.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get(t,e){return i.read(t,e,!0,10,this.len)},put(t,e,r){return i.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:(t,e)=>a(t).getFloat32(e),put:(t,e,r)=>(a(t).setFloat32(e,r),e+4)},e.Float32_LE={len:4,get:(t,e)=>a(t).getFloat32(e,!0),put:(t,e,r)=>(a(t).setFloat32(e,r,!0),e+4)},e.Float64_BE={len:8,get:(t,e)=>a(t).getFloat64(e),put:(t,e,r)=>(a(t).setFloat64(e,r),e+8)},e.Float64_LE={len:8,get:(t,e)=>a(t).getFloat64(e,!0),put:(t,e,r)=>(a(t).setFloat64(e,r,!0),e+8)},e.Float80_BE={len:10,get(t,e){return i.read(t,e,!1,63,this.len)},put(t,e,r){return i.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get(t,e){return i.read(t,e,!0,63,this.len)},put(t,e,r){return i.write(t,r,e,!0,63,this.len),e+this.len}},e.IgnoreType=class{constructor(t){this.len=t}get(t,e){}},e.Uint8ArrayType=class{constructor(t){this.len=t}get(t,e){return t.subarray(e,e+this.len)}},e.BufferType=class{constructor(t){this.len=t}get(t,e){return n.from(t.subarray(e,e+this.len))}},e.StringType=class{constructor(t,e){this.len=t,this.encoding=e}get(t,e){return n.from(t).toString(this.encoding,e,e+this.len)}};class o{constructor(t){this.len=t}static decode(t,e,r){let n="";for(let i=e;i<r;++i)n+=o.codePointToString(o.singleByteDecoder(t[i]));return n}static inRange(t,e,r){return e<=t&&t<=r}static codePointToString(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}static singleByteDecoder(t){if(o.inRange(t,0,127))return t;const e=o.windows1252[t-128];if(null===e)throw Error("invaliding encoding");return e}get(t,e=0){return o.decode(t,e,e+this.len)}}e.AnsiStringType=o,o.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},90031:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function a(t){for(var e,r,n=[],i=0,a=t.length;i<a;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<a?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function o(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function s(t,e){return i(t>>e&63|128)}function u(t){if(!(4294967168&t))return i(t);var e="";return 4294965248&t?4294901760&t?4292870144&t||(e=i(t>>18&7|240),e+=s(t,12),e+=s(t,6)):(o(t),e=i(t>>12&15|224),e+=s(t,6)):e=i(t>>6&31|192),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,!(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=a(t),r=e.length,n=-1,i="";++n<r;)i+=u(e[n]);return i},t.decode=function(t){e=a(t),r=e.length,n=0;for(var o,s=[];!1!==(o=h());)s.push(o);return function(t){for(var e,r=t.length,n=-1,a="";++n<r;)(e=t[n])>65535&&(a+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),a+=i(e);return a}(s)}}(e)},87961:(t,e,r)=>{var n=r(65606);!function(){var e={};function i(){void 0===n&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var r,n,a,o,s,u,l,h,c,f,d,p,m,g,b;!function(){"use strict";var e=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}(),r=function(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,i=799,a=3406,o=2276,s=1567,u=3784,l=5793,h=2896;function c(t){null==t&&(t={}),null==t.w&&(t.w=-1),this.V=t.n,this.N=t.w}function f(t,e){for(var r,n,i,a=0,o=[],s=16;s>0&&!t[s-1];)s--;o.push({children:[],index:0});var u=o[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[a];u.index>0;)u=o.pop();for(u.index++,o.push(u);o.length<=r;)o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i;a++}r+1<s&&(o.push(i={children:[],index:0}),u.children[u.index]=i.children,u=i)}return o[0].children}function d(t,e,r){return 64*((t.P+1)*e+r)}function p(r,i,a,o,s,u,l,h,c,f){null==f&&(f=!1);var p,m,g,y,v,w,_,k,B,x,E,C=a.m,A=a.Z,I=i,M=0,S=0,P=0,T=0,R=0,F=0;function L(){if(S>0)return S--,M>>S&1;if(255===(M=r[i++])){var t=r[i++];if(t){if(220===t&&f){var o=n(r,i+=2);if(i+=2,o>0&&o!==a.s)throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data",o)}else if(217===t){if(f){var s=8*R;if(s>0&&s<a.s/10)throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",s)}throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data")}throw new e("unexpected marker")}}return S=7,M>>>7}function O(t){for(var r=t;;){switch(typeof(r=r[L()])){case"number":return r;case"object":continue}throw new e("invalid huffman sequence")}}function U(t){for(var e=0;t>0;)e=e<<1|L(),t--;return e}function D(t){if(1===t)return 1===L()?1:-1;var e=U(t);return e>=1<<t-1?e:e+(-1<<t)+1}function N(t,e,r,n,i){var a=r%C;R=(r/C|0)*t.A+n;var o=a*t.h+i;e(t,d(t,R,o))}function z(t,e,r){R=r/t.P|0;var n=r%t.P;e(t,d(t,R,n))}var G=o.length;for(_=A?0===u?0===h?function(t,e){var r=O(t.J),n=0===r?0:D(r)<<c;t.D[e]=t.Q+=n}:function(t,e){t.D[e]|=L()<<c}:0===h?function(e,r){if(P>0)P--;else for(var n=u,i=l;n<=i;){var a=O(e.i),o=15&a,s=a>>4;if(0!==o){var h=t[n+=s];e.D[r+h]=D(o)*(1<<c),n++}else{if(s<15){P=U(s)+(1<<s)-1;break}n+=16}}}:function(r,n){for(var i,a,o=u,s=l,h=0;o<=s;){var f=n+t[o],d=r.D[f]<0?-1:1;switch(T){case 0:if(h=(a=O(r.i))>>4,0==(i=15&a))h<15?(P=U(h)+(1<<h),T=4):(h=16,T=1);else{if(1!==i)throw new e("invalid ACn encoding");p=D(i),T=h?2:3}continue;case 1:case 2:r.D[f]?r.D[f]+=d*(L()<<c):0==--h&&(T=2===T?3:0);break;case 3:r.D[f]?r.D[f]+=d*(L()<<c):(r.D[f]=p<<c,T=0);break;case 4:r.D[f]&&(r.D[f]+=d*(L()<<c))}o++}4===T&&0==--P&&(T=0)}:function(e,r){var n=O(e.J),i=0===n?0:D(n),a=1;for(e.D[r]=e.Q+=i;a<64;){var o=O(e.i),s=15&o,u=o>>4;if(0!==s){var l=t[a+=u];e.D[r+l]=D(s),a++}else{if(u<15)break;a+=16}}},B=1===G?o[0].P*o[0].c:C*a.R;F<=B;){var j=s?Math.min(B-F,s):B;if(j>0){for(g=0;g<G;g++)o[g].Q=0;if(P=0,1===G)for(m=o[0],w=0;w<j;w++)z(m,_,F),F++;else for(w=0;w<j;w++){for(g=0;g<G;g++)for(x=(m=o[g]).h,E=m.A,y=0;y<E;y++)for(v=0;v<x;v++)N(m,_,F,y,v);F++}}if(S=0,!(k=b(r,i)))break;if(k.u&&(i=k.offset),!(k.M>=65488&&k.M<=65495))break;i+=2}return i-I}function m(t,n,c){var f,d,p,m,g,b,y,v,w,_,k,B,x,E,C,A,I,M=t.$,S=t.D;if(!M)throw new e("missing required Quantization Table.");for(var P=0;P<64;P+=8)w=S[n+P],_=S[n+P+1],k=S[n+P+2],B=S[n+P+3],x=S[n+P+4],E=S[n+P+5],C=S[n+P+6],A=S[n+P+7],w*=M[P],_|k|B|x|E|C|A?(_*=M[P+1],k*=M[P+2],B*=M[P+3],x*=M[P+4],E*=M[P+5],C*=M[P+6],A*=M[P+7],d=(f=(f=l*w+128>>8)+(d=l*x+128>>8)+1>>1)-d,I=(p=k)*u+(m=C)*s+128>>8,p=p*s-m*u+128>>8,y=(g=(g=h*(_-A)+128>>8)+(y=E<<4)+1>>1)-y,b=(v=(v=h*(_+A)+128>>8)+(b=B<<4)+1>>1)-b,m=(f=f+(m=I)+1>>1)-m,p=(d=d+p+1>>1)-p,I=g*o+v*a+2048>>12,g=g*a-v*o+2048>>12,v=I,I=b*i+y*r+2048>>12,b=b*r-y*i+2048>>12,y=I,c[P]=f+v,c[P+7]=f-v,c[P+1]=d+y,c[P+6]=d-y,c[P+2]=p+b,c[P+5]=p-b,c[P+3]=m+g,c[P+4]=m-g):(I=l*w+512>>10,c[P]=I,c[P+1]=I,c[P+2]=I,c[P+3]=I,c[P+4]=I,c[P+5]=I,c[P+6]=I,c[P+7]=I);for(var T=0;T<8;++T)w=c[T],(_=c[T+8])|(k=c[T+16])|(B=c[T+24])|(x=c[T+32])|(E=c[T+40])|(C=c[T+48])|(A=c[T+56])?(d=(f=4112+((f=l*w+2048>>12)+(d=l*x+2048>>12)+1>>1))-d,I=(p=k)*u+(m=C)*s+2048>>12,p=p*s-m*u+2048>>12,m=I,y=(g=(g=h*(_-A)+2048>>12)+(y=E)+1>>1)-y,b=(v=(v=h*(_+A)+2048>>12)+(b=B)+1>>1)-b,I=g*o+v*a+2048>>12,g=g*a-v*o+2048>>12,v=I,I=b*i+y*r+2048>>12,b=b*r-y*i+2048>>12,(w=(f=f+m+1>>1)+v)<16?w=0:w>=4080?w=255:w>>=4,(_=(d=d+p+1>>1)+(y=I))<16?_=0:_>=4080?_=255:_>>=4,(k=(p=d-p)+b)<16?k=0:k>=4080?k=255:k>>=4,(B=(m=f-m)+g)<16?B=0:B>=4080?B=255:B>>=4,(x=m-g)<16?x=0:x>=4080?x=255:x>>=4,(E=p-b)<16?E=0:E>=4080?E=255:E>>=4,(C=d-y)<16?C=0:C>=4080?C=255:C>>=4,(A=f-v)<16?A=0:A>=4080?A=255:A>>=4,S[n+T]=w,S[n+T+8]=_,S[n+T+16]=k,S[n+T+24]=B,S[n+T+32]=x,S[n+T+40]=E,S[n+T+48]=C,S[n+T+56]=A):(I=(I=l*w+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,S[n+T]=I,S[n+T+8]=I,S[n+T+16]=I,S[n+T+24]=I,S[n+T+32]=I,S[n+T+40]=I,S[n+T+48]=I,S[n+T+56]=I)}function g(t,e){for(var r=e.P,n=e.c,i=new Int16Array(64),a=0;a<n;a++)for(var o=0;o<r;o++)m(e,d(e,a,o),i);return e.D}function b(t,e,r){null==r&&(r=e);var i=t.length-1,a=r<e?r:e;if(e>=i)return null;var o=n(t,e);if(o>=65472&&o<=65534)return{u:null,M:o,offset:e};for(var s=n(t,a);!(s>=65472&&s<=65534);){if(++a>=i)return null;s=n(t,a)}return{u:o.toString(16),M:s,offset:a}}return c.prototype={parse(r,i){null==i&&(i={});var a,o,s=i.F,u=0,l=null,h=null,c=0;function d(){var t=n(r,u),e=(u+=2)+t-2,i=b(r,e,u);i&&i.u&&(e=i.offset);var a=r.subarray(u,e);return u+=a.length,a}function m(t){for(var e=Math.ceil(t.o/8/t.X),r=Math.ceil(t.s/8/t.B),n=0;n<t.W.length;n++){j=t.W[n];var i=Math.ceil(Math.ceil(t.o/8)*j.h/t.X),a=Math.ceil(Math.ceil(t.s/8)*j.A/t.B),o=e*j.h,s=r*j.A*64*(o+1);j.D=new Int16Array(s),j.P=i,j.c=a}t.m=e,t.R=r}var y=[],v=[],w=[],_=n(r,u);if(u+=2,65496!==_)throw new e("SOI not found");_=n(r,u),u+=2;t:for(;65497!==_;){var k,B,x;switch(_){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var E=d();65504===_&&74===E[0]&&70===E[1]&&73===E[2]&&70===E[3]&&0===E[4]&&(l={version:{d:E[5],T:E[6]},K:E[7],j:E[8]<<8|E[9],H:E[10]<<8|E[11],S:E[12],I:E[13],C:E.subarray(14,14+3*E[12]*E[13])}),65518===_&&65===E[0]&&100===E[1]&&111===E[2]&&98===E[3]&&101===E[4]&&(h={version:E[5]<<8|E[6],k:E[7]<<8|E[8],q:E[9]<<8|E[10],a:E[11]});break;case 65499:for(var C=n(r,u)+(u+=2)-2;u<C;){var A=r[u++],I=new Uint16Array(64);if(A>>4){if(A>>4!=1)throw new e("DQT - invalid table spec");for(B=0;B<64;B++)I[t[B]]=n(r,u),u+=2}else for(B=0;B<64;B++)I[t[B]]=r[u++];y[15&A]=I}break;case 65472:case 65473:case 65474:if(a)throw new e("Only single frame JPEGs supported");u+=2,(a={}).G=65473===_,a.Z=65474===_,a.precision=r[u++];var M,S=n(r,u),P=0,T=0;u+=2,a.s=s||S,a.o=n(r,u),u+=2,a.W=[],a._={};var R=r[u++];for(k=0;k<R;k++){M=r[u];var F=r[u+1]>>4,L=15&r[u+1];P<F&&(P=F),T<L&&(T=L);var O=r[u+2];x=a.W.push({h:F,A:L,L:O,$:null}),a._[M]=x-1,u+=3}a.X=P,a.B=T,m(a);break;case 65476:var U=n(r,u);for(u+=2,k=2;k<U;){var D=r[u++],N=new Uint8Array(16),z=0;for(B=0;B<16;B++,u++)z+=N[B]=r[u];var G=new Uint8Array(z);for(B=0;B<z;B++,u++)G[B]=r[u];k+=17+z,(D>>4?v:w)[15&D]=f(N,G)}break;case 65501:o=n(r,u+=2),u+=2;break;case 65498:var j,H=1==++c&&!s;u+=2;var W=r[u++],q=[];for(k=0;k<W;k++){var Z=r[u++],$=a._[Z];(j=a.W[$]).index=Z;var V=r[u++];j.J=w[V>>4],j.i=v[15&V],q.push(j)}var Y=r[u++],X=r[u++],J=r[u++];try{var Q=p(r,u,a,q,o,Y,X,J>>4,15&J,H);u+=Q}catch(t){if(t instanceof DNLMarkerError)return this.parse(r,{F:t.s});if(t instanceof EOIMarkerError)break t;throw t}break;case 65500:u+=4;break;case 65535:255!==r[u]&&u--;break;default:var K=b(r,u-2,u-3);if(K&&K.u){u=K.offset;break}if(u>=r.length-1)break t;throw new e("JpegImage.parse - unknown marker: "+_.toString(16))}_=n(r,u),u+=2}for(this.width=a.o,this.height=a.s,this.g=l,this.b=h,this.W=[],k=0;k<a.W.length;k++){var tt=y[(j=a.W[k]).L];tt&&(j.$=tt),this.W.push({index:j.index,e:g(0,j),l:j.h/a.X,t:j.A/a.B,P:j.P,c:j.c})}this.p=this.W.length},Y(t,e,r){null==r&&(r=!1);var n,i,a,o,s,u,l,h,c,f,d,p,m=this.width/t,g=this.height/e,b=0,y=this.W.length,v=t*e*y,w=new Uint8ClampedArray(v),_=new Uint32Array(t),k=4294967288;for(l=0;l<y;l++){if(i=(n=this.W[l]).l*m,a=n.t*g,b=l,d=n.e,o=n.P+1<<3,i!==p){for(s=0;s<t;s++)h=0|s*i,_[s]=(h&k)<<3|7&h;p=i}for(u=0;u<e;u++)for(f=o*((h=0|u*a)&k)|(7&h)<<3,s=0;s<t;s++)w[b]=d[f+_[s]],b+=y}var B=this.V;if(r||4!==y||B||(B=new Int32Array([-256,255,-256,255,-256,255,-256,255])),B)for(l=0;l<v;)for(h=0,c=0;h<y;h++,l++,c+=2)w[l]=(w[l]*B[c]>>8)+B[c+1];return w},get f(){return this.b?!!this.b.a:3===this.p?0!==this.N&&(82!==this.W[0].index||71!==this.W[1].index||66!==this.W[2].index):1===this.N},z:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},O:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[a++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[a++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,a)},r:function(t){for(var e,r,n,i=0,a=t.length;i<a;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},U:function(t){for(var e,r,n,i,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*i-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*i-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),t[a++]=255+e*(.00013596372813588848*e+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*i-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*i-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),t[a++]=255+e*(13598650411385307e-21*e+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*i-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*i-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return t.subarray(0,a)},getData:function(t){var r=t.width,n=t.height,i=t.forceRGB,a=t.isSourcePDF;if(this.p>4)throw new e("Unsupported color mode");var o=this.Y(r,n,a);if(1===this.p&&i){for(var s=o.length,u=new Uint8ClampedArray(3*s),l=0,h=0;h<s;h++){var c=o[h];u[l++]=c,u[l++]=c,u[l++]=c}return u}if(3===this.p&&this.f)return this.z(o);if(4===this.p){if(this.f)return i?this.O(o):this.r(o);if(i)return this.U(o)}return o}},c}();function n(t,e){return t[e]<<8|t[e+1]}t.JpegDecoder=r}(),t.encodeImage=function(e,r,n,i){var a={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[[72,1]],t283:[[72,1]],t284:[1],t286:[[0,1]],t287:[[0,1]],t296:[1],t305:["Photopea (UTIF.js)"],t338:[1]};if(i)for(var o in i)a[o]=i[o];var s=new Uint8Array(t.encode([a])),u=new Uint8Array(e),l=new Uint8Array(1e3+r*n*4);for(o=0;o<s.length;o++)l[o]=s[o];for(o=0;o<u.length;o++)l[1e3+o]=u[o];return l.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=r[1]=77,i.writeUshort(r,2,42);var a=8;i.writeUint(r,n,a),n+=4;for(var o=0;o<e.length;o++){var s=t._writeIFD(i,t._types.basic,r,a,e[o]);a=s[1],o<e.length-1&&(3&a&&(a+=4-(3&a)),i.writeUint(r,s[0],a))}return r.slice(0,a).buffer},t.decode=function(e,r){null==r&&(r={parseMN:!0,debug:!1});var n=new Uint8Array(e),a=0,o=t._binBE.readASCII(n,a,2);a+=2;var s="II"==o?t._binLE:t._binBE;s.readUshort(n,a),a+=2;var u=s.readUint(n,a);a+=4;for(var l=[];;){var h=s.readUshort(n,u),c=s.readUshort(n,u+4);if(0!=h&&(c<1||13<c)){i("error in TIFF");break}if(t._readIFD(s,n,u,l,0,r),0==(u=s.readUint(n,u+2+12*h)))break}return l},t.decodeImage=function(e,r,n){if(!r.data){var a=new Uint8Array(e),o=t._binBE.readASCII(a,0,2);if(null!=r.t256){r.isLE="II"==o,r.width=r.t256[0],r.height=r.t257[0];var s=r.t259?r.t259[0]:1,u=r.t266?r.t266[0]:1;r.t284&&2==r.t284[0]&&i("PlanarConfiguration 2 should not be used!"),7==s&&r.t258&&r.t258.length>3&&(r.t258=r.t258.slice(0,3));var l=r.t277?r.t277[0]:1,h=(r.t258?r.t258[0]:1)*l;1==s&&null!=r.t279&&r.t278&&32803==r.t262[0]&&(h=Math.round(8*r.t279[0]/(r.width*r.t278[0]))),r.t50885&&4==r.t50885[0]&&(h=3*r.t258[0]);var c=8*Math.ceil(r.width*h/8),f=r.t273;(null==f||r.t322)&&(f=r.t324);var d=r.t279;1==s&&1==f.length&&(d=[r.height*(c>>>3)]),(null==d||r.t322)&&(d=r.t325);var p=new Uint8Array(r.height*(c>>>3)),m=0;if(null!=r.t322){var g=r.t322[0],b=r.t323[0],y=Math.floor((r.width+g-1)/g),v=Math.floor((r.height+b-1)/b),w=new Uint8Array(0|Math.ceil(g*b*h/8));console.log("====",y,v);for(var _=0;_<v;_++)for(var k=0;k<y;k++){var B=_*y+k;w.fill(0),t.decode._decompress(r,n,a,f[B],d[B],s,w,0,u,g,b),6==s?p=w:t._copyTile(w,0|Math.ceil(g*h/8),b,p,0|Math.ceil(r.width*h/8),r.height,0|Math.ceil(k*g*h/8),_*b)}m=8*p.length}else{if(null==f)return;var x=r.t278?r.t278[0]:r.height;for(x=Math.min(x,r.height),B=0;B<f.length;B++)t.decode._decompress(r,n,a,f[B],d[B],s,p,0|Math.ceil(m/8),u,r.width,x),m+=c*x;m=Math.min(m,8*p.length)}r.data=new Uint8Array(p.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,a,o,s,u,l,h,c,f,d){if(r.t271&&"Panasonic"==r.t271[0]&&r.t45&&6==r.t45[0]&&(u=34316),1==u)for(var p=0;p<s;p++)l[h+p]=a[o+p];else if(2==u)t.decode._decodeG2(a,o,s,l,h,f,c);else if(3==u)t.decode._decodeG3(a,o,s,l,h,f,c,!(!r.t292||1&~r.t292[0]));else if(4==u)t.decode._decodeG4(a,o,s,l,h,f,c);else if(5==u)t.decode._decodeLZW(a,o,s,l,h,8);else if(6==u)t.decode._decodeOldJPEG(r,a,o,s,l,h);else if(7==u||34892==u)t.decode._decodeNewJPEG(r,a,o,s,l,h);else if(8==u||32946==u){var m=new Uint8Array(a.buffer,o+2,s-6),g=e.inflateRaw(m);h+g.length<=l.length&&l.set(g,h)}else 9==u?t.decode._decodeVC5(a,o,s,l,h,r.t33422):32767==u?t.decode._decodeARW(r,a,o,s,l,h):32773==u?t.decode._decodePackBits(a,o,s,l,h):32809==u?t.decode._decodeThunder(a,o,s,l,h):34316==u?t.decode._decodePanasonic(r,a,o,s,l,h):34713==u?t.decode._decodeNikon(r,n,a,o,s,l,h):34676==u?t.decode._decodeLogLuv32(r,a,o,s,l,h):i("Unknown compression",u);var b=r.t258?Math.min(32,r.t258[0]):1,y=r.t277?r.t277[0]:1,v=b*y>>>3,w=Math.ceil(b*y*f/8);if(16==b&&!r.isLE&&null==r.t33422)for(var _=0;_<d;_++)for(var k=h+_*w,B=1;B<w;B+=2){var x=l[k+B];l[k+B]=l[k+B-1],l[k+B-1]=x}if(r.t317&&2==r.t317[0])for(_=0;_<d;_++){var E=h+_*w;if(16==b)for(p=v;p<w;p+=2){var C=(l[E+p+1]<<8|l[E+p])+(l[E+p-v+1]<<8|l[E+p-v]);l[E+p]=255&C,l[E+p+1]=C>>>8&255}else if(3==y)for(p=3;p<w;p+=3)l[E+p]=l[E+p]+l[E+p-3]&255,l[E+p+1]=l[E+p+1]+l[E+p-2]&255,l[E+p+2]=l[E+p+2]+l[E+p-1]&255;else for(p=v;p<w;p++)l[E+p]=l[E+p]+l[E+p-v]&255}},t.decode._decodePanasonic=function(t,e,r,n,i,a){var o,s,u,l,h,c,f,d,p=e.buffer,m=t.t2[0],g=t.t3[0],b=t.t10[0],y=t.t45[0],v=0,w=0,_=0,k=0,B=6==y?new Uint32Array(18):new Uint8Array(16),x=[0,0],E=[0,0],C=0,A=new Uint8Array(16384),I=new Uint16Array(i.buffer);function M(t){if(0==_){var e=new Uint8Array(p,r+w+8184,8200),n=new Uint8Array(p,r+w,8184);A.set(e),A.set(n,e.length),w+=16384}if(5!=y)return(A[k=(_=_-t&131071)>>3^16368]|A[k+1]<<8)>>(7&_)&~(-1<<t);for(o=0;o<16;o++)B[o]=A[_++],_&=16383}function S(t){return A[_+15-t]}function P(){x[0]=0,x[1]=0,E[0]=0,E[1]=0}if(7==y)throw y;if(6==y){var T=12==b,R=T?function(){B[0]=S(0)<<4|S(1)>>4,B[1]=4095&((15&S(1))<<8|S(2)),B[2]=S(3)>>6&3,B[3]=(63&S(3))<<2|S(4)>>6,B[4]=(63&S(4))<<2|S(5)>>6,B[5]=(63&S(5))<<2|S(6)>>6,B[6]=S(6)>>4&3,B[7]=(15&S(6))<<4|S(7)>>4,B[8]=(15&S(7))<<4|S(8)>>4,B[9]=(15&S(8))<<4|S(9)>>4,B[10]=S(9)>>2&3,B[11]=(3&S(9))<<6|S(10)>>2,B[12]=(3&S(10))<<6|S(11)>>2,B[13]=(3&S(11))<<6|S(12)>>2,B[14]=3&S(12),B[15]=S(13),B[16]=S(14),B[17]=S(15),_+=16,k=0}:function(){B[0]=S(0)<<6|S(1)>>2,B[1]=16383&((3&S(1))<<12|S(2)<<4|S(3)>>4),B[2]=S(3)>>2&3,B[3]=(3&S(3))<<8|S(4),B[4]=S(5)<<2|S(6)>>6,B[5]=(63&S(6))<<4|S(7)>>4,B[6]=S(7)>>2&3,B[7]=(3&S(7))<<8|S(8),B[8]=S(9)<<2&1020|S(10)>>6,B[9]=1023&(S(10)<<4|S(11)>>4),B[10]=S(11)>>2&3,B[11]=(3&S(11))<<8|S(12),B[12]=1023&(S(13)<<2&1020|S(14)>>6),B[13]=1023&(S(14)<<4|S(15)>>4),_+=16,k=0},F=T?14:11,L=T?128:512,O=T?2048:8192,U=T?16383:65535,D=T?4095:16383,N=m/F,z=16*N,G=T?18:14;for(c=0;c<g-15;c+=16){var j=Math.min(16,g-c),H=z*j;for(A=new Uint8Array(p,r+v,H),_=0,v+=H,d=0,f=0;d<j;d++,f=0){C=(c+d)*m;for(var W=0;W<N;W++)for(R(),P(),u=0,h=0,o=0;o<F;o++){if(l=1&o,o%3==2){var q=k<G?B[k++]:0;3==q&&(q=4),h=L<<q,u=1<<q}var Z=k<G?B[k++]:0;x[l]?(Z*=u,h<O&&E[l]>h&&(Z+=E[l]-h),E[l]=Z):(x[l]=Z,Z?E[l]=Z:Z=E[l]),I[C+f++]=Z-15<=U?Z-15&U:Z+2147483633>>31&D}}}}else if(5==y){var $=12==b?10:9;for(c=0;c<g;c++)for(f=0;f<m;f+=$)M(0),12==b?(I[C++]=((15&B[1])<<8)+B[0],I[C++]=16*B[2]+(B[1]>>4),I[C++]=((15&B[4])<<8)+B[3],I[C++]=16*B[5]+(B[4]>>4),I[C++]=((15&B[7])<<8)+B[6],I[C++]=16*B[8]+(B[7]>>4),I[C++]=((15&B[10])<<8)+B[9],I[C++]=16*B[11]+(B[10]>>4),I[C++]=((15&B[13])<<8)+B[12],I[C++]=16*B[14]+(B[13]>>4)):14==b&&(I[C++]=B[0]+((63&B[1])<<8),I[C++]=(B[1]>>6)+4*B[2]+((15&B[3])<<10),I[C++]=(B[3]>>4)+16*B[4]+((3&B[5])<<12),I[C++]=((252&B[5])>>2)+(B[6]<<6),I[C++]=B[7]+((63&B[8])<<8),I[C++]=(B[8]>>6)+4*B[9]+((15&B[10])<<10),I[C++]=(B[10]>>4)+16*B[11]+((3&B[12])<<12),I[C++]=((252&B[12])>>2)+(B[13]<<6),I[C++]=B[14]+((63&B[15])<<8))}else{if(4!=y)throw y;for(c=0;c<g;c++)for(f=0;f<m;f++)l=1&(o=f%14),0==o&&P(),o%3==2&&(u=4>>3-M(2)),E[l]?0!=(s=M(8))&&(x[l]-=128<<u,(x[l]<0||4==u)&&(x[l]&=~(-1<<u)),x[l]+=s<<u):(E[l]=M(8),(E[l]||o>11)&&(x[l]=E[l]<<4|M(4))),I[C++]=x[1&f]}},t.decode._decodeVC5=function(){var e,r,n,i=[1,0,1,0,2,2,1,1,3,7,1,2,5,25,1,3,6,48,1,4,6,54,1,5,7,111,1,8,7,99,1,6,7,105,12,0,7,107,1,7,8,209,20,0,8,212,1,9,8,220,1,10,9,393,1,11,9,394,32,0,9,416,1,12,9,427,1,13,10,887,1,18,10,784,1,14,10,790,1,15,10,835,60,0,10,852,1,16,10,885,1,17,11,1571,1,19,11,1668,1,20,11,1669,100,0,11,1707,1,21,11,1772,1,22,12,3547,1,29,12,3164,1,24,12,3166,1,25,12,3140,1,23,12,3413,1,26,12,3537,1,27,12,3539,1,28,13,7093,1,35,13,6283,1,30,13,6331,1,31,13,6335,180,0,13,6824,1,32,13,7072,1,33,13,7077,320,0,13,7076,1,34,14,12565,1,36,14,12661,1,37,14,12669,1,38,14,13651,1,39,14,14184,1,40,15,28295,1,46,15,28371,1,47,15,25320,1,42,15,25336,1,43,15,25128,1,41,15,27300,1,44,15,28293,1,45,16,50259,1,48,16,50643,1,49,16,50675,1,50,16,56740,1,53,16,56584,1,51,16,56588,1,52,17,113483,1,61,17,113482,1,60,17,101285,1,55,17,101349,1,56,17,109205,1,57,17,109207,1,58,17,100516,1,54,17,113171,1,59,18,202568,1,62,18,202696,1,63,18,218408,1,64,18,218412,1,65,18,226340,1,66,18,226356,1,67,18,226358,1,68,19,402068,1,69,19,405138,1,70,19,405394,1,71,19,436818,1,72,19,436826,1,73,19,452714,1,75,19,452718,1,76,19,452682,1,74,20,804138,1,77,20,810279,1,78,20,810790,1,79,20,873638,1,80,20,873654,1,81,20,905366,1,82,20,905430,1,83,20,905438,1,84,21,1608278,1,85,21,1620557,1,86,21,1621582,1,87,21,1621583,1,88,21,1747310,1,89,21,1810734,1,90,21,1810735,1,91,21,1810863,1,92,21,1810879,1,93,22,3621725,1,99,22,3621757,1,100,22,3241112,1,94,22,3494556,1,95,22,3494557,1,96,22,3494622,1,97,22,3494623,1,98,23,6482227,1,102,23,6433117,1,101,23,6989117,1,103,23,6989119,1,105,23,6989118,1,104,23,7243449,1,106,23,7243512,1,107,24,13978233,1,111,24,12964453,1,109,24,12866232,1,108,24,14486897,1,113,24,13978232,1,110,24,14486896,1,112,24,14487026,1,114,24,14487027,1,115,25,25732598,1,225,25,25732597,1,189,25,25732596,1,188,25,25732595,1,203,25,25732594,1,202,25,25732593,1,197,25,25732592,1,207,25,25732591,1,169,25,25732590,1,223,25,25732589,1,159,25,25732522,1,235,25,25732579,1,152,25,25732575,1,192,25,25732489,1,179,25,25732573,1,201,25,25732472,1,172,25,25732576,1,149,25,25732488,1,178,25,25732566,1,120,25,25732571,1,219,25,25732577,1,150,25,25732487,1,127,25,25732506,1,211,25,25732548,1,125,25,25732588,1,158,25,25732486,1,247,25,25732467,1,238,25,25732508,1,163,25,25732552,1,228,25,25732603,1,183,25,25732513,1,217,25,25732587,1,168,25,25732520,1,122,25,25732484,1,128,25,25732562,1,249,25,25732505,1,187,25,25732504,1,186,25,25732483,1,136,25,25928905,1,181,25,25732560,1,255,25,25732500,1,230,25,25732482,1,135,25,25732555,1,233,25,25732568,1,222,25,25732583,1,145,25,25732481,1,134,25,25732586,1,167,25,25732521,1,248,25,25732518,1,209,25,25732480,1,243,25,25732512,1,216,25,25732509,1,164,25,25732547,1,140,25,25732479,1,157,25,25732544,1,239,25,25732574,1,191,25,25732564,1,251,25,25732478,1,156,25,25732546,1,139,25,25732498,1,242,25,25732557,1,133,25,25732477,1,162,25,25732515,1,213,25,25732584,1,165,25,25732514,1,212,25,25732476,1,227,25,25732494,1,198,25,25732531,1,236,25,25732530,1,234,25,25732529,1,117,25,25732528,1,215,25,25732527,1,124,25,25732526,1,123,25,25732525,1,254,25,25732524,1,253,25,25732523,1,148,25,25732570,1,218,25,25732580,1,146,25,25732581,1,147,25,25732569,1,224,25,25732533,1,143,25,25732540,1,184,25,25732541,1,185,25,25732585,1,166,25,25732556,1,132,25,25732485,1,129,25,25732563,1,250,25,25732578,1,151,25,25732501,1,119,25,25732502,1,193,25,25732536,1,176,25,25732496,1,245,25,25732553,1,229,25,25732516,1,206,25,25732582,1,144,25,25732517,1,208,25,25732558,1,137,25,25732543,1,241,25,25732466,1,237,25,25732507,1,190,25,25732542,1,240,25,25732551,1,131,25,25732554,1,232,25,25732565,1,252,25,25732475,1,171,25,25732493,1,205,25,25732492,1,204,25,25732491,1,118,25,25732490,1,214,25,25928904,1,180,25,25732549,1,126,25,25732602,1,182,25,25732539,1,175,25,25732545,1,141,25,25732559,1,138,25,25732537,1,177,25,25732534,1,153,25,25732503,1,194,25,25732606,1,160,25,25732567,1,121,25,25732538,1,174,25,25732497,1,246,25,25732550,1,130,25,25732572,1,200,25,25732474,1,170,25,25732511,1,221,25,25732601,1,196,25,25732532,1,142,25,25732519,1,210,25,25732495,1,199,25,25732605,1,155,25,25732535,1,154,25,25732499,1,244,25,25732510,1,220,25,25732600,1,195,25,25732607,1,161,25,25732604,1,231,25,25732473,1,173,25,25732599,1,226,26,51465122,1,116,26,51465123,0,1],a=[3,3,3,3,2,2,2,1,1,1];function o(t){var e=t[1],r=t[0][e>>>3]>>>7-(7&e)&1;return t[1]++,r}function s(t,r){if(null==e){e={};for(var n=0;n<i.length;n+=4)e[i[n+1]]=i.slice(n,n+4)}for(var a=o(t),s=e[a];null==s;)a=a<<1|o(t),s=e[a];var u=s[3];0!=u&&(u=0==o(t)?u:-u),r[0]=s[2],r[1]=u}function u(t,e){for(var r=0;r<e;r++)1&~t||t++,t>>>=1;return t}function l(t,e){return t>>e}function h(t,e,r,n,i,a){e[r]=l(l(11*t[i]-4*t[i+a]+t[i+a+a]+4,3)+t[n],1),e[r+a]=l(l(5*t[i]+4*t[i+a]-t[i+a+a]+4,3)-t[n],1)}function c(t,e,r,n,i,a){var o=t[i-a]-t[i+a],s=t[i],u=t[n];e[r]=l(l(o+4,3)+s+u,1),e[r+a]=l(l(4-o,3)+s-u,1)}function f(t,e,r,n,i,a){e[r]=l(l(5*t[i]+4*t[i-a]-t[i-a-a]+4,3)+t[n],1),e[r+a]=l(l(11*t[i]-4*t[i-a]+t[i-a-a]+4,3)-t[n],1)}function d(t){return n[t=t<0?0:t>4095?4095:t]>>>2}return function(e,i,o,l,p,m){l=new Uint16Array(l.buffer);var g,b,y,v,w,_,k,B,x=Date.now(),E=t._binBE,C=i+o;i+=4;for(var A=1==m[0];i<C;){var I=E.readShort(e,i),M=E.readUshort(e,i+2);if(i+=4,12==I)O=M;else if(20==I)g=M;else if(21==I)b=M;else if(48==I)y=M;else if(53==I)v=M;else if(35==I);else if(62==I)w=M;else if(101==I);else if(109==I)_=M;else if(84==I);else if(106==I);else if(107==I);else if(108==I);else if(102==I);else if(104==I)rt=M;else if(105==I);else{var S=I<0?-I:I,P=65280&S,T=0;if(24576&S&&(8192&S?(T=65535&M,T+=(255&S)<<16):T=65535&M),24576&~S){if(16388==S)i+=4*T;else if(8192!=P&&8448!=P&&9216!=P)throw S.toString(16)}else{if(null==k){k=[];for(var R=0;R<4;R++)k[R]=new Int16Array((g>>>1)*(b>>>1));for(B=new Int16Array((g>>>1)*(b>>>1)),r=new Int16Array(1024),R=0;R<1024;R++){var F=R-512,L=Math.abs(F),O=Math.floor(768*L*L*L/16581375)+L;r[R]=Math.sign(F)*O}for(n=new Uint16Array(4096),R=0;R<4096;R++){var U=R,D=65535*(Math.pow(113,U/4095)-1)/112;n[R]=Math.min(D,65535)}}var N=k[w],z=u(g,1+a[y]),G=u(b,1+a[y]);if(0==y)for(var j=0;j<G;j++)for(var H=0;H<z;H++){var W=i+2*(j*z+H);N[j*(g>>>1)+H]=e[W]<<8|e[W+1]}else{var q=[e,8*i],Z=[],$=0,V=z*G,Y=[0,0],X=0;for(M=0;$<V;)for(s(q,Y),X=Y[0],M=Y[1];X>0;)Z[$++]=M,X--;var J=(y-1)%3,Q=1!=J?z:0,K=0!=J?G:0;for(j=0;j<G;j++){var tt=(j+K)*(g>>>1)+Q,et=j*z;for(H=0;H<z;H++)N[tt+H]=r[Z[et+H]+512]*v}if(2==J){var rt=g>>>1,nt=2*z,it=2*G;for(j=0;j<G;j++)for(H=0;H<nt;H++){R=2*j*rt+H;var at=G*rt+(st=j*rt+H);0==j?h(N,B,R,at,st,rt):j==G-1?f(N,B,R,at,st,rt):c(N,B,R,at,st,rt)}var ot=N;for(N=B,B=ot,j=0;j<it;j++)for(H=0;H<z;H++){var st;R=j*rt+2*H,at=z+(st=j*rt+H),0==H?h(N,B,R,at,st,1):H==z-1?f(N,B,R,at,st,1):c(N,B,R,at,st,1)}ot=N,N=B,B=ot;for(var ut=[],lt=2-~~((y-1)/3),ht=0;ht<3;ht++)ut[ht]=_>>14-2*ht&3;var ct=ut[lt];if(0!=ct)for(j=0;j<it;j++)for(H=0;H<nt;H++)N[R=j*rt+H]=N[R]<<ct}}if(9==y&&3==w){var ft=k[0],dt=k[1],pt=k[2],mt=k[3];for(j=0;j<b;j+=2)for(H=0;H<g;H+=2){var gt=j*g+H,bt=ft[W=(j>>>1)*(g>>>1)+(H>>>1)],yt=dt[W]-2048,vt=pt[W]-2048,wt=mt[W]-2048,_t=(yt<<1)+bt,kt=(vt<<1)+bt,Bt=bt+wt,xt=bt-wt;A?(l[gt]=d(Bt),l[gt+1]=d(kt),l[gt+g]=d(_t),l[gt+g+1]=d(xt)):(l[gt]=d(_t),l[gt+1]=d(Bt),l[gt+g]=d(xt),l[gt+g+1]=d(kt))}}i+=4*T}}}console.log(Date.now()-x)}}(),t.decode._decodeLogLuv32=function(t,e,r,n,i,a){for(var o=t.width,s=4*o,u=0,l=new Uint8Array(s);u<n;){for(var h=0;h<s;){var c=e[r+u];if(u++,c<128){for(var f=0;f<c;f++)l[h+f]=e[r+u+f];h+=c,u+=c}else{for(c-=126,f=0;f<c;f++)l[h+f]=e[r+u];h+=c,u++}}for(var d=0;d<o;d++)i[a+0]=l[d],i[a+1]=l[d+o],i[a+2]=l[d+2*o],i[a+4]=l[d+3*o],a+=6}},t.decode._ljpeg_diff=function(e,r,n){var i,a,o=t.decode._getbithuff;return i=o(e,r,n[0],n),(a=o(e,r,i,0))&1<<i-1||(a-=(1<<i)-1),a},t.decode._decodeARW=function(e,r,n,i,a,o){var s=e.t256[0],u=e.t257[0],l=e.t258[0],h=e.isLE?t._binLE:t._binBE;if(s*u==i||s*u*1.5==i)if(s*u*1.5!=i){var c,f,d,p,m,g,b,y,v=new Uint16Array(16),w=new Uint8Array(s+1);for(I=0;I<u;I++){for(var _=0;_<s;_++)w[_]=r[n++];for(y=0,A=0;A<s-30;y+=16){for(f=2047&(c=h.readUint(w,y)),d=2047&c>>>11,p=15&c>>>22,m=15&c>>>26,g=0;g<4&&128<<g<=f-d;g++);for(b=30,k=0;k<16;k++)k==p?v[k]=f:k==m?v[k]=d:(v[k]=((h.readUshort(w,y+(b>>3))>>>(7&b)&127)<<g)+d,v[k]>2047&&(v[k]=2047),b+=7);for(k=0;k<16;k++,A+=2)O=v[k]<<1,t.decode._putsF(a,(I*s+A)*l,O<<16-l);A-=1&A?1:31}}}else for(var k=0;k<i;k+=3){var B=r[n+k+0],x=r[n+k+1],E=r[n+k+2];a[o+k]=x<<4|B>>>4,a[o+k+1]=B<<4|E>>>4,a[o+k+2]=E<<4|x>>>4}else{u+=8;var C,A,I,M=[n,0,0,0],S=new Uint16Array(32770),P=[3857,3856,3599,3342,3085,2828,2571,2314,2057,1800,1543,1286,1029,772,771,768,514,513],T=0,R=t.decode._ljpeg_diff;for(S[0]=15,C=k=0;k<18;k++)for(var F=32768>>>(P[k]>>>8),L=0;L<F;L++)S[++C]=P[k];for(A=s;A--;)for(I=0;I<u+1;I+=2)if(I==u&&(I=1),T+=R(r,M,S),I<u){var O=4095&T;t.decode._putsF(a,(I*s+A)*l,O<<16-l)}}},t.decode._decodeNikon=function(e,r,n,i,a,o,s){var u=[[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,5,4,3,6,2,7,1,0,8,9,11,10,12],[0,0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0,57,90,56,39,22,5,4,3,2,1,0,11,12,12],[0,0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0,5,4,6,3,7,2,8,1,9,0,10,11,12],[0,0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0,5,6,4,7,8,3,9,2,1,0,10,11,12,13,14],[0,0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0,8,92,75,58,41,7,6,5,4,3,2,1,0,13,14],[0,0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0,7,6,8,5,9,4,10,3,11,12,2,0,1,13,14]],l=e.t256[0],h=e.t257[0],c=e.t258[0],f=0,d=0,p=t.decode._make_decoder,m=t.decode._getbithuff,g=r[0].exifIFD.makerNote,b=g.t150?g.t150:g.t140,y=0,v=b[y++],w=b[y++];73!=v&&88!=w||(y+=2110),70==v&&(f=2),14==c&&(f+=3);for(var _=[[0,0],[0,0]],k=e.isLE?t._binLE:t._binBE,B=0;B<2;B++)for(var x=0;x<2;x++)_[B][x]=k.readShort(b,y),y+=2;var E,C,A,I,M,S=1<<c&32767,P=0,T=k.readShort(b,y);y+=2,T>1&&(P=Math.floor(S/(T-1))),68==v&&32==w&&P>0&&(d=k.readShort(b,562));var R=[0,0],F=p(u[f]),L=[i,0,0,0];for(E=0;E<h;E++)for(d&&E==d&&(F=p(u[f+1])),C=0;C<l;C++){B=m(n,L,F[0],F),(M=1+(m(n,L,(A=15&B)-(I=B>>>4),0)<<1)<<I>>>1)&1<<A-1||(M-=(1<<A)-(0==I?1:0)),C<2?R[C]=_[1&E][C]+=M:R[1&C]+=M;var O=Math.min(Math.max(R[1&C],0),(1<<c)-1),U=(E*l+C)*c;t.decode._putsF(o,U,O<<16-c)}},t.decode._putsF=function(t,e,r){r<<=8-(7&e);var n=e>>>3;t[n]|=r>>>16,t[n+1]|=r>>>8,t[n+2]|=r},t.decode._getbithuff=function(e,r,n,i){t.decode._get_byte;var a,o=r[0],s=r[1],u=r[2],l=r[3];if(0==n||u<0)return 0;for(;!l&&u<n&&-1!=(a=e[o++])&&!(l=0);)s=(s<<8)+a,u+=8;if(a=s<<32-u>>>32-n,i?(u-=i[a+1]>>>8,a=255&i[a+1]):u-=n,u<0)throw"e";return r[0]=o,r[1]=s,r[2]=u,r[3]=l,a},t.decode._make_decoder=function(t){var e,r,n,i,a,o=[];for(e=16;0!=e&&!t[e];e--);var s=17;for(o[0]=e,n=r=1;r<=e;r++)for(i=0;i<t[r];i++,++s)for(a=0;a<1<<e-r;a++)n<=1<<e&&(o[n++]=r<<8|t[s]);return o},t.decode._decodeNewJPEG=function(e,r,n,i,a,o){i=Math.min(i,r.length-n);var s=e.t347,u=s?s.length:0,l=new Uint8Array(u+i);if(s){for(var h=0,c=0;c<u-1&&(255!=s[c]||217!=s[c+1]);c++)l[h++]=s[c];var f=r[n],d=r[n+1];for(255==f&&216==d||(l[h++]=f,l[h++]=d),c=2;c<i;c++)l[h++]=r[n+c]}else for(c=0;c<i;c++)l[c]=r[n+c];if(32803==e.t262[0]||7==e.t259[0]&&34892==e.t262[0]){var p=e.t258[0],m=t.LosslessJpegDecode(l),g=m.length;if(16==p)if(e.isLE)for(c=0;c<g;c++)a[o+(c<<1)]=255&m[c],a[o+(c<<1)+1]=m[c]>>>8;else for(c=0;c<g;c++)a[o+(c<<1)]=m[c]>>>8,a[o+(c<<1)+1]=255&m[c];else if(14==p||12==p||10==p){var b=16-p;for(c=0;c<g;c++)t.decode._putsF(a,c*p,m[c]<<b)}else{if(8!=p)throw new Error("unsupported bit depth "+p);for(c=0;c<g;c++)a[o+c]=m[c]}}else{var y=new t.JpegDecoder;y.parse(l);var v=y.getData({width:y.width,height:y.height,forceRGB:!0,isSourcePDF:!1});for(c=0;c<v.length;c++)a[o+c]=v[c]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var a,o,s,u,l,h=216,c=0,f=0,d=!1,p=t.t513,m=p?p[0]:0,g=t.t514,b=g?g[0]:0,y=t.t324||t.t273||p,v=t.t530,w=0,_=0,k=t.t277?t.t277[0]:1,B=t.t515;if(y&&(f=y[0],d=y.length>1),!d){if(255==e[r]&&e[r+1]==h)return{jpegOffset:r};if(null!=p&&(255==e[r+m]&&e[r+m+1]==h?c=r+m:i("JPEGInterchangeFormat does not point to SOI"),null==g?i("JPEGInterchangeFormatLength field is missing"):(m>=f||m+b<=f)&&i("JPEGInterchangeFormatLength field value is invalid"),null!=c))return{jpegOffset:c}}if(null!=v&&(w=v[0],_=v[1]),null!=p&&null!=g)if(b>=2&&m+b<=f){for(a=255==e[r+m+b-2]&&e[r+m+b-1]==h?new Uint8Array(b-2):new Uint8Array(b),s=0;s<a.length;s++)a[s]=e[r+m+s];i("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables")}else i("JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile");if(null==a){var x=0,E=[];E[x++]=255,E[x++]=h;var C=t.t519;if(null==C)throw new Error("JPEGQTables tag is missing");for(s=0;s<C.length;s++)for(E[x++]=255,E[x++]=219,E[x++]=0,E[x++]=67,E[x++]=s,u=0;u<64;u++)E[x++]=e[r+C[s]+u];for(l=0;l<2;l++){var A=t[0==l?"t520":"t521"];if(null==A)throw new Error((0==l?"JPEGDCTables":"JPEGACTables")+" tag is missing");for(s=0;s<A.length;s++){E[x++]=255,E[x++]=196;var I=19;for(u=0;u<16;u++)I+=e[r+A[s]+u];for(E[x++]=I>>>8,E[x++]=255&I,E[x++]=s|l<<4,u=0;u<16;u++)E[x++]=e[r+A[s]+u];for(u=0;u<I;u++)E[x++]=e[r+A[s]+16+u]}}if(E[x++]=255,E[x++]=192,E[x++]=0,E[x++]=8+3*k,E[x++]=8,E[x++]=t.height>>>8&255,E[x++]=255&t.height,E[x++]=t.width>>>8&255,E[x++]=255&t.width,E[x++]=k,1==k)E[x++]=1,E[x++]=17,E[x++]=0;else for(s=0;s<3;s++)E[x++]=s+1,E[x++]=0!=s?17:(15&w)<<4|15&_,E[x++]=s;null!=B&&0!=B[0]&&(E[x++]=255,E[x++]=221,E[x++]=0,E[x++]=4,E[x++]=B[0]>>>8&255,E[x++]=255&B[0]),a=new Uint8Array(E)}var M=-1;for(s=0;s<a.length-1;){if(255==a[s]&&192==a[s+1]){M=s;break}s++}if(-1==M){var S=new Uint8Array(a.length+10+3*k);S.set(a);var P=a.length;if(M=a.length,(a=S)[P++]=255,a[P++]=192,a[P++]=0,a[P++]=8+3*k,a[P++]=8,a[P++]=t.height>>>8&255,a[P++]=255&t.height,a[P++]=t.width>>>8&255,a[P++]=255&t.width,a[P++]=k,1==k)a[P++]=1,a[P++]=17,a[P++]=0;else for(s=0;s<3;s++)a[P++]=s+1,a[P++]=0!=s?17:(15&w)<<4|15&_,a[P++]=s}if(255==e[f]&&218==e[f+1]){var T=e[f+2]<<8|e[f+3];for((o=new Uint8Array(T+2))[0]=e[f],o[1]=e[f+1],o[2]=e[f+2],o[3]=e[f+3],s=0;s<T-2;s++)o[s+4]=e[f+s+4]}else{var R=0;if((o=new Uint8Array(8+2*k))[R++]=255,o[R++]=218,o[R++]=0,o[R++]=6+2*k,o[R++]=k,1==k)o[R++]=1,o[R++]=0;else for(s=0;s<3;s++)o[R++]=s+1,o[R++]=s<<4|s;o[R++]=0,o[R++]=63,o[R++]=0}return{jpegOffset:r,tables:a,sosMarker:o,sofPosition:M}},t.decode._decodeOldJPEG=function(e,r,n,i,a,o){var s,u,l,h,c=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=c.jpegOffset)for(s=n+i-c.jpegOffset,l=new Uint8Array(s),p=0;p<s;p++)l[p]=r[c.jpegOffset+p];else{for(u=c.tables.length,(l=new Uint8Array(u+c.sosMarker.length+i+2)).set(c.tables),h=u,l[c.sofPosition+5]=e.height>>>8&255,l[c.sofPosition+6]=255&e.height,l[c.sofPosition+7]=e.width>>>8&255,l[c.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(l.set(c.sosMarker,h),h+=sosMarker.length),p=0;p<i;p++)l[h++]=r[n+p];l[h++]=255,l[h++]=EOI}var f=new t.JpegDecoder;f.parse(l);for(var d=f.getData({width:f.width,height:f.height,forceRGB:!0,isSourcePDF:!1}),p=0;p<d.length;p++)a[o+p]=d[p];e.t262&&6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodePackBits=function(t,e,r,n,i){for(var a=new Int8Array(t.buffer),o=new Int8Array(n.buffer),s=e+r;e<s;){var u=a[e];if(e++,u>=0&&u<128)for(var l=0;l<u+1;l++)o[i]=a[e],i++,e++;if(u>=-127&&u<0){for(l=0;l<1-u;l++)o[i]=a[e],i++;e++}}return i},t.decode._decodeThunder=function(t,e,r,n,i){for(var a=[0,1,0,-1],o=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,l=0;e<s;){var h=t[e],c=h>>>6,f=63&h;if(e++,3==c&&(l=15&f,n[u>>>1]|=l<<4*(1-u&1),u++),0==c)for(var d=0;d<f;d++)n[u>>>1]|=l<<4*(1-u&1),u++;if(2==c)for(d=0;d<2;d++)4!=(p=f>>>3*(1-d)&7)&&(l+=o[p],n[u>>>1]|=l<<4*(1-u&1),u++);if(1==c)for(d=0;d<3;d++){var p;2!=(p=f>>>2*(2-d)&3)&&(l+=a[p],n[u>>>1]|=l<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},e="00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100",r="0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111",n="11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011",i="0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101",a="00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111";e=e.split(","),r=r.split(","),n=n.split(","),i=i.split(","),a=a.split(",");var o={},s={};return t(o,e,0,1),t(o,n,64,64),t(o,a,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,a,1792,64),[o,s]}(),t.decode._decodeG4=function(e,r,n,i,a,o,s){for(var u=t.decode,l=r<<3,h=0,c="",f=[],d=[],p=0;p<o;p++)d.push(0);d=u._makeDiff(d);for(var m=0,g=0,b=0,y=0,v=0,w=0,_="",k=0,B=8*Math.ceil(o/8);l>>>3<r+n;){b=u._findDiff(d,m+(0==m?0:1),1-v),y=u._findDiff(d,b,v);var x=0;if(1==s&&(x=e[l>>>3]>>>7-(7&l)&1),2==s&&(x=e[l>>>3]>>>(7&l)&1),l++,c+=x,"H"==_){if(null!=u._lens[v][c]){var E=u._lens[v][c];c="",h+=E,E<64&&(u._addNtimes(f,h,v),m+=h,v=1-v,h=0,0==--k&&(_=""))}}else"0001"==c&&(c="",u._addNtimes(f,y-m,v),m=y),"001"==c&&(c="",_="H",k=2),null!=u._dmap[c]&&(g=b+u._dmap[c],u._addNtimes(f,g-m,v),m=g,c="",v=1-v);f.length==o&&""==_&&(u._writeBits(f,i,8*a+w*B),v=0,w++,m=0,d=u._makeDiff(f),f=[])}},t.decode._findDiff=function(t,e,r){for(var n=0;n<t.length;n+=2)if(t[n]>=e&&t[n+1]==r)return t[n]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},t.decode._decodeG2=function(e,r,n,i,a,o,s){for(var u=t.decode,l=r<<3,h=0,c="",f=[],d=0,p=0,m=8*Math.ceil(o/8);l>>>3<r+n;){var g=0;1==s&&(g=e[l>>>3]>>>7-(7&l)&1),2==s&&(g=e[l>>>3]>>>(7&l)&1),l++,c+=g,null!=(h=u._lens[d][c])&&(u._addNtimes(f,h,d),c="",h<64&&(d=1-d),f.length==o&&(u._writeBits(f,i,8*a+p*m),f=[],p++,d=0,7&l&&(l+=8-(7&l)),h>=64&&(l+=8)))}},t.decode._decodeG3=function(e,r,n,i,a,o,s,u){for(var l=t.decode,h=r<<3,c=0,f="",d=[],p=[],m=0;m<o;m++)d.push(0);for(var g=0,b=0,y=0,v=0,w=0,_=-1,k="",B=0,x=!0,E=8*Math.ceil(o/8);h>>>3<r+n;){y=l._findDiff(p,g+(0==g?0:1),1-w),v=l._findDiff(p,y,w);var C=0;if(1==s&&(C=e[h>>>3]>>>7-(7&h)&1),2==s&&(C=e[h>>>3]>>>(7&h)&1),h++,f+=C,x){if(null!=l._lens[w][f]){var A=l._lens[w][f];f="",c+=A,A<64&&(l._addNtimes(d,c,w),w=1-w,c=0)}}else"H"==k?null!=l._lens[w][f]&&(A=l._lens[w][f],f="",c+=A,A<64&&(l._addNtimes(d,c,w),g+=c,w=1-w,c=0,0==--B&&(k=""))):("0001"==f&&(f="",l._addNtimes(d,v-g,w),g=v),"001"==f&&(f="",k="H",B=2),null!=l._dmap[f]&&(b=y+l._dmap[f],l._addNtimes(d,b-g,w),g=b,f="",w=1-w));f.endsWith("000000000001")&&(_>=0&&l._writeBits(d,i,8*a+_*E),u&&(1==s&&(x=1==(e[h>>>3]>>>7-(7&h)&1)),2==s&&(x=1==(e[h>>>3]>>>(7&h)&1)),h++),f="",w=0,_++,g=0,p=l._makeDiff(d),d=[])}d.length==o&&l._writeBits(d,i,8*a+_*E)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=t.decode._decodeLZW=(s=0,u=0,l=0,h=0,c=function(){var t=r>>>3,e=(n[t]<<16|n[t+1]<<8|n[t+2])>>>24-(7&r)-u&(1<<u)-1;return r+=u,e},f=new Uint32Array(16384),d=0,p=function(t){u=t+1,s=h+1},m=function(t){for(var e=t<<2,r=f[e+2],n=o+r-1;65535!=e;)a[n--]=f[e],e=f[e+1];o+=r},g=function(t,e){var r=s<<2,n=t<<2;f[r]=f[3+(e<<2)],f[r+1]=n,f[r+2]=f[n+2]+1,f[r+3]=f[n+3],1+ ++s==1<<u&&12!=u&&u++},function(t,e,i,u,b,y){r=e<<3,n=t,a=u,o=b;var v=e+i<<3,w=0,_=0;for(function(t){if(t!=d){d=t,h=1+(l=1<<t);for(var e=0;e<h+1;e++)f[4*e]=f[4*e+3]=e,f[4*e+1]=65535,f[4*e+2]=1}}(y),p(y);r<v&&(w=c())!=h;){if(w==l){if(p(y),(w=c())==h)break;m(w)}else w<s?(m(w),g(_,w)):(g(_,_),m(s-1));_=w}return o}),t.tags={},t._types=((b=new Array(250)).fill(0),{basic:{main:b=b.concat([0,0,0,0,4,3,3,3,3,3,0,0,3,0,0,0,3,0,0,2,2,2,2,4,3,0,0,3,4,4,3,3,5,5,3,2,5,5,0,0,0,0,4,4,0,0,3,3,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,2,2,3,5,5,3,0,3,3,4,4,4,3,4,0,0,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rest:{33432:2,33434:5,33437:5,34665:4,34850:3,34853:4,34855:3,34864:3,34866:4,36864:7,36867:2,36868:2,37121:7,37377:10,37378:5,37380:10,37381:5,37383:3,37384:3,37385:3,37386:5,37510:7,37520:2,37521:2,37522:2,40960:7,40961:3,40962:4,40963:4,40965:4,41486:5,41487:5,41488:3,41985:3,41986:3,41987:3,41988:5,41989:3,41990:3,41993:3,41994:3,41995:7,41996:3,42032:2,42033:2,42034:5,42036:2,42037:2,59932:7}},gps:{main:[1,2,5,2,5,1,5,5,0,9],rest:{18:2,29:2}}}),t._readIFD=function(e,r,n,a,o,s){var u=e.readUshort(r,n);n+=2;var l={};s.debug&&i(" ".repeat(o),a.length-1,">>>----------------");for(var h=0;h<u;h++){var c=e.readUshort(r,n);n+=2;var f=e.readUshort(r,n);n+=2;var d=e.readUint(r,n);n+=4;var p=e.readUint(r,n);n+=4;var m=[];if(1==f||7==f){var g=d<5?n-4:p;g+d>r.buffer.byteLength&&(d=r.buffer.byteLength-g),m=new Uint8Array(r.buffer,g,d)}if(2==f){var b=d<5?n-4:p,y=r[b],v=Math.max(0,Math.min(d-1,r.length-b));y<128||0==v?m.push(e.readASCII(r,b,v)):m=new Uint8Array(r.buffer,b,v)}if(3==f)for(var w=0;w<d;w++)m.push(e.readUshort(r,(d<3?n-4:p)+2*w));if(4==f||13==f)for(w=0;w<d;w++)m.push(e.readUint(r,(d<2?n-4:p)+4*w));if(5==f||10==f){var _=5==f?e.readUint:e.readInt;for(w=0;w<d;w++)m.push([_(r,p+8*w),_(r,p+8*w+4)])}if(8==f)for(w=0;w<d;w++)m.push(e.readShort(r,(d<3?n-4:p)+2*w));if(9==f)for(w=0;w<d;w++)m.push(e.readInt(r,(d<2?n-4:p)+4*w));if(11==f)for(w=0;w<d;w++)m.push(e.readFloat(r,p+4*w));if(12==f)for(w=0;w<d;w++)m.push(e.readDouble(r,p+8*w));if(0==d||0!=m.length){if(s.debug&&i(" ".repeat(o),c,f,t.tags[c],m),l["t"+c]=m,330==c&&l.t272&&"DSLR-A100"==l.t272[0]);else if(330==c||34665==c||34853==c||50740==c&&e.readUshort(r,e.readUint(m,0))<300||61440==c){var k=50740==c?[e.readUint(m,0)]:m,B=[];for(w=0;w<k.length;w++)t._readIFD(e,r,k[w],B,o+1,s);330==c&&(l.subIFD=B),34665==c&&(l.exifIFD=B[0]),34853==c&&(l.gpsiIFD=B[0]),50740==c&&(l.dngPrvt=B[0]),61440==c&&(l.fujiIFD=B[0])}if(37500==c&&s.parseMN){var x=m;if("Nikon"==e.readASCII(x,0,5))l.makerNote=t.decode(x.slice(10).buffer)[0];else if("OLYMP"==e.readASCII(x,0,5)||"OM SYSTEM"==e.readASCII(x,0,9)){var E=[8208,8224,8240,8256,8272],C=[];t._readIFD(e,x,77==x[1]?16:85==x[5]?12:8,C,o+1,s);var A=l.makerNote=C.pop();for(w=0;w<E.length;w++){var I="t"+E[w];null!=A[I]&&(t._readIFD(e,x,A[I][0],C,o+1,s),A[I]=C.pop())}A.t12288&&(t._readIFD(e,A.t12288,0,C,o+1,s),A.t12288=C.pop())}else e.readUshort(r,p)<300&&e.readUshort(r,p+4)<=12&&(C=[],t._readIFD(e,r,p,C,o+1,s),l.makerNote=C[0])}}else if(i(c,"unknown TIFF tag type: ",f,"num:",d),0==h)return}return a.push(l),s.debug&&i(" ".repeat(o),"<<<---------------"),n},t._writeIFD=function(e,r,n,i,a){var o=Object.keys(a),s=o.length;a.exifIFD&&s--,a.gpsiIFD&&s--,e.writeUshort(n,i,s);for(var u=(i+=2)+12*s+4,l=0;l<o.length;l++){var h=o[l];if("t34665"!=h&&"t34853"!=h){"exifIFD"==h&&(h="t34665"),"gpsiIFD"==h&&(h="t34853");var c=parseInt(h.slice(1)),f=r.main[c];if(null==f&&(f=r.rest[c]),null==f||0==f)throw new Error("unknown type of tag: "+c);var d=a[h];34665==c&&(d=[u],u=t._writeIFD(e,r,n,u,a.exifIFD)[1]),34853==c&&(d=[u],u=t._writeIFD(e,t._types.gps,n,u,a.gpsiIFD)[1]),2==f&&(d=d[0]+"\0");var p=d.length;e.writeUshort(n,i,c),i+=2,e.writeUshort(n,i,f),i+=2,e.writeUint(n,i,p);var m=[-1,1,1,2,4,8,0,1,0,4,8,0,8][f]*p,g=i+=4;if(m>4&&(e.writeUint(n,i,u),g=u),1==f||7==f)for(var b=0;b<p;b++)n[g+b]=d[b];else if(2==f)e.writeASCII(n,g,d);else if(3==f)for(b=0;b<p;b++)e.writeUshort(n,g+2*b,d[b]);else if(4==f)for(b=0;b<p;b++)e.writeUint(n,g+4*b,d[b]);else if(5==f||10==f){var y=5==f?e.writeUint:e.writeInt;for(b=0;b<p;b++){var v=d[b],w=v[0],_=v[1];if(null==w)throw"e";y(n,g+8*b,w),y(n,g+8*b+4,_)}}else if(9==f)for(b=0;b<p;b++)e.writeInt(n,g+4*b,d[b]);else{if(12!=f)throw f;for(b=0;b<p;b++)e.writeDouble(n,g+8*b,d[b])}m>4&&(u+=m+=1&m),i+=4}}return[i,u]},t.toRGBA8=function(t,e){function r(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}var n=t.width,a=t.height,o=n*a,s=t.data,u=new Uint8Array(4*o),l=t.t262?t.t262[0]:2,h=t.t258?Math.min(32,t.t258[0]):1;null==t.t262&&1==h&&(l=0);var c=t.t277?t.t277[0]:t.t258?t.t258.length:[1,1,3,1,1,4,3][l],f=t.t339?t.t339[0]:null;if(1==l&&32==h&&3!=f)throw"e";var d=Math.ceil(c*h*n/8);if(0==l){e=1/256;for(var p=0;p<a;p++){var m=p*d,g=p*n;if(1==h)for(var b=0;b<n;b++){var y=g+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1;u[y]=u[y+1]=u[y+2]=255*(1-v),u[y+3]=255}if(4==h)for(b=0;b<n;b++)y=g+b<<2,v=s[m+(b>>1)]>>4-4*(1&b)&15,u[y]=u[y+1]=u[y+2]=17*(15-v),u[y+3]=255;if(8==h)for(b=0;b<n;b++)y=g+b<<2,v=s[m+b],u[y]=u[y+1]=u[y+2]=255-v,u[y+3]=255;if(16==h)for(b=0;b<n;b++)y=g+b<<2,v=s[(_=m+2*b)+1]<<8|s[_],u[y]=u[y+1]=u[y+2]=Math.min(255,255-~~(v*e)),u[y+3]=255}}else if(1==l){null==e&&(e=1/256);var w=3&s.length?null:new Float32Array(s.buffer);for(p=0;p<a;p++){if(m=p*d,g=p*n,1==h)for(b=0;b<n;b++)y=g+b<<2,v=s[m+(b>>3)]>>7-(7&b)&1,u[y]=u[y+1]=u[y+2]=255*v,u[y+3]=255;if(2==h)for(b=0;b<n;b++)y=g+b<<2,v=s[m+(b>>2)]>>6-2*(3&b)&3,u[y]=u[y+1]=u[y+2]=85*v,u[y+3]=255;if(8==h)for(b=0;b<n;b++)y=g+b<<2,v=s[m+b*c],u[y]=u[y+1]=u[y+2]=v,u[y+3]=255;if(16==h)for(b=0;b<n;b++)y=g+b<<2,v=s[(_=m+2*b)+1]<<8|s[_],u[y]=u[y+1]=u[y+2]=Math.min(255,~~(v*e)),u[y+3]=255;if(32==h)for(b=0;b<n;b++){var _;y=g+b<<2,v=w[_=(m>>>2)+b],u[y]=u[y+1]=u[y+2]=~~(.5+255*v),u[y+3]=255}}}else if(2==l)if(8==h){if(1==c)for(b=0;b<o;b++)u[4*b]=u[4*b+1]=u[4*b+2]=s[b],u[4*b+3]=255;if(3==c)for(b=0;b<o;b++){var k=3*b;u[y=b<<2]=s[k],u[y+1]=s[k+1],u[y+2]=s[k+2],u[y+3]=255}if(c>=4)for(b=0;b<o;b++)k=b*c,u[y=b<<2]=s[k],u[y+1]=s[k+1],u[y+2]=s[k+2],u[y+3]=s[k+3]}else if(16==h){if(4==c)for(b=0;b<o;b++)k=8*b+1,u[y=b<<2]=s[k],u[y+1]=s[k+2],u[y+2]=s[k+4],u[y+3]=s[k+6];if(3==c)for(b=0;b<o;b++)k=6*b+1,u[y=b<<2]=s[k],u[y+1]=s[k+2],u[y+2]=s[k+4],u[y+3]=255}else{if(32!=h)throw h;var B=new Float32Array(s.buffer),x=0;for(b=0;b<B.length;b++)x=Math.min(x,B[b]);if(x<0)for(b=0;b<s.length;b+=4){var E=s[b];s[b]=s[b+3],s[b+3]=E,E=s[b+1],s[b+1]=s[b+2],s[b+2]=E}var C=[];for(b=0;b<65536;b++)C.push(r(b/65535));for(b=0;b<B.length;b++){var A=Math.max(0,Math.min(1,B[b]));B[b]=C[~~(.5+65535*A)]}if(3==c)for(b=0;b<o;b++)k=3*b,u[y=b<<2]=~~(.5+255*B[k]),u[y+1]=~~(.5+255*B[k+1]),u[y+2]=~~(.5+255*B[k+2]),u[y+3]=255;else{if(4!=c)throw c;for(b=0;b<o;b++)k=4*b,u[y=b<<2]=~~(.5+255*B[k]),u[y+1]=~~(.5+255*B[k+1]),u[y+2]=~~(.5+255*B[k+2]),u[y+3]=~~(.5+255*B[k+3])}}else if(3==l){var I=t.t320,M=1<<h,S=8==h&&c>1&&t.t338&&0!=t.t338[0];for(p=0;p<a;p++)for(var P=0;P<n;P++){y=(b=p*n+P)<<2;var T=0,R=p*d;if(1==h)T=s[R+(P>>>3)]>>>7-(7&P)&1;else if(2==h)T=s[R+(P>>>2)]>>>6-2*(3&P)&3;else if(4==h)T=s[R+(P>>>1)]>>>4-4*(1&P)&15;else{if(8!=h)throw h;T=s[R+P*c]}u[y]=I[T]>>8,u[y+1]=I[M+T]>>8,u[y+2]=I[M+M+T]>>8,u[y+3]=S?s[R+P*c+1]:255}}else if(5==l){var F=c>4?1:0;for(b=0;b<o;b++){y=b<<2;var L=b*c;if(window.UDOC){var O=s[L],U=s[L+1],D=s[L+2],N=s[L+3],z=UDOC.C.cmykToRgb([O*(1/255),U*(1/255),D*(1/255),N*(1/255)]);u[y]=~~(.5+255*z[0]),u[y+1]=~~(.5+255*z[1]),u[y+2]=~~(.5+255*z[2])}else O=255-s[L],U=255-s[L+1],D=255-s[L+2],N=(255-s[L+3])*(1/255),u[y]=~~(O*N+.5),u[y+1]=~~(U*N+.5),u[y+2]=~~(D*N+.5);u[y+3]=255*(1-F)+s[L+4]*F}}else if(6==l&&t.t278){var G=t.t278[0];for(p=0;p<a;p+=G){b=p*n;for(var j=G*n,H=0;H<j;H++){y=4*(b+H),D=s[(L=3*b+4*(H>>>1))+(1&H)];var W=s[L+2]-128,q=s[L+3]-128,Z=D+((q>>2)+(q>>3)+(q>>5)),$=D-((W>>2)+(W>>4)+(W>>5))-((q>>1)+(q>>3)+(q>>4)+(q>>5)),V=D+(W+(W>>1)+(W>>2)+(W>>6));u[y]=Math.max(0,Math.min(255,Z)),u[y+1]=Math.max(0,Math.min(255,$)),u[y+2]=Math.max(0,Math.min(255,V)),u[y+3]=255}}}else if(32845==l)for(p=0;p<a;p++)for(P=0;P<n;P++){y=4*(p*n+P);var Y=s[1+(L=6*(p*n+P))]<<8|s[L],X=(Y=Math.pow(2,(Y+.5)/256-64),(s[L+3]+.5)/410),J=(s[L+5]+.5)/410,Q=9*X/(6*X-16*J+12),K=4*J/(6*X-16*J+12),tt=Q*Y/K,et=(1-Q-K)*Y/K;Z=2.69*tt-1.276*(D=Y)-.414*et,$=-1.022*tt+1.978*D+.044*et,V=.061*tt-.224*D+1.163*et,u[y]=255*r(Math.min(Z,1)),u[y+1]=255*r(Math.min($,1)),u[y+2]=255*r(Math.min(V,1)),u[y+3]=255}else i("Unknown Photometric interpretation: "+l);return u},t.replaceIMG=function(e){null==e&&(e=document.getElementsByTagName("img"));for(var r=["tif","tiff","dng","cr2","nef"],n=0;n<e.length;n++){var i=e[n],a=i.getAttribute("src");if(null!=a){var o=a.split(".").pop().toLowerCase();if(-1!=r.indexOf(o)){var s=new XMLHttpRequest;t._xhrs.push(s),t._imgs.push(i),s.open("GET",a),s.responseType="arraybuffer",s.onload=t._imgLoaded,s.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=t._xhrs.indexOf(e.target),n=t._imgs[r];t._xhrs.splice(r,1),t._imgs.splice(r,1),n.setAttribute("src",t.bufferToURI(e.target.response))},t.bufferToURI=function(e){var r=t.decode(e),n=r,i=0,a=n[0];r[0].subIFD&&(n=n.concat(r[0].subIFD));for(var o=0;o<n.length;o++){var s=n[o];if(!(null==s.t258||s.t258.length<3)){var u=s.t256*s.t257;u>i&&(i=u,a=s)}}t.decodeImage(e,a,r);var l=t.toRGBA8(a),h=a.width,c=a.height,f=document.createElement("canvas");f.width=h,f.height=c;var d=f.getContext("2d"),p=new ImageData(new Uint8ClampedArray(l.buffer),h,c);return d.putImageData(p,0,0),f.toDataURL()},t._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.ui32[0]},readASCII:function(t,e,r){for(var n="",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>8&255,t[e+1]=255&r},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+3]=i[0],e[r+2]=i[1],e[r+1]=i[2],e[r+0]=i[3]},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},writeASCII:function(t,e,r){for(var n=0;n<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=255&r,t[e+1]=r>>8&255},writeInt:function(e,r,n){var i=t._binBE.ui8;t._binBE.i32[0]=n,e[r+0]=i[0],e[r+1]=i[1],e[r+2]=i[2],e[r+3]=i[3]},writeUint:function(t,e,r){t[e]=r>>>0&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},writeASCII:t._binBE.writeASCII},t._copyTile=function(t,e,r,n,i,a,o,s){for(var u=Math.min(e,i-o),l=Math.min(r,a-s),h=0;h<l;h++)for(var c=(s+h)*i+o,f=h*e,d=0;d<u;d++)n[c+d]=t[f+d]},t.LosslessJpegDecode=function(){var t,e;function r(){return t[e++]}function n(){return t[e++]<<8|t[e++]}function i(t){for(var e=r(),n=[0,0,0,255],i=[],o=0;o<16;o++)i[o]=r();for(o=0;o<16;o++)for(var s=0;s<i[o];s++)n[a(n,0,o+1,1)+3]=r();var u=new Uint8Array(256);for(t[e]=[new Uint8Array(n),u],o=0;o<256;o++){for(var l=8,h=o,c=0;255==n[c+3]&&0!=l;)c=n[c+(h>>--l&1)];u[o]=c}}function a(t,e,r,n){if(255!=t[e+3])return 0;if(0==r)return e;for(var i=0;i<2;i++){0==t[e+i]&&(t[e+i]=t.length,t.push(0,0,n,255));var o=a(t,t[e+i],r-1,n+1);if(0!=o)return o}return 0}function o(t){for(var e=t.b,r=t.f;e<25&&t.a<t.d;){var n=t.data[t.a++];255!=n||t.c||t.a++,r=r<<8|n,e+=8}if(e<0)throw"e";t.b=e,t.f=r}function s(t,e){return e.b<t&&o(e),e.f>>(e.b-=t)&65535>>16-t}function u(t,e){var r=t[0],n=0,i=255;e.b<16&&o(e);var a=e.f>>e.b-8&255;for(i=r[(n=t[1][a])+3],e.b-=r[n+2];255==i;)i=r[(n=r[n+(e.f>>--e.b&1)])+3];return i}function l(t,e){return t<32768>>16-e&&(t+=1-(1<<e)),t}function h(t,e){var r=u(t,e);return 0==r?0:16==r?-32768:l(s(r,e),r)}function c(t,e,r,n,i,a){for(var o=0,s=0;s<a;s++){for(var u=s*e,l=0;l<e;l+=i){o++;for(var c=0;c<i;c++)t[u+l+c]=h(n[c],r)}if(0!=r.e&&o%r.e==0&&0!=s){for(var f=r.a,d=r.data;255!=d[f]||!(208<=d[f+1]&&d[f+1]<=215);)f--;r.a=f+2,r.f=0,r.b=0}}}function f(t,e){return l(s(t,e),t)}function d(t,e,r,n,i,a,o,s){for(var u=r*o,l=i;l<a;l++)t[l]+=1<<s-1;for(var h=o;h<u;h+=o)for(l=i;l<a;l++)t[h+l]+=t[h+l-o];for(var c=1;c<n;c++){var f=c*u;for(l=i;l<a;l++)t[f+l]+=t[f+l-u];for(h=o;h<u;h+=o)for(l=i;l<a;l++){var d=f+h+l,p=d-u,m=t[d-o],g=0;if(0==e)g=0;else if(1==e)g=m;else if(2==e)g=t[p];else if(3==e)g=t[p-o];else if(4==e)g=m+(t[p]-t[p-o]);else if(5==e)g=m+(t[p]-t[p-o]>>>1);else if(6==e)g=t[p]+(m-t[p-o]>>>1);else{if(7!=e)throw e;g=m+t[p]>>>1}t[d]+=g}}}return function(a){if(t=a,e=0,65496!=n())throw"e";for(var o=[],s=0,l=0,h=0,p=[],m=[],g=[],b=0,y=0,v=0;;){var w=n();if(65535!=w){var _=n();if(65475==w){l=r(),y=n(),v=n(),b=r();for(var k=0;k<b;k++){var B=r(),x=r();if(0!=r())throw"e";o[B]=[k,x>>4,15&x]}}else if(65476==w)for(var E=e+_-2;e<E;)i(m);else{if(65498==w){for(e++,k=0;k<b;k++){var C=o[r()];g[C[0]]=m[r()>>>4],p[C[0]]=C.slice(1)}s=r(),e+=2;break}65501==w?h=n():e+=_-2}}else e--}var A=new(l>8?Uint16Array:Uint8Array)(y*v*b),I={b:0,f:0,c:8==s,a:e,data:t,d:t.length,e:h};if(I.c)!function(r,n,i,a,o){for(var s=t.length-e,l=0;l<s;l+=4){var h=t[e+l];t[e+l]=t[e+l+3],t[e+l+3]=h,h=t[e+l+1],t[e+l+1]=t[e+l+2],t[e+l+2]=h}for(var c=0;c<o;c++)for(var d=32768,p=32768,m=0;m<n;m+=2){var g=u(a,i),b=u(a,i);0!=g&&(d+=f(g,i)),0!=b&&(p+=f(b,i)),r[c*n+m]=65535&d,r[c*n+m+1]=65535&p}}(A,v*b,I,g[0],y);else{var M=[],S=0,P=0;for(k=0;k<b;k++){var T=p[k];(j=T[0])>S&&(S=j),(G=T[1])>P&&(P=G),M.push(j*G)}if(1!=S||1!=P){if(3!=b||1!=M[1]||1!=M[2])throw"e";if(2!=S||1!=P&&2!=P)throw"e";var R=[],F=0;for(k=0;k<b;k++){for(var L=0;L<M[k];L++)R.push(g[k]);F+=M[k]}var O=v/S,U=y/P,D=O*U;c(A,O*F,I,R,F,U),d(A,s,O,U,F-2,F,F,l);var N=new Uint16Array(D*M[0]);if(2==S&&2==P){for(k=0;k<D;k++)N[4*k]=A[6*k],N[4*k+1]=A[6*k+1],N[4*k+2]=A[6*k+2],N[4*k+3]=A[6*k+3];for(d(N,s,4*O,U,0,1,1,l),k=0;k<D;k++)A[6*k]=N[4*k],A[6*k+1]=N[4*k+1],A[6*k+2]=N[4*k+2],A[6*k+3]=N[4*k+3]}if(2==S&&1==P){for(k=0;k<D;k++)N[2*k]=A[4*k],N[2*k+1]=A[4*k+1];for(d(N,s,2*O,U,0,1,1,l),k=0;k<D;k++)A[4*k]=N[2*k],A[4*k+1]=N[2*k+1]}for(var z=A.slice(0),G=0;G<y;G++)if(2==P)for(var j=0;j<v;j++){var H=((G>>>1)*O+(j>>>1))*F,W=2*(1&G)+(1&j);A[q=(G*v+j)*b]=z[H+W],A[q+1]=z[H+4],A[q+2]=z[H+5]}else for(j=0;j<v;j++){var q;H=(G*O+(j>>>1))*F,W=1&j,A[q=(G*v+j)*b]=z[H+W],A[q+1]=z[H+2],A[q+2]=z[H+3]}}else if(c(A,v*b,I,g,b,y),0==h)d(A,s,v,y,0,b,b,l);else{var Z=Math.floor(h/v);for(G=0;G<y;G+=Z){var $=A.slice(G*v*b,(G+Z)*v*b);d($,s,v,Z,0,b,b,l),A.set($,G*v*b)}}}return A}}(),function(){var e=2,r=4,n=5,i=6,a=7,o=12,s=13,u=14,l=15,h=17;function c(t){for(var e=[[],[],[]],r=Math.max(2,t.w+32>>>6),n=0;n<3;n++)for(var i=0;i<41;i++)e[n][i]=[r,1];return e}function f(t,e){var r=0,n=8-t.a;if(t.j,t.a,e){if(e>=n)do{r<<=n,e-=n,r|=t[t.j]&(1<<n)-1,t.j++,n=8}while(e>=8);e&&(r<<=e,n-=e,r|=t[t.j]>>>n&(1<<e)-1),t.a=8-n}return r}function d(t,e,r,n,i,a,o,s){null==s&&(s=0);var u,l,h,c,d,p,m=a+1,g=m%2,b=0,y=n[i],v=n[i-1],w=n[i-2][m],_=v[m-1],k=v[m],B=v[m+1],x=y[m-1],E=y[m+1],C=Math.abs;if(g&&(h=C(B-k),c=C(w-k),d=C(_-k)),g){if(p=(p=h>d&&c<h?w+_:h<d&&c<d?w+B:B+_)+2*k>>>2,s)return void(y[m]=p);u=e.t*e.c[t.g+k-w]+e.c[t.g+_-k]}else p=k>_&&k>B||k<_&&k<B?E+x+2*k>>>2:x+E>>>1,u=e.t*e.c[t.g+k-_]+e.c[t.g+_-x];l=C(u);var A=function(t){for(var e=-1,r=0;!r;e++)r=t[t.j]>>>7-t.a&1,t.a++,t.a&=7,t.a||t.j++;return e}(r);if(A<t.n-e.v-1){var I=function(t,e){var r=0;if(e<t)for(;r<=14&&e<<++r<t;);return r}(o[l][0],o[l][1]);b=f(r,I)+(A<<I)}else b=f(r,e.v)+1;b=1&b?-1-(b>>>1):b>>>1,o[l][0]+=C(b),o[l][1]==t.f&&(o[l][0]>>>=1,o[l][1]>>>=1),o[l][1]++,p=u<0?p-b:p+b,t.i&&(p<0?p+=e.w:p>t.g&&(p-=e.w)),y[m]=p>=0?Math.min(p,t.g):0}function p(t,e,r){for(var n=t[0].length,i=e;i<=r;i++)t[i][0]=t[i-1][1],t[i][n-1]=t[i-1][n-2]}function m(t){p(t,a,o),p(t,e,r),p(t,l,h)}function g(t,e,n,i,a,o,u,l,h,c,f,p,g){for(var b=0,y=1,v=a<s&&a>r;y<t.m;)b<t.m&&(d(t,e,n,i,a,b,u[h],t.h&&(v&&c||!v&&(f||(b&p)==g))),d(t,e,n,i,o,b,u[h],t.h&&(!v&&c||v&&(f||(b&p)==g))),b+=2),b>8&&(d(t,e,n,i,a,y,l[h]),d(t,e,n,i,o,y,l[h]),y+=2);m(i)}function b(t,n,i,s,u,c){g(t,n,i,s,e,a,u,c,0,0,1,0,8),g(t,n,i,s,8,l,u,c,1,0,1,0,8),g(t,n,i,s,3,9,u,c,2,1,0,3,0),g(t,n,i,s,10,16,u,c,0,0,0,3,2),g(t,n,i,s,r,11,u,c,1,0,0,3,2),g(t,n,i,s,o,h,u,c,2,1,0,3,0)}function y(t,r,n,i,o,s){var u=s.length,h=t.l;o+1==t.s&&(h=t.e-o*t.l);for(var c=6*t.e*i+o*t.l,f=0;f<6;f++){for(var d=0;d<h;d++){var p,m=s[f%u][d%u];p=0==m?e+(f>>>1):2==m?l+(f>>>1):a+f;var g=t.h?(2*d/3&2147483646|d%3&1)+(d%3>>>1):d>>>1;r[c+d]=n[p][g+1]}c+=t.e}}t._decompressRAF=function(a,l){var f=function(e){var r=t._binBE.readUshort,n={b:r(e,0),i:e[2],C:e[3],u:e[4],q:r(e,5),k:r(e,7),e:r(e,9),l:r(e,11),s:e[13],d:r(e,14)};if(18771!=n.b||n.i>1||n.q<6||n.q%6||n.e<768||n.e%24||768!=n.l||n.k<n.l||n.k%n.l||n.k-n.e>=n.l||n.s>16||n.s!=n.k/n.l||n.s!=Math.ceil(n.e/n.l)||n.d!=n.q/6||12!=n.u&&14!=n.u&&16!=n.u||16!=n.C&&0!=n.C)throw"Invalid data";if(0==n.i)throw"Not implemented. We need this file!";return n.h=16==n.C,n.m=0|(n.h?2*n.l/3:n.l>>>1),n.A=n.m+2,n.f=64,n.g=(1<<n.u)-1,n.n=4*n.u,n}(a),d=function(e,r){var n=new Array(r.s),i=4*r.s,a=16+i;12&i&&(a+=16-(12&i));for(var o=0,s=16;o<r.s;s+=4){var u=t._binBE.readUint(e,s);n[o]=e.slice(a,a+u),n[o].j=0,n[o].a=0,a+=u,o++}if(a!=e.length)throw"Invalid data";return n}(a,f),p=function(t){var e={c:new Int8Array(2<<t.u)};return function(t,e,r){var n=[0,18,67,276,r];t.o=0,t.w=(n[4]+0)/1+1|0,t.v=Math.ceil(Math.log2(t.w)),t.t=9,function(t,e){for(var r=-e[4],n=0;r<=e[4];n++,r++)t[n]=r<=-e[3]?-4:r<=-e[2]?-3:r<=-e[1]?-2:r<-e[0]?-1:r<=e[0]?0:r<e[1]?1:r<e[2]?2:r<e[3]?3:4}(t.c,n)}(e,0,t.g),e}(f),g=new Int16Array(f.e*f.q);null==l&&(l=f.h?[[1,1,0,1,1,2],[1,1,2,1,1,0],[2,0,1,0,2,1],[1,1,2,1,1,0],[1,1,0,1,1,2],[0,2,1,2,0,1]]:[[0,1],[3,2]]);for(var v=[[0,3],[1,r],[n,11],[i,o],[s,16],[u,h]],w=[],_=0;_<18;_++)w[_]=new Uint16Array(f.A);for(var k=0;k<f.s;k++){var B=c(p),x=c(p);for(_=0;_<18;_++)for(var E=0;E<f.A;E++)w[_][E]=0;for(var C=0;C<f.d;C++){for(b(f,p,d[k],w,B,x),_=0;_<6;_++)for(E=0;E<f.A;E++)w[v[_][0]][E]=w[v[_][1]][E];for(y(f,g,w,C,k,l),_=e;_<18;_++)if(-1==[n,i,s,u].indexOf(_))for(E=0;E<f.A;E++)w[_][E]=0;m(w)}}return g}}()}(e,r(51668))}()},94643:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},36622:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},81135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},40537:(t,e,r)=>{var n=r(65606),i=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=a)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),u=n[r];r<a;u=n[++r])m(u)||!w(u)?o+=" "+u:o+=" "+s(u);return o},e.deprecate=function(t,i){if(y(r.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===n.noDeprecation)return t;var a=!1;return function(){if(!a){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),h(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function l(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&B(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=h(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return g(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),k(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(r);if(0===o.length){if(B(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(k(r))return c(r)}var l,w="",x=!1,E=["{","}"];return d(r)&&(x=!0,E=["[","]"]),B(r)&&(w=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),k(r)&&(w=" "+c(r)),0!==o.length||x&&0!=r.length?n<0?v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=x?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)A(e,String(o))?a.push(f(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(f(t,e,r,n,i,!0))})),a}(t,r,n,s,o):o.map((function(e){return f(t,r,n,s,e,x)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,w,E)):E[0]+w+E[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),A(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function y(t){return void 0===t}function v(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"==typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===x(t)}function k(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function B(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(y(a)&&(a=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=y,e.isRegExp=v,e.isObject=w,e.isDate=_,e.isError=k,e.isFunction=B,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(81135);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[E((t=new Date).getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":"),[t.getDate(),C[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(36622),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},78624:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DOMException:()=>_,Headers:()=>h,Request:()=>b,Response:()=>v,fetch:()=>k});var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function f(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function d(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(i.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,i,a=c(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,r=f(e=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=s(t),e=u(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[s(t)]},h.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},h.prototype.set=function(t,e){this.map[s(t)]=u(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),l(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),l(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),l(t)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(t,e){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,a=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(i=(r=e.method||this.method||"GET").toUpperCase(),g.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function v(t,e){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var w=[301,302,303,307,308];v.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})};var _=n.DOMException;try{new _}catch(t){(_=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function k(t,e){return new Promise((function(r,a){var o=new b(t,e);if(o.signal&&o.signal.aborted)return a(new _("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}if(l.onload=function(){var t,e,n={statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}})),e)};0===o.url.indexOf("file://")&&(l.status<200||l.status>599)?n.status=200:n.status=l.status,n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var i="response"in l?l.response:l.responseText;setTimeout((function(){r(new v(i,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){a(new _("Aborted","AbortError"))}),0)},l.open(o.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&(l.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof h||n.Headers&&e.headers instanceof n.Headers)){var f=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){f.push(s(t)),l.setRequestHeader(t,u(e.headers[t]))})),o.headers.forEach((function(t,e){-1===f.indexOf(e)&&l.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){l.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&o.signal.removeEventListener("abort",c)}),l.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,n.fetch||(n.fetch=k,n.Headers=h,n.Request=b,n.Response=v)},69005:(t,e,r)=>{"use strict";var n=r(89840),i=r(37056),a=r(78023),o=r(57510);function s(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function u(t,e,r){return l(e=s(t,e,r))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=h.response?h.response:h.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(h),b)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,y)}function o(){if(!l){var e;clearTimeout(c),e=t.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var i=y,o=null;return 0!==e?(i={body:n(),statusCode:e,method:d,headers:{},url:f,rawRequest:h},h.getAllResponseHeaders&&(i.headers=a(h.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),r(o,i,i.body)}}var s,l,h=t.xhr||null;h||(h=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var c,f=h.url=t.uri||t.url,d=h.method=t.method||"GET",p=t.body||t.data,m=h.headers=t.headers||{},g=!!t.sync,b=!1,y={body:void 0,headers:{},statusCode:0,method:d,url:f,rawRequest:h};if("json"in t&&!1!==t.json&&(b=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),h.onreadystatechange=function(){4===h.readyState&&setTimeout(o,0)},h.onload=o,h.onerror=i,h.onprogress=function(){},h.onabort=function(){l=!0},h.ontimeout=i,h.open(d,f,!g,t.username,t.password),g||(h.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(c=setTimeout((function(){if(!l){l=!0,h.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),h.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&h.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(h.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(h),h.send(p||null),h}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),l(r)}}))},99087:t=>{t.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,"application/xml")}:void 0!==self.ActiveXObject&&new self.ActiveXObject("Microsoft.XMLDOM")?function(t){var e=new self.ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e}:function(t){var e=document.createElement("div");return e.innerHTML=t,e}},57510:t=>{t.exports=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty},85966:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/Roboto72White.fnt"},47707:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/Roboto72White.png"},60261:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoBlack72White.fnt"},55560:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoBlack72White.png"},13773:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoMono72White.fnt"},53968:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoMono72White.png"},6758:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoSlab72White.fnt"},25971:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoSlab72White.png"},73711:()=>{},25359:()=>{},15340:()=>{},79838:()=>{},54428:()=>{},4633:(t,e,r)=>{var n=r(73738).default;function i(){"use strict";t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new R(n||[]);return s(a,"_invoke",{value:M(t,r,o)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var m="suspendedStart",g="suspendedYield",b="executing",y="completed",v={};function w(){}function _(){}function k(){}var B={};f(B,l,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(F([])));E&&E!==a&&o.call(E,l)&&(B=E);var C=k.prototype=w.prototype=Object.create(B);function A(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(i,a,s,u){var l=p(t[i],t,a);if("throw"!==l.type){var h=l.arg,c=h.value;return c&&"object"==n(c)&&o.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(c).then((function(t){h.value=t,s(h)}),(function(t){return r("throw",t,s,u)}))}u(l.arg)}var i;s(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(t,r,n){var i=m;return function(a,o){if(i===b)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=S(s,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=b;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?y:g,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=y,n.method="throw",n.arg=l.arg)}}}function S(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=p(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=k,s(C,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:_,configurable:!0}),_.displayName=f(k,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,f(t,c,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},A(I.prototype),f(I.prototype,h,(function(){return this})),r.AsyncIterator=I,r.async=function(t,e,n,i,a){void 0===a&&(a=Promise);var o=new I(d(t,e,n,i),a);return r.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(C),f(C,c,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=F,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},73738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},65565:(t,e,r)=>{var n=r(65606),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},l=(t=>(e,r)=>t&&t.get(e)||(r=((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of o(e))s.call(t,r)||i(t,r,{get:()=>e[r],enumerable:!(n=a(e,r))||n.enumerable});return t})(i({},"__esModule",{value:!0}),e),t&&t.set(e,r),r))("undefined"!=typeof WeakMap?new WeakMap:0),h=(t,e,r)=>(((t,e,r)=>{e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r),c={};u(c,{applyPalette:()=>te,applyPaletteSync:()=>Kt,buildPalette:()=>Qt,buildPaletteSync:()=>Jt,constants:()=>f,conversion:()=>b,distance:()=>H,image:()=>Lt,palette:()=>ot,quality:()=>Wt,utils:()=>ft});var f={};u(f,{bt709:()=>d});var d={};u(d,{Y:()=>p,x:()=>m,y:()=>g});var p=(t=>(t[t.RED=.2126]="RED",t[t.GREEN=.7152]="GREEN",t[t.BLUE=.0722]="BLUE",t[t.WHITE=1]="WHITE",t))(p||{}),m=(t=>(t[t.RED=.64]="RED",t[t.GREEN=.3]="GREEN",t[t.BLUE=.15]="BLUE",t[t.WHITE=.3127]="WHITE",t))(m||{}),g=(t=>(t[t.RED=.33]="RED",t[t.GREEN=.6]="GREEN",t[t.BLUE=.06]="BLUE",t[t.WHITE=.329]="WHITE",t))(g||{}),b={};function y(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function v(t,e,r){return{x:.4124*(t=y(t/255))+.3576*(e=y(e/255))+.1805*(r=y(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}u(b,{lab2rgb:()=>j,lab2xyz:()=>N,rgb2hsl:()=>I,rgb2lab:()=>F,rgb2xyz:()=>v,xyz2lab:()=>R,xyz2rgb:()=>G});var w={};function _(t){return t*(Math.PI/180)}function k(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function B(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function x(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function E(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function C(t){return t>255?t=255:t<0&&(t=0),t}function A(t,e){const r=typeof t[0];let n;if("number"===r||"string"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function I(t,e,r){const n=B(t,e,r),i=k(t,e,r),a=i-n,o=(n+i)/510;let s=0;o>0&&o<1&&(s=a/(o<.5?i+n:510-i-n));let u=0;return a>0&&(u=i===t?(e-r)/a:i===e?2+(r-t)/a:4+(t-e)/a,u*=60,u<0&&(u+=360)),{h:u,s,l:o}}u(w,{degrees2radians:()=>_,inRange0to255:()=>C,inRange0to255Rounded:()=>E,intInRange:()=>x,max3:()=>k,min3:()=>B,stableSort:()=>A});var M=.95047,S=1,P=1.08883;function T(t){return t>.008856?t**(1/3):7.787*t+16/116}function R(t,e,r){if(t=T(t/M),e=T(e/S),r=T(r/P),116*e-16<0)throw new Error("xxx");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function F(t,e,r){const n=v(t,e,r);return R(n.x,n.y,n.z)}var L=.95047,O=1,U=1.08883;function D(t){return t>.206893034?t**3:(t-16/116)/7.787}function N(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:L*D(e/500+n),y:O*D(n),z:U*D(i)}}function z(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function G(t,e,r){const n=z(3.2406*t+-1.5372*e+-.4986*r),i=z(-.9689*t+1.8758*e+.0415*r),a=z(.0557*t+-.204*e+1.057*r);return{r:E(255*n),g:E(255*i),b:E(255*a)}}function j(t,e,r){const n=N(t,e,r);return G(n.x,n.y,n.z)}var H={};u(H,{AbstractDistanceCalculator:()=>W,AbstractEuclidean:()=>J,AbstractManhattan:()=>et,CIE94GraphicArts:()=>$,CIE94Textiles:()=>Z,CIEDE2000:()=>Y,CMetric:()=>X,Euclidean:()=>Q,EuclideanBT709:()=>K,EuclideanBT709NoAlpha:()=>tt,Manhattan:()=>rt,ManhattanBT709:()=>it,ManhattanNommyde:()=>nt,PNGQuant:()=>at});var W=class{constructor(){h(this,"_maxDistance"),h(this,"_whitePoint"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},q=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=F(C(t*this._whitePoint.r),C(e*this._whitePoint.g),C(r*this._whitePoint.b)),l=F(C(i*this._whitePoint.r),C(a*this._whitePoint.g),C(o*this._whitePoint.b)),h=u.L-l.L,c=u.a-l.a,f=u.b-l.b,d=Math.sqrt(u.a*u.a+u.b*u.b),p=d-Math.sqrt(l.a*l.a+l.b*l.b);let m=c*c+f*f-p*p;m=m<0?0:Math.sqrt(m);const g=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((h/this._Kl)**2+(p/(1+this._K1*d))**2+(m/(1+this._K2*d))**2+g**2)}},Z=class extends q{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},$=class extends q{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},V=class extends W{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+V._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+V._pow25to7)),i=V._deg30InRad*Math.exp(-(((t-V._deg275InRad)/V._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-V._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+V._deg6InRad)-.2*Math.cos(4*t-V._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=V._deg180InRad?i/2:i<V._deg360InRad?(i+V._deg360InRad)/2:(i-V._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=V._deg180InRad?r-n:r<=n?r-n+V._deg360InRad:r-n-V._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,a,o,s){const u=F(C(t*this._whitePoint.r),C(e*this._whitePoint.g),C(r*this._whitePoint.b)),l=F(C(i*this._whitePoint.r),C(a*this._whitePoint.g),C(o*this._whitePoint.b)),h=(s-n)*this._whitePoint.a*V._kA,c=this.calculateRawInLab(u,l);return Math.sqrt(c+h*h)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,a=e.L,o=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(o*o+s*s))/2)**7,l=.5*(1-Math.sqrt(u/(u+V._pow25to7))),h=(1+l)*n,c=(1+l)*o,f=Math.sqrt(h*h+i*i),d=Math.sqrt(c*c+s*s),p=f*d,m=V._calculatehp(i,h),g=V._calculatehp(s,c),b=Math.abs(m-g),y=a-r,v=d-f,w=V._calculate_dHp(p,b,g,m),_=V._calculate_ahp(p,b,m,g),k=(f+d)/2,B=((r+a)/2-50)**2,x=v/(1+.045*k),E=w/(1+.015*V._calculateT(_)*k);return(y/(1+.015*B/Math.sqrt(20+B)))**2+x**2+E**2+V._calculateRT(_,k)*x*E}},Y=V;h(Y,"_kA",25/255),h(Y,"_pow25to7",25**7),h(Y,"_deg360InRad",_(360)),h(Y,"_deg180InRad",_(180)),h(Y,"_deg30InRad",_(30)),h(Y,"_deg6InRad",_(6)),h(Y,"_deg63InRad",_(63)),h(Y,"_deg275InRad",_(275)),h(Y,"_deg25InRad",_(25));var X=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=(t+i)/2*this._whitePoint.r,l=(t-i)*this._whitePoint.r,h=(e-a)*this._whitePoint.g,c=(r-o)*this._whitePoint.b,f=((512+u)*l*l>>8)+4*h*h+((767-u)*c*c>>8),d=(s-n)*this._whitePoint.a;return Math.sqrt(f+d*d)}_setDefaults(){}},J=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=i-t,l=a-e,h=o-r,c=s-n;return Math.sqrt(this._kR*u*u+this._kG*l*l+this._kB*h*h+this._kA*c*c)}},Q=class extends J{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},K=class extends J{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},tt=class extends J{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},et=class extends W{calculateRaw(t,e,r,n,i,a,o,s){let u=i-t,l=a-e,h=o-r,c=s-n;return u<0&&(u=0-u),l<0&&(l=0-l),h<0&&(h=0-h),c<0&&(c=0-c),this._kR*u+this._kG*l+this._kB*h+this._kA*c}},rt=class extends et{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},nt=class extends et{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},it=class extends et{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},at=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,a*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,o*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},ot={};u(ot,{AbstractPaletteQuantizer:()=>st,ColorHistogram:()=>xt,NeuQuant:()=>vt,NeuQuantFloat:()=>kt,RGBQuant:()=>Ct,WuColorCube:()=>Tt,WuQuant:()=>Ft});var st=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error("unreachable")}},ut=class{constructor(){h(this,"r"),h(this,"g"),h(this,"b"),h(this,"a"),h(this,"uint32"),h(this,"rgba"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new ut;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new ut;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new ut;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},lt=class{constructor(){h(this,"_pointArray"),h(this,"_width"),h(this,"_height"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new lt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=ut.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement("canvas");return n.width=e,n.height=r,n.getContext("2d").drawImage(t,0,0,e,r,0,0,e,r),lt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext("2d").getImageData(0,0,e,r);return lt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return lt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case"[object Uint8ClampedArray]":case"[object Uint8Array]":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return lt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new lt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=ut.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return lt.fromUint32Array(n,e,r)}};function ht(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var ct=class{constructor(){h(this,"_pointContainer"),h(this,"_pointArray",[]),h(this,"_i32idx",{}),this._pointContainer=new lt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return"number"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(""+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,a=this._pointArray.length;i<a;i++){const a=this._pointArray[i],o=t.calculateRaw(e.r,e.g,e.b,e.a,a.r,a.g,a.b,a.a);o<n&&(n=o,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=I(t.r,t.g,t.b),n=I(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+ht(r.h,10),a=(e.r===e.g&&e.g===e.b?0:1+ht(n.h,10))-i;if(a)return-a;const o=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-o!=0)return s-o;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},ft={};u(ft,{HueStatistics:()=>pt,Palette:()=>ct,Point:()=>ut,PointContainer:()=>lt,ProgressTracker:()=>gt,arithmetic:()=>w});var dt=class{constructor(){h(this,"num",0),h(this,"cols",[])}},pt=class{constructor(t,e){h(this,"_numGroups"),h(this,"_minCols"),h(this,"_stats"),h(this,"_groupsFull"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new dt;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+ht(I(e,r,n).h,this._numGroups),a=this._stats[i],o=this._minCols;a.num++,a.num>o||(a.num===o&&this._groupsFull++,a.num<=o&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},mt=class{constructor(t,e){h(this,"progress"),h(this,"_step"),h(this,"_range"),h(this,"_last"),h(this,"_progressRange"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(mt.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},gt=mt;h(gt,"steps",100);var bt=class{constructor(t){h(this,"r"),h(this,"g"),h(this,"b"),h(this,"a"),this.r=this.g=this.b=this.a=t}toPoint(){return ut.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},yt=class extends st{constructor(t,e=256){super(),h(this,"_pointArray"),h(this,"_networkSize"),h(this,"_network"),h(this,"_sampleFactor"),h(this,"_radPower"),h(this,"_freq"),h(this,"_bias"),h(this,"_distance"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new bt((t<<11)/this._networkSize|0),this._freq[t]=yt._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<yt._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,a=n/yt._nCycles|0,o=yt._initAlpha,s=(this._networkSize>>3)*yt._radiusBias,u=s>>yt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*yt._radBias/(u*u))>>>0;i=e<yt._minpicturebytes?1:e%yt._prime1!=0?yt._prime1:e%yt._prime2!=0?yt._prime2:e%yt._prime3!=0?yt._prime3:yt._prime4;const l=new gt(n,99);for(let t=0,h=0;t<n;){l.shouldNotify(t)&&(yield{progress:l.progress});const n=this._pointArray[h],c=n.b<<3,f=n.g<<3,d=n.r<<3,p=n.a<<3,m=this._contest(c,f,d,p);if(this._alterSingle(o,m,c,f,d,p),0!==u&&this._alterNeighbour(u,m,c,f,d,p),h+=i,h>=e&&(h-=e),t++,0===a&&(a=1),t%a==0){o-=o/r|0,s-=s/yt._radiusDecrease|0,u=s>>yt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*yt._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ct;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,h=1;for(;u<s||l>o;){const t=this._radPower[h++]/yt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(l>o){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=yt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const l=this._network[u],h=8160*this._distance.calculateNormalized(l,{r,g:e,b:t,a:n})|0;h<i&&(i=h,o=u);const c=h-(this._bias[u]>>yt._initialBiasShift-3);c<a&&(a=c,s=u);const f=this._freq[u]>>yt._betaShift;this._freq[u]-=f,this._bias[u]+=f<<yt._gammaShift}return this._freq[o]+=yt._beta,this._bias[o]-=yt._betaGamma,s}},vt=yt;h(vt,"_prime1",499),h(vt,"_prime2",491),h(vt,"_prime3",487),h(vt,"_prime4",503),h(vt,"_minpicturebytes",yt._prime4),h(vt,"_nCycles",100),h(vt,"_initialBiasShift",16),h(vt,"_initialBias",1<<yt._initialBiasShift),h(vt,"_gammaShift",10),h(vt,"_betaShift",10),h(vt,"_beta",yt._initialBias>>yt._betaShift),h(vt,"_betaGamma",yt._initialBias<<yt._gammaShift-yt._betaShift),h(vt,"_radiusBiasShift",6),h(vt,"_radiusBias",1<<yt._radiusBiasShift),h(vt,"_radiusDecrease",30),h(vt,"_alphaBiasShift",10),h(vt,"_initAlpha",1<<yt._alphaBiasShift),h(vt,"_radBiasShift",8),h(vt,"_radBias",1<<yt._radBiasShift),h(vt,"_alphaRadBiasShift",yt._alphaBiasShift+yt._radBiasShift),h(vt,"_alphaRadBias",1<<yt._alphaRadBiasShift);var wt=class{constructor(t){h(this,"r"),h(this,"g"),h(this,"b"),h(this,"a"),this.r=this.g=this.b=this.a=t}toPoint(){return ut.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},_t=class extends st{constructor(t,e=256){super(),h(this,"_pointArray"),h(this,"_networkSize"),h(this,"_network"),h(this,"_sampleFactor"),h(this,"_radPower"),h(this,"_freq"),h(this,"_bias"),h(this,"_distance"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new wt((t<<11)/this._networkSize),this._freq[t]=_t._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<_t._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,a=n/_t._nCycles|0,o=_t._initAlpha,s=(this._networkSize>>3)*_t._radiusBias,u=s>>_t._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*_t._radBias/(u*u));i=e<_t._minpicturebytes?1:e%_t._prime1!=0?_t._prime1:e%_t._prime2!=0?_t._prime2:e%_t._prime3!=0?_t._prime3:_t._prime4;const l=new gt(n,99);for(let t=0,h=0;t<n;){l.shouldNotify(t)&&(yield{progress:l.progress});const n=this._pointArray[h],c=n.b<<3,f=n.g<<3,d=n.r<<3,p=n.a<<3,m=this._contest(c,f,d,p);if(this._alterSingle(o,m,c,f,d,p),0!==u&&this._alterNeighbour(u,m,c,f,d,p),h+=i,h>=e&&(h-=e),t++,0===a&&(a=1),t%a==0){o-=o/r,s-=s/_t._radiusDecrease,u=s>>_t._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*_t._radBias/(u*u))}}}_buildPalette(){const t=new ct;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,h=1;for(;u<s||l>o;){const t=this._radPower[h++]/_t._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(l>o){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=_t._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const l=this._network[u],h=8160*this._distance.calculateNormalized(l,{r,g:e,b:t,a:n});h<i&&(i=h,o=u);const c=h-(this._bias[u]>>_t._initialBiasShift-3);c<a&&(a=c,s=u);const f=this._freq[u]>>_t._betaShift;this._freq[u]-=f,this._bias[u]+=f<<_t._gammaShift}return this._freq[o]+=_t._beta,this._bias[o]-=_t._betaGamma,s}},kt=_t;h(kt,"_prime1",499),h(kt,"_prime2",491),h(kt,"_prime3",487),h(kt,"_prime4",503),h(kt,"_minpicturebytes",_t._prime4),h(kt,"_nCycles",100),h(kt,"_initialBiasShift",16),h(kt,"_initialBias",1<<_t._initialBiasShift),h(kt,"_gammaShift",10),h(kt,"_betaShift",10),h(kt,"_beta",_t._initialBias>>_t._betaShift),h(kt,"_betaGamma",_t._initialBias<<_t._gammaShift-_t._betaShift),h(kt,"_radiusBiasShift",6),h(kt,"_radiusBias",1<<_t._radiusBiasShift),h(kt,"_radiusDecrease",30),h(kt,"_alphaBiasShift",10),h(kt,"_initAlpha",1<<_t._alphaBiasShift),h(kt,"_radBiasShift",8),h(kt,"_radBias",1<<_t._radBiasShift),h(kt,"_alphaRadBiasShift",_t._alphaBiasShift+_t._radBiasShift),h(kt,"_alphaRadBias",1<<_t._alphaRadBiasShift);var Bt=class{constructor(t,e){h(this,"_method"),h(this,"_hueStats"),h(this,"_histogram"),h(this,"_initColors"),h(this,"_minHueCols"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new pt(Bt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=A(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let a=r;const o=t.length;for(;a<o&&this._histogram[t[a]]===i;)e.push(t[a++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error("Incorrect method")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=Bt._boxSize[0],a=Bt._boxSize[1],o=i*a,s=this._makeBoxes(e,r,i,a),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/o)*Bt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,a=(n.y+n.h-1)*e+(n.x+n.w-1),o=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?o:1}while(u<=a)}_makeBoxes(t,e,r,n){const i=t%r,a=e%n,o=t-i,s=e-a,u=[];for(let l=0;l<e;l+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:l,w:e===o?i:r,h:l===s?a:n});return u}},xt=Bt;h(xt,"_boxSize",[64,64]),h(xt,"_boxPixels",2),h(xt,"_hueGroups",10);var Et=class{constructor(t,e,r){h(this,"index"),h(this,"color"),h(this,"distance"),this.index=t,this.color=e,this.distance=r}},Ct=class extends st{constructor(t,e=256,r=2){super(),h(this,"_colors"),h(this,"_initialDistance"),h(this,"_distanceIncrement"),h(this,"_histogram"),h(this,"_distance"),this._distance=t,this._colors=e,this._histogram=new xt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error("No colors in image");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ct,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(ut.createByUint32(t[e])),n[e]=1;const i=r.length,a=[];let o=i,s=this._initialDistance;const u=new gt(o-this._colors,99);for(;o>this._colors;){a.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-o)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(a.push(new Et(u,t,i)),n[u]=0,o--)}}s+=o>3*this._colors?this._initialDistance:this._distanceIncrement}if(o<this._colors){A(a,((t,e)=>e.distance-t.distance));let t=0;for(;o<this._colors&&t<a.length;)n[a[t].index]=1,o++,t++}let l=r.length;for(let t=l-1;t>=0;t--)0===n[t]&&(t!==l-1&&(r[t]=r[l-1]),--l);r.length=l,e.sort(),yield{palette:e,progress:100}}};function At(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function It(t,e,r,n){const i=new Array(t);for(let a=0;a<t;a++){i[a]=new Array(e);for(let t=0;t<e;t++){i[a][t]=new Array(r);for(let e=0;e<r;e++){i[a][t][e]=new Array(n);for(let r=0;r<n;r++)i[a][t][e][r]=0}}}return i}function Mt(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function St(t,e,r,n,i){for(let a=0;a<e;a++){t[a]=[];for(let e=0;e<r;e++){t[a][e]=[];for(let r=0;r<n;r++)t[a][e][r]=i}}}function Pt(t,e,r){for(let n=0;n<e;n++)t[n]=r}var Tt=class{constructor(){h(this,"redMinimum"),h(this,"redMaximum"),h(this,"greenMinimum"),h(this,"greenMaximum"),h(this,"blueMinimum"),h(this,"blueMaximum"),h(this,"volume"),h(this,"alphaMinimum"),h(this,"alphaMaximum")}},Rt=class extends st{constructor(t,e=256,r=5){super(),h(this,"_reds"),h(this,"_greens"),h(this,"_blues"),h(this,"_alphas"),h(this,"_sums"),h(this,"_weights"),h(this,"_momentsRed"),h(this,"_momentsGreen"),h(this,"_momentsBlue"),h(this,"_momentsAlpha"),h(this,"_moments"),h(this,"_table"),h(this,"_pixels"),h(this,"_cubes"),h(this,"_colors"),h(this,"_significantBitsPerChannel"),h(this,"_maxSideIndex"),h(this,"_alphaMaxSideIndex"),h(this,"_sideSize"),h(this,"_alphaSideSize"),h(this,"_distance"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ct;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,a=this._blues[e]/r,o=this._alphas[e]/r,s=ut.createByRGBA(0|n,0|i,0|a,0|o);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=At(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],a=[];for(let t=0;t<this._colors;++t){const e=Rt._volume(this._cubes[t],this._weights);e>0?(r[t]=Rt._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=Rt._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=Rt._volume(this._cubes[t],this._momentsBlue)/e|0,a[t]=Rt._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,a[t]=0)}this._reds=At(this._colors+1),this._greens=At(this._colors+1),this._blues=At(this._colors+1),this._alphas=At(this._colors+1),this._sums=At(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let o=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],l=n[t],h=i[t],c=a[t],f=this._distance.calculateRaw(u,l,h,c,e.r,e.g,e.b,e.a);f<s&&(s=f,o=t)}this._reds[o]+=e.r,this._greens[o]+=e.g,this._blues[o]+=e.b,this._alphas[o]+=e.a,this._sums[o]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),a=1+(t.a>>e);this._weights[a][r][n][i]++,this._momentsRed[a][r][n][i]+=t.r,this._momentsGreen[a][r][n][i]+=t.g,this._momentsBlue[a][r][n][i]+=t.b,this._momentsAlpha[a][r][n][i]+=t.a,this._moments[a][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],a=[],o=Mt(this._sideSize,this._sideSize,this._sideSize),s=Mt(this._sideSize,this._sideSize,this._sideSize),u=Mt(this._sideSize,this._sideSize,this._sideSize),l=Mt(this._sideSize,this._sideSize,this._sideSize),h=Mt(this._sideSize,this._sideSize,this._sideSize),c=Mt(this._sideSize,this._sideSize,this._sideSize);let f=0;const d=new gt(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let p=1;p<=this._alphaMaxSideIndex;++p){St(o,this._sideSize,this._sideSize,this._sideSize,0),St(s,this._sideSize,this._sideSize,this._sideSize,0),St(u,this._sideSize,this._sideSize,this._sideSize,0),St(l,this._sideSize,this._sideSize,this._sideSize,0),St(h,this._sideSize,this._sideSize,this._sideSize,0),St(c,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++f){d.shouldNotify(f)&&(yield{progress:d.progress}),Pt(t,this._sideSize,0),Pt(e,this._sideSize,0),Pt(r,this._sideSize,0),Pt(n,this._sideSize,0),Pt(i,this._sideSize,0),Pt(a,this._sideSize,0);for(let f=1;f<=this._maxSideIndex;++f){let d=0,g=0,b=0,y=0,v=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)d+=this._weights[p][m][f][_],g+=this._momentsRed[p][m][f][_],b+=this._momentsGreen[p][m][f][_],y+=this._momentsBlue[p][m][f][_],v+=this._momentsAlpha[p][m][f][_],w+=this._moments[p][m][f][_],t[_]+=d,e[_]+=g,r[_]+=b,n[_]+=y,i[_]+=v,a[_]+=w,o[m][f][_]=o[m-1][f][_]+t[_],s[m][f][_]=s[m-1][f][_]+e[_],u[m][f][_]=u[m-1][f][_]+r[_],l[m][f][_]=l[m-1][f][_]+n[_],h[m][f][_]=h[m-1][f][_]+i[_],c[m][f][_]=c[m-1][f][_]+a[_],this._weights[p][m][f][_]=this._weights[p-1][m][f][_]+o[m][f][_],this._momentsRed[p][m][f][_]=this._momentsRed[p-1][m][f][_]+s[m][f][_],this._momentsGreen[p][m][f][_]=this._momentsGreen[p-1][m][f][_]+u[m][f][_],this._momentsBlue[p][m][f][_]=this._momentsBlue[p-1][m][f][_]+l[m][f][_],this._momentsAlpha[p][m][f][_]=this._momentsAlpha[p-1][m][f][_]+h[m][f][_],this._moments[p][m][f][_]=this._moments[p-1][m][f][_]+c[m][f][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|Rt._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case Rt._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case Rt._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case Rt._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case Rt._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error("impossible")}return 0|i}static _bottom(t,e,r){switch(e){case Rt._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=Rt._volume(t,this._momentsRed),r=Rt._volume(t,this._momentsGreen),n=Rt._volume(t,this._momentsBlue),i=Rt._volume(t,this._momentsAlpha);return Rt._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/Rt._volume(t,this._weights)}_maximize(t,e,r,n,i,a,o,s,u){const l=0|Rt._bottom(t,e,this._momentsRed),h=0|Rt._bottom(t,e,this._momentsGreen),c=0|Rt._bottom(t,e,this._momentsBlue),f=0|Rt._bottom(t,e,this._momentsAlpha),d=0|Rt._bottom(t,e,this._weights);let p=0,m=-1;for(let g=r;g<n;++g){let r=l+Rt._top(t,e,g,this._momentsRed),n=h+Rt._top(t,e,g,this._momentsGreen),b=c+Rt._top(t,e,g,this._momentsBlue),y=f+Rt._top(t,e,g,this._momentsAlpha),v=d+Rt._top(t,e,g,this._weights);if(0!==v){let t=r*r+n*n+b*b+y*y,e=t/v;r=i-r,n=a-n,b=o-b,y=s-y,v=u-v,0!==v&&(t=r*r+n*n+b*b+y*y,e+=t/v,e>p&&(p=e,m=g))}}return{max:p,position:m}}_cut(t,e){let r;const n=Rt._volume(t,this._momentsRed),i=Rt._volume(t,this._momentsGreen),a=Rt._volume(t,this._momentsBlue),o=Rt._volume(t,this._momentsAlpha),s=Rt._volume(t,this._weights),u=this._maximize(t,Rt._red,t.redMinimum+1,t.redMaximum,n,i,a,o,s),l=this._maximize(t,Rt._green,t.greenMinimum+1,t.greenMaximum,n,i,a,o,s),h=this._maximize(t,Rt._blue,t.blueMinimum+1,t.blueMaximum,n,i,a,o,s),c=this._maximize(t,Rt._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,a,o,s);if(c.max>=u.max&&c.max>=l.max&&c.max>=h.max){if(r=Rt._alpha,c.position<0)return!1}else r=u.max>=c.max&&u.max>=l.max&&u.max>=h.max?Rt._red:l.max>=c.max&&l.max>=u.max&&l.max>=h.max?Rt._green:Rt._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case Rt._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._green:e.greenMinimum=t.greenMaximum=l.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._blue:e.blueMinimum=t.blueMaximum=h.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._alpha:e.alphaMinimum=t.alphaMaximum=c.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new Tt;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Ft=Rt;h(Ft,"_alpha",3),h(Ft,"_red",2),h(Ft,"_green",1),h(Ft,"_blue",0);var Lt={};u(Lt,{AbstractImageQuantizer:()=>Ot,ErrorDiffusionArray:()=>Nt,ErrorDiffusionArrayKernel:()=>Dt,ErrorDiffusionRiemersma:()=>Ht,NearestColor:()=>Ut});var Ot=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error("unreachable")}},Ut=class extends Ot{constructor(t){super(),h(this,"_distance"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=new gt(i,99);for(let t=0;t<i;t++){a.shouldNotify(t)&&(yield{progress:a.progress});for(let i=0,a=t*n;i<n;i++,a++){const t=r[a];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Dt=(t=>(t[t.FloydSteinberg=0]="FloydSteinberg",t[t.FalseFloydSteinberg=1]="FalseFloydSteinberg",t[t.Stucki=2]="Stucki",t[t.Atkinson=3]="Atkinson",t[t.Jarvis=4]="Jarvis",t[t.Burkes=5]="Burkes",t[t.Sierra=6]="Sierra",t[t.TwoSierra=7]="TwoSierra",t[t.SierraLite=8]="SierraLite",t))(Dt||{}),Nt=class extends Ot{constructor(t,e,r=!0,n=0,i=!1){super(),h(this,"_minColorDistance"),h(this,"_serpentine"),h(this,"_kernel"),h(this,"_calculateErrorLikeGIMP"),h(this,"_distance"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new ut,i=t.getWidth(),a=t.getHeight(),o=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(o[t]=[],i);const l=new gt(a,99);for(let t=0;t<a;t++){l.shouldNotify(t)&&(yield{progress:l.progress}),this._serpentine&&(s*=-1);const u=t*i,h=1===s?0:i-1,c=1===s?i:-1;this._fillErrorLine(o[0],i),o.push(o.shift());const f=o[0];for(let l=h,d=u+h;l!==c;l+=s,d+=s){const u=r[d],h=f[l];n.from(u);const c=ut.createByRGBA(E(u.r+h[0]),E(u.g+h[1]),E(u.b+h[2]),E(u.a+h[3])),p=e.getNearestColor(this._distance,c);if(u.from(p),this._minColorDistance&&this._distance.calculateNormalized(n,p)<this._minColorDistance)continue;let m,g,b,y;this._calculateErrorLikeGIMP?(m=c.r-p.r,g=c.g-p.g,b=c.b-p.b,y=c.a-p.a):(m=n.r-p.r,g=n.g-p.g,b=n.b-p.b,y=n.a-p.a);const v=1===s?0:this._kernel.length-1,w=1===s?this._kernel.length:-1;for(let e=v;e!==w;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+l>=0&&r+l<i&&n+t>=0&&n+t<a){const t=this._kernel[e][0],i=o[n][r+l];i[0]+=m*t,i[1]+=g*t,i[2]+=b*t,i[3]+=y*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*zt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new gt(t*e,99),index:0,x:0,y:0};yield*Gt(i,1),jt(i,0)}function*Gt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Gt(t,1),jt(t,3),yield*Gt(t,2),jt(t,4),yield*Gt(t,2),jt(t,2),yield*Gt(t,4);break;case 3:yield*Gt(t,4),jt(t,2),yield*Gt(t,3),jt(t,1),yield*Gt(t,3),jt(t,3),yield*Gt(t,1);break;case 1:yield*Gt(t,2),jt(t,4),yield*Gt(t,1),jt(t,3),yield*Gt(t,1),jt(t,1),yield*Gt(t,3);break;case 4:yield*Gt(t,3),jt(t,1),yield*Gt(t,4),jt(t,2),yield*Gt(t,4),jt(t,4),yield*Gt(t,2)}t.level++}}function jt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Ht=class extends Ot{constructor(t,e=16,r=1){super(),h(this,"_distance"),h(this,"_weights"),h(this,"_errorQueueSize"),this._distance=t,this._errorQueueSize=e,this._weights=Ht._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=[];let o=0;for(let t=0;t<this._errorQueueSize;t++)a[t]={r:0,g:0,b:0,a:0};yield*zt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:l,b:h,a:c}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=a[(t+o)%this._errorQueueSize];u+=r.r*e,l+=r.g*e,h+=r.b*e,c+=r.a*e}const f=ut.createByRGBA(E(u),E(l),E(h),E(c)),d=e.getNearestColor(this._distance,f);o=(o+1)%this._errorQueueSize;const p=(o+this._errorQueueSize-1)%this._errorQueueSize;a[p].r=s.r-d.r,a[p].g=s.g-d.g,a[p].b=s.b-d.b,a[p].a=s.a-d.a,s.from(d)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,a=1;i<e;i++)r[i]=(a+.5|0)/e*t,a*=n;return r}},Wt={};u(Wt,{ssim:()=>$t});var qt=.01,Zt=.03;function $t(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error("Images have different sizes!");const r=(255*qt)**2,n=(255*Zt)**2;let i=0,a=0;return function(t,e,r){const n=t.getWidth(),i=t.getHeight();for(let a=0;a<i;a+=8)for(let o=0;o<n;o+=8){const s=Math.min(8,n-o),u=Math.min(8,i-a),l=Vt(t,o,a,s,u),h=Vt(e,o,a,s,u);r(l,h,Yt(l),Yt(h))}}(t,e,((t,e,o,s)=>{let u=0,l=0,h=0;for(let r=0;r<t.length;r++)l+=(t[r]-o)**2,h+=(e[r]-s)**2,u+=(t[r]-o)*(e[r]-s);const c=t.length-1;l/=c,h/=c,u/=c,a+=(2*o*s+r)*(2*u+n)/((o**2+s**2+r)*(l+h+n)),i++})),a/i}function Vt(t,e,r,n,i){const a=t.getPointArray(),o=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=a[r+t];o[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return o}function Yt(t){let e=0;for(const r of t)e+=r;return e/t.length}var Xt="function"==typeof setImmediate?setImmediate:void 0!==n&&"function"==typeof(null==n?void 0:n.nextTick)?t=>n.nextTick(t):t=>setTimeout(t,0);function Jt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=ne(ee(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Qt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((a,o)=>{const s=ne(ee(e),r,n);let u;t.forEach((t=>s.sample(t)));const l=s.quantize(),h=()=>{try{const t=l.next();t.done?a(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Xt(h))}catch(t){o(t)}};Xt(h)}))}function Kt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return re(ee(r),n).quantizeSync(t,e)}async function te(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((a,o)=>{let s;const u=re(ee(r),n).quantize(t,e),l=()=>{try{const t=u.next();t.done?a(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Xt(l))}catch(t){o(t)}};Xt(l)}))}function ee(t="euclidean-bt709"){switch(t){case"cie94-graphic-arts":return new $;case"cie94-textiles":return new Z;case"ciede2000":return new Y;case"color-metric":return new X;case"euclidean":return new Q;case"euclidean-bt709":return new K;case"euclidean-bt709-noalpha":return new tt;case"manhattan":return new rt;case"manhattan-bt709":return new it;case"manhattan-nommyde":return new nt;case"pngquant":return new at;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function re(t,e="floyd-steinberg"){switch(e){case"nearest":return new Ut(t);case"riemersma":return new Ht(t);case"floyd-steinberg":return new Nt(t,0);case"false-floyd-steinberg":return new Nt(t,1);case"stucki":return new Nt(t,2);case"atkinson":return new Nt(t,3);case"jarvis":return new Nt(t,4);case"burkes":return new Nt(t,5);case"sierra":return new Nt(t,6);case"two-sierra":return new Nt(t,7);case"sierra-lite":return new Nt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function ne(t,e="wuquant",r=256){switch(e){case"neuquant":return new vt(t,r);case"rgbquant":return new Ct(t,r);case"wuquant":return new Ft(t,r);case"neuquant-float":return new kt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}t.exports=l(c)}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.p="";var __webpack_exports__={};(()=>{"use strict";var t={};__webpack_require__.r(t),__webpack_require__.d(t,{AUTO:()=>rr,BLEND_ADD:()=>fr,BLEND_DARKEN:()=>mr,BLEND_DESTINATION_OVER:()=>hr,BLEND_DIFFERENCE:()=>yr,BLEND_EXCLUSION:()=>vr,BLEND_HARDLIGHT:()=>br,BLEND_LIGHTEN:()=>gr,BLEND_MULTIPLY:()=>cr,BLEND_OVERLAY:()=>pr,BLEND_SCREEN:()=>dr,BLEND_SOURCE_OVER:()=>lr,EDGE_CROP:()=>kr,EDGE_EXTEND:()=>wr,EDGE_WRAP:()=>_r,HORIZONTAL_ALIGN_CENTER:()=>ir,HORIZONTAL_ALIGN_LEFT:()=>nr,HORIZONTAL_ALIGN_RIGHT:()=>ar,VERTICAL_ALIGN_BOTTOM:()=>ur,VERTICAL_ALIGN_MIDDLE:()=>sr,VERTICAL_ALIGN_TOP:()=>or});var e={};function r(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,u,"next",t)}function u(t){r(o,i,a,s,u,"throw",t)}s(void 0)}))}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function o(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}__webpack_require__.r(e),__webpack_require__.d(e,{add:()=>Cr,darken:()=>Mr,difference:()=>Tr,dstOver:()=>xr,exclusion:()=>Rr,hardLight:()=>Pr,lighten:()=>Sr,multiply:()=>Er,overlay:()=>Ir,screen:()=>Ar,srcOver:()=>Br});var d=__webpack_require__(54756),p=__webpack_require__.n(d);function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function b(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=__webpack_require__(73065),v=__webpack_require__.n(y),w=__webpack_require__(90031),_=__webpack_require__.n(w);function k(t,e,r){return e=h(e),l(t,B()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(B=function(){return!!t})()}const x=function(t){function e(){var t;i(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=k(this,e,[].concat(n))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return f(e,t),u(e)}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error));function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!t)return"";if("string"==typeof t&&(t=O.strToArrayBuffer(t)),t instanceof ArrayBuffer&&(t=new Uint8Array(t)),64!==(e=O.expandAlphRange(e).join("")).length&&65!==e.length)throw new x(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var r,n,i,a,o,s,u,l="",h=0;h<t.length;)a=(r=t[h++])>>2,o=(3&r)<<4|(n=t[h++])>>4,s=(15&n)<<2|(i=t[h++])>>6,u=63&i,isNaN(n)?s=u=64:isNaN(i)&&(u=64),l+=e.charAt(a)+e.charAt(o)+e.charAt(s)+e.charAt(u);return l}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t)return"string"===r?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=O.expandAlphRange(e).join("")).length&&65!==e.length)throw new x(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(n){var a=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");t=t.replace(a,"")}if(i){if(t.length%4==1)throw new x(`Error: Invalid Base64 input length (${t.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var o=e.charAt(64),s=t.indexOf(o);if(s>=0){if(s<t.length-2||t.charAt(t.length-1)!==o)throw new x(`Error: Base64 padding character (${o}) not used in the correct place.`);if(t.length%4!=0)throw new x("Error: Base64 not padded to a multiple of 4.")}}}for(var u,l,h,c,f,d,p,m=[],g=0;g<t.length;){if(c=e.indexOf(t.charAt(g++)||null),f=e.indexOf(t.charAt(g++)||null),d=e.indexOf(t.charAt(g++)||null),p=e.indexOf(t.charAt(g++)||null),i&&(c<0||f<0||d<0||p<0))throw new x("Error: Base64 input contains non-alphabet char(s)");l=(15&f)<<4|d>>2,h=(3&d)<<6|p,(u=c<<2|f>>4)>=0&&u<256&&m.push(u),l>=0&&l<256&&64!==d&&m.push(l),h>=0&&h<256&&64!==p&&m.push(h)}return"string"===r?O.byteArrayToUtf8(m):m}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(r<1||Math.round(r)!==r)throw new x("Byte length must be a positive integer");if("None"!==e){var n="Auto"===e?/[^a-f\d]|0x/gi:O.regexRep(e);t=t.split(n)}else t=[t];for(var i=[],a=0;a<t.length;a++)for(var o=0;o<t[a].length;o+=r)i.push(parseInt(t[a].substr(o,r),16));return i}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";e=O.charRep(e);var r=[],n=t.split(e);""===n[n.length-1]&&(n=n.slice(0,n.length-1));for(var i=0;i<n.length;i++)r[i]=parseInt(n[i],10);return r}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(r<1||Math.round(r)!==r)throw new x("Byte length must be a positive integer");var n=O.regexRep(e);t=t.replace(n,"");for(var i=[],a=0;a<t.length;a+=r)i.push(parseInt(t.substr(a,r),2));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"]);var S=__webpack_require__(48287).Buffer,P=__webpack_require__(65606),T=function(){function t(){i(this,t)}return u(t,null,[{key:"chr",value:function(t){if(t>65535){t-=65536;var e=String.fromCharCode(t>>>10&1023|55296);return t=56320|1023&t,e+String.fromCharCode(t)}return String.fromCharCode(t)}},{key:"ord",value:function(t){if(2===t.length){var e=t.charCodeAt(0),r=t.charCodeAt(1);if(e>=55296&&e<56320&&r>=56320&&r<57344)return 1024*(e-55296)+r-56320+65536}return t.charCodeAt(0)}},{key:"padBytesRight",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=new Array(e);return n.fill(r),b(t).forEach((function(t,e){n[e]=t})),n}},{key:"truncate",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>e&&(t=t.slice(0,e-r.length)+r),t}},{key:"hex",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(r,"0")}},{key:"bin",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(r,"0")}},{key:"printable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?t.replace(/[^\x20-\x7f]/g,"."):(t=t.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(t=t.replace(/[\x09-\x10\u2028\u2029]/g,".")),t)}},{key:"escapeWhitespace",value:function(t){return t.replace(/[\x09-\x10]/g,(function(t){return String.fromCharCode(57344+t.charCodeAt(0))}))}},{key:"parseEscapedChars",value:function(t){return t.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(t,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}}))}},{key:"escapeRegex",value:function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var r=[],n=0;n<e.length;n++)if(n<e.length-2&&"-"===e[n+1]&&"\\"!==e[n]){for(var i=t.ord(e[n]),a=t.ord(e[n+2]),o=i;o<=a;o++)r.push(t.chr(o));n+=2}else n<e.length-2&&"\\"===e[n]&&"-"===e[n+1]?(r.push("-"),n++):r.push(e[n]);return r}},{key:"convertToByteArray",value:function(e,r){switch(r.toLowerCase()){case"binary":return M(e);case"hex":return A(e);case"decimal":return I(e);case"base64":return C(e,null,"byteArray");case"utf8":return t.strToUtf8ByteArray(e);default:return t.strToByteArray(e)}}},{key:"convertToByteString",value:function(e,r){switch(r.toLowerCase()){case"binary":return t.byteArrayToChars(M(e));case"hex":return t.byteArrayToChars(A(e));case"decimal":return t.byteArrayToChars(I(e));case"base64":return t.byteArrayToChars(C(e,null,"byteArray"));case"utf8":return _().encode(e);default:return e}}},{key:"byteArrayToInt",value:function(t,e){var r=0;if("big"===e)for(var n=0;n<t.length;n++)r=256*r+t[n];else for(var i=t.length-1;i>=0;i--)r=256*r+t[i];return r}},{key:"intToByteArray",value:function(t,e,r){var n=new Array(e);if("little"===r)for(var i=0;i<e;i++)n[i]=255&t,t>>>=8;else for(var a=e-1;a>=0;a--)n[a]=255&t,t>>>=8;return n}},{key:"strToArrayBuffer",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var r,n=new Uint8Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ArrayBuffer(e);return n.buffer}},{key:"strToUtf8ArrayBuffer",value:function(t){if(v().debug(`Converting string[${null==t?void 0:t.length}] to UTF8 array buffer`),!t)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(t);return t.length!==e.length&&(L()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):F()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var r,n=new Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ByteArray(e);return n}},{key:"strToUtf8ByteArray",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var r=_().encode(e);return e.length!==r.length&&(L()?self.setOption("attemptHighlight",!1):F()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(r)}},{key:"strToCharcode",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(n<e.length-1&&i>=55296&&i<56320){var a=e[n+1].charCodeAt(0);a>=56320&&a<57344&&(i=t.ord(e[n]+e[++n]))}r.push(i)}return r}},{key:"byteArrayToUtf8",value:function(e){var r;if(v().debug(`Converting byte array[${null===(r=e)||void 0===r?void 0:r.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var n=new TextDecoder("utf-8",{fatal:!0}).decode(e);return n.length!==e.length&&(L()?self.setOption("attemptHighlight",!1):F()&&(window.app.options.attemptHighlight=!1)),n}catch(r){return t.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(t){if(v().debug(`Converting byte array[${null==t?void 0:t.length}] to chars`),!t||!t.length)return"";for(var e="",r=0;r<t.length;r+=2e4)e+=String.fromCharCode.apply(String,b(t.slice(r,r+2e4)));return e}},{key:"arrayBufferToStr",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(v().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var n=new Uint8Array(e);return r?t.byteArrayToUtf8(n):t.byteArrayToChars(n)}},{key:"calculateShannonEntropy",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,r=[],n=new Array(256).fill(0);for(e=0;e<t.length;e++)n[t[e]]++;for(e=0;e<n.length;e++)n[e]>0&&r.push(n[e]/t.length);var i,a=0;for(e=0;e<r.length;e++)a+=(i=r[e])*Math.log(i)/Math.log(2);return-a}},{key:"parseCSV",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],a=!1,o=!1,s="",u=[],l=[];t.length&&"\ufeff"===t[0]&&(t=t.substr(1));for(var h=0;h<t.length;h++)e=t[h],r=t[h+1]||"",a?(s+=e,a=!1):'"'!==e||o?'"'===e&&o?'"'===r?a=!0:o=!1:!o&&n.indexOf(e)>=0?(u.push(s),s=""):!o&&i.indexOf(e)>=0?(u.push(s),s="",l.push(u),u=[],i.indexOf(r)>=0&&r!==e&&h++):s+=e:o=!0;return u.length&&(u.push(s),l.push(u)),l}},{key:"stripHtmlTags",value:function(t){function e(t,r){var n=r.replace(t,"");return n.length===r.length?n:e(t,n)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=e(/<script[^>]*>(\s|\S)*?<\/script[^>]*>/gi,t),t=e(/<style[^>]*>(\s|\S)*?<\/style[^>]*>/gi,t)),e(/<[^>]+>/g,t)}},{key:"escapeHtml",value:function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\0":""};return t?t.replace(/[&<>"'`\u0000]/g,(function(t){return e[t]})):t}},{key:"unescapeHtml",value:function(t){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`","":"\0"};return t.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,(function(t){return e[t]||t}))}},{key:"toTitleCase",value:function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},{key:"encodeURIFragment",value:function(t){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(t=encodeURIComponent(t)).replace(/%[0-9A-F]{2}/g,(function(t){return e[t]||t}))}},{key:"generatePrettyRecipe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",n="",i="",a="",o="";return t.forEach((function(t){n=t.op.replace(/ /g,"_"),i=JSON.stringify(t.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),a=t.disabled?"/disabled":"",o=t.breakpoint?"/breakpoint":"",r+=`${n}(${i}${a}${o})`,e&&(r+="\n")})),r}},{key:"parseRecipeConfig",value:function(t){if(0===(t=t.trim()).length)return[];if("["===t[0])return JSON.parse(t);var e,r;t=t.replace(/\n/g,"");for(var n=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];e=n.exec(t);){r="["+(r=e[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var a={op:e[1].replace(/_/g," "),args:JSON.parse(r)};e[3]&&e[3].indexOf("disabled")>0&&(a.disabled=!0),e[3]&&e[3].indexOf("breakpoint")>0&&(a.breakpoint=!0),i.push(a)}return i}},{key:"displayFilesAsHTML",value:(e=n(p().mark((function e(r){var i,a,o,s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=function(e){return`<div class='card' style='white-space: normal;'>\n <div class='card-header'>\n <h6 class="mb-0">\n ${t.escapeHtml(e.name)}\n </h6>\n </div>\n </div>`},a=function(e,r){if(r.startsWith("image")){var n="data:";return n+=r+";","<img style='max-width: 100%;' src='"+(n+="base64,"+E(e))+"'>"}return`<pre>${t.escapeHtml(t.arrayBufferToStr(e.buffer))}</pre>`},o=function(){var e=n(p().mark((function e(r,n){var i,o,s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readFile(r);case 2:return i=e.sent,o=new Blob([i],{type:r.type||"octet/stream"}),s=URL.createObjectURL(o),u=`<div class='card' style='white-space: normal;'>\n <div class='card-header' id='heading${n}'>\n <h6 class='mb-0'>\n <a class='collapsed'\n data-toggle='collapse'\n href='#collapse${n}'\n aria-expanded='false'\n aria-controls='collapse${n}'\n title="Show/hide contents of '${t.escapeHtml(r.name)}'">\n ${t.escapeHtml(r.name)}</a>\n <span class='float-right' style="margin-top: -3px">\n ${r.size.toLocaleString()} bytes\n <a title="Download ${t.escapeHtml(r.name)}"\n href="${s}"\n download="${t.escapeHtml(r.name)}"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">save</i>\n </a>\n <a title="Move to input"\n href="#"\n blob-url="${s}"\n file-name="${t.escapeHtml(r.name)}"\n class="extract-file"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n </a>\n </span>\n </h6>\n </div>\n <div id='collapse${n}' class='collapse' aria-labelledby='heading${n}' data-parent="#files">\n <div class='card-body'>\n ${a(i,r.type)}\n </div>\n </div>\n </div>`,e.abrupt("return",u);case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),s=`<div style='padding: 5px; white-space: normal;'>\n ${r.length} file(s) found\n </div><div id="files" style="padding: 20px">`,u=0;case 5:if(!(u<r.length)){e.next=17;break}if(!r[u].name.endsWith("/")){e.next=10;break}s+=i(r[u]),e.next=14;break;case 10:return e.t0=s,e.next=13,o(r[u],u);case 13:s=e.t0+=e.sent;case 14:u++,e.next=5;break;case 17:return e.abrupt("return",s+="</div>");case 18:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"parseURIParams",value:function(t){if(""===t)return{};"?"!==t[0]&&"#"!==t[0]||(t=t.substr(1));for(var e=t.split("&"),r={},n=0;n<e.length;n++){var i=e[n].split("=");2!==i.length?r[e[n]]=!0:r[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return r}},{key:"readFile",value:function(t){return R()?S.from(t).buffer:new Promise((function(e,r){var n=new FileReader,i=new Uint8Array(t.size),a=0,o=10485760,s=function(){if(a>=t.size)e(i);else{var r=t.slice(a,a+o);n.readAsArrayBuffer(r)}};n.onload=function(t){i.set(new Uint8Array(n.result),a),a+=o,s()},n.onerror=function(t){r(n.error.message)},s()}))}},{key:"readFileSync",value:function(t){if(!R())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(t.data).buffer}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"gcd",value:function(e,r){return r?t.gcd(r,e%r):e}},{key:"modInv",value:function(t,e){t%=e;for(var r=1;r<e;r++)if(t*r%26==1)return r}},{key:"charRep",value:function(t){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[t]}},{key:"regexRep",value:function(t){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[t]}},{key:"chunked",value:p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e[Symbol.iterator]();case 1:i=[],a=0;case 4:if(!(a<r)){t.next=12;break}if(!(o=n.next()).done){t.next=8;break}return t.abrupt("break",12);case 8:i.push(o.value);case 9:a++,t.next=4;break;case 12:if(!i.length){t.next=17;break}return t.next=15,i;case 15:t.next=18;break;case 17:return t.abrupt("return");case 18:t.next=1;break;case 20:case"end":return t.stop()}}),t)}))}]);var e}();function R(){return void 0!==P&&null!=P.versions&&null!=P.versions.node}function F(){return"object"==typeof window}function L(){return"function"==typeof importScripts}const O=T;function U(t,e,r){return e=h(e),l(t,D()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(D=function(){return!!t})()}Array.prototype.unique=function(){for(var t={},e=[],r=0,n=this.length;r<n;r++)Object.prototype.hasOwnProperty.call(t,this[r])||(e.push(this[r]),t[this[r]]=1);return e},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce((function(t,e){return t+e}),0)},Array.prototype.equals=function(t){if(!t)return!1;var e=this.length;if(e!==t.length)return!1;for(;e--;)if(this[e]!==t[e])return!1;return!0},String.prototype.count=function(t){return this.split(t).length-1},String.prototype.padStart||(String.prototype.padStart=function(t,e){return t|=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t|=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))});const N=function(t){function e(){var t;i(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=U(this,e,[].concat(n))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return f(e,t),u(e)}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error));var z=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,G=Math.ceil,j=Math.floor,H="[BigNumber Error] ",W=H+"Number primitive has more than 15 significant digits: ",q=1e14,Z=14,$=9007199254740991,V=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,X=1e9;function J(t){var e=0|t;return t>0||t===e?e:e-1}function Q(t){for(var e,r,n=1,i=t.length,a=t[0]+"";n<i;){for(e=t[n++]+"",r=Z-e.length;r--;e="0"+e);a+=e}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function K(t,e){var r,n,i=t.c,a=e.c,o=t.s,s=e.s,u=t.e,l=e.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=u==l,!i||!a)return n?0:!i^r?1:-1;if(!n)return u>l^r?1:-1;for(s=(u=i.length)<(l=a.length)?u:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return u==l?0:u>l^r?1:-1}function tt(t,e,r,n){if(t<e||t>r||t!==j(t))throw Error(H+(n||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function et(t){var e=t.c.length-1;return J(t.e/Z)==e&&t.c[e]%2!=0}function rt(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function nt(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}var it=function t(e){var r,n,i,a,o,s,u,l,h,c,f=C.prototype={constructor:C,toString:null,valueOf:null},d=new C(1),p=20,m=4,g=-7,b=21,y=-1e7,v=1e7,w=!1,_=1,k=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function C(t,e){var r,a,o,s,u,l,h,c,f=this;if(!(f instanceof C))return new C(t,e);if(null==e){if(t&&!0===t._isBigNumber)return f.s=t.s,void(!t.c||t.e>v?f.c=f.e=null:t.e<y?f.c=[f.e=0]:(f.e=t.e,f.c=t.c.slice()));if((l="number"==typeof t)&&0*t==0){if(f.s=1/t<0?(t=-t,-1):1,t===~~t){for(s=0,u=t;u>=10;u/=10,s++);return void(s>v?f.c=f.e=null:(f.e=s,f.c=[t]))}c=String(t)}else{if(!z.test(c=String(t)))return i(f,c,l);f.s=45==c.charCodeAt(0)?(c=c.slice(1),-1):1}(s=c.indexOf("."))>-1&&(c=c.replace(".","")),(u=c.search(/e/i))>0?(s<0&&(s=u),s+=+c.slice(u+1),c=c.substring(0,u)):s<0&&(s=c.length)}else{if(tt(e,2,x.length,"Base"),10==e&&E)return S(f=new C(t),p+f.e+1,m);if(c=String(t),l="number"==typeof t){if(0*t!=0)return i(f,c,l,e);if(f.s=1/t<0?(c=c.slice(1),-1):1,C.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(W+t)}else f.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1;for(r=x.slice(0,e),s=u=0,h=c.length;u<h;u++)if(r.indexOf(a=c.charAt(u))<0){if("."==a){if(u>s){s=h;continue}}else if(!o&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){o=!0,u=-1,s=0;continue}return i(f,String(t),l,e)}l=!1,(s=(c=n(c,e,10,f.s)).indexOf("."))>-1?c=c.replace(".",""):s=c.length}for(u=0;48===c.charCodeAt(u);u++);for(h=c.length;48===c.charCodeAt(--h););if(c=c.slice(u,++h)){if(h-=u,l&&C.DEBUG&&h>15&&(t>$||t!==j(t)))throw Error(W+f.s*t);if((s=s-u-1)>v)f.c=f.e=null;else if(s<y)f.c=[f.e=0];else{if(f.e=s,f.c=[],u=(s+1)%Z,s<0&&(u+=Z),u<h){for(u&&f.c.push(+c.slice(0,u)),h-=Z;u<h;)f.c.push(+c.slice(u,u+=Z));u=Z-(c=c.slice(u)).length}else u-=h;for(;u--;c+="0");f.c.push(+c)}}else f.c=[f.e=0]}function A(t,e,r,n){var i,a,o,s,u;if(null==r?r=m:tt(r,0,8),!t.c)return t.toString();if(i=t.c[0],o=t.e,null==e)u=Q(t.c),u=1==n||2==n&&(o<=g||o>=b)?rt(u,o):nt(u,o,"0");else if(a=(t=S(new C(t),e,r)).e,s=(u=Q(t.c)).length,1==n||2==n&&(e<=a||a<=g)){for(;s<e;u+="0",s++);u=rt(u,a)}else if(e-=o,u=nt(u,a,"0"),a+1>s){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=a-s)>0)for(a+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function I(t,e){for(var r,n,i=1,a=new C(t[0]);i<t.length;i++)(!(n=new C(t[i])).s||(r=K(a,n))===e||0===r&&a.s===e)&&(a=n);return a}function M(t,e,r){for(var n=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,n++);return(r=n+r*Z-1)>v?t.c=t.e=null:r<y?t.c=[t.e=0]:(t.e=r,t.c=e),t}function S(t,e,r,n){var i,a,o,s,u,l,h,c=t.c,f=V;if(c){t:{for(i=1,s=c[0];s>=10;s/=10,i++);if((a=e-i)<0)a+=Z,o=e,u=c[l=0],h=j(u/f[i-o-1]%10);else if((l=G((a+1)/Z))>=c.length){if(!n)break t;for(;c.length<=l;c.push(0));u=h=0,i=1,o=(a%=Z)-Z+1}else{for(u=s=c[l],i=1;s>=10;s/=10,i++);h=(o=(a%=Z)-Z+i)<0?0:j(u/f[i-o-1]%10)}if(n=n||e<0||null!=c[l+1]||(o<0?u:u%f[i-o-1]),n=r<4?(h||n)&&(0==r||r==(t.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(a>0?o>0?u/f[i-o]:0:c[l-1])%10&1||r==(t.s<0?8:7)),e<1||!c[0])return c.length=0,n?(e-=t.e+1,c[0]=f[(Z-e%Z)%Z],t.e=-e||0):c[0]=t.e=0,t;if(0==a?(c.length=l,s=1,l--):(c.length=l+1,s=f[Z-a],c[l]=o>0?j(u/f[i-o]%f[o])*s:0),n)for(;;){if(0==l){for(a=1,o=c[0];o>=10;o/=10,a++);for(o=c[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(t.e++,c[0]==q&&(c[0]=1));break}if(c[l]+=s,c[l]!=q)break;c[l--]=0,s=1}for(a=c.length;0===c[--a];c.pop());}t.e>v?t.c=t.e=null:t.e<y&&(t.c=[t.e=0])}return t}function P(t){var e,r=t.e;return null===r?t.toString():(e=Q(t.c),e=r<=g||r>=b?rt(e,r):nt(e,r,"0"),t.s<0?"-"+e:e)}return C.clone=t,C.ROUND_UP=0,C.ROUND_DOWN=1,C.ROUND_CEIL=2,C.ROUND_FLOOR=3,C.ROUND_HALF_UP=4,C.ROUND_HALF_DOWN=5,C.ROUND_HALF_EVEN=6,C.ROUND_HALF_CEIL=7,C.ROUND_HALF_FLOOR=8,C.EUCLID=9,C.config=C.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(H+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(tt(r=t[e],0,X,e),p=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(tt(r=t[e],0,8,e),m=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(tt(r[0],-X,0,e),tt(r[1],0,X,e),g=r[0],b=r[1]):(tt(r,-X,X,e),g=-(b=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)tt(r[0],-X,-1,e),tt(r[1],1,X,e),y=r[0],v=r[1];else{if(tt(r,-X,X,e),!r)throw Error(H+e+" cannot be zero: "+r);y=-(v=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(H+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw w=!r,Error(H+"crypto unavailable");w=r}else w=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(tt(r=t[e],0,9,e),_=r),t.hasOwnProperty(e="POW_PRECISION")&&(tt(r=t[e],0,X,e),k=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(H+e+" not an object: "+r);B=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(H+e+" invalid: "+r);E="0123456789"==r.slice(0,10),x=r}}return{DECIMAL_PLACES:p,ROUNDING_MODE:m,EXPONENTIAL_AT:[g,b],RANGE:[y,v],CRYPTO:w,MODULO_MODE:_,POW_PRECISION:k,FORMAT:B,ALPHABET:x}},C.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!C.DEBUG)return!0;var e,r,n=t.c,i=t.e,a=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-X&&i<=X&&i===j(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%Z)<1&&(e+=Z),String(n[0]).length==e){for(e=0;e<n.length;e++)if((r=n[e])<0||r>=q||r!==j(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(H+"Invalid BigNumber: "+t)},C.maximum=C.max=function(){return I(arguments,-1)},C.minimum=C.min=function(){return I(arguments,1)},C.random=(a=9007199254740992,o=Math.random()*a&2097151?function(){return j(Math.random()*a)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,a,s=0,u=[],l=new C(d);if(null==t?t=p:tt(t,0,X),i=G(t/Z),w)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*e[s]+(e[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[s]=r[0],e[s+1]=r[1]):(u.push(a%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw w=!1,Error(H+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(u.push(a%1e14),s+=7);s=i/7}if(!w)for(;s<i;)(a=o())<9e15&&(u[s++]=a%1e14);for(i=u[--s],t%=Z,i&&t&&(a=V[Z-t],u[s]=j(i/a)*a);0===u[s];u.pop(),s--);if(s<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=Z);for(s=1,a=u[0];a>=10;a/=10,s++);s<Z&&(n-=Z-s)}return l.e=n,l.c=u,l}),C.sum=function(){for(var t=1,e=arguments,r=new C(e[0]);t<e.length;)r=r.plus(e[t++]);return r},n=function(){var t="0123456789";function e(t,e,r,n){for(var i,a,o=[0],s=0,u=t.length;s<u;){for(a=o.length;a--;o[a]*=e);for(o[0]+=n.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,a,o,s){var u,l,h,c,f,d,g,b,y=n.indexOf("."),v=p,w=m;for(y>=0&&(c=k,k=0,n=n.replace(".",""),d=(b=new C(i)).pow(n.length-y),k=c,b.c=e(nt(Q(d.c),d.e,"0"),10,a,t),b.e=b.c.length),h=c=(g=e(n,i,a,s?(u=x,t):(u=t,x))).length;0==g[--c];g.pop());if(!g[0])return u.charAt(0);if(y<0?--h:(d.c=g,d.e=h,d.s=o,g=(d=r(d,b,v,w,a)).c,f=d.r,h=d.e),y=g[l=h+v+1],c=a/2,f=f||l<0||null!=g[l+1],f=w<4?(null!=y||f)&&(0==w||w==(d.s<0?3:2)):y>c||y==c&&(4==w||f||6==w&&1&g[l-1]||w==(d.s<0?8:7)),l<1||!g[0])n=f?nt(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(g.length=l,f)for(--a;++g[--l]>a;)g[l]=0,l||(++h,g=[1].concat(g));for(c=g.length;!g[--c];);for(y=0,n="";y<=c;n+=u.charAt(g[y++]));n=nt(n,h,u.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,a,o,s=0,u=t.length,l=e%Y,h=e/Y|0;for(t=t.slice();u--;)s=((i=l*(a=t[u]%Y)+(n=h*a+(o=t[u]/Y|0)*l)%Y*Y+s)/r|0)+(n/Y|0)+h*o,t[u]=i%r;return s&&(t=[s].concat(t)),t}function e(t,e,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(n,i,a,o,s){var u,l,h,c,f,d,p,m,g,b,y,v,w,_,k,B,x,E=n.s==i.s?1:-1,A=n.c,I=i.c;if(!(A&&A[0]&&I&&I[0]))return new C(n.s&&i.s&&(A?!I||A[0]!=I[0]:I)?A&&0==A[0]||!I?0*E:E/0:NaN);for(g=(m=new C(E)).c=[],E=a+(l=n.e-i.e)+1,s||(s=q,l=J(n.e/Z)-J(i.e/Z),E=E/Z|0),h=0;I[h]==(A[h]||0);h++);if(I[h]>(A[h]||0)&&l--,E<0)g.push(1),c=!0;else{for(_=A.length,B=I.length,h=0,E+=2,(f=j(s/(I[0]+1)))>1&&(I=t(I,f,s),A=t(A,f,s),B=I.length,_=A.length),w=B,y=(b=A.slice(0,B)).length;y<B;b[y++]=0);x=I.slice(),x=[0].concat(x),k=I[0],I[1]>=s/2&&k++;do{if(f=0,(u=e(I,b,B,y))<0){if(v=b[0],B!=y&&(v=v*s+(b[1]||0)),(f=j(v/k))>1)for(f>=s&&(f=s-1),p=(d=t(I,f,s)).length,y=b.length;1==e(d,b,p,y);)f--,r(d,B<p?x:I,p,s),p=d.length,u=1;else 0==f&&(u=f=1),p=(d=I.slice()).length;if(p<y&&(d=[0].concat(d)),r(b,d,y,s),y=b.length,-1==u)for(;e(I,b,B,y)<1;)f++,r(b,B<y?x:I,y,s),y=b.length}else 0===u&&(f++,b=[0]);g[h++]=f,b[0]?b[y++]=A[w]||0:(b=[A[w]],y=1)}while((w++<_||null!=b[0])&&E--);c=null!=b[0],g[0]||g.splice(0,1)}if(s==q){for(h=1,E=g[0];E>=10;E/=10,h++);S(m,a+(m.e=h+l*Z-1)+1,o,c)}else m.e=l,m.r=+c;return m}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,u=/^([^.]+)\.$/,l=/^\.([^.]+)$/,h=/^-?(Infinity|NaN)$/,c=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,a=r?e:e.replace(c,"");if(h.test(a))t.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(s,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,a=a.replace(u,"$1").replace(l,"0.$1")),e!=a))return new C(a,i);if(C.DEBUG)throw Error(H+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},f.absoluteValue=f.abs=function(){var t=new C(this);return t.s<0&&(t.s=1),t},f.comparedTo=function(t,e){return K(this,new C(t,e))},f.decimalPlaces=f.dp=function(t,e){var r,n,i,a=this;if(null!=t)return tt(t,0,X),null==e?e=m:tt(e,0,8),S(new C(a),t+a.e+1,e);if(!(r=a.c))return null;if(n=((i=r.length-1)-J(this.e/Z))*Z,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},f.dividedBy=f.div=function(t,e){return r(this,new C(t,e),p,m)},f.dividedToIntegerBy=f.idiv=function(t,e){return r(this,new C(t,e),0,1)},f.exponentiatedBy=f.pow=function(t,e){var r,n,i,a,o,s,u,l,h=this;if((t=new C(t)).c&&!t.isInteger())throw Error(H+"Exponent not an integer: "+P(t));if(null!=e&&(e=new C(e)),o=t.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!t.c||!t.c[0])return l=new C(Math.pow(+P(h),o?t.s*(2-et(t)):+P(t))),e?l.mod(e):l;if(s=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new C(NaN);(n=!s&&h.isInteger()&&e.isInteger())&&(h=h.mod(e))}else{if(t.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||o&&h.c[1]>=24e7:h.c[0]<8e13||o&&h.c[0]<=9999975e7)))return a=h.s<0&&et(t)?-0:0,h.e>-1&&(a=1/a),new C(s?1/a:a);k&&(a=G(k/Z+2))}for(o?(r=new C(.5),s&&(t.s=1),u=et(t)):u=(i=Math.abs(+P(t)))%2,l=new C(d);;){if(u){if(!(l=l.times(h)).c)break;a?l.c.length>a&&(l.c.length=a):n&&(l=l.mod(e))}if(i){if(0===(i=j(i/2)))break;u=i%2}else if(S(t=t.times(r),t.e+1,1),t.e>14)u=et(t);else{if(0==(i=+P(t)))break;u=i%2}h=h.times(h),a?h.c&&h.c.length>a&&(h.c.length=a):n&&(h=h.mod(e))}return n?l:(s&&(l=d.div(l)),e?l.mod(e):a?S(l,k,m,void 0):l)},f.integerValue=function(t){var e=new C(this);return null==t?t=m:tt(t,0,8),S(e,e.e+1,t)},f.isEqualTo=f.eq=function(t,e){return 0===K(this,new C(t,e))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(t,e){return K(this,new C(t,e))>0},f.isGreaterThanOrEqualTo=f.gte=function(t,e){return 1===(e=K(this,new C(t,e)))||0===e},f.isInteger=function(){return!!this.c&&J(this.e/Z)>this.c.length-2},f.isLessThan=f.lt=function(t,e){return K(this,new C(t,e))<0},f.isLessThanOrEqualTo=f.lte=function(t,e){return-1===(e=K(this,new C(t,e)))||0===e},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(t,e){var r,n,i,a,o=this,s=o.s;if(e=(t=new C(t,e)).s,!s||!e)return new C(NaN);if(s!=e)return t.s=-e,o.plus(t);var u=o.e/Z,l=t.e/Z,h=o.c,c=t.c;if(!u||!l){if(!h||!c)return h?(t.s=-e,t):new C(c?o:NaN);if(!h[0]||!c[0])return c[0]?(t.s=-e,t):new C(h[0]?o:3==m?-0:0)}if(u=J(u),l=J(l),h=h.slice(),s=u-l){for((a=s<0)?(s=-s,i=h):(l=u,i=c),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(n=(a=(s=h.length)<(e=c.length))?s:e,s=e=0;e<n;e++)if(h[e]!=c[e]){a=h[e]<c[e];break}if(a&&(i=h,h=c,c=i,t.s=-t.s),(e=(n=c.length)-(r=h.length))>0)for(;e--;h[r++]=0);for(e=q-1;n>s;){if(h[--n]<c[n]){for(r=n;r&&!h[--r];h[r]=e);--h[r],h[n]+=q}h[n]-=c[n]}for(;0==h[0];h.splice(0,1),--l);return h[0]?M(t,h,l):(t.s=3==m?-1:1,t.c=[t.e=0],t)},f.modulo=f.mod=function(t,e){var n,i,a=this;return t=new C(t,e),!a.c||!t.s||t.c&&!t.c[0]?new C(NaN):!t.c||a.c&&!a.c[0]?new C(a):(9==_?(i=t.s,t.s=1,n=r(a,t,0,3),t.s=i,n.s*=i):n=r(a,t,0,_),(t=a.minus(n.times(t))).c[0]||1!=_||(t.s=a.s),t)},f.multipliedBy=f.times=function(t,e){var r,n,i,a,o,s,u,l,h,c,f,d,p,m,g,b=this,y=b.c,v=(t=new C(t,e)).c;if(!(y&&v&&y[0]&&v[0]))return!b.s||!t.s||y&&!y[0]&&!v||v&&!v[0]&&!y?t.c=t.e=t.s=null:(t.s*=b.s,y&&v?(t.c=[0],t.e=0):t.c=t.e=null),t;for(n=J(b.e/Z)+J(t.e/Z),t.s*=b.s,(u=y.length)<(c=v.length)&&(p=y,y=v,v=p,i=u,u=c,c=i),i=u+c,p=[];i--;p.push(0));for(m=q,g=Y,i=c;--i>=0;){for(r=0,f=v[i]%g,d=v[i]/g|0,a=i+(o=u);a>i;)r=((l=f*(l=y[--o]%g)+(s=d*l+(h=y[o]/g|0)*f)%g*g+p[a]+r)/m|0)+(s/g|0)+d*h,p[a--]=l%m;p[a]=r}return r?++n:p.splice(0,1),M(t,p,n)},f.negated=function(){var t=new C(this);return t.s=-t.s||null,t},f.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new C(t,e)).s,!i||!e)return new C(NaN);if(i!=e)return t.s=-e,n.minus(t);var a=n.e/Z,o=t.e/Z,s=n.c,u=t.c;if(!a||!o){if(!s||!u)return new C(i/0);if(!s[0]||!u[0])return u[0]?t:new C(s[0]?n:0*i)}if(a=J(a),o=J(o),s=s.slice(),i=a-o){for(i>0?(o=a,r=u):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(e=u.length)<0&&(r=u,u=s,s=r,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/q|0,s[e]=q===s[e]?0:s[e]%q;return i&&(s=[i].concat(s),++o),M(t,s,o)},f.precision=f.sd=function(t,e){var r,n,i,a=this;if(null!=t&&t!==!!t)return tt(t,1,X),null==e?e=m:tt(e,0,8),S(new C(a),t,e);if(!(r=a.c))return null;if(n=(i=r.length-1)*Z+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&a.e+1>n&&(n=a.e+1),n},f.shiftedBy=function(t){return tt(t,-9007199254740991,$),this.times("1e"+t)},f.squareRoot=f.sqrt=function(){var t,e,n,i,a,o=this,s=o.c,u=o.s,l=o.e,h=p+4,c=new C("0.5");if(1!==u||!s||!s[0])return new C(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+P(o)))||u==1/0?(((e=Q(s)).length+l)%2==0&&(e+="0"),u=Math.sqrt(+e),l=J((l+1)/2)-(l<0||l%2),n=new C(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new C(u+""),n.c[0])for((u=(l=n.e)+h)<3&&(u=0);;)if(a=n,n=c.times(a.plus(r(o,a,h,1))),Q(a.c).slice(0,u)===(e=Q(n.c)).slice(0,u)){if(n.e<l&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(S(n,n.e+p+2,1),t=!n.times(n).eq(o));break}if(!i&&(S(a,a.e+p+2,0),a.times(a).eq(o))){n=a;break}h+=4,u+=4,i=1}return S(n,n.e+p+1,m,t)},f.toExponential=function(t,e){return null!=t&&(tt(t,0,X),t++),A(this,t,e,1)},f.toFixed=function(t,e){return null!=t&&(tt(t,0,X),t=t+this.e+1),A(this,t,e)},f.toFormat=function(t,e,r){var n,i=this;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=B;else if("object"!=typeof r)throw Error(H+"Argument not an object: "+r);if(n=i.toFixed(t,e),i.c){var a,o=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",h=o[0],c=o[1],f=i.s<0,d=f?h.slice(1):h,p=d.length;if(u&&(a=s,s=u,u=a,p-=a),s>0&&p>0){for(a=p%s||s,h=d.substr(0,a);a<p;a+=s)h+=l+d.substr(a,s);u>0&&(h+=l+d.slice(a)),f&&(h="-"+h)}n=c?h+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?c.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):c):h}return(r.prefix||"")+n+(r.suffix||"")},f.toFraction=function(t){var e,n,i,a,o,s,u,l,h,c,f,p,g=this,b=g.c;if(null!=t&&(!(u=new C(t)).isInteger()&&(u.c||1!==u.s)||u.lt(d)))throw Error(H+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+P(u));if(!b)return new C(g);for(e=new C(d),h=n=new C(d),i=l=new C(d),p=Q(b),o=e.e=p.length-g.e-1,e.c[0]=V[(s=o%Z)<0?Z+s:s],t=!t||u.comparedTo(e)>0?o>0?e:h:u,s=v,v=1/0,u=new C(p),l.c[0]=0;c=r(u,e,0,1),1!=(a=n.plus(c.times(i))).comparedTo(t);)n=i,i=a,h=l.plus(c.times(a=h)),l=a,e=u.minus(c.times(a=e)),u=a;return a=r(t.minus(n),i,0,1),l=l.plus(a.times(h)),n=n.plus(a.times(i)),l.s=h.s=g.s,f=r(h,i,o*=2,m).minus(g).abs().comparedTo(r(l,n,o,m).minus(g).abs())<1?[h,i]:[l,n],v=s,f},f.toNumber=function(){return+P(this)},f.toPrecision=function(t,e){return null!=t&&tt(t,1,X),A(this,t,e,2)},f.toString=function(t){var e,r=this,i=r.s,a=r.e;return null===a?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=a<=g||a>=b?rt(Q(r.c),a):nt(Q(r.c),a,"0"):10===t&&E?e=nt(Q((r=S(new C(r),p+a+1,m)).c),r.e,"0"):(tt(t,2,x.length,"Base"),e=n(nt(Q(r.c),a,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},f.valueOf=f.toJSON=function(){return P(this)},f._isBigNumber=!0,f[Symbol.toStringTag]="BigNumber",f[Symbol.for("nodejs.util.inspect.custom")]=f.valueOf,null!=e&&C.set(e),C}();const at=it;function ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var st=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i(this,t),this.bytes=e,this.length=this.bytes.length,this.position=r,this.bitPos=n}return u(t,[{key:"clone",value:function(){return new t(this.bytes,this.position,this.bitPos)}},{key:"getBytes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==t?this.position+t:this.length,r=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,r}}},{key:"readString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===t&&(t=this.length-this.position);for(var e="",r=this.position;r<this.position+t;r++){var n=this.bytes[r];if(0===n)break;e+=String.fromCharCode(n)}return this.position+=t,this.bitPos=0,e}}},{key:"readInt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r=0;if("be"===e)for(var n=this.position;n<this.position+t;n++)r<<=8,r|=this.bytes[n];else for(var i=this.position+t-1;i>=this.position;i--)r<<=8,r|=this.bytes[i];return this.position+=t,this.bitPos=0,r}}},{key:"readBits",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r,n=0,i=0;for(n=this.bytes[this.position++]&(r=this.bitPos,"be"===e?(1<<8-r)-1:256-(1<<r)),"be"!==e&&(n>>>=this.bitPos),i=8-this.bitPos,this.bitPos=0;i<t;)"be"===e?n=n<<i|this.bytes[this.position++]:n|=this.bytes[this.position++]<<i,i+=8;if(i>t){var a=i-t;"be"===e?n>>>=a:n&=(1<<t)-1,i-=a,this.position--,this.bitPos=8-a}return n}}},{key:"continueUntil",value:function(t){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof t){var e=t.length,r=t[e-1];this.position=e;for(var n,i=function(t,e){var r=new Array;return t.forEach((function(t,n){r[t]=e-n})),r}(t,e);this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==r;);n=!0;for(var a=e-1;a>=0;a--)if(this.bytes[this.position-e+a]!==t[a]){n=!1,this.position+=i[t[a]];break}if(n){this.position-=e;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==t;);}},{key:"consumeWhile",value:function(t){for(;this.position<this.length&&this.bytes[this.position]===t;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(t){this.bytes[this.position]===t&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(t){var e=this.position+t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(t){var e=this.position-t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(t){if(t<=this.bitPos)this.bitPos-=t;else for(this.bitPos>0&&(t-=this.bitPos,this.bitPos=0);t>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(t),t-=8}},{key:"moveTo",value:function(t){if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(t,e)}}])}();function ut(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return lt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var ht={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(t,e){for(var r=new st(t.slice(e));r.hasMore();){var n=r.getBytes(2);if(255!==n[0])throw new Error(`Invalid marker while parsing JPEG at pos ${r.position}: ${n}`);var i=0;switch(n[1]){case 216:case 1:break;case 217:return r.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=r.readInt(2,"be"),r.position+=i-2;break;case 223:r.position++;break;case 220:case 221:r.position+=2;break;case 218:i=r.readInt(2,"be"),r.position+=i-2,r.continueUntil(255);break;default:r.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(t,e){var r=new st(t.slice(e));for(r.continueUntil([33,255]),r.continueUntil([33,249]),r.moveForwardsBy(2);r.hasMore();){for(r.moveForwardsBy(r.readInt(1)+1),r.moveForwardsBy(11);!Array.from(r.getBytes(2)).equals([33,249])&&(r.moveBackwardsBy(2),r.moveForwardsBy(r.readInt(1)),r.readInt(1));)r.moveBackwardsBy(1);if(59===r.readInt(1))break;r.moveForwardsBy(1)}return r.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(8);for(var n=0,i="";"IEND"!==i;)n=r.readInt(4,"be"),i=r.readString(4),r.moveForwardsBy(n+4);return r.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(4);var n=r.readInt(4,"le");return r.moveForwardsBy(n),r.carve()}},{name:"High Efficiency Image File Format",extension:"heic,heif",mime:"image/heif",description:"",signature:{0:0,1:0,2:0,3:[36,24],4:102,5:116,6:121,7:112,8:104,9:101,10:105,11:99},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(2);var n=r.readInt(4,"le");return r.moveForwardsBy(n-6),r.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(t,e){var r=new st(t.slice(e));r.moveTo(4);var n=r.readInt(2,"le");r.moveForwardsBy(8+16*(n-1));var i=r.readInt(4,"le"),a=r.readInt(4,"le");return r.moveTo(a+i),r.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(t,e){var r=new st(t);r.moveTo(e-8);var n=r.readInt(4,"le"),i=r.readInt(4,"le");function a(t,e){for(var n=0;n<t;n++){r.moveBackwardsBy(1);var i=r.readInt(e,"le")-1;if(r.moveBackwardsBy(e),i===n)break}}return r.moveBackwardsBy(8),n||i?n?(a(65535,2),r.moveBackwardsBy(n)):i&&(a(4294967295,4),r.moveBackwardsBy(6),r.moveBackwardsBy(i)):(function(){r.moveBackwardsBy(5);for(var t=0;t<1048576&&r.readInt(2,"le")*r.readInt(2,"le")*r.readInt(1)/8!=t-1;t++)r.moveBackwardsBy(6)}(),r.moveBackwardsBy(17)),r.carve(r.position,e+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(5);var n=r.readInt(4,"be");r.moveForwardsBy(n-9);for(var i=-11;r.hasMore();){var a=r.readInt(4,"be"),o=r.readInt(1);if([8,9,18].indexOf(o)<0){r.moveBackwardsBy(1);break}if(a!==i+11){r.moveBackwardsBy(i+11+5);break}i=r.readInt(3,"be"),r.moveForwardsBy(7+i)}return r.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(4),r.moveTo(r.readInt(4,"le")+8),r.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(t,e){var r=new st(t.slice(e)),n=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],i=[44100,48e3,32e3,"reserved"];if(r.getBytes(3).toString()===[73,68,51].toString()){r.moveTo(6);var a=r.readInt(1)<<21|r.readInt(1)<<14|r.readInt(1)<<7|r.readInt(1);r.moveForwardsBy(a)}else r.moveTo(0);for(;r.hasMore();){if(r.getBytes(3)===[84,65,71].toString()){r.moveForwardsBy(125);break}if(r.getBytes(2).toString()!==[255,251].toString()){r.moveBackwardsBy(2);break}var o=r.readInt(1),s=n[o>>4],u=i[(15&o)>>2],l=(2&o)>>1;if("free"===s||"bad"===s||"reserved"===u){r.moveBackwardsBy(1);break}var h=Math.floor(144*s/u+l);if(r.position+h>r.length){r.moveTo(r.length);break}r.moveForwardsBy(h-3)}return r.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(t,e){var r=new st(t.slice(e));return r.continueUntil([37,37,69,79,70]),r.moveForwardsBy(5),r.consumeIf(13),r.consumeIf(10),r.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(t,e){var r=new st(t.slice(e)),n=0;if(123!==r.readInt(1))throw new Error("Not a valid RTF file");for(n++;n>0&&r.hasMore();)switch(r.readInt(1)){case 123:n++;break;case 125:n--;break;case 92:r.consumeIf(92),r.position++}return r.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:ct},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:ct}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(t,e){var r=new st(t.slice(e));r.moveTo(60);var n=r.readInt(4,"le");r.moveTo(n),r.moveForwardsBy(6);var i=r.readInt(2,"le");r.moveForwardsBy(16);var a=523===r.readInt(2,"le")?112:96;r.moveForwardsBy(a-2),r.moveForwardsBy(32);var o=r.readInt(4,"le"),s=r.readInt(4,"le");if(o>0)return r.moveTo(o+s),r.carve();r.moveForwardsBy(88),r.moveForwardsBy(40*(i-1)),r.moveForwardsBy(16);var u=r.readInt(4,"le"),l=r.readInt(4,"le");return r.moveTo(l+u),r.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(4);var n=1===r.readInt(1),i=1===r.readInt(1)?"le":"be";r.moveForwardsBy(n?26:34);var a=n?r.readInt(4,i):r.readInt(8,i);r.moveForwardsBy(10);var o=r.readInt(2,i),s=r.readInt(2,i);return r.moveTo(a),r.moveForwardsBy(o*s),r.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:ft},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:ft},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:ct},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(t,e){for(var r=new st(t.slice(e)),n=function(){if(r.moveForwardsBy(257),r.getBytes(5).join("")!==[117,115,116,97,114].join(""))return r.moveBackwardsBy(262),1;r.moveBackwardsBy(138);var t=0;r.getBytes(11).forEach((function(e,r){t+=(e-48).toString()})),t=512*Math.ceil(parseInt(t,8)/512),r.moveForwardsBy(t+377)};r.hasMore()&&!n(););return r.consumeWhile(0),r.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(t,e){var r=new st(t.slice(e));r.moveForwardsBy(3);var n=r.readInt(1);if(r.moveForwardsBy(4),r.readInt(1),r.moveForwardsBy(1),4&n){var i=r.readInt(2,"le");r.moveForwardsby(i)}return 8&n&&(r.continueUntil(0),r.moveForwardsBy(1)),16&n&&(r.continueUntil(0),r.moveForwardsBy(1)),2&n&&r.moveForwardsBy(2),yt(r),r.moveForwardsBy(8),r.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(t,e){for(var r=new st(t.slice(e)),n=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i<n.length&&(r.continueUntil(n[i]),r.getBytes(5).join("")!==n[i].join(""));i++)r.moveTo(0);return r.moveForwardsBy(4),r.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(t,e){var r=new st(t.slice(e));return r.moveForwardsBy(1),32&r.readInt(1)&&r.moveForwardsBy(4),yt(r),r.moveForwardsBy(4),r.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(t,e){var r=new st(t.slice(e));return r.continueUntil([0,0,0,0,4,89,90]),r.moveForwardsBy(7),r.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:ct},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(t,e){var r=new st(t.slice(e)),n=0,i=0;r.moveForwardsBy(9);var a=r.readInt(2,"be");r.moveForwardsBy(6);var o=r.readInt(4,"be");2048&a&&r.moveForwardsBy(4),2&o&&n++,512&o&&n++,1&o&&i++,256&o&&i++,r.moveForwardsBy(8),a>=2368&&r.moveForwardsBy(4);var s=r.readInt(1,"be");if(r.moveForwardsBy(s),64&o){var u=r.readInt(4,"be");r.moveForwardsBy(u)}for(r.moveForwardsBy(4);r.hasMore();){var l=r.readInt(4,"be");if(0===l)break;var h=r.readInt(4,"be"),c=l===h?i:i+n;r.moveForwardsBy(h+4*c)}return r.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(t,e){var r=new st(t.slice(e));for(r.moveForwardsBy(8);r.hasMore();){r.moveForwardsBy(48);var n,i="",a=ut(r.getBytes(10));try{for(a.s();!(n=a.n()).done;){var o=n.value;i+=String.fromCharCode(o)}}catch(t){a.e(t)}finally{a.f()}i=parseInt(i.trim(),10),r.moveForwardsBy(2),r.moveForwardsBy(i)}return r.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(t,e){var r=new st(t.slice(e));r.moveTo(16);var n=r.readInt(2);r.moveTo(28);var i=r.readInt(4);return r.moveTo(n*i),r.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(t,e){var r=new st(t.slice(e));r.moveTo(20);var n=r.readInt(4,"le");r.moveTo(n);var i=r.readInt(4,"le");return r.moveForwardsBy(i-4),r.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(t,e){var r=new st(t.slice(e));r.moveTo(40);var n=r.readInt(4,"le")-44;for(r.moveForwardsBy(n);r.hasMore()&&r.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)r.moveForwardsBy(65529);return r.consumeWhile(0),r.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(112),r.moveTo(4096*(r.readInt(4,"le")+1)),r.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(12),r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(t,e){var r=new st(t.slice(e)),n=0;for(r.continueUntil([60,112,108,105,115,116]),r.moveForwardsBy(6),n++;n>0&&r.hasMore();)60===r.readInt(1)&&(r.getBytes(5).join("")===[112,108,105,115,116].join("")?n++:r.moveBackwardsBy(5),r.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?n--:r.moveBackwardsBy(7));return r.consumeIf(10),r.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(20),r.moveForwardsBy(r.readInt(4)),r.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(t){return t>=1&&t<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(t){return t>=1&&t<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(t){return 0!==t},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(t,e){var r=new st(t.slice(e));return r.moveTo(52),r.moveTo(r.readInt(4,"le")),r.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function ct(t,e){var r=new st(t.slice(e));r.continueUntil([80,75,5,6]),r.moveForwardsBy(20);var n=r.readInt(2,"le");return r.moveForwardsBy(n),r.carve()}function ft(t,e){var r="207250237254",n=new st(t.slice(e)),i=n.getBytes(4).join("");return n.moveTo(function(t,e,r){var n=28;e&&(n+=4),t.moveTo(16);var i=t.readInt(4,r);return function(t,e,r,n){for(var i=0,a=0;a<n;a++){t.moveTo(e);var o=t.readInt(4,r);25===o?(t.moveTo(e+48),i+=t.readInt(8,r),t.moveTo(e+4),e+=t.readInt(4,r)):1===o&&(t.moveTo(e+36),i+=t.readInt(4,r),t.moveTo(e+4),e+=t.readInt(4,r))}return i}(t,n,r,i)}(n,function(t){return t===r||"254237250207"===t}(i),function(t){return"206250237254"===t||t===r}(i)?"le":"be")),n.carve()}for(var dt=new Array(288),pt=0;pt<dt.length;pt++)dt[pt]=pt<=143?8:pt<=255?9:pt<=279?7:8;var mt=kt(dt),gt=kt(new Array(30).fill(5)),bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(t){for(var e=0;!e;){e=t.readBits(1,"le");var r=t.readBits(2,"le");if(0===r){t.moveForwardsBy(1);var n=t.readInt(2,"le");t.moveForwardsBy(2+n)}else if(1===r)_t(t,mt,gt);else{if(2!==r)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${t.position}`);for(var i=t.readBits(5,"le")+257,a=t.readBits(5,"le")+1,o=t.readBits(4,"le")+4,s=new Uint8Array(bt.length),u=0;u<o;u++)s[bt[u]]=t.readBits(3,"le");for(var l=kt(s),h=new Uint8Array(i+a),c=void 0,f=void 0,d=void 0,p=0;p<i+a;)switch(c=Bt(t,l)){case 16:for(f=3+t.readBits(2,"le");f--;)h[p++]=d;break;case 17:for(f=3+t.readBits(3,"le");f--;)h[p++]=0;d=0;break;case 18:for(f=11+t.readBits(7,"le");f--;)h[p++]=0;d=0;break;default:h[p++]=c,d=c}_t(t,kt(h.subarray(0,i)),kt(h.subarray(i)))}}t.bitPos>0&&t.moveForwardsBy(1)}var vt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function _t(t,e,r){for(var n,i=0;(n=Bt(t,e))&&256!==n;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");n<256||(t.readBits(vt[n-257],"le"),n=Bt(t,r),t.readBits(wt[n],"le"))}}function kt(t){for(var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t),n=1<<e,i=new Uint32Array(n),a=1,o=0,s=2;a<=e;){for(var u=0;u<t.length;u++)if(t[u]===a){var l=void 0,h=void 0,c=void 0;for(l=0,h=o,c=0;c<a;c++)l=l<<1|1&h,h>>=1;for(var f=a<<16|u,d=l;d<n;d+=s)i[d]=f;o++}a++,o<<=1,s<<=1}return[i,e,r]}function Bt(t,e){var r=ot(e,2),n=r[0],i=r[1],a=n[t.readBits(i,"le")&(1<<i)-1],o=a>>>16;if(o>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${t.position}: ${o}`);return t.moveBackwardsByBits(i-o),65535&a}function xt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length){for(var n=0;n<t.length;n++)if(Et(t[n],e,r))return!0;return!1}return Et(t,e,r)}function Et(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var n in t){var i=parseInt(n,10)+r;switch(typeof t[n]){case"number":if(e[i]!==t[n])return!1;break;case"object":if(t[n].indexOf(e[i])<0)return!1;break;case"function":if(!t[n](e[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${n}`)}}return!0}function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(ht);if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t&&t.length>1))return[];var r=[],n={};for(var i in ht)e.includes(i)&&(n[i]=ht[i]);for(var a in n)n[a].forEach((function(e){xt(e.signature,t)&&r.push(e)}));return r}function At(t){return function(t,e){var r=Ct(e);return!!r.length&&r.reduce((function(e,r){var n=!!r.mime.startsWith(t)&&r.mime;return e||n}),!1)}("image",t)}const It=function(){return u((function t(){i(this,t)}),null,[{key:"checkForValue",value:function(t){if(void 0===t)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}])}();function Mt(t,e,r){return e=h(e),l(t,St()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function St(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(St=function(){return!!t})()}const Pt=function(t){function e(){return i(this,e),Mt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}])}(It);function Tt(t,e,r){return e=h(e),l(t,Rt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Rt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rt=function(){return!!t})()}const Ft=function(t){function e(){return i(this,e),Tt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=at.isBigNumber(this.value)?O.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value);try{this.value=new at(O.arrayBufferToStr(this.value))}catch(t){this.value=new at(NaN)}}}])}(It);function Lt(t,e,r){return e=h(e),l(t,Ot()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ot(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ot=function(){return!!t})()}const Ut=function(t){function e(){return i(this,e),Lt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){var t=this;if(e.checkForValue(this.value),!R())return new Promise((function(e,r){O.readFile(t.value).then((function(e){return t.value=e.buffer})).then(e).catch(r)}));this.value=O.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new File(this.value,"unknown")}}])}(It);function Dt(t,e,r){return e=h(e),l(t,Nt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Nt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nt=function(){return!!t})()}const zt=function(t){function e(){return i(this,e),Dt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.arrayBufferToStr(this.value):""}}])}(It);function Gt(t,e,r){return e=h(e),l(t,jt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function jt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jt=function(){return!!t})()}const Ht=function(t){function e(){return i(this,e),Gt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.strToArrayBuffer(O.unescapeHtml(O.stripHtmlTags(this.value,!0))):new ArrayBuffer}}])}(zt);function Wt(t,e,r){return e=h(e),l(t,qt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function qt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qt=function(){return!!t})()}const Zt=function(t){function e(){return i(this,e),Wt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=void 0!==this.value?O.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=JSON.parse(O.arrayBufferToStr(this.value))}}])}(It);function $t(t,e,r){return e=h(e),l(t,Vt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vt=function(){return!!t})()}const Yt=function(t){function e(){return i(this,e),$t(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:(a=n(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.checkForValue(this.value),!R()){t.next=5;break}this.value=this.value.map((function(t){return Uint8Array.from(t.data)})),t.next=8;break;case 5:return t.next=7,e.concatenateTypedArraysWithTypedElements.apply(e,b(this.value));case 7:this.value=t.sent;case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(r=n(p().mark((function t(){var e,r,n,i,a,o,s,u,l,h,c,f,d,m=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=0,r=m.length,n=new Array(r),i=0;i<r;i++)n[i]=m[i];for(a=0,o=n;a<o.length;a++)s=o[a],e+=s.size;u=new Uint8Array(e),l=0,h=0,c=n;case 6:if(!(h<c.length)){t.next=16;break}return f=c[h],t.next=10,O.readFile(f);case 10:d=t.sent,u.set(d,l),l+=d.length;case 13:h++,t.next=6;break;case 16:return t.abrupt("return",u);case 17:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var t=0,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0,a=r;i<a.length;i++)t+=a[i].length;for(var o=new Uint8Array(t),s=0,u=0,l=r;u<l.length;u++){var h=l[u];o.set(h,s),s+=h.length}return o}}]);var r,a}(It);function Xt(t,e,r){return e=h(e),l(t,Jt()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Jt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jt=function(){return!!t})()}const Qt=function(t){function e(){return i(this,e),Xt(this,e,arguments)}return f(e,t),u(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value="number"==typeof this.value?O.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?parseFloat(O.arrayBufferToStr(this.value)):0}}])}(It);var Kt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(i(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==r)this.set(e,r);else if(e){var n=t.typeEnum(e.constructor.name);this.set(e,n)}}return u(t,[{key:"get",value:function(e){var r=this;return"string"==typeof e&&(e=t.typeEnum(e)),this.type!==e?R()?(this._translate(e),this.value):new Promise((function(t,n){r._translate(e).then((function(){t(r.value)})).catch(n)})):this.value}},{key:"set",value:function(e,r){if("string"==typeof r&&(r=t.typeEnum(r)),v().debug("Dish type: "+t.enumLookup(r)),this.value=e,this.type=r,!this.valid()){var n=O.truncate(JSON.stringify(this.value),25);throw new N(`Data is not a valid ${t.enumLookup(r)}: ${n}`)}}},{key:"presentAs",value:function(t){return this.clone().get(t)}},{key:"detectDishType",value:function(){var t=Ct(new Uint8Array(this.value.slice(0,2048)));return t.length&&t[0].mime&&"text/plain"===t[0].mime?t[0].mime:null}},{key:"getTitle",value:(e=n(p().mark((function e(r){var n,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="",e.t0=this.type,e.next=e.t0===t.FILE?4:e.t0===t.LIST_FILE?6:e.t0===t.JSON?8:e.t0===t.NUMBER||e.t0===t.BIG_NUMBER?10:e.t0===t.ARRAY_BUFFER||e.t0===t.BYTE_ARRAY?12:15;break;case 4:return n=this.value.name,e.abrupt("break",26);case 6:return n=`${this.value.length} file(s)`,e.abrupt("break",26);case 8:return n="application/json",e.abrupt("break",26);case 10:return n=this.value.toString(),e.abrupt("break",26);case 12:if(null===(n=this.detectDishType())){e.next=15;break}return e.abrupt("break",26);case 15:return e.prev=15,(i=this.clone()).value=i.value.slice(0,256),e.next=20,i.get(t.STRING);case 20:n=e.sent,e.next=26;break;case 23:e.prev=23,e.t1=e.catch(15),v().error(`${t.enumLookup(this.type)} cannot be sliced. ${e.t1}`);case 26:return e.abrupt("return",n.slice(0,r));case 27:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(t){return e.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e<this.value.length;e++)if("number"!=typeof this.value[e]||this.value[e]<0||this.value[e]>255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:if(at.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var r=new at;return r.c=this.value.c,r.e=this.value.e,r.s=this.value.s,this.value=r,!0}return!1;case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(t,e){return t&&e instanceof File}),!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce((function(t,e){return t+e.size}),0);default:return-1}}},{key:"clone",value:function(){var e=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:e.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case t.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:e.set(this.value.map((function(t){return new File([t],t.name,{type:t.type,lastModified:t.lastModified})})),this.type);break;default:throw new N("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var r=this;if(v().debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(e)}`),!R())return new Promise((function(n,i){r._toArrayBuffer().then((function(){return r.type=t.ARRAY_BUFFER})).then((function(){r._fromArrayBuffer(e),n()})).catch(i)}));this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,r={browser:{[t.STRING]:function(){return Promise.resolve(zt.toArrayBuffer.bind(e)())},[t.NUMBER]:function(){return Promise.resolve(Qt.toArrayBuffer.bind(e)())},[t.HTML]:function(){return Promise.resolve(Ht.toArrayBuffer.bind(e)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(Ft.toArrayBuffer.bind(e)())},[t.JSON]:function(){return Promise.resolve(Zt.toArrayBuffer.bind(e)())},[t.FILE]:function(){return Ut.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Promise.resolve(Yt.toArrayBuffer.bind(e)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(Pt.toArrayBuffer.bind(e)())}},node:{[t.STRING]:function(){return zt.toArrayBuffer.bind(e)()},[t.NUMBER]:function(){return Qt.toArrayBuffer.bind(e)()},[t.HTML]:function(){return Ht.toArrayBuffer.bind(e)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Ft.toArrayBuffer.bind(e)()},[t.JSON]:function(){return Zt.toArrayBuffer.bind(e)()},[t.FILE]:function(){return Ut.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Yt.toArrayBuffer.bind(e)()},[t.BYTE_ARRAY]:function(){return Pt.toArrayBuffer.bind(e)()}}};try{return r[R()?"node":"browser"][this.type]()}catch(e){throw new N(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var r=this,n={[t.STRING]:function(){return zt.fromArrayBuffer.bind(r)()},[t.NUMBER]:function(){return Qt.fromArrayBuffer.bind(r)()},[t.HTML]:function(){return Ht.fromArrayBuffer.bind(r)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Ft.fromArrayBuffer.bind(r)()},[t.JSON]:function(){return Zt.fromArrayBuffer.bind(r)()},[t.FILE]:function(){return Ut.fromArrayBuffer.bind(r)()},[t.LIST_FILE]:function(){return Yt.fromArrayBuffer.bind(r)()},[t.BYTE_ARRAY]:function(){return Pt.fromArrayBuffer.bind(r)()}};try{n[e](),this.type=e}catch(r){throw new N(`Error translating from ArrayBuffer to ${t.enumLookup(e)}: ${r}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list<file>":return t.LIST_FILE;default:throw new N("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List<File>";default:throw new N("Invalid data type enum. No matching type.")}}}]);var e}();Kt.BYTE_ARRAY=0,Kt.STRING=1,Kt.NUMBER=2,Kt.HTML=3,Kt.ARRAY_BUFFER=4,Kt.BIG_NUMBER=5,Kt.JSON=6,Kt.FILE=7,Kt.LIST_FILE=8;const te=Kt,ee=function(){function t(e){i(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,e&&this._parseConfig(e)}return u(t,[{key:"_parseConfig",value:function(t){this.name=t.name,this.type=t.type,this.defaultValue=t.value,this.disabled=!!t.disabled,this.hint=t.hint||!1,this.rows=t.rows||!1,this.toggleValues=t.toggleValues,this.target=void 0!==t.target?t.target:null,this.defaultIndex=void 0!==t.defaultIndex?t.defaultIndex:0,this.maxLength=t.maxLength||null,this.min=t.min,this.max=t.max,this.step=t.step}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=t.prepare(e,this.type)}}],[{key:"prepare",value:function(t,e){var r;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return O.parseEscapedChars(t);case"byteArray":return"string"==typeof t?A(t=t.replace(/\s+/g,"")):t;case"number":if(null===t)return t;if(r=parseFloat(t),isNaN(r))throw"Invalid ingredient value. Not a number: "+O.truncate(t.toString(),10);return r;default:return t}}}])}();var re=function(){return u((function t(){i(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}),[{key:"run",value:function(t,e){return t}},{key:"highlight",value:function(t,e){return!1}},{key:"highlightReverse",value:function(t,e){return!1}},{key:"present",value:function(t,e){return t}},{key:"inputType",get:function(){return te.enumLookup(this._inputType)},set:function(t){this._inputType=te.typeEnum(t)}},{key:"outputType",get:function(){return te.enumLookup(this._outputType)},set:function(t){this._outputType=te.typeEnum(t),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return te.enumLookup(this._presentType)},set:function(t){this._presentType=te.typeEnum(t)}},{key:"args",get:function(){return this._ingList.map((function(t){var e={name:t.name,type:t.type,value:t.defaultValue};return t.toggleValues&&(e.toggleValues=t.toggleValues),t.hint&&(e.hint=t.hint),t.rows&&(e.rows=t.rows),t.disabled&&(e.disabled=t.disabled),t.target&&(e.target=t.target),t.defaultIndex&&(e.defaultIndex=t.defaultIndex),t.maxLength&&(e.maxLength=t.maxLength),"number"==typeof t.min&&(e.min=t.min),"number"==typeof t.max&&(e.max=t.max),t.step&&(e.step=t.step),e}))},set:function(t){var e=this;t.forEach((function(t){var r=new ee(t);e.addIngredient(r)}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(t){return t.config}))}}},{key:"addIngredient",value:function(t){this._ingList.push(t)}},{key:"ingValues",get:function(){return this._ingList.map((function(t){return t.value}))},set:function(t){var e=this;t.forEach((function(t,r){e._ingList[r].value=t}))}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(t){this._breakpoint=!!t}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=!!t}},{key:"flowControl",get:function(){return this._flowControl},set:function(t){this._flowControl=!!t}},{key:"manualBake",get:function(){return this._manualBake},set:function(t){this._manualBake=!!t}}])}();const ne=re;var ie=__webpack_require__(73711),ae=__webpack_require__.n(ie),oe=__webpack_require__(43627),se=__webpack_require__.n(oe),ue=__webpack_require__(37007),le=__webpack_require__.n(ue);function he(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0}function ce(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t}function fe(t,e,r,n,i,a){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(let o=r;o<r+i;o++)for(let r=e;r<e+n;r++){const e=t.bitmap.width*o+r<<2;a.call(t,r,o,e)}return t}var de=__webpack_require__(31493),pe=__webpack_require__.n(de),me=__webpack_require__(68160),ge=__webpack_require__.n(me);function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}var ye=/^\s+/,ve=/\s+$/;function we(t,e){if(e=e||{},(t=t||"")instanceof we)return t;if(!(this instanceof we))return new we(t,e);var r=function(t){var e,r,n,i={r:0,g:0,b:0},a=1,o=null,s=null,u=null,l=!1,h=!1;return"string"==typeof t&&(t=function(t){t=t.replace(ye,"").replace(ve,"").toLowerCase();var e,r=!1;if(Ue[t])t=Ue[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=Xe.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Xe.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Xe.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Xe.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Xe.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Xe.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Xe.hex8.exec(t))?{r:je(e[1]),g:je(e[2]),b:je(e[3]),a:Ze(e[4]),format:r?"name":"hex8"}:(e=Xe.hex6.exec(t))?{r:je(e[1]),g:je(e[2]),b:je(e[3]),format:r?"name":"hex"}:(e=Xe.hex4.exec(t))?{r:je(e[1]+""+e[1]),g:je(e[2]+""+e[2]),b:je(e[3]+""+e[3]),a:Ze(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=Xe.hex3.exec(t))&&{r:je(e[1]+""+e[1]),g:je(e[2]+""+e[2]),b:je(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==be(t)&&(Je(t.r)&&Je(t.g)&&Je(t.b)?(e=t.r,r=t.g,n=t.b,i={r:255*ze(e,255),g:255*ze(r,255),b:255*ze(n,255)},l=!0,h="%"===String(t.r).substr(-1)?"prgb":"rgb"):Je(t.h)&&Je(t.s)&&Je(t.v)?(o=We(t.s),s=We(t.v),i=function(t,e,r){t=6*ze(t,360),e=ze(e,100),r=ze(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(t.h,o,s),l=!0,h="hsv"):Je(t.h)&&Je(t.s)&&Je(t.l)&&(o=We(t.s),u=We(t.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=ze(t,360),e=ze(e,100),r=ze(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,o,u),l=!0,h="hsl"),t.hasOwnProperty("a")&&(a=t.a)),a=Ne(a),{ok:l,format:t.format||h,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function _e(t,e,r){t=ze(t,255),e=ze(e,255),r=ze(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function ke(t,e,r){t=ze(t,255),e=ze(e,255),r=ze(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function Be(t,e,r,n){var i=[He(Math.round(t).toString(16)),He(Math.round(e).toString(16)),He(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function xe(t,e,r,n){return[He(qe(n)),He(Math.round(t).toString(16)),He(Math.round(e).toString(16)),He(Math.round(r).toString(16))].join("")}function Ee(t,e){e=0===e?0:e||10;var r=we(t).toHsl();return r.s-=e/100,r.s=Ge(r.s),we(r)}function Ce(t,e){e=0===e?0:e||10;var r=we(t).toHsl();return r.s+=e/100,r.s=Ge(r.s),we(r)}function Ae(t){return we(t).desaturate(100)}function Ie(t,e){e=0===e?0:e||10;var r=we(t).toHsl();return r.l+=e/100,r.l=Ge(r.l),we(r)}function Me(t,e){e=0===e?0:e||10;var r=we(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),we(r)}function Se(t,e){e=0===e?0:e||10;var r=we(t).toHsl();return r.l-=e/100,r.l=Ge(r.l),we(r)}function Pe(t,e){var r=we(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,we(r)}function Te(t){var e=we(t).toHsl();return e.h=(e.h+180)%360,we(e)}function Re(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=we(t).toHsl(),n=[we(t)],i=360/e,a=1;a<e;a++)n.push(we({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function Fe(t){var e=we(t).toHsl(),r=e.h;return[we(t),we({h:(r+72)%360,s:e.s,l:e.l}),we({h:(r+216)%360,s:e.s,l:e.l})]}function Le(t,e,r){e=e||6,r=r||30;var n=we(t).toHsl(),i=360/r,a=[we(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(we(n));return a}function Oe(t,e){e=e||6;for(var r=we(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(we({h:n,s:i,v:a})),a=(a+s)%1;return o}we.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=Ne(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ke(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ke(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=_e(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_e(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Be(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[He(Math.round(t).toString(16)),He(Math.round(e).toString(16)),He(Math.round(r).toString(16)),He(qe(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ze(this._r,255))+"%",g:Math.round(100*ze(this._g,255))+"%",b:Math.round(100*ze(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ze(this._r,255))+"%, "+Math.round(100*ze(this._g,255))+"%, "+Math.round(100*ze(this._b,255))+"%)":"rgba("+Math.round(100*ze(this._r,255))+"%, "+Math.round(100*ze(this._g,255))+"%, "+Math.round(100*ze(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(De[Be(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+xe(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=we(t);r="#"+xe(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return we(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Ie,arguments)},brighten:function(){return this._applyModification(Me,arguments)},darken:function(){return this._applyModification(Se,arguments)},desaturate:function(){return this._applyModification(Ee,arguments)},saturate:function(){return this._applyModification(Ce,arguments)},greyscale:function(){return this._applyModification(Ae,arguments)},spin:function(){return this._applyModification(Pe,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(Te,arguments)},monochromatic:function(){return this._applyCombination(Oe,arguments)},splitcomplement:function(){return this._applyCombination(Fe,arguments)},triad:function(){return this._applyCombination(Re,[3])},tetrad:function(){return this._applyCombination(Re,[4])}},we.fromRatio=function(t,e){if("object"==be(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:We(t[n]));t=r}return we(t,e)},we.equals=function(t,e){return!(!t||!e)&&we(t).toRgbString()==we(e).toRgbString()},we.random=function(){return we.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},we.mix=function(t,e,r){r=0===r?0:r||50;var n=we(t).toRgb(),i=we(e).toRgb(),a=r/100;return we({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},we.readability=function(t,e){var r=we(t),n=we(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},we.isReadable=function(t,e,r){var n,i,a,o,s,u=we.readability(t,e);switch(i=!1,(a=r,"AA"!==(o=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),n={level:o,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=u>=4.5;break;case"AAlarge":i=u>=3;break;case"AAAsmall":i=u>=7}return i},we.mostReadable=function(t,e,r){var n,i,a,o,s=null,u=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=we.readability(t,e[l]))>u&&(u=n,s=we(e[l]));return we.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,we.mostReadable(t,["#fff","#000"],r))};var Ue=we.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},De=we.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ue);function Ne(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ze(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Ge(t){return Math.min(1,Math.max(0,t))}function je(t){return parseInt(t,16)}function He(t){return 1==t.length?"0"+t:""+t}function We(t){return t<=1&&(t=100*t+"%"),t}function qe(t){return Math.round(255*parseFloat(t)).toString(16)}function Ze(t){return je(t)/255}var $e,Ve,Ye,Xe=(Ve="[\\s|\\(]+("+($e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$e+")[,|\\s]+("+$e+")\\s*\\)?",Ye="[\\s|\\(]+("+$e+")[,|\\s]+("+$e+")[,|\\s]+("+$e+")[,|\\s]+("+$e+")\\s*\\)?",{CSS_UNIT:new RegExp($e),rgb:new RegExp("rgb"+Ve),rgba:new RegExp("rgba"+Ye),hsl:new RegExp("hsl"+Ve),hsla:new RegExp("hsla"+Ye),hsv:new RegExp("hsv"+Ve),hsva:new RegExp("hsva"+Ye),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Je(t){return!!Xe.CSS_UNIT.exec(t)}function Qe(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(let e=1;e<t;e++)tr[e]=1;tr[0]=1/Math.sqrt(2)}(this.size)}function Ke(t){const e=255&t,r=255&(t>>>=8),n=255&(t>>>=8);return{r:255&(t>>>=8),g:n,b:r,a:e}}Qe.prototype.size=32,Qe.prototype.smallerSize=8,Qe.prototype.distance=function(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},Qe.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();const e=[];for(let r=0;r<t.bitmap.width;r++){e[r]=[];for(let n=0;n<t.bitmap.height;n++)e[r][n]=Ke(t.getPixelColor(r,n)).b}const r=function(t,e){const r=e,n=[];for(let e=0;e<r;e++){n[e]=[];for(let i=0;i<r;i++){let a=0;for(let n=0;n<r;n++)for(let o=0;o<r;o++)a+=Math.cos((2*n+1)/(2*r)*e*Math.PI)*Math.cos((2*o+1)/(2*r)*i*Math.PI)*t[n][o];a*=tr[e]*tr[i]/4,n[e][i]=a}}return n}(e,this.size);let n=0;for(let t=0;t<this.smallerSize;t++)for(let e=0;e<this.smallerSize;e++)n+=r[t][e];const i=n/(this.smallerSize*this.smallerSize);let a="";for(let t=0;t<this.smallerSize;t++)for(let e=0;e<this.smallerSize;e++)a+=r[t][e]>i?"1":"0";return a};const tr=[],er=Qe;__webpack_require__(60328);const rr=-1,nr=1,ir=2,ar=4,or=8,sr=16,ur=32,lr="srcOver",hr="dstOver",cr="multiply",fr="add",dr="screen",pr="overlay",mr="darken",gr="lighten",br="hardLight",yr="difference",vr="exclusion",wr=1,_r=2,kr=3;function Br(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}}function xr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}}function Er(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}}function Cr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a;return{r:(i+e.r*e.a)/n,g:(a+e.g*e.a)/n,b:(o+e.b*e.a)/n,a:n}}function Ar(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+l*t.a-o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}}function Ir(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*u<=e.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*l<=e.a?2*o*l+o*(1-e.a)+l*(1-t.a):o*(1+e.a)+l*(1+t.a)-2*l*o-e.a*t.a)/n,a:n}}function Mr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.min(o*e.a,l*t.a)+o*(1-e.a)+l*(1-t.a))/n,a:n}}function Sr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.max(o*e.a,l*t.a)+o*(1-e.a)+l*(1-t.a))/n,a:n}}function Pr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,g:(2*a<=t.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*o<=t.a?2*o*l+o*(1-e.a)+l*(1-t.a):o*(1+e.a)+l*(1+t.a)-2*l*o-e.a*t.a)/n,a:n}}function Tr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(a+u-2*Math.min(a*e.a,u*t.a))/n,b:(o+l-2*Math.min(o*e.a,l*t.a))/n,a:n}}function Rr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;const n=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-2*a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+l*t.a-2*o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}}const Fr=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise(((r,i)=>{n.push(((t,e)=>{t&&i(t),r(e)})),t.bind(e)(...n)}))},Lr={},Or=(t,e)=>{Lr[t]=e},Ur=t=>{const e=t.split("/").slice(-1);var r;return(r=e[e.length-1].split(".").pop(),Object.entries(Lr).find((t=>t[1].includes(r)))||[])[0]};var Dr=__webpack_require__(53846),Nr=__webpack_require__.n(Dr),zr=__webpack_require__(87833),Gr=__webpack_require__.n(zr),jr=__webpack_require__(53265).hp;function Hr(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}async function Wr(t,e,r){const n=await async function(t,e){const r=await Nr().fromBuffer(t);return r?r.mime:e?Ur(e):null}(t,e);if("string"!=typeof n)return r(new Error("Could not find MIME for Buffer <"+e+">"));this._originalMime=n.toLowerCase();try{const e=this.getMIME();if(!this.constructor.decoders[e])return ce.call(this,"Unsupported MIME type: "+e,r);this.bitmap=this.constructor.decoders[e](t)}catch(t){return r.call(this,t,this)}try{this._exif=Gr().create(t).parse(),function(t){if(Hr(t)<2)return;const e=function(t){const e=t.getWidth(),r=t.getHeight();switch(Hr(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(t),r=Hr(t)>4;!function(t,e,r,n){const i=t.bitmap.data,a=t.bitmap.width,o=jr.alloc(i.length);for(let t=0;t<e;t++)for(let s=0;s<r;s++){const[r,u]=n(t,s),l=e*s+t<<2,h=a*u+r<<2,c=i.readUInt32BE(h);o.writeUInt32BE(c,l)}t.bitmap.data=o,t.bitmap.width=e,t.bitmap.height=r}(t,r?t.bitmap.height:t.bitmap.width,r?t.bitmap.width:t.bitmap.height,e)}(this)}catch(t){}return r.call(this,null,this),this}function qr(t,e){if(t===rr&&(t=this.getMIME()),"string"!=typeof t)return ce.call(this,"mime must be a string",e);if("function"!=typeof e)return ce.call(this,"cb must be a function",e);if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=jr.from(this.bitmap.data):this.bitmap.data=function(t,e){return new t(e.bitmap.width,e.bitmap.height,e._background).composite(e,0,0).bitmap}(this.constructor,this).data,!this.constructor.encoders[t])return ce.call(this,"Unsupported MIME type: "+t,e);{const r=this.constructor.encoders[t](this);r instanceof Promise?r.then((t=>{e.call(this,null,t)})):e.call(this,null,r)}return this}function Zr(t){return Fr(qr,this,t)}var $r=__webpack_require__(53265).hp,Vr=__webpack_require__(65606);function Yr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Xr="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",Jr=[NaN,NaN];for(let t=2;t<65;t++){const e=pe()(pe().BIN,Xr.slice(0,t))(new Array(65).join("1"));Jr.push(e.length)}function Qr(){}function Kr(t){return Object.prototype.toString.call(t).toLowerCase().indexOf("arraybuffer")>-1}function tn(t){const e=$r.alloc(t.byteLength),r=new Uint8Array(t);for(let t=0;t<e.length;++t)e[t]=r[t];return e}function en(t,e){((t,e)=>{let{url:r,...n}=t;fetch(r,n).then((t=>{if(t.ok)return t.arrayBuffer().catch((t=>{throw new Error(`Response is not a buffer for url ${r}. Error: ${t.message}`)}));throw new Error(`HTTP Status ${t.status} for url ${r}`)})).then((t=>e(null,t))).catch((t=>e(t)))})(t,((r,n)=>r?e(r):"object"==typeof n&&$r.isBuffer(n)?e(null,n):"object"==typeof n&&Kr(n)?e(null,tn(n)):new Error(`Could not load Buffer from <${t.url}>`)))}const rn={data:null,width:null,height:null};class nn extends(le()){constructor(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];super(),Yr(this,"bitmap",rn),Yr(this,"_background",0),Yr(this,"_originalMime",nn.MIME_PNG),Yr(this,"_exif",null),Yr(this,"_rgba",!0),Yr(this,"writeAsync",(t=>Fr(this.write,this,t))),Yr(this,"getBase64Async",(t=>Fr(this.getBase64,this,t))),Yr(this,"getBuffer",qr),Yr(this,"getBufferAsync",Zr),Yr(this,"getPixelColour",this.getPixelColor),Yr(this,"setPixelColour",this.setPixelColor);const n=this;let i=Qr;function a(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const[a]=e;(a||{}).methodName="constructor",setTimeout((()=>{a&&i===Qr?n.emitError("constructor",a):a||n.emitMulti("constructor","initialized"),i.call(n,...e)}),1)}if(Kr(e[0])&&(e[0]=tn(e[0])),"number"==typeof e[0]&&"number"==typeof e[1]||parseInt(e[0],10)&&parseInt(e[1],10)){const t=parseInt(e[0],10),r=parseInt(e[1],10);if(i=e[2],"number"==typeof e[2]&&(this._background=e[2],i=e[3]),"string"==typeof e[2]&&(this._background=nn.cssColorToHex(e[2]),i=e[3]),void 0===i&&(i=Qr),"function"!=typeof i)return ce.call(this,"cb must be a function",a);this.bitmap={data:$r.alloc(t*r*4),width:t,height:r};for(let t=0;t<this.bitmap.data.length;t+=4)this.bitmap.data.writeUInt32BE(this._background,t);a(null,this)}else if("object"==typeof e[0]&&e[0].url){if(i=e[1]||Qr,"function"!=typeof i)return ce.call(this,"cb must be a function",a);en(e[0],((t,r)=>{if(t)return ce.call(this,t,a);this.parseBitmap(r,e[0].url,a)}))}else if(e[0]instanceof nn){const[t]=e;if(i=e[1],void 0===i&&(i=Qr),"function"!=typeof i)return ce.call(this,"cb must be a function",a);this.bitmap={data:$r.from(t.bitmap.data),width:t.bitmap.width,height:t.bitmap.height},this._quality=t._quality,this._deflateLevel=t._deflateLevel,this._deflateStrategy=t._deflateStrategy,this._filterType=t._filterType,this._rgba=t._rgba,this._background=t._background,this._originalMime=t._originalMime,a(null,this)}else if((o=e[0])&&"object"==typeof o&&"number"==typeof o.width&&"number"==typeof o.height&&($r.isBuffer(o.data)||o.data instanceof Uint8Array||"function"==typeof Uint8ClampedArray&&o.data instanceof Uint8ClampedArray)&&(o.data.length===o.width*o.height*4||o.data.length===o.width*o.height*3)){const[t]=e;i=e[1]||Qr;const r=t.width*t.height*4===t.data.length?$r.from(t.data):function(t){if(t.length%3!=0)throw new Error("Buffer length is incorrect");const e=$r.allocUnsafe(t.length/3*4);let r=0;for(let n=0;n<t.length;n++)e[r]=t[n],(n+1)%3==0&&(e[++r]=255),r++;return e}(t.data);this.bitmap={data:r,width:t.width,height:t.height},a(null,this)}else if("string"==typeof e[0]){const t=e[0];if(i=e[1],void 0===i&&(i=Qr),"function"!=typeof i)return ce.call(this,"cb must be a function",a);!function(t,e){ae()&&"function"==typeof ae().readFile&&!t.match(/^(http|ftp)s?:\/\/./)?ae().readFile(t,e):en({url:t},e)}(t,((e,r)=>{if(e)return ce.call(this,e,a);this.parseBitmap(r,t,a)}))}else if("object"==typeof e[0]&&$r.isBuffer(e[0])){const t=e[0];if(i=e[1],"function"!=typeof i)return ce.call(this,"cb must be a function",a);this.parseBitmap(t,null,a)}else{i=e[e.length-1],"function"!=typeof i&&(i=e[e.length-2],"function"!=typeof i&&(i=Qr));const t=nn.__extraConstructors.find((t=>t.test(...e)));if(!t)return ce.call(this,"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.",a);new Promise(((r,n)=>{t.run.call(this,r,n,...e)})).then((()=>a(null,this))).catch(a)}var o}parseBitmap(t,e,r){Wr.call(this,t,null,r)}rgba(t,e){return"boolean"!=typeof t?ce.call(this,"bool must be a boolean, true for RGBA or false for RGB",e):(this._rgba=t,he(e)&&e.call(this,null,this),this)}emitMulti(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit("any",r),t&&this.emit(t,r),this.emit(e,r)}emitError(t,e){this.emitMulti(t,"error",e)}getHeight(){return this.bitmap.height}getWidth(){return this.bitmap.width}inspect(){return"<Jimp "+(this.bitmap===rn?"pending...":this.bitmap.width+"x"+this.bitmap.height)+">"}toString(){return"[object Jimp]"}getMIME(){return this._originalMime||nn.MIME_PNG}getExtension(){const t=this.getMIME();return(Lr[t.toLowerCase()]||[])[0]}write(t,e){if(!ae()||!ae().createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return ce.call(this,"path must be a string",e);if(void 0===e&&(e=Qr),"function"!=typeof e)return ce.call(this,"cb must be a function",e);const r=Ur(t)||this.getMIME(),n=se().parse(t);return n.dir&&ae().mkdirSync(n.dir,{recursive:!0}),this.getBuffer(r,((r,n)=>{if(r)return ce.call(this,r,e);const i=ae().createWriteStream(t);i.on("open",(()=>{i.write(n),i.end()})).on("error",(t=>ce.call(this,t,e))),i.on("finish",(()=>{e.call(this,null,this)}))})),this}getBase64(t,e){return t===nn.AUTO&&(t=this.getMIME()),"string"!=typeof t?ce.call(this,"mime must be a string",e):"function"!=typeof e?ce.call(this,"cb must be a function",e):(this.getBuffer(t,(function(r,n){if(r)return ce.call(this,r,e);const i="data:"+t+";base64,"+n.toString("base64");e.call(this,null,i)})),this)}hash(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return ce.call(this,"base must be a number",e);if(t<2||t>64)return ce.call(this,"base must be a number between 2 and 64",e);let r=this.pHash();for(r=pe()(pe().BIN,Xr.slice(0,t))(r);r.length<Jr[t];)r="0"+r;return he(e)&&e.call(this,null,r),r}pHash(){return(new er).getHash(this)}distanceFromHash(t){const e=new er,r=e.getHash(this);return e.distance(r,t)}getPixelIndex(t,e,r,n){let i,a;if("function"==typeof r&&void 0===n&&(n=r,r=null),r||(r=nn.EDGE_EXTEND),"number"!=typeof t||"number"!=typeof e)return ce.call(this,"x and y must be numbers",n);i=t=Math.round(t),a=e=Math.round(e),r===nn.EDGE_EXTEND&&(t<0&&(i=0),t>=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),r===nn.EDGE_WRAP&&(t<0&&(i=this.bitmap.width+t),t>=this.bitmap.width&&(i=t%this.bitmap.width),e<0&&(a=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));let o=this.bitmap.width*a+i<<2;return(i<0||i>=this.bitmap.width)&&(o=-1),(a<0||a>=this.bitmap.height)&&(o=-1),he(n)&&n.call(this,null,o),o}getPixelColor(t,e,r){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"x and y must be numbers",r);const n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return he(r)&&r.call(this,null,i),i}setPixelColor(t,e,r,n){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r)return ce.call(this,"hex, x and y must be numbers",n);const i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),he(n)&&n.call(this,null,this),this}hasAlpha(){const{width:t,height:e,data:r}=this.bitmap,n=t*e<<2;for(let t=3;t<n;t+=4)if(255!==r[t])return!0;return!1}scanIterator(t,e,r,n){return"number"!=typeof t||"number"!=typeof e?ce.call(this,"x and y must be numbers"):"number"!=typeof r||"number"!=typeof n?ce.call(this,"w and h must be numbers"):function*(t,e,r,n,i){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(let a=r;a<r+i;a++)for(let r=e;r<e+n;r++){const e=t.bitmap.width*a+r<<2;yield{x:r,y:a,idx:e,image:t}}}(this,t,e,r,n)}}function an(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn;Object.entries(t).forEach((t=>{let[r,n]=t;e[r]=n}))}function on(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nn;Object.entries(t).forEach((t=>{let[r,n]=t;e.prototype[r]=n}))}function sn(t,e,r){const n="before-"+e,i=e.replace(/e$/,"")+"ed";nn.prototype[t]=function(){let e;for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];const u=o[r.length-1],l=this;let h;"function"==typeof u?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];const[a,o]=r;a?l.emitError(t,a):l.emitMulti(t,i,{[t]:o}),u.apply(this,r)},o[o.length-1]=e):e=!1,this.emitMulti(t,n);try{h=r.apply(this,o),e||this.emitMulti(t,i,{[t]:h})}catch(e){e.methodName=t,this.emitError(t,e)}return h},nn.prototype[t+"Quiet"]=r}function un(t,e){sn(t,"change",e)}if(an(t),on({composite:function(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0;if("function"==typeof i&&(a=i,i={}),!(t instanceof this.constructor))return ce.call(this,"The source must be a Jimp image",a);if("number"!=typeof r||"number"!=typeof n)return ce.call(this,"x and y must be numbers",a);let{mode:o,opacitySource:s,opacityDest:u}=i;o||(o=lr),("number"!=typeof s||s<0||s>1)&&(s=1),("number"!=typeof u||u<0||u>1)&&(u=1);const l=e[o];r=Math.round(r),n=Math.round(n);const h=this;return 1!==u&&h.opacity(u),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,e,i){const a=h.getPixelIndex(r+t,n+e,kr);if(-1===a)return;const o=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:h.bitmap.data[a+0]/255,g:h.bitmap.data[a+1]/255,b:h.bitmap.data[a+2]/255,a:h.bitmap.data[a+3]/255},s);h.bitmap.data[a+0]=this.constructor.limit255(255*o.r),h.bitmap.data[a+1]=this.constructor.limit255(255*o.g),h.bitmap.data[a+2]=this.constructor.limit255(255*o.b),h.bitmap.data[a+3]=this.constructor.limit255(255*o.a)})),he(a)&&a.call(this,null,this),this}}),nn.__extraConstructors=[],nn.appendConstructorOption=function(t,e,r){nn.__extraConstructors.push({name:t,test:e,run:r})},nn.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise(((t,r)=>{new nn(...e,((e,n)=>{e?r(e):t(n)}))}))},nn.create=nn.read,nn.rgbaToInt=function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r||"number"!=typeof n)return ce.call(this,"r, g, b and a must be numbers",i);if(t<0||t>255)return ce.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&ce.call(this,"g must be between 0 and 255",i),r<0||r>255)return ce.call(this,"b must be between 0 and 255",i);if(n<0||n>255)return ce.call(this,"a must be between 0 and 255",i);let a=255&t;return a<<=8,a|=255&e,a<<=8,a|=255&r,a<<=8,a|=255&n,a>>>=0,he(i)&&i.call(this,null,a),a},nn.intToRGBA=function(t,e){if("number"!=typeof t)return ce.call(this,"i must be a number",e);const r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),he(e)&&e.call(this,null,r),r},nn.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(we(t).toHex8(),16)},nn.limit255=function(t){return t=Math.max(t,0),Math.min(t,255)},nn.diff=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof nn&&e instanceof nn))return ce.call(this,"img1 and img2 must be an Jimp images");const n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||r>1)return ce.call(this,"threshold must be a number between 0 and 1");const a=new nn(n.width,n.height,4294967295);return{percent:ge()(n.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:r})/(a.bitmap.width*a.bitmap.height),image:a}},nn.distance=function(t,e){const r=new er,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},nn.compareHashes=function(t,e){return(new er).distance(t,e)},nn.colorDiff=function(t,e){const r=t=>Math.pow(t,2),{max:n}=Math;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},sn("clone","clone",(function(t){const e=new nn(this);return he(t)&&t.call(e,null,e),e})),un("background",(function(t,e){return"number"!=typeof t?ce.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,he(e)&&e.call(this,null,this),this)})),un("scan",(function(t,e,r,n,i,a){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"x and y must be numbers",a);if("number"!=typeof r||"number"!=typeof n)return ce.call(this,"w and h must be numbers",a);if("function"!=typeof i)return ce.call(this,"f must be a function",a);const o=fe(this,t,e,r,n,i);return he(a)&&a.call(this,null,o),o})),"BROWSER"===Vr.env.ENVIRONMENT){let t;"undefined"!=typeof window&&"object"==typeof window&&(t=window),"undefined"!=typeof self&&"object"==typeof self&&(t=self),t.Jimp=nn,t.Buffer=$r}const ln=nn;var hn=__webpack_require__(99027),cn=__webpack_require__(15609),fn=__webpack_require__.n(cn);const dn="image/jpeg",pn=()=>({mime:{[dn]:["jpeg","jpg","jpe"]},constants:{MIME_JPEG:dn},decoders:{[dn]:fn().decode},encoders:{[dn]:t=>fn().encode(t.bitmap,t._quality).data},class:{_quality:100,quality(t,e){return"number"!=typeof t?ce.call(this,"n must be a number",e):t<0||t>100?ce.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),he(e)&&e.call(this,null,this),this)}}});var mn=__webpack_require__(99904);const gn="image/png",bn=()=>({mime:{[gn]:["png"]},constants:{MIME_PNG:gn,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:{[gn]:!0},decoders:{[gn]:mn.O.sync.read},encoders:{[gn](t){const e=new mn.O({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,mn.O.sync.write(e,{deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}},class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel(t,e){return"number"!=typeof t?ce.call(this,"l must be a number",e):t<0||t>9?ce.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),he(e)&&e.call(this,null,this),this)},deflateStrategy(t,e){return"number"!=typeof t?ce.call(this,"s must be a number",e):t<0||t>3?ce.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),he(e)&&e.call(this,null,this),this)},filterType(t,e){return"number"!=typeof t?ce.call(this,"n must be a number",e):t<-1||t>4?ce.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),he(e)&&e.call(this,null,this),this)},colorType(t,e){return"number"!=typeof t?ce.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?ce.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),he(e)&&e.call(this,null,this),this)}}});var yn=__webpack_require__(84252),vn=__webpack_require__.n(yn);const wn="image/bmp",_n="image/x-ms-bmp",kn=t=>{return fe({bitmap:e=vn().decode(t)},0,0,e.width,e.height,(function(t,r,n){const i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=o,this.bitmap.data[n+2]=a,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},Bn=t=>vn().encode(function(t){return fe(t,0,0,t.bitmap.width,t.bitmap.height,(function(t,e,r){const n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2],o=this.bitmap.data[r+3];this.bitmap.data[r+0]=o,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n})).bitmap}(t)).data;var xn=__webpack_require__(87961),En=__webpack_require__.n(xn),Cn=__webpack_require__(48287).Buffer;const An="image/tiff";var In=__webpack_require__(34399),Mn=__webpack_require__(31224),Sn=__webpack_require__(48287).Buffer;const Pn="image/gif",Tn=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Rn=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];var Fn=__webpack_require__(48287).Buffer;function Ln(t,e,r,n){const i=[0,0,0],a=(e.length-1)/2;for(let o=0;o<e.length;o+=1)for(let s=0;s<e[o].length;s+=1){const u=t.getPixelIndex(r+o-a,n+s-a);i[0]+=t.bitmap.data[u]*e[o][s],i[1]+=t.bitmap.data[u+1]*e[o][s],i[2]+=t.bitmap.data[u+2]*e[o][s]}return i}const On=t=>null!=t;function Un(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){const n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n})),he(t)&&t.call(this,null,this),this}function Dn(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function Nn(t,e){return t&&Array.isArray(t)?(t=t.map((t=>("xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=we(t.params[0]).toRgb()),t))),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,((r,n,i)=>{let a={r:this.bitmap.data[i],g:this.bitmap.data[i+1],b:this.bitmap.data[i+2]};const o=(t,e)=>this.constructor.limit255(a[t]+e);t.forEach((t=>{if("mix"===t.apply)a=Dn(a,t.params[0],t.params[1]);else if("tint"===t.apply)a=Dn(a,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)a=Dn(a,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)a={r:a.r^t.params[0].r,g:a.g^t.params[0].g,b:a.b^t.params[0].b};else if("red"===t.apply)a.r=o("r",t.params[0]);else if("green"===t.apply)a.g=o("g",t.params[0]);else if("blue"===t.apply)a.b=o("b",t.params[0]);else{if("hue"===t.apply&&(t.apply="spin"),a=we(a),!a[t.apply])return ce.call(this,"action "+t.apply+" not supported",e);a=a[t.apply](...t.params).toRgb()}})),this.bitmap.data[i]=a.r,this.bitmap.data[i+1]=a.g,this.bitmap.data[i+2]=a.b})),he(e)&&e.call(this,null,this),this):ce.call(this,"actions must be an array",e)}Object.freeze({LIGHTEN:"lighten",BRIGHTEN:"brighten",DARKEN:"darken",DESATURATE:"desaturate",SATURATE:"saturate",GREYSCALE:"greyscale",SPIN:"spin",HUE:"hue",MIX:"mix",TINT:"tint",SHADE:"shade",XOR:"xor",RED:"red",GREEN:"green",BLUE:"blue"});var zn=__webpack_require__(48287).Buffer;function Gn(t){const e=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,r,n){const i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),he(t)&&t.call(this,null,this),this}var jn=__webpack_require__(48287).Buffer;function Hn(t,e,r){if("boolean"!=typeof t||"boolean"!=typeof e)return ce.call(this,"horizontal and vertical must be Booleans",r);const n=jn.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){const o=t?this.bitmap.width-1-r:r,s=e?this.bitmap.height-1-i:i,u=this.bitmap.width*s+o<<2,l=this.bitmap.data.readUInt32BE(a);n.writeUInt32BE(l,u)})),this.bitmap.data=jn.from(n),he(r)&&r.call(this,null,this),this}function Wn(){const t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}const qn=function(t,e,r){return 255*(t-e)/(r-e)},Zn=function(t){return[t.findIndex((t=>t>0)),255-t.slice().reverse().findIndex((t=>t>0))]};var $n=__webpack_require__(92908),Vn=__webpack_require__.n($n);function Yn(t,e){let r=0;for(let n=0;n<e.length;n++)if(t.chars[e[n]]){const i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}function Xn(t,e,r){const n=e.replace(/[\r\n]+/g," \n").split(" "),i=[];let a=[],o=0;return n.forEach((e=>{const n=[...a,e].join(" "),s=Yn(t,n);s<=r&&!e.includes("\n")?(s>o&&(o=s),a.push(e)):(i.push(a),a=[e.replace("\n","")])})),i.push(a),{lines:i,longestLine:o}}function Jn(t,e,r){const{lines:n}=Xn(t,e,r);return n.length*t.common.lineHeight}function Qn(t,e,r,n,i){if(i.width>0&&i.height>0){const a=e.pages[i.page];t.blit(a,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}function Kn(t,e,r,n,i){for(let a=0;a<n.length;a++){let o;o=t.chars[n[a]]?n[a]:/\s/.test(n[a])?"":"?";const s=t.chars[o]||{},u=t.kernings[o];Qn(this,t,e,r,s||{}),e+=(u&&u[n[a+1]]?u[n[a+1]]:0)+(s.xadvance||i)}}const ti=__webpack_require__(65606).env.DIRNAME||"//../";function ei(t,e,r,n,i,a,o){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(a),this.resizeCallback="function"==typeof o?o:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}ei.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},ei.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},ei.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){const r=e?4:3,n=this.ratioWeightWidthPass,i=this.widthBuffer;let a,o,s=0,u=0,l=0,h=0,c=0;for(a=0;s<1/3;a+=r,s+=n)for(u=a,l=0;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)i[u]=t[l],i[u+1]=t[l+1],i[u+2]=t[l+2],e&&(i[u+3]=t[l+3]);for(s-=1/3,o=this.widthOriginal-1;s<o;a+=r,s+=n)for(c=s%1,h=1-c,u=a,l=Math.floor(s)*r;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)i[u+0]=t[l+0]*h+t[l+r+0]*c,i[u+1]=t[l+1]*h+t[l+r+1]*c,i[u+2]=t[l+2]*h+t[l+r+2]*c,e&&(i[u+3]=t[l+3]*h+t[l+r+3]*c);for(o=this.originalWidthMultipliedByChannels-r;a<this.targetWidthMultipliedByChannels;a+=r)for(u=a,l=o;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)i[u]=t[l],i[u+1]=t[l+1],i[u+2]=t[l+2],e&&(i[u+3]=t[l+3]);return i},ei.prototype._resizeWidthRGBChannels=function(t,e){const r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,a=this.originalWidthMultipliedByChannels-r+1,o=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,l=this.outputWidthWorkBenchOpaquePixelsCount;let h=0,c=0,f=0,d=0,p=0,m=0,g=0,b=1,y=0,v=0,w=0,_=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)s[p++]=0,s[p++]=0,s[p++]=0,e&&(s[p++]=0,l[p/r-1]=0);h=n;do{for(c=1+f-d,b=Math.min(h,c),p=0,m=f;p<this.originalHeightMultipliedByChannels;m+=a)y=t[m],v=t[++m],w=t[++m],_=e?t[++m]:255,s[p++]+=(_?y:0)*b,s[p++]+=(_?v:0)*b,s[p++]+=(_?w:0)*b,e&&(s[p++]+=_*b,l[p/r-1]+=_?b:0);if(!(h>=c)){d+=h;break}f+=r,d=f,h-=c}while(h>0&&f<this.originalWidthMultipliedByChannels);for(p=0,m=g;p<this.originalHeightMultipliedByChannels;m+=o)h=e?l[p/r]:1,b=e?h?1/h:0:i,u[m]=s[p++]*b,u[++m]=s[p++]*b,u[++m]=s[p++]*b,e&&(u[++m]=s[p++]*i);g+=r}while(g<this.targetWidthMultipliedByChannels);return u},ei.prototype._resizeHeightRGBChannels=function(t,e){const r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,a=this.heightBuffer,o=this.outputHeightWorkBenchOpaquePixelsCount;let s=0,u=0,l=0,h=0,c=0,f=0,d=0,p=1,m=0,g=0,b=0,y=0;do{for(c=0;c<this.targetWidthMultipliedByChannels;)i[c++]=0,i[c++]=0,i[c++]=0,e&&(i[c++]=0,o[c/4-1]=0);s=r;do{for(u=1+l-h,p=Math.min(s,u),d=l,c=0;c<this.targetWidthMultipliedByChannels;)m=t[d++],g=t[d++],b=t[d++],y=e?t[d++]:255,i[c++]+=(y?m:0)*p,i[c++]+=(y?g:0)*p,i[c++]+=(y?b:0)*p,e&&(i[c++]+=y*p,o[c/4-1]+=y?p:0);if(!(s>=u)){h+=s;break}l=d,h=l,s-=u}while(s>0&&l<this.widthPassResultSize);for(c=0;c<this.targetWidthMultipliedByChannels;)s=e?o[c/4]:1,p=e?s?1/s:0:n,a[f++]=Math.round(i[c++]*p),a[f++]=Math.round(i[c++]*p),a[f++]=Math.round(i[c++]*p),e&&(a[f++]=Math.round(i[c++]*n))}while(f<this.finalResultSize);return a},ei.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},ei.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},ei.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},ei.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},ei.prototype.resizeHeightInterpolated=function(t){const e=this.ratioWeightHeightPass,r=this.heightBuffer;let n,i=0,a=0,o=0,s=0,u=0,l=0,h=0;for(;i<1/3;i+=e)for(o=0;o<this.targetWidthMultipliedByChannels;)r[a++]=Math.round(t[o++]);for(i-=1/3,n=this.heightOriginal-1;i<n;i+=e)for(h=i%1,l=1-h,s=Math.floor(i)*this.targetWidthMultipliedByChannels,u=s+this.targetWidthMultipliedByChannels,o=0;o<this.targetWidthMultipliedByChannels;++o)r[a++]=Math.round(t[s++]*l+t[u++]*h);for(;a<this.finalResultSize;)for(o=0,s=n*this.targetWidthMultipliedByChannels;o<this.targetWidthMultipliedByChannels;++o)r[a++]=Math.round(t[s++]);return r},ei.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},ei.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},ei.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},ei.prototype.bypassResizer=function(t){return t},ei.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},ei.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},ei.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},ei.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},ei.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}};const ri=ei;var ni=__webpack_require__(48287).Buffer;const ii={nearestNeighbor(t,e){const r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data;for(let t=0;t<a;t++)for(let e=0;e<i;e++){let u=4*(t*i+e),l=4*(Math.floor(t*n/a)*r+Math.floor(e*r/i));s[u++]=o[l++],s[u++]=o[l++],s[u++]=o[l++],s[u++]=o[l++]}},bilinearInterpolation(t,e){const r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},l=function(t,e,n,i,a,l,h,c){let f=4*(h*r+i)+e,d=4*(h*r+a)+e;const p=u(n,i,o[f],a,o[d]);if(c===h)s[t+e]=p;else{f=4*(c*r+i)+e,d=4*(c*r+a)+e;const m=u(n,i,o[f],a,o[d]);s[t+e]=u(l,h,p,c,m)}};for(let t=0;t<a;t++)for(let e=0;e<i;e++){const o=4*(t*i+e),s=e*r/i,u=Math.floor(s),h=Math.min(Math.ceil(s),r-1),c=t*n/a,f=Math.floor(c),d=Math.min(Math.ceil(c),n-1);l(o,0,s,u,h,c,f,d),l(o,1,s,u,h,c,f,d),l(o,2,s,u,h,c,f,d),l(o,3,s,u,h,c,f,d)}},_interpolate2D(t,e,r,n){const i=t.data,a=e.data,o=t.width,s=t.height,u=e.width,l=e.height,h=Math.max(1,Math.floor(o/u)),c=u*h,f=Math.max(1,Math.floor(s/l)),d=l*f,p=ni.alloc(c*s*4);for(let t=0;t<s;t++)for(let e=0;e<c;e++){const r=e*(o-1)/c,a=Math.floor(r),s=r-a,u=4*(t*o+a),l=4*(t*c+e);for(let t=0;t<4;t++){const e=u+t,r=a>0?i[e-4]:2*i[e]-i[e+4],h=i[e],c=i[e+4],f=a<o-2?i[e+8]:2*i[e+4]-i[e];p[l+t]=n(r,h,c,f,s)}}const m=ni.alloc(c*d*4);for(let t=0;t<d;t++)for(let e=0;e<c;e++){const r=t*(s-1)/d,i=Math.floor(r),a=r-i,o=4*(i*c+e),u=4*(t*c+e);for(let t=0;t<4;t++){const e=o+t,r=i>0?p[e-4*c]:2*p[e]-p[e+4*c],l=p[e],h=p[e+4*c],f=i<s-2?p[e+8*c]:2*p[e+4*c]-p[e];m[u+t]=n(r,l,h,f,a)}}const g=h*f;if(g>1)for(let t=0;t<l;t++)for(let e=0;e<u;e++){let r=0,n=0,i=0,o=0,s=0;for(let a=0;a<f;a++){const u=t*f+a;for(let t=0;t<h;t++){const a=4*(u*c+(e*h+t)),l=m[a+3];l&&(r+=m[a],n+=m[a+1],i+=m[a+2],s++),o+=l}}const l=4*(t*u+e);a[l]=s?Math.round(r/s):0,a[l+1]=s?Math.round(n/s):0,a[l+2]=s?Math.round(i/s):0,a[l+3]=Math.round(o/g)}else e.data=m},bicubicInterpolation(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){const a=n-r-t+e,o=t-e-a,s=r-t,u=e;return Math.max(0,Math.min(255,a*(i*i*i)+o*(i*i)+s*i+u))}))},hermiteInterpolation(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){const a=e,o=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+o)*i+a)))}))},bezierInterpolation(t,e,r){return this._interpolate2D(t,e,r,(function(t,e,r,n,i){const a=1-i,o=e*a*a*a,s=3*(e+(r-t)/4)*a*a*i,u=3*(r-(n-e)/4)*a*i*i,l=r*i*i*i;return Math.max(0,Math.min(255,Math.round(o+s+u+l)))}))}},ai=ii;var oi=__webpack_require__(48287).Buffer,si=__webpack_require__(48287).Buffer;function ui(t){if(Math.abs(t)%90!=0)throw new Error("Unsupported matrix rotation degree");if(t%=360,0===Math.abs(t))return;const e=this.bitmap.width,r=this.bitmap.height;let n;switch(t){case 90:case-270:n=90;break;case 180:case-180:n=180;break;case 270:case-90:n=-90;break;default:throw new Error("Unsupported matrix rotation degree")}const i=180===n?e:r,a=180===n?r:e,o=si.alloc(this.bitmap.data.length);function s(t,e){return function(e,r){return r*t+e<<2}}const u=s(e),l=s(i);for(let t=0;t<e;t++)for(let i=0;i<r;i++){const a=u(t,i),s=this.bitmap.data.readUInt32BE(a);let h;switch(n){case 90:h=l(i,e-t-1);break;case-90:h=l(r-i-1,t);break;case 180:h=l(e-t-1,r-i-1);break;default:throw new Error("Unsupported matrix rotation angle")}o.writeUInt32BE(s,h)}this.bitmap.data=o,this.bitmap.width=i,this.bitmap.height=a}function li(t,e){const r=(t%=360)*Math.PI/180,n=Math.cos(r),i=Math.sin(r);let a=this.bitmap.width,o=this.bitmap.height;if(!0===e||"string"==typeof e){a=Math.ceil(Math.abs(this.bitmap.width*n)+Math.abs(this.bitmap.height*i))+1,o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*n))+1,a%2!=0&&a++,o%2!=0&&o++;const t=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}));const r=Math.max(a,o,this.bitmap.width,this.bitmap.height);this.resize(r,r,e),this.blit(t,this.bitmap.width/2-t.bitmap.width/2,this.bitmap.height/2-t.bitmap.height/2)}const s=this.bitmap.width,u=this.bitmap.height,l=si.alloc(this.bitmap.data.length);function h(t,e){return function(r,n){return{x:r+t,y:n+e}}}const c=h(-s/2,-u/2),f=h(s/2+.5,u/2+.5);for(let t=1;t<=u;t++)for(let e=1;e<=s;e++){const r=c(e,t),a=f(n*r.x-i*r.y,n*r.y+i*r.x),o=s*(t-1)+e-1<<2;if(a.x>=0&&a.x<s&&a.y>=0&&a.y<u){const t=s*(0|a.y)+a.x<<2,e=this.bitmap.data.readUInt32BE(t);l.writeUInt32BE(e,o)}else l.writeUInt32BE(this._background,o)}if(this.bitmap.data=l,!0===e||"string"==typeof e){const t=s/2-a/2,e=u/2-o/2;this.crop(t,e,a,o)}}const hi=[()=>({blit(t,e,r,n,i,a,o,s){if(!(t instanceof this.constructor))return ce.call(this,"The source must be a Jimp image",s);if("number"!=typeof e||"number"!=typeof r)return ce.call(this,"x and y must be numbers",s);if("function"==typeof n)s=n,n=0,i=0,a=t.bitmap.width,o=t.bitmap.height;else{if(typeof n!=typeof i||typeof i!=typeof a||typeof a!=typeof o)return ce.call(this,"srcx, srcy, srcw, srch must be numbers",s);n=n||0,i=i||0,a=a||t.bitmap.width,o=o||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i),a=Math.round(a),o=Math.round(o);const u=this.bitmap.width,l=this.bitmap.height,h=this;return t.scanQuiet(n,i,a,o,(function(t,a,o){const s=e+t-n,c=r+a-i;if(s>=0&&c>=0&&u-s>0&&l-c>0){const t=h.getPixelIndex(s,c),e={r:this.bitmap.data[o],g:this.bitmap.data[o+1],b:this.bitmap.data[o+2],a:this.bitmap.data[o+3]},r={r:h.bitmap.data[t],g:h.bitmap.data[t+1],b:h.bitmap.data[t+2],a:h.bitmap.data[t+3]};h.bitmap.data[t]=(e.a*(e.r-r.r)-r.r+255>>8)+r.r,h.bitmap.data[t+1]=(e.a*(e.g-r.g)-r.g+255>>8)+r.g,h.bitmap.data[t+2]=(e.a*(e.b-r.b)-r.b+255>>8)+r.b,h.bitmap.data[t+3]=this.constructor.limit255(r.a+e.a)}})),he(s)&&s.call(this,null,this),this}}),()=>({blur(t,e){if("number"!=typeof t)return ce.call(this,"r must be a number",e);if(t<1)return ce.call(this,"r must be greater than 0",e);let r,n,i,a,o,s,u,l,h,c,f,d,p,m;const g=this.bitmap.width-1,b=this.bitmap.height-1,y=t+1,v=Tn[t],w=Rn[t],_=[],k=[],B=[],x=[],E=[],C=[];let A=2;for(;A-- >0;){for(d=0,p=0,s=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[p]*y,n=this.bitmap.data[p+1]*y,i=this.bitmap.data[p+2]*y,a=this.bitmap.data[p+3]*y,u=1;u<=t;u++)l=p+((u>g?g:u)<<2),r+=this.bitmap.data[l++],n+=this.bitmap.data[l++],i+=this.bitmap.data[l++],a+=this.bitmap.data[l];for(o=0;o<this.bitmap.width;o++)_[d]=r,k[d]=n,B[d]=i,x[d]=a,0===s&&(E[o]=((l=o+y)<g?l:g)<<2,C[o]=(l=o-t)>0?l<<2:0),h=p+E[o],c=p+C[o],r+=this.bitmap.data[h++]-this.bitmap.data[c++],n+=this.bitmap.data[h++]-this.bitmap.data[c++],i+=this.bitmap.data[h++]-this.bitmap.data[c++],a+=this.bitmap.data[h]-this.bitmap.data[c],d++;p+=this.bitmap.width<<2}for(o=0;o<this.bitmap.width;o++){for(f=o,r=_[f]*y,n=k[f]*y,i=B[f]*y,a=x[f]*y,u=1;u<=t;u++)f+=u>b?0:this.bitmap.width,r+=_[f],n+=k[f],i+=B[f],a+=x[f];for(d=o<<2,s=0;s<this.bitmap.height;s++)m=a*v>>>w,this.bitmap.data[d+3]=m,m>255&&(this.bitmap.data[d+3]=255),m>0?(m=255/m,this.bitmap.data[d]=(r*v>>>w)*m,this.bitmap.data[d+1]=(n*v>>>w)*m,this.bitmap.data[d+2]=(i*v>>>w)*m):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===o&&(E[s]=((l=s+y)<b?l:b)*this.bitmap.width,C[s]=(l=s-t)>0?l*this.bitmap.width:0),h=o+E[s],c=o+C[s],r+=_[h]-_[c],n+=k[h]-k[c],i+=B[h]-B[c],a+=x[h]-x[c],d+=this.bitmap.width<<2}}return he(e)&&e.call(this,null,this),this}}),()=>({circle(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(e=t,t={});const r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,n="number"==typeof t.x?t.x:this.bitmap.width/2,i="number"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,a){const o=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-i,2));r-o<=0?this.bitmap.data[a+3]=0:r-o<1&&(this.bitmap.data[a+3]=255*(r-o))})),he(e)&&e.call(this,null,this),this}}),()=>({brightness(t,e){return"number"!=typeof t?ce.call(this,"val must be numbers",e):t<-1||t>1?ce.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),he(e)&&e.call(this,null,this),this)},contrast(t,e){if("number"!=typeof t)return ce.call(this,"val must be numbers",e);if(t<-1||t>1)return ce.call(this,"val must be a number between -1 and +1",e);const r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])})),he(e)&&e.call(this,null,this),this},posterize(t,e){return"number"!=typeof t?ce.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),he(e)&&e.call(this,null,this),this)},greyscale:Un,grayscale:Un,opacity(t,e){return"number"!=typeof t?ce.call(this,"f must be a number",e):t<0||t>1?ce.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){const i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),he(e)&&e.call(this,null,this),this)},sepia(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){let n=this.bitmap.data[r],i=this.bitmap.data[r+1],a=this.bitmap.data[r+2];n=.393*n+.769*i+.189*a,i=.349*n+.686*i+.168*a,a=.272*n+.534*i+.131*a,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=a<255?a:255})),he(t)&&t.call(this,null,this),this},fade(t,e){return"number"!=typeof t?ce.call(this,"f must be a number",e):t<0||t>1?ce.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),he(e)&&e.call(this,null,this),this)},convolution(t,e,r){"function"==typeof e&&void 0===r&&(r=e,e=null),e||(e=this.constructor.EDGE_EXTEND);const n=Fn.from(this.bitmap.data),i=t.length,a=t[0].length,o=Math.floor(i/2),s=Math.floor(a/2),u=-o,l=-s;let h,c,f,d,p,m,g,b,y,v;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){d=0,f=0,c=0;for(let n=u;n<=o;n++)for(let a=l;a<=s;a++)b=r+a,y=i+n,h=t[n+o][a+s],v=this.getPixelIndex(b,y,e),-1===v?(g=0,m=0,p=0):(p=this.bitmap.data[v+0],m=this.bitmap.data[v+1],g=this.bitmap.data[v+2]),c+=h*p,f+=h*m,d+=h*g;c<0&&(c=0),f<0&&(f=0),d<0&&(d=0),c>255&&(c=255),f>255&&(f=255),d>255&&(d=255),n[a+0]=c,n[a+1]=f,n[a+2]=d})),this.bitmap.data=n,he(r)&&r.call(this,null,this),this},opaque(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r+3]=255})),he(t)&&t.call(this,null,this),this},pixelate(t,e,r,n,i,a){if("function"==typeof e)a=e,i=null,n=null,r=null,e=null;else{if("number"!=typeof t)return ce.call(this,"size must be a number",a);if(On(e)&&"number"!=typeof e)return ce.call(this,"x must be a number",a);if(On(r)&&"number"!=typeof r)return ce.call(this,"y must be a number",a);if(On(n)&&"number"!=typeof n)return ce.call(this,"w must be a number",a);if(On(i)&&"number"!=typeof i)return ce.call(this,"h must be a number",a)}const o=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=On(n)?n:this.bitmap.width-e,i=On(i)?i:this.bitmap.height-r;const s=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);const i=Ln(s,o,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),he(a)&&a.call(this,null,this),this},convolute(t,e,r,n,i,a){if(!Array.isArray(t))return ce.call(this,"the kernel must be an array",a);if("function"==typeof e)a=e,e=null,r=null,n=null,i=null;else{if(On(e)&&"number"!=typeof e)return ce.call(this,"x must be a number",a);if(On(r)&&"number"!=typeof r)return ce.call(this,"y must be a number",a);if(On(n)&&"number"!=typeof n)return ce.call(this,"w must be a number",a);if(On(i)&&"number"!=typeof i)return ce.call(this,"h must be a number",a)}e=On(e)?e:0,r=On(r)?r:0,n=On(n)?n:this.bitmap.width-e,i=On(i)?i:this.bitmap.height-r;const o=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){const i=Ln(o,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),he(a)&&a.call(this,null,this),this},color:Nn,colour:Nn}),()=>({contain(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"w and h must be numbers",i);"string"==typeof r&&("function"==typeof n&&void 0===i&&(i=n),n=r,r=null),"function"==typeof r&&(void 0===i&&(i=r),n=null,r=null),"function"==typeof n&&void 0===i&&(i=n,n=null);const a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return ce.call(this,"only use one flag per alignment direction",i);const s=a>>1,u=o>>1,l=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,h=this.cloneQuiet().scale(l,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(h,(this.bitmap.width-h.bitmap.width)/2*s,(this.bitmap.height-h.bitmap.height)/2*u),he(i)&&i.call(this,null,this),this}}),()=>({cover(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"w and h must be numbers",i);r&&"function"==typeof r&&void 0===i?(i=r,r=null,n=null):"function"==typeof n&&void 0===i&&(i=n,n=null);const a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return ce.call(this,"only use one flag per alignment direction",i);const s=a>>1,u=o>>1,l=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(l,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),he(i)&&i.call(this,null,this),this}}),function(t){return t("crop",(function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return ce.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),0===t&&r===this.bitmap.width){const i=r*e+t<<2,a=i+(n*r<<2);this.bitmap.data=this.bitmap.data.slice(i,a)}else{const i=zn.allocUnsafe(r*n*4);let a=0;this.scanQuiet(t,e,r,n,(function(t,e,r){const n=this.bitmap.data.readUInt32BE(r,!0);i.writeUInt32BE(n,a,!0),a+=4})),this.bitmap.data=i}return this.bitmap.width=r,this.bitmap.height=n,he(i)&&i.call(this,null,this),this})),{class:{autocrop(){const t=this.bitmap.width,e=this.bitmap.height;let r,n=0,i=2e-4,a=!0,o=!1,s={north:!1,south:!1,east:!1,west:!1};for(var u=arguments.length,l=new Array(u),h=0;h<u;h++)l[h]=arguments[h];for(let t=0,e=l.length;t<e;t++)if("number"==typeof l[t]&&(i=l[t]),"boolean"==typeof l[t]&&(a=l[t]),"function"==typeof l[t]&&(r=l[t]),"object"==typeof l[t]){const e=l[t];void 0!==e.tolerance&&({tolerance:i}=e),void 0!==e.cropOnlyFrames&&({cropOnlyFrames:a}=e),void 0!==e.cropSymmetric&&({cropSymmetric:o}=e),void 0!==e.leaveBorder&&({leaveBorder:n}=e),void 0!==e.ignoreSides&&({ignoreSides:s}=e)}let c=this.getPixelColor(0,0);const f=this.constructor.intToRGBA(c);let d=0,p=0,m=0,g=0;if(c=this.getPixelColor(0,0),!s.north)t:for(let r=0;r<e-1;r++){for(let e=0;e<t;e++){const t=this.getPixelColor(e,r),n=this.constructor.intToRGBA(t);if(this.constructor.colorDiff(f,n)>i)break t}d++}if(c=this.getPixelColor(t,0),!s.west)t:for(let r=0;r<t-1;r++){for(let t=0+d;t<e;t++){const e=this.getPixelColor(r,t),n=this.constructor.intToRGBA(e);if(this.constructor.colorDiff(f,n)>i)break t}g++}if(c=this.getPixelColor(0,e),!s.south)t:for(let r=e-1;r>=d+1;r--){for(let e=t-p-1;e>=0;e--){const t=this.getPixelColor(e,r),n=this.constructor.intToRGBA(t);if(this.constructor.colorDiff(f,n)>i)break t}m++}if(c=this.getPixelColor(t,e),!s.east)t:for(let r=t-1;r>=0+g+1;r--){for(let t=e-1;t>=0+d;t--){const e=this.getPixelColor(r,t),n=this.constructor.intToRGBA(e);if(this.constructor.colorDiff(f,n)>i)break t}p++}let b=!1;if(g-=n,p-=n,d-=n,m-=n,o){const t=Math.min(p,g),e=Math.min(d,m);g=t,p=t,d=e,m=e}g=g>=0?g:0,p=p>=0?p:0,d=d>=0?d:0,m=m>=0?m:0;const y=t-(g+p),v=e-(m+d);return b=a?0!==p&&0!==d&&0!==g&&0!==m:0!==p||0!==d||0!==g||0!==m,b&&this.crop(g,d,y,v),he(r)&&r.call(this,null,this),this}}}},()=>({displace(t,e,r){if("object"!=typeof t||t.constructor!==this.constructor)return ce.call(this,"The source must be a Jimp image",r);if("number"!=typeof e)return ce.call(this,"factor must be a number",r);const n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){let o=t.bitmap.data[a]/256*e;o=Math.round(o);const s=this.getPixelIndex(r+o,i);this.bitmap.data[s]=n.bitmap.data[a],this.bitmap.data[s+1]=n.bitmap.data[a+1],this.bitmap.data[s+2]=n.bitmap.data[a+2]})),he(r)&&r.call(this,null,this),this}}),()=>({dither565:Gn,dither16:Gn}),()=>({fisheye(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},e=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(e=t,t={r:2.5});const r=this.cloneQuiet(),{width:n,height:i}=r.bitmap;return r.scanQuiet(0,0,n,i,((e,a)=>{const o=e/n,s=a/i,u=Math.sqrt(Math.pow(o-.5,2)+Math.pow(s-.5,2)),l=2*Math.pow(u,t.r),h=(o-.5)/u,c=(s-.5)/u,f=Math.round((l*h+.5)*n),d=Math.round((l*c+.5)*i),p=r.getPixelColor(f,d);this.setPixelColor(p,e,a)})),this.setPixelColor(r.getPixelColor(n/2,i/2),n/2,i/2),he(e)&&e.call(this,null,this),this}}),()=>({flip:Hn,mirror:Hn}),()=>({gaussian(t,e){if("number"!=typeof t)return ce.call(this,"r must be a number",e);if(t<1)return ce.call(this,"r must be greater than 0",e);const r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,a=i*Math.PI,o=[];for(let t=0;t<n;t++){o[t]=[];for(let e=0;e<n;e++){const n=(e-r)**2+(t-r)**2;o[t][e]=Math.exp(-n/i)/a}}for(let t=0;t<this.bitmap.height;t++)for(let e=0;e<this.bitmap.width;e++){let i=0,a=0,s=0,u=0,l=0;for(let h=0;h<n;h++){for(let c=0;c<n;c++){const n=Math.min(this.bitmap.width-1,Math.max(0,c+e-r)),f=Math.min(this.bitmap.height-1,Math.max(0,h+t-r)),d=o[h][c],p=f*this.bitmap.width+n<<2;i+=this.bitmap.data[p]*d,a+=this.bitmap.data[p+1]*d,s+=this.bitmap.data[p+2]*d,u+=this.bitmap.data[p+3]*d,l+=d}const c=t*this.bitmap.width+e<<2;this.bitmap.data[c]=Math.round(i/l),this.bitmap.data[c+1]=Math.round(a/l),this.bitmap.data[c+2]=Math.round(s/l),this.bitmap.data[c+3]=Math.round(u/l)}}return he(e)&&e.call(this,null,this),this}}),()=>({invert(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.bitmap.data[r+2]})),he(t)&&t.call(this,null,this),this}}),()=>({mask(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return ce.call(this,"The source must be a Jimp image",n);if("number"!=typeof e||"number"!=typeof r)return ce.call(this,"x and y must be numbers",n);e=Math.round(e),r=Math.round(r);const i=this.bitmap.width,a=this.bitmap.height,o=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,s){const u=e+t,l=r+n;if(u>=0&&l>=0&&u<i&&l<a){const t=o.getPixelIndex(u,l),{data:e}=this.bitmap,r=(e[s+0]+e[s+1]+e[s+2])/3;o.bitmap.data[t+3]*=r/255}})),he(n)&&n.call(this,null,this),this}}),()=>({normalize(t){const e=Wn.call(this),r={r:Zn(e.r),g:Zn(e.g),b:Zn(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){const i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2];this.bitmap.data[n+0]=qn(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=qn(a,r.g[0],r.g[1]),this.bitmap.data[n+2]=qn(o,r.b[0],r.b[1])})),he(t)&&t.call(this,null,this),this}}),()=>({constants:{measureText:Yn,measureTextHeight:Jn,FONT_SANS_8_BLACK:se().join(ti,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:se().join(ti,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:se().join(ti,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:se().join(ti,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:se().join(ti,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:se().join(ti,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:se().join(ti,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:se().join(ti,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:se().join(ti,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:se().join(ti,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:se().join(ti,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:se().join(ti,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:se().join(ti,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont(t,e){return"string"!=typeof t?ce.call(this,"file must be a string",e):new Promise(((r,n)=>{e=e||function(t,e){t?n(t):r(e)},Vn()(t,((r,n)=>{const i={},a={};if(r)return ce.call(this,r,e);for(let t=0;t<n.chars.length;t++)i[String.fromCharCode(n.chars[t].id)]=n.chars[t];for(let t=0;t<n.kernings.length;t++){const e=String.fromCharCode(n.kernings[t].first);a[e]=a[e]||{},a[e][String.fromCharCode(n.kernings[t].second)]=n.kernings[t].amount}(function(t,e,r){const n=r.map((r=>t.read(e+"/"+r)));return Promise.all(n)})(this,se().dirname(t),n.pages).then((t=>{e(null,{chars:i,kernings:a,pages:t,common:n.common,info:n.info})}))}))}))}},class:{print(t,e,r,n,i,a,o){if("function"==typeof i&&void 0===o&&(o=i,i=1/0),void 0===i&&(i=1/0),"function"==typeof a&&void 0===o&&(o=a,a=1/0),void 0===a&&(a=1/0),"object"!=typeof t)return ce.call(this,"font must be a Jimp loadFont",o);if("number"!=typeof e||"number"!=typeof r||"number"!=typeof i)return ce.call(this,"x, y and maxWidth must be numbers",o);if("number"!=typeof i)return ce.call(this,"maxWidth must be a number",o);if("number"!=typeof a)return ce.call(this,"maxHeight must be a number",o);let s,u;"object"==typeof n&&null!==n.text&&void 0!==n.text?(s=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,u=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,({text:n}=n)):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,u=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString()),a!==1/0&&u===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=a-Jn(t,n,i):a!==1/0&&u===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=a/2-Jn(t,n,i)/2);const l=Object.entries(t.chars)[0][1].xadvance,{lines:h,longestLine:c}=Xn(t,n,i);return h.forEach((n=>{const a=n.join(" "),o=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-Yn(e,r))/2:n-Yn(e,r)}(this.constructor,t,a,i,s);Kn.call(this,t,e+o,r,a,l),r+=t.common.lineHeight})),he(o)&&o.call(this,null,this,{x:e+c,y:r}),this}}}),()=>({constants:{RESIZE_NEAREST_NEIGHBOR:"nearestNeighbor",RESIZE_BILINEAR:"bilinearInterpolation",RESIZE_BICUBIC:"bicubicInterpolation",RESIZE_HERMITE:"hermiteInterpolation",RESIZE_BEZIER:"bezierInterpolation"},class:{resize(t,e,r,n){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"w and h must be numbers",n);if("function"==typeof r&&void 0===n&&(n=r,r=null),t===this.constructor.AUTO&&e===this.constructor.AUTO)return ce.call(this,"w and h cannot both be set to auto",n);if(t===this.constructor.AUTO&&(t=this.bitmap.width*(e/this.bitmap.height)),e===this.constructor.AUTO&&(e=this.bitmap.height*(t/this.bitmap.width)),t<0||e<0)return ce.call(this,"w and h must be positive numbers",n);if(t=Math.round(t)||1,e=Math.round(e)||1,"function"==typeof ai[r]){const n={data:oi.alloc(t*e*4),width:t,height:e};ai[r](this.bitmap,n),this.bitmap=n}else{const r=this;new ri(this.bitmap.width,this.bitmap.height,t,e,!0,!0,(n=>{r.bitmap.data=oi.from(n),r.bitmap.width=t,r.bitmap.height=e})).resize(this.bitmap.data)}return he(n)&&n.call(this,null,this),this}}}),()=>({rotate(t,e,r){return null==e&&(e=!0),"function"==typeof e&&void 0===r&&(r=e,e=!0),"number"!=typeof t?ce.call(this,"deg must be a number",r):"boolean"!=typeof e&&"string"!=typeof e?ce.call(this,"mode must be a boolean or a string",r):(t%90!=0||!e&&this.bitmap.width!==this.bitmap.height&&t%180!=0?li.call(this,t,e,r):ui.call(this,t),he(r)&&r.call(this,null,this),this)}}),()=>({scale(t,e,r){if("number"!=typeof t)return ce.call(this,"f must be a number",r);if(t<0)return ce.call(this,"f must be a positive number",r);"function"==typeof e&&void 0===r&&(r=e,e=null);const n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),he(r)&&r.call(this,null,this),this},scaleToFit(t,e,r,n){if("number"!=typeof t||"number"!=typeof e)return ce.call(this,"w and h must be numbers",n);"function"==typeof r&&void 0===n&&(n=r,r=null);const i=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),he(n)&&n.call(this,null,this),this}}),()=>({shadow(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(e=t,t={});const{opacity:r=.7,size:n=1.1,x:i=-25,y:a=25,blur:o=5}=t,s=this.clone(),u=this.clone();return u.scan(0,0,u.bitmap.width,u.bitmap.height,((t,e,n)=>{u.bitmap.data[n]=0,u.bitmap.data[n+1]=0,u.bitmap.data[n+2]=0,u.bitmap.data[n+3]=u.constructor.limit255(u.bitmap.data[n+3]*r),this.bitmap.data[n]=0,this.bitmap.data[n+1]=0,this.bitmap.data[n+2]=0,this.bitmap.data[n+3]=0})),u.resize(u.bitmap.width*n,u.bitmap.height*n).blur(o),this.composite(u,i,a),this.composite(s,0,0),he(e)&&e.call(this,null,this),this}}),()=>({threshold(t,e){let{max:r,replace:n=255,autoGreyscale:i=!0}=t;return"number"!=typeof r?ce.call(this,"max must be a number",e):"number"!=typeof n?ce.call(this,"replace must be a number",e):"boolean"!=typeof i?ce.call(this,"autoGreyscale must be a boolean",e):(r=this.constructor.limit255(r),n=this.constructor.limit255(n),i&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,((t,e,i)=>{const a=this.bitmap.data[i]<r?this.bitmap.data[i]:n;this.bitmap.data[i]=a,this.bitmap.data[i+1]=a,this.bitmap.data[i+2]=a})),he(e)&&e.call(this,null,this),this)}})],ci=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ln;const r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function n(t){Object.entries(t).forEach((t=>{let[e,n]=t;r[e]={...r[e],...n}}))}return t.types&&(t.types.forEach((function(t){const e=t();Array.isArray(e.mime)?Or(...e.mime):Object.entries(e.mime).forEach((t=>Or(...t))),delete e.mime,n(e)})),e.decoders={...e.decoders,...r.decoders},e.encoders={...e.encoders,...r.encoders},e.hasAlpha={...e.hasAlpha,...r.hasAlpha}),t.plugins&&t.plugins.forEach((function(t){const e=t(un)||{};e.class||e.constants?n(e):n({class:e})})),on(r.class,e),an(r.constants,e),ln}({types:[()=>(0,hn.D9)(pn(),bn(),{mime:{[wn]:["bmp"]},constants:{MIME_BMP:wn,MIME_X_MS_BMP:_n},decoders:{[wn]:kn,[_n]:kn},encoders:{[wn]:Bn,[_n]:Bn}},{mime:{[An]:["tiff","tif"]},constants:{MIME_TIFF:An},decoders:{[An]:t=>{const e=En().decode(t),r=e[0];e.forEach((e=>{En().decodeImage(t,e)}));const n=En().toRGBA8(r);return{data:Cn.from(n),width:r.t256[0],height:r.t257[0]}}},encoders:{[An]:t=>{const e=En().encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Cn.from(e)}}},{mime:{[Pn]:["gif"]},constants:{MIME_GIF:Pn},decoders:{[Pn]:t=>{const e=new In.GifReader(t),r=Sn.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,r),{data:r,width:e.width,height:e.height}}},encoders:{[Pn]:t=>{const e=new Mn.BitmapImage(t.bitmap);Mn.GifUtil.quantizeDekker(e,256);const r=new Mn.GifFrame(e);return(new Mn.GifCodec).encodeGif([r],{}).then((t=>t.buffer))}}})],plugins:[t=>{const e=hi.map((e=>{let r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return(0,hn.D9)(...e)}]});function fi(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(fi=function(t){return t?r:e})(t)}function di(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=fi(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function pi(t,e,r){return e=h(e),l(t,mi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function mi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mi=function(){return!!t})()}const gi=function(t){function e(){var t;return i(this,e),(t=pi(this,e)).name="Add Text To Image",t.module="Image",t.description="Adds text onto an image.<br><br>Text can be horizontally or vertically aligned, or the position can be manually specified.<br>Variants of the Roboto font face are available in any size or colour.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Text",type:"string",value:""},{name:"Horizontal align",type:"option",value:["None","Left","Center","Right"]},{name:"Vertical align",type:"option",value:["None","Top","Middle","Bottom"]},{name:"X position",type:"number",value:0},{name:"Y position",type:"number",value:0},{name:"Size",type:"number",value:32,min:8},{name:"Font face",type:"option",value:["Roboto","Roboto Black","Roboto Mono","Roboto Slab"]},{name:"Red",type:"number",value:255,min:0,max:255},{name:"Green",type:"number",value:255,min:0,max:255},{name:"Blue",type:"number",value:255,min:0,max:255},{name:"Alpha",type:"number",value:255,min:0,max:255}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m,g,b,y,v,w,_,k;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r[0],i=r[1],a=r[2],o=r[5],s=r[6],u=r[7],l=r[8],h=r[9],c=r[10],f=r[3],d=r[4],At(e)){t.next=4;break}throw new x("Invalid file type.");case 4:return t.prev=4,t.next=7,ci.read(e);case 7:m=t.sent,t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),new x(`Error loading image. (${t.t0})`);case 13:return t.prev=13,L()&&self.sendStatusMessage("Adding text to image..."),g={},b=[Promise.resolve().then((function(){return di(__webpack_require__(85966))})),Promise.resolve().then((function(){return di(__webpack_require__(60261))})),Promise.resolve().then((function(){return di(__webpack_require__(13773))})),Promise.resolve().then((function(){return di(__webpack_require__(6758))}))],t.next=19,Promise.all(b).then((function(t){g.Roboto=t[0],g["Roboto Black"]=t[1],g["Roboto Mono"]=t[2],g["Roboto Slab"]=t[3]}));case 19:return t.next=21,Promise.all([Promise.resolve().then((function(){return di(__webpack_require__(47707))})),Promise.resolve().then((function(){return di(__webpack_require__(25971))})),Promise.resolve().then((function(){return di(__webpack_require__(53968))})),Promise.resolve().then((function(){return di(__webpack_require__(55560))}))]);case 21:return y=g[s],t.next=24,ci.loadFont(self.docURL+"/"+y.default);case 24:(v=t.sent).pages.forEach((function(t){if(t.bitmap)for(var e=t.bitmap.width,r=t.bitmap.height,n=0;n<e;n++)for(var i=0;i<r;i++){var a=i*e+n<<2,o=t.bitmap.data[a]-(255-u),s=t.bitmap.data[a+1]-(255-l),f=t.bitmap.data[a+2]-(255-h),d=t.bitmap.data[a+3]-(255-c);t.bitmap.data[a]=o>0?o:0,t.bitmap.data[a+1]=s>0?s:0,t.bitmap.data[a+2]=f>0?f:0,t.bitmap.data[a+3]=d>0?d:0}})),(w=new ci(ci.measureText(v,n),ci.measureTextHeight(v,n))).print(v,0,0,n),_=o/72,1!==o&&(o>1?w.scale(_,ci.RESIZE_BICUBIC):w.scale(_,ci.RESIZE_BILINEAR)),t.t1=i,t.next="Left"===t.t1?33:"Center"===t.t1?35:"Right"===t.t1?37:39;break;case 33:return f=0,t.abrupt("break",39);case 35:return f=m.getWidth()/2-w.getWidth()/2,t.abrupt("break",39);case 37:return f=m.getWidth()-w.getWidth(),t.abrupt("break",39);case 39:t.t2=a,t.next="Top"===t.t2?42:"Middle"===t.t2?44:"Bottom"===t.t2?46:48;break;case 42:return d=0,t.abrupt("break",48);case 44:return d=m.getHeight()/2-w.getHeight()/2,t.abrupt("break",48);case 46:return d=m.getHeight()-w.getHeight(),t.abrupt("break",48);case 48:if(m.blit(w,f,d),"image/gif"!==m.getMIME()){t.next=55;break}return t.next=52,m.getBufferAsync(ci.MIME_PNG);case 52:k=t.sent,t.next=58;break;case 55:return t.next=57,m.getBufferAsync(ci.AUTO);case 57:k=t.sent;case 58:return t.abrupt("return",k.buffer);case 61:throw t.prev=61,t.t3=t.catch(13),new x(`Error adding text to image. (${t.t3})`);case 64:case"end":return t.stop()}}),t,null,[[4,10],[13,61]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function bi(t,e){try{for(var r=function(t,e){var r=Math.sqrt(12*t*t/3+1),n=Math.floor(r);n%2==0&&n--;for(var i=n+2,a=(12*t*t-3*n*n-12*n-9)/(-4*n-4),o=Math.round(a),s=[],u=0;u<3;u++)s.push(u<o?n:i);return s}(e),n=0;n<3;n++)t=yi(t,(r[n]-1)/2)}catch(t){throw new x(`Error blurring image. (${t})`)}return t}function yi(t,e){var r=t.bitmap.width,n=t.bitmap.height,i=t.clone();return i=function(t,e,r,n,i){for(var a=1/(i+i+1),o=0;o<n;o++){for(var s=0,u=s,l=s+i,h=t.getPixelIndex(s,o),c=t.bitmap.data[h],f=t.bitmap.data[h+1],d=t.bitmap.data[h+2],p=t.bitmap.data[h+3],m=t.getPixelIndex(r-1,o),g=t.bitmap.data[m],b=t.bitmap.data[m+1],y=t.bitmap.data[m+2],v=t.bitmap.data[m+3],w=(i+1)*c,_=(i+1)*f,k=(i+1)*d,B=(i+1)*p,x=0;x<i;x++){var E=t.getPixelIndex(s+x,o);w+=t.bitmap.data[E],_+=t.bitmap.data[E+1],k+=t.bitmap.data[E+2],B+=t.bitmap.data[E+3]}for(var C=0;C<=i;C++){var A=t.getPixelIndex(l++,o);w+=t.bitmap.data[A]-c,_+=t.bitmap.data[A+1]-f,k+=t.bitmap.data[A+2]-d,B+=t.bitmap.data[A+3]-p;var I=t.getPixelIndex(s++,o);e.bitmap.data[I]=Math.round(w*a),e.bitmap.data[I+1]=Math.round(_*a),e.bitmap.data[I+2]=Math.round(k*a),e.bitmap.data[I+3]=Math.round(B*a)}for(var M=i+1;M<r-i;M++){var S=t.getPixelIndex(l++,o),P=t.getPixelIndex(u++,o);w+=t.bitmap.data[S]-t.bitmap.data[P],_+=t.bitmap.data[S+1]-t.bitmap.data[P+1],k+=t.bitmap.data[S+2]-t.bitmap.data[P+2],B+=t.bitmap.data[S+3]-t.bitmap.data[P+3];var T=t.getPixelIndex(s++,o);e.bitmap.data[T]=Math.round(w*a),e.bitmap.data[T+1]=Math.round(_*a),e.bitmap.data[T+2]=Math.round(k*a),e.bitmap.data[T+3]=Math.round(B*a)}for(var R=r-i;R<r;R++){var F=t.getPixelIndex(u++,o);w+=g-t.bitmap.data[F],_+=b-t.bitmap.data[F+1],k+=y-t.bitmap.data[F+2],B+=v-t.bitmap.data[F+3];var L=t.getPixelIndex(s++,o);e.bitmap.data[L]=Math.round(w*a),e.bitmap.data[L+1]=Math.round(_*a),e.bitmap.data[L+2]=Math.round(k*a),e.bitmap.data[L+3]=Math.round(B*a)}}return e}(t,i,r,n,e),t=function(t,e,r,n,i){for(var a=1/(i+i+1),o=0;o<r;o++){for(var s=0,u=s,l=s+i,h=t.getPixelIndex(o,s),c=t.bitmap.data[h],f=t.bitmap.data[h+1],d=t.bitmap.data[h+2],p=t.bitmap.data[h+3],m=t.getPixelIndex(o,n-1),g=t.bitmap.data[m],b=t.bitmap.data[m+1],y=t.bitmap.data[m+2],v=t.bitmap.data[m+3],w=(i+1)*c,_=(i+1)*f,k=(i+1)*d,B=(i+1)*p,x=0;x<i;x++){var E=t.getPixelIndex(o,s+x);w+=t.bitmap.data[E],_+=t.bitmap.data[E+1],k+=t.bitmap.data[E+2],B+=t.bitmap.data[E+3]}for(var C=0;C<=i;C++){var A=t.getPixelIndex(o,l++);w+=t.bitmap.data[A]-c,_+=t.bitmap.data[A+1]-f,k+=t.bitmap.data[A+2]-d,B+=t.bitmap.data[A+3]-p;var I=t.getPixelIndex(o,s++);e.bitmap.data[I]=Math.round(w*a),e.bitmap.data[I+1]=Math.round(_*a),e.bitmap.data[I+2]=Math.round(k*a),e.bitmap.data[I+3]=Math.round(B*a)}for(var M=i+1;M<n-i;M++){var S=t.getPixelIndex(o,l++),P=t.getPixelIndex(o,u++);w+=t.bitmap.data[S]-t.bitmap.data[P],_+=t.bitmap.data[S+1]-t.bitmap.data[P+1],k+=t.bitmap.data[S+2]-t.bitmap.data[P+2],B+=t.bitmap.data[S+3]-t.bitmap.data[P+3];var T=t.getPixelIndex(o,s++);e.bitmap.data[T]=Math.round(w*a),e.bitmap.data[T+1]=Math.round(_*a),e.bitmap.data[T+2]=Math.round(k*a),e.bitmap.data[T+3]=Math.round(B*a)}for(var R=n-i;R<n;R++){var F=t.getPixelIndex(o,u++);w+=g-t.bitmap.data[F],_+=b-t.bitmap.data[F+1],k+=y-t.bitmap.data[F+2],B+=v-t.bitmap.data[F+3];var L=t.getPixelIndex(o,s++);e.bitmap.data[L]=Math.round(w*a),e.bitmap.data[L+1]=Math.round(_*a),e.bitmap.data[L+2]=Math.round(k*a),e.bitmap.data[L+3]=Math.round(B*a)}}return e}(i,t,r,n,e),t}function vi(t,e,r){return e=h(e),l(t,wi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function wi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wi=function(){return!!t})()}const _i=function(t){function e(){var t;return i(this,e),(t=vi(this,e)).name="Blur Image",t.module="Image",t.description="Applies a blur effect to the image.<br><br>Gaussian blur is much slower than fast blur, but produces better results.",t.infoURL="https://wikipedia.org/wiki/Gaussian_blur",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Amount",type:"number",value:5,min:1},{name:"Type",type:"option",value:["Fast","Gaussian"]}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,2),i=n[0],a=n[1],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:o=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:t.prev=12,t.t1=a,t.next="Fast"===t.t1?16:"Gaussian"===t.t1?19:22;break;case 16:return L()&&self.sendStatusMessage("Fast blurring image..."),o.blur(i),t.abrupt("break",22);case 19:return L()&&self.sendStatusMessage("Gaussian blurring image..."),o=bi(o,i),t.abrupt("break",22);case 22:if("image/gif"!==o.getMIME()){t.next=28;break}return t.next=25,o.getBufferAsync(ci.MIME_PNG);case 25:s=t.sent,t.next=31;break;case 28:return t.next=30,o.getBufferAsync(ci.AUTO);case 30:s=t.sent;case 31:return t.abrupt("return",s.buffer);case 34:throw t.prev=34,t.t2=t.catch(12),new x(`Error blurring image. (${t.t2})`);case 37:case"end":return t.stop()}}),t,null,[[3,9],[12,34]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function ki(t,e,r){return e=h(e),l(t,Bi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Bi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bi=function(){return!!t})()}const xi=function(t){function e(){var t;return i(this,e),(t=ki(this,e)).name="Contain Image",t.module="Image",t.description="Scales an image to the specified width and height, maintaining the aspect ratio. The image may be letterboxed.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Horizontal align",type:"option",value:["Left","Center","Right"],defaultIndex:1},{name:"Vertical align",type:"option",value:["Top","Middle","Bottom"],defaultIndex:1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1},{name:"Opaque background",type:"boolean",value:!0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,6),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l=n[5],h={"Nearest Neighbour":ci.RESIZE_NEAREST_NEIGHBOR,Bilinear:ci.RESIZE_BILINEAR,Bicubic:ci.RESIZE_BICUBIC,Hermite:ci.RESIZE_HERMITE,Bezier:ci.RESIZE_BEZIER},c={Left:ci.HORIZONTAL_ALIGN_LEFT,Center:ci.HORIZONTAL_ALIGN_CENTER,Right:ci.HORIZONTAL_ALIGN_RIGHT,Top:ci.VERTICAL_ALIGN_TOP,Middle:ci.VERTICAL_ALIGN_MIDDLE,Bottom:ci.VERTICAL_ALIGN_BOTTOM},At(e)){t.next=5;break}throw new x("Invalid file type.");case 5:return t.prev=5,t.next=8,ci.read(e);case 8:f=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new x(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,L()&&self.sendStatusMessage("Containing image..."),f.contain(i,a,c[o]|c[s],h[u]),!l){t.next=23;break}return t.next=20,ci.read(i,a,255);case 20:(d=t.sent).blit(f,0,0),f=d;case 23:if("image/gif"!==f.getMIME()){t.next=29;break}return t.next=26,f.getBufferAsync(ci.MIME_PNG);case 26:m=t.sent,t.next=32;break;case 29:return t.next=31,f.getBufferAsync(ci.AUTO);case 31:m=t.sent;case 32:return t.abrupt("return",m.buffer);case 35:throw t.prev=35,t.t1=t.catch(14),new x(`Error containing image. (${t.t1})`);case 38:case"end":return t.stop()}}),t,null,[[5,11],[14,35]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ei(t,e,r){return e=h(e),l(t,Ci()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ci(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ci=function(){return!!t})()}const Ai=function(t){function e(){var t;return i(this,e),(t=Ei(this,e)).name="Convert Image Format",t.module="Image",t.description="Converts an image between different formats. Supported formats:<br><ul><li>Joint Photographic Experts Group (JPEG)</li><li>Portable Network Graphics (PNG)</li><li>Bitmap (BMP)</li><li>Tagged Image File Format (TIFF)</li></ul><br>Note: GIF files are supported for input, but cannot be outputted.",t.infoURL="https://wikipedia.org/wiki/Image_file_formats",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Output Format",type:"option",value:["JPEG","PNG","BMP","TIFF"]},{name:"JPEG Quality",type:"number",value:80,min:1,max:100},{name:"PNG Filter Type",type:"option",value:["Auto","None","Sub","Up","Average","Paeth"]},{name:"PNG Deflate Level",type:"number",value:9,min:0,max:9}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,4),i=n[0],a=n[1],o=n[2],s=n[3],u={JPEG:ci.MIME_JPEG,PNG:ci.MIME_PNG,BMP:ci.MIME_BMP,TIFF:ci.MIME_TIFF},l={Auto:ci.PNG_FILTER_AUTO,None:ci.PNG_FILTER_NONE,Sub:ci.PNG_FILTER_SUB,Up:ci.PNG_FILTER_UP,Average:ci.PNG_FILTER_AVERAGE,Paeth:ci.PNG_FILTER_PATH},h=u[i],At(e)){t.next=6;break}throw new x("Invalid file format.");case 6:return t.prev=6,t.next=9,ci.read(e);case 9:c=t.sent,t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(6),new x(`Error opening image file. (${t.t0})`);case 15:t.prev=15,t.t1=i,t.next="JPEG"===t.t1?19:"PNG"===t.t1?21:24;break;case 19:return c.quality(a),t.abrupt("break",24);case 21:return c.filterType(l[o]),c.deflateLevel(s),t.abrupt("break",24);case 24:return t.next=26,c.getBufferAsync(h);case 26:return f=t.sent,t.abrupt("return",f.buffer);case 30:throw t.prev=30,t.t2=t.catch(15),new x(`Error converting image format. (${t.t2})`);case 33:case"end":return t.stop()}}),t,null,[[6,12],[15,30]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ii(t,e,r){return e=h(e),l(t,Mi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Mi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mi=function(){return!!t})()}const Si=function(t){function e(){var t;return i(this,e),(t=Ii(this,e)).name="Cover Image",t.module="Image",t.description="Scales the image to the given width and height, keeping the aspect ratio. The image may be clipped.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Horizontal align",type:"option",value:["Left","Center","Right"],defaultIndex:1},{name:"Vertical align",type:"option",value:["Top","Middle","Bottom"],defaultIndex:1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,5),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l={"Nearest Neighbour":ci.RESIZE_NEAREST_NEIGHBOR,Bilinear:ci.RESIZE_BILINEAR,Bicubic:ci.RESIZE_BICUBIC,Hermite:ci.RESIZE_HERMITE,Bezier:ci.RESIZE_BEZIER},h={Left:ci.HORIZONTAL_ALIGN_LEFT,Center:ci.HORIZONTAL_ALIGN_CENTER,Right:ci.HORIZONTAL_ALIGN_RIGHT,Top:ci.VERTICAL_ALIGN_TOP,Middle:ci.VERTICAL_ALIGN_MIDDLE,Bottom:ci.VERTICAL_ALIGN_BOTTOM},At(e)){t.next=5;break}throw new x("Invalid file type.");case 5:return t.prev=5,t.next=8,ci.read(e);case 8:c=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new x(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,L()&&self.sendStatusMessage("Covering image..."),c.cover(i,a,h[o]|h[s],l[u]),"image/gif"!==c.getMIME()){t.next=23;break}return t.next=20,c.getBufferAsync(ci.MIME_PNG);case 20:f=t.sent,t.next=26;break;case 23:return t.next=25,c.getBufferAsync(ci.AUTO);case 25:f=t.sent;case 26:return t.abrupt("return",f.buffer);case 29:throw t.prev=29,t.t1=t.catch(14),new x(`Error covering image. (${t.t1})`);case 32:case"end":return t.stop()}}),t,null,[[5,11],[14,29]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Pi(t,e,r){return e=h(e),l(t,Ti()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ti(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ti=function(){return!!t})()}const Ri=function(t){function e(){var t;return i(this,e),(t=Pi(this,e)).name="Crop Image",t.module="Image",t.description="Crops an image to the specified region, or automatically crops edges.<br><br><b><u>Autocrop</u></b><br>Automatically crops same-colour borders from the image.<br><br><u>Autocrop tolerance</u><br>A percentage value for the tolerance of colour difference between pixels.<br><br><u>Only autocrop frames</u><br>Only crop real frames (all sides must have the same border)<br><br><u>Symmetric autocrop</u><br>Force autocrop to be symmetric (top/bottom and left/right are cropped by the same amount)<br><br><u>Autocrop keep border</u><br>The number of pixels of border to leave around the image.",t.infoURL="https://wikipedia.org/wiki/Cropping_(image)",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"X Position",type:"number",value:0,min:0},{name:"Y Position",type:"number",value:0,min:0},{name:"Width",type:"number",value:10,min:1},{name:"Height",type:"number",value:10,min:1},{name:"Autocrop",type:"boolean",value:!1},{name:"Autocrop tolerance (%)",type:"number",value:.02,min:0,max:100,step:.01},{name:"Only autocrop frames",type:"boolean",value:!0},{name:"Symmetric autocrop",type:"boolean",value:!1},{name:"Autocrop keep border (px)",type:"number",value:0,min:0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,9),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l=n[5],h=n[6],c=n[7],f=n[8],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:d=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Cropping image..."),u?d.autocrop({tolerance:l/100,cropOnlyFrames:h,cropSymmetric:c,leaveBorder:f}):d.crop(i,a,o,s),"image/gif"!==d.getMIME()){t.next=21;break}return t.next=18,d.getBufferAsync(ci.MIME_PNG);case 18:m=t.sent,t.next=24;break;case 21:return t.next=23,d.getBufferAsync(ci.AUTO);case 23:m=t.sent;case 24:return t.abrupt("return",m.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new x(`Error cropping image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Fi(t,e,r){return e=h(e),l(t,Li()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Li(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Li=function(){return!!t})()}const Oi=function(t){function e(){var t;return i(this,e),(t=Fi(this,e)).name="Dither Image",t.module="Image",t.description="Apply a dither effect to an image.",t.infoURL="https://wikipedia.org/wiki/Dither",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Invalid file type.");case 2:return t.prev=2,t.next=5,ci.read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new x(`Error loading image. (${t.t0})`);case 11:if(t.prev=11,L()&&self.sendStatusMessage("Applying dither to image..."),n.dither565(),"image/gif"!==n.getMIME()){t.next=20;break}return t.next=17,n.getBufferAsync(ci.MIME_PNG);case 17:i=t.sent,t.next=23;break;case 20:return t.next=22,n.getBufferAsync(ci.AUTO);case 22:i=t.sent;case 23:return t.abrupt("return",i.buffer);case 26:throw t.prev=26,t.t1=t.catch(11),new x(`Error applying dither to image. (${t.t1})`);case 29:case"end":return t.stop()}}),t,null,[[2,8],[11,26]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ui(t,e,r){return e=h(e),l(t,Di()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Di(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Di=function(){return!!t})()}const Ni=function(t){function e(){var t;return i(this,e),(t=Ui(this,e)).name="Extract EXIF",t.module="Image",t.description=["Extracts EXIF data from an image.","<br><br>","EXIF data is metadata embedded in images (JPEG, JPG, TIFF) and audio files.","<br><br>","EXIF data from photos usually contains information about the image file itself as well as the device used to create it."].join("\n"),t.infoURL="https://wikipedia.org/wiki/Exif",t.inputType="ArrayBuffer",t.outputType="string",t.args=[],t}return f(e,t),u(e,[{key:"run",value:function(t,e){try{var r=Gr().create(t).parse(),n=[];for(var i in r.tags){var a=r.tags[i];n.push(`${i}: ${a}`)}var o=n.length;return n.unshift(`Found ${o} tags.\n`),n.join("\n")}catch(t){throw new x(`Could not extract EXIF data from image: ${t}`)}}}])}(ne);function zi(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Gi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ji(t,e,r){return e=h(e),l(t,Hi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Hi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Hi=function(){return!!t})()}var Wi=function(t){function e(){var t;return i(this,e),(t=ji(this,e)).name="Extract LSB",t.module="Image",t.description="Extracts the Least Significant Bit data from each pixel in an image. This is a common way to hide data in Steganography.",t.infoURL="https://wikipedia.org/wiki/Bit_numbering#Least_significant_bit_in_digital_steganography",t.inputType="ArrayBuffer",t.outputType="byteArray",t.args=[{name:"Colour Pattern #1",type:"option",value:qi},{name:"Colour Pattern #2",type:"option",value:[""].concat(qi)},{name:"Colour Pattern #3",type:"option",value:[""].concat(qi)},{name:"Colour Pattern #4",type:"option",value:[""].concat(qi)},{name:"Pixel Order",type:"option",value:["Row","Column"]},{name:"Bit",type:"number",value:0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m,g,b,y,v,w,_,k;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Please enter a valid image file.");case 2:return n=7-r.pop(),i=r.pop(),a=r.filter((function(t){return""!==t})).map((function(t){return qi.indexOf(t)})),t.next=7,ci.read(e);case 7:if(o=t.sent,s=o.bitmap.width,u=o.bitmap.height,l=o.bitmap.data,!(n<0||n>7)){t.next=13;break}throw new x("Error: Bit argument must be between 0 and 7");case 13:if(c="","Row"===i)for(h=0;h<l.length;h+=4){f=zi(a);try{for(f.s();!(d=f.n()).done;)m=d.value,c+=O.bin(l[h+m])[n]}catch(t){f.e(t)}finally{f.f()}}else for(b=4*s,y=0;y<s;y++)for(v=0;v<u;v++){g=v*b,w=zi(a);try{for(w.s();!(_=w.n()).done;)k=_.value,h=g+(y+4*k),c+=O.bin(l[h])[n]}catch(t){w.e(t)}finally{w.f()}}return t.abrupt("return",M(c));case 16:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})}]);var r}(ne),qi=["R","G","B","A"];const Zi=Wi;var $i=[{name:"Comma",value:","},{name:"Space",value:" "},{name:"CRLF",value:"\\r\\n"},{name:"Line Feed",value:"\n"}];function Vi(t,e,r){return e=h(e),l(t,Yi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Yi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Yi=function(){return!!t})()}const Xi=function(t){function e(){var t;return i(this,e),(t=Vi(this,e)).name="Extract RGBA",t.module="Image",t.description="Extracts each pixel's RGBA value in an image. These are sometimes used in Steganography to hide text or data.",t.infoURL="https://wikipedia.org/wiki/RGBA_color_space",t.inputType="ArrayBuffer",t.outputType="string",t.args=[{name:"Delimiter",type:"editableOption",value:$i},{name:"Include Alpha",type:"boolean",value:!0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Please enter a valid image file.");case 2:return n=r[0],i=r[1],t.next=6,ci.read(e);case 6:return a=t.sent,o=a.bitmap.data,o=i?o:o.filter((function(t,e){return e%4!=3})),t.abrupt("return",o.join(n));case 10:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})}]);var r}(ne);function Ji(t,e,r){return e=h(e),l(t,Qi()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Qi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Qi=function(){return!!t})()}const Ki=function(t){function e(){var t;return i(this,e),(t=Ji(this,e)).name="Flip Image",t.module="Image",t.description="Flips an image along its X or Y axis.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Axis",type:"option",value:["Horizontal","Vertical"]}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,1),i=n[0],At(e)){t.next=3;break}throw new x("Invalid input file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:t.prev=12,L()&&self.sendStatusMessage("Flipping image..."),t.t1=i,t.next="Horizontal"===t.t1?17:"Vertical"===t.t1?19:21;break;case 17:return a.flip(!0,!1),t.abrupt("break",21);case 19:return a.flip(!1,!0),t.abrupt("break",21);case 21:if("image/gif"!==a.getMIME()){t.next=27;break}return t.next=24,a.getBufferAsync(ci.MIME_PNG);case 24:o=t.sent,t.next=30;break;case 27:return t.next=29,a.getBufferAsync(ci.AUTO);case 29:o=t.sent;case 30:return t.abrupt("return",o.buffer);case 33:throw t.prev=33,t.t2=t.catch(12),new x(`Error flipping image. (${t.t2})`);case 36:case"end":return t.stop()}}),t,null,[[3,9],[12,33]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function ta(t,e,r){return e=h(e),l(t,ea()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ea=function(){return!!t})()}var ra=function(t){function e(){var t;return i(this,e),(t=ta(this,e)).name="Generate Image",t.module="Image",t.description="Generates an image using the input as pixel values.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Mode",type:"option",value:["Greyscale","RG","RGB","RGBA","Bits"]},{name:"Pixel Scale Factor",type:"number",value:8},{name:"Pixels per row",type:"number",value:64}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m,g,b,y,v,w,_,k,B,E,C,A,I,M;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,3),i=n[0],a=n[1],o=n[2],e=new Uint8Array(e),!(a<=0)){t.next=4;break}throw new x("Pixel Scale Factor needs to be > 0");case 4:if(!(o<=0)){t.next=6;break}throw new x("Pixels per Row needs to be > 0");case 6:if(!((s={Greyscale:1,RG:2,RGB:3,RGBA:4,Bits:1/8}[i])>0&&e.length%s!=0)){t.next=10;break}throw new x(`Number of bytes is not a divisor of ${s}`);case 10:return u=Math.ceil(e.length/s/o),t.next=13,new ci(o,u,(function(t,e){}));case 13:if(l=t.sent,L()&&self.sendStatusMessage("Generating image from data..."),"Bits"!==i){t.next=20;break}for(h=0,c=0;c<e.length;c++)for(f=O.bin(e[c]),d=0;d<8;d++,h++)m=h%o,g=Math.floor(h/o),b="0"===f[d]?255:0,y=ci.rgbaToInt(b,b,b,255),l.setPixelColor(y,m,g);t.next=57;break;case 20:v=0;case 21:if(!(v<e.length)){t.next=57;break}_=(w=v/s)%o,k=Math.floor(w/o),B=0,E=0,C=0,A=255,t.t0=i,t.next="Greyscale"===t.t0?32:"RG"===t.t0?34:"RGB"===t.t0?37:"RGBA"===t.t0?41:46;break;case 32:return B=E=C=e[v++],t.abrupt("break",47);case 34:return B=e[v++],E=e[v++],t.abrupt("break",47);case 37:return B=e[v++],E=e[v++],C=e[v++],t.abrupt("break",47);case 41:return B=e[v++],E=e[v++],C=e[v++],A=e[v++],t.abrupt("break",47);case 46:throw new x(`Unsupported Mode: (${i})`);case 47:t.prev=47,I=ci.rgbaToInt(B,E,C,A),l.setPixelColor(I,_,k),t.next=55;break;case 52:throw t.prev=52,t.t1=t.catch(47),new x(`Error while generating image from pixel values. (${t.t1})`);case 55:t.next=21;break;case 57:return 1!==a&&(L()&&self.sendStatusMessage("Scaling image..."),l.scaleToFit(o*a,u*a,ci.RESIZE_NEAREST_NEIGHBOR)),t.prev=58,t.next=61,l.getBufferAsync(ci.MIME_PNG);case 61:return M=t.sent,t.abrupt("return",M.buffer);case 65:throw t.prev=65,t.t2=t.catch(58),new x(`Error generating image. (${t.t2})`);case 68:case"end":return t.stop()}}),t,null,[[47,52],[58,65]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);const na=ra;var ia=__webpack_require__(66624),aa=__webpack_require__.n(ia),oa=__webpack_require__(65235),sa=__webpack_require__.n(oa);function ua(t,e){return la.apply(this,arguments)}function la(){return(la=n(p().mark((function t(e,r){var n,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ci.read(e);case 3:n=t.sent,t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(0),new x(`Error opening image. (${t.t0})`);case 9:if(t.prev=9,!r){t.next=21;break}return n.rgba(!1),n.background(4294967295),n.normalize(),n.greyscale(),t.next=17,n.getBufferAsync(ci.MIME_JPEG);case 17:return n=t.sent,t.next=20,ci.read(n);case 20:n=t.sent;case 21:t.next=26;break;case 23:throw t.prev=23,t.t1=t.catch(9),new x(`Error normalising image. (${t.t1})`);case 26:if(!(i=aa()(n.bitmap.data,n.getWidth(),n.getHeight()))){t.next=31;break}return t.abrupt("return",i.data);case 31:throw new x("Could not read a QR code from the image.");case 32:case"end":return t.stop()}}),t,null,[[0,6],[9,23]])})))).apply(this,arguments)}function ha(t,e,r){return e=h(e),l(t,ca()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ca=function(){return!!t})()}const fa=function(t){function e(){var t;return i(this,e),(t=ha(this,e)).name="Generate QR Code",t.module="Image",t.description="Generates a Quick Response (QR) code from the input text.<br><br>A QR code is a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached.",t.infoURL="https://wikipedia.org/wiki/QR_code",t.inputType="string",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Image Format",type:"option",value:["PNG","SVG","EPS","PDF"]},{name:"Module size (px)",type:"number",value:5,min:1},{name:"Margin (num modules)",type:"number",value:4,min:0},{name:"Error correction",type:"option",value:["Low","Medium","Quartile","High"],defaultIndex:1}],t}return f(e,t),u(e,[{key:"run",value:function(t,e){var r=ot(e,4);return function(t,e,r,n,i){var a;if(!["SVG","EPS","PDF","PNG"].includes(e.toUpperCase()))throw new x("Unsupported QR code format.");try{a=sa().imageSync(t,{type:e,size:r,margin:n,ec_level:i.charAt(0).toUpperCase()})}catch(t){throw new x(`Error generating QR code. (${t})`)}if(!a)throw new x("Error generating QR code.");switch(e){case"SVG":case"EPS":case"PDF":return O.strToArrayBuffer(a);case"PNG":return a.buffer;default:throw new x("Unsupported QR code format.")}}(t,r[0],r[1],r[2],r[3])}},{key:"present",value:function(t,e){if(!t.byteLength&&!t.length)return"";var r=new Uint8Array(t);if("PNG"===ot(e,1)[0]){var n=At(r);if(!n)throw new x("Invalid file type.");return`<img src="data:${n};base64,${E(r)}">`}return O.arrayBufferToStr(t)}}])}(ne);function da(t,e,r){return e=h(e),l(t,pa()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function pa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pa=function(){return!!t})()}const ma=function(t){function e(){var t;return i(this,e),(t=da(this,e)).name="Image Brightness / Contrast",t.module="Image",t.description="Adjust the brightness or contrast of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Brightness",type:"number",value:0,min:-100,max:100},{name:"Contrast",type:"number",value:0,min:-100,max:100}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,2),i=n[0],a=n[1],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:o=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,0!==i&&(L()&&self.sendStatusMessage("Changing image brightness..."),o.brightness(i/100)),0!==a&&(L()&&self.sendStatusMessage("Changing image contrast..."),o.contrast(a/100)),"image/gif"!==o.getMIME()){t.next=21;break}return t.next=18,o.getBufferAsync(ci.MIME_PNG);case 18:s=t.sent,t.next=24;break;case 21:return t.next=23,o.getBufferAsync(ci.AUTO);case 23:s=t.sent;case 24:return t.abrupt("return",s.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new x(`Error adjusting image brightness or contrast. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function ga(t,e,r){return e=h(e),l(t,ba()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ba(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ba=function(){return!!t})()}const ya=function(t){function e(){var t;return i(this,e),(t=ga(this,e)).name="Image Filter",t.module="Image",t.description="Applies a greyscale or sepia filter to an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Filter type",type:"option",value:["Greyscale","Sepia"]}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,1),i=n[0],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Applying "+i.toLowerCase()+" filter to image..."),"Greyscale"===i?a.greyscale():a.sepia(),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ci.MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ci.AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new x(`Error applying filter to image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function va(t,e,r){return e=h(e),l(t,wa()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function wa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wa=function(){return!!t})()}const _a=function(t){function e(){var t;return i(this,e),(t=va(this,e)).name="Image Hue/Saturation/Lightness",t.module="Image",t.description="Adjusts the hue / saturation / lightness (HSL) values of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Hue",type:"number",value:0,min:-360,max:360},{name:"Saturation",type:"number",value:0,min:-100,max:100},{name:"Lightness",type:"number",value:0,min:-100,max:100}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,3),i=n[0],a=n[1],o=n[2],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:s=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,0!==i&&(L()&&self.sendStatusMessage("Changing image hue..."),s.colour([{apply:"hue",params:[i]}])),0!==a&&(L()&&self.sendStatusMessage("Changing image saturation..."),s.colour([{apply:"saturate",params:[a]}])),0!==o&&(L()&&self.sendStatusMessage("Changing image lightness..."),s.colour([{apply:"lighten",params:[o]}])),"image/gif"!==s.getMIME()){t.next=22;break}return t.next=19,s.getBufferAsync(ci.MIME_PNG);case 19:u=t.sent,t.next=25;break;case 22:return t.next=24,s.getBufferAsync(ci.AUTO);case 24:u=t.sent;case 25:return t.abrupt("return",u.buffer);case 28:throw t.prev=28,t.t1=t.catch(12),new x(`Error adjusting image hue / saturation / lightness. (${t.t1})`);case 31:case"end":return t.stop()}}),t,null,[[3,9],[12,28]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function ka(t,e,r){return e=h(e),l(t,Ba()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ba(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ba=function(){return!!t})()}const xa=function(t){function e(){var t;return i(this,e),(t=ka(this,e)).name="Image Opacity",t.module="Image",t.description="Adjust the opacity of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Opacity (%)",type:"number",value:100,min:0,max:100}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,1),i=n[0],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Changing image opacity..."),a.opacity(i/100),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ci.MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ci.AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new x(`Error changing image opacity. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ea(t,e,r){return e=h(e),l(t,Ca()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ca=function(){return!!t})()}const Aa=function(t){function e(){var t;return i(this,e),(t=Ea(this,e)).name="Invert Image",t.module="Image",t.description="Invert the colours of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Invalid input file format.");case 2:return t.prev=2,t.next=5,ci.read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new x(`Error loading image. (${t.t0})`);case 11:if(t.prev=11,L()&&self.sendStatusMessage("Inverting image..."),n.invert(),"image/gif"!==n.getMIME()){t.next=20;break}return t.next=17,n.getBufferAsync(ci.MIME_PNG);case 17:i=t.sent,t.next=23;break;case 20:return t.next=22,n.getBufferAsync(ci.AUTO);case 22:i=t.sent;case 23:return t.abrupt("return",i.buffer);case 26:throw t.prev=26,t.t1=t.catch(11),new x(`Error inverting image. (${t.t1})`);case 29:case"end":return t.stop()}}),t,null,[[2,8],[11,26]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ia(t,e,r){return e=h(e),l(t,Ma()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ma(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ma=function(){return!!t})()}const Sa=function(t){function e(){var t;return i(this,e),(t=Ia(this,e)).name="Normalise Image",t.module="Image",t.description="Normalise the image colours.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Invalid file type.");case 2:return t.prev=2,t.next=5,ci.read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new x(`Error opening image file. (${t.t0})`);case 11:if(t.prev=11,n.normalize(),"image/gif"!==n.getMIME()){t.next=19;break}return t.next=16,n.getBufferAsync(ci.MIME_PNG);case 16:i=t.sent,t.next=22;break;case 19:return t.next=21,n.getBufferAsync(ci.AUTO);case 21:i=t.sent;case 22:return t.abrupt("return",i.buffer);case 25:throw t.prev=25,t.t1=t.catch(11),new x(`Error normalising image. (${t.t1})`);case 28:case"end":return t.stop()}}),t,null,[[2,8],[11,25]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Pa(t,e,r){return e=h(e),l(t,Ta()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ta=function(){return!!t})()}const Ra=function(t){function e(){var t;return i(this,e),(t=Pa(this,e)).name="Parse QR Code",t.module="Image",t.description="Reads an image file and attempts to detect and read a Quick Response (QR) code from the image.<br><br><u>Normalise Image</u><br>Attempts to normalise the image before parsing it to improve detection of a QR code.",t.infoURL="https://wikipedia.org/wiki/QR_code",t.inputType="ArrayBuffer",t.outputType="string",t.args=[{name:"Normalise image",type:"boolean",value:!1}],t.checks=[{pattern:"^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",flags:"",args:[!1],useful:!0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,1),i=n[0],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.next=5,ua(e,i);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})}]);var r}(ne);function Fa(){return Fa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},Fa.apply(null,arguments)}const La=function(){return u((function t(e){i(this,t),this.unitSize=4,this.unitOrder=0,this.blockSize=16,this.blockSizeInBytes=this.blockSize*this.unitSize,this.options=e||{},this.reset()}),[{key:"reset",value:function(){this.state={},this.state.message="",this.state.length=0}},{key:"getState",value:function(){return JSON.parse(JSON.stringify(this.state))}},{key:"setState",value:function(t){this.state=t}},{key:"update",value:function(t){this.state.message+=t,this.state.length+=t.length,this.process()}},{key:"process",value:function(){}},{key:"finalize",value:function(){return""}},{key:"getStateHash",value:function(t){return""}},{key:"addPaddingPKCS7",value:function(t){this.state.message+=new Array(t+1).join(String.fromCharCode(t))}},{key:"addPaddingISO7816",value:function(t){this.state.message+="€"+new Array(t).join("\0")}},{key:"addPaddingZero",value:function(t){this.state.message+=new Array(t+1).join("\0")}}])}();function Oa(t,e,r){return e=h(e),l(t,Ua()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ua(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ua=function(){return!!t})()}var Da=function(t){function e(t){var r;return i(this,e),(r=Oa(this,e,[t])).blockUnits=[],r}return f(e,t),u(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)|this.state.message.charCodeAt(t+1)<<8|this.state.message.charCodeAt(t+2)<<16|this.state.message.charCodeAt(t+3)<<24);this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(255&this.state.hash[r])+String.fromCharCode(this.state.hash[r]>>8&255)+String.fromCharCode(this.state.hash[r]>>16&255)+String.fromCharCode(this.state.hash[r]>>24&255);return e}},{key:"addLengthBits",value:function(){this.state.message+=String.fromCharCode(this.state.length<<3&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>29&255)+"\0\0\0"}}])}(La);const Na=Da;function za(t,e){return t<<e|t>>>32-e}function Ga(t,e){return t>>>e|t<<32-e}function ja(t,e,r){return 32===r?e:r>32?ja(e,t,r-32):4294967295&(t>>>r|e<<32-r)}function Ha(t,e,r){return 32===r?t:r>32?Ha(e,t,r-32):4294967295&(e>>>r|t<<32-r)}function Wa(t,e,r){return e=h(e),l(t,qa()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function qa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qa=function(){return!!t})()}var Za=[0,1518500249,1859775393,2400959708],$a=[5,11,7,15,6,13,8,14,7,12,9,11,8,15,6,12,9,14,5,13],Va=[10,17,25,30],Ya=[18,0,1,2,3,19,4,5,6,7,16,8,9,10,11,17,12,13,14,15,22,3,6,9,12,23,15,2,5,8,20,11,14,1,4,21,7,10,13,0,26,12,5,14,7,27,0,9,2,11,24,4,13,6,15,25,8,1,10,3,30,7,2,13,8,31,3,14,9,4,28,15,10,5,0,29,11,6,1,12],Xa=function(t){function e(t){var r;return i(this,e),(r=Wa(this,e,[t])).options.rounds=r.options.rounds||80,r.W=new Array(32),r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<16;o++)this.W[o]=0|t[o];this.W[16]=this.W[0]^this.W[1]^this.W[2]^this.W[3],this.W[17]=this.W[4]^this.W[5]^this.W[6]^this.W[7],this.W[18]=this.W[8]^this.W[9]^this.W[10]^this.W[11],this.W[19]=this.W[12]^this.W[13]^this.W[14]^this.W[15],this.W[20]=this.W[3]^this.W[6]^this.W[9]^this.W[12],this.W[21]=this.W[2]^this.W[5]^this.W[8]^this.W[15],this.W[22]=this.W[1]^this.W[4]^this.W[11]^this.W[14],this.W[23]=this.W[0]^this.W[7]^this.W[10]^this.W[13],this.W[24]=this.W[5]^this.W[7]^this.W[12]^this.W[14],this.W[25]=this.W[0]^this.W[2]^this.W[9]^this.W[11],this.W[26]=this.W[4]^this.W[6]^this.W[13]^this.W[15],this.W[27]=this.W[1]^this.W[3]^this.W[8]^this.W[10],this.W[28]=this.W[2]^this.W[7]^this.W[8]^this.W[13],this.W[29]=this.W[3]^this.W[4]^this.W[9]^this.W[14],this.W[30]=this.W[0]^this.W[5]^this.W[10]^this.W[15],this.W[31]=this.W[1]^this.W[6]^this.W[11]^this.W[12];for(var s=0;s<this.options.rounds;s++){var u=za(e,$a[s%20])+a+this.W[Ya[s]]+Za[s/20|0]|0;u=s<20?u+(r&n|~r&i)|0:s<40?u+(r^n^i)|0:s<60?u+(n^(r|~i))|0:u+(r^n^i)|0,a=i,i=n,n=0|za(r,Va[s/20|0]),r=e,e=u}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}])}(Na);const Ja=Xa;function Qa(t,e,r){return e=h(e),l(t,Ka()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ka(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ka=function(){return!!t})()}var to=function(t){function e(t){var r;return i(this,e),(r=Qa(this,e,[t])).unitSize=1,r.blockSizeInBytes=r.blockSize*r.unitSize,r.blockUnits=[],r}return f(e,t),u(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=new Array(this.blockSizeInBytes);for(var t=0;t<this.blockSizeInBytes;t++)this.blockUnits[t]=0|this.state.message.charCodeAt(t);this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(255&this.state.hash[r]);return e}}])}(La);function eo(t,e,r){return e=h(e),l(t,ro()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ro=function(){return!!t})()}var no=[41,46,67,201,162,216,124,1,61,54,84,161,236,240,6,19,98,167,5,243,192,199,115,140,152,147,43,217,188,76,130,202,30,155,87,60,253,212,224,22,103,66,111,24,138,23,229,18,190,78,196,214,218,158,222,73,160,251,245,142,187,47,238,122,169,104,121,145,21,178,7,63,148,194,16,137,11,34,95,33,128,127,93,154,90,144,50,39,53,62,204,231,191,247,151,3,255,25,48,179,72,165,181,209,215,94,146,42,172,86,170,198,79,184,56,210,150,164,125,182,118,252,107,226,156,116,4,241,69,157,112,89,100,113,135,32,134,91,207,101,230,45,168,2,27,96,37,173,174,176,185,246,28,70,97,105,52,64,126,15,85,71,163,35,221,81,175,58,195,92,249,206,186,197,234,38,44,83,13,110,133,40,132,9,211,223,205,244,65,129,77,82,106,220,55,200,108,193,171,250,36,225,123,8,12,189,177,74,120,136,149,139,227,99,232,109,233,203,213,254,59,0,29,57,242,239,183,14,102,88,208,228,166,119,114,248,235,117,75,10,49,68,80,180,143,237,31,26,219,153,141,51,159,17,131,20],io=function(t){function e(t){var r;return i(this,e),(r=eo(this,e,[t])).options.rounds=r.options.rounds||18,r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=new Array(48),this.state.checksum=new Array(16)}},{key:"processBlock",value:function(t){for(var e=0;e<16;e++)this.state.hash[16+e]=0|t[e],this.state.hash[32+e]=t[e]^this.state.hash[e];for(var r=0,n=0;n<this.options.rounds;n++){for(var i=0;i<48;i++)r=this.state.hash[i]^=no[r];r=r+n&255}r=255&this.state.checksum[15];for(var a=0;a<16;a++)r=this.state.checksum[a]^=no[t[a]^r]}},{key:"finalize",value:function(){this.addPaddingPKCS7(16-(15&this.state.message.length)|0),this.process();for(var t=0;t<16;t++)this.state.message+=String.fromCharCode(this.state.checksum[t]);return this.process(),this.getStateHash(16)}}])}(to);const ao=io;function oo(t,e,r){return e=h(e),l(t,so()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function so(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(so=function(){return!!t})()}var uo=[[3,7,11,19],[3,5,9,13],[3,9,11,15]],lo=1518500249,ho=1859775393,co=function(t){function e(){return i(this,e),oo(this,e,arguments)}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878]}},{key:"processBlock",value:function(t){var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3];r=e.CC(e.FF,0,r,n,i,a,t[0],uo[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[1],uo[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[2],uo[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[3],uo[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[4],uo[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[5],uo[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[6],uo[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[7],uo[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[8],uo[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[9],uo[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[10],uo[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[11],uo[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[12],uo[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[13],uo[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[14],uo[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[15],uo[0][3]),r=e.CC(e.GG,lo,r,n,i,a,t[0],uo[1][0]),a=e.CC(e.GG,lo,a,r,n,i,t[4],uo[1][1]),i=e.CC(e.GG,lo,i,a,r,n,t[8],uo[1][2]),n=e.CC(e.GG,lo,n,i,a,r,t[12],uo[1][3]),r=e.CC(e.GG,lo,r,n,i,a,t[1],uo[1][0]),a=e.CC(e.GG,lo,a,r,n,i,t[5],uo[1][1]),i=e.CC(e.GG,lo,i,a,r,n,t[9],uo[1][2]),n=e.CC(e.GG,lo,n,i,a,r,t[13],uo[1][3]),r=e.CC(e.GG,lo,r,n,i,a,t[2],uo[1][0]),a=e.CC(e.GG,lo,a,r,n,i,t[6],uo[1][1]),i=e.CC(e.GG,lo,i,a,r,n,t[10],uo[1][2]),n=e.CC(e.GG,lo,n,i,a,r,t[14],uo[1][3]),r=e.CC(e.GG,lo,r,n,i,a,t[3],uo[1][0]),a=e.CC(e.GG,lo,a,r,n,i,t[7],uo[1][1]),i=e.CC(e.GG,lo,i,a,r,n,t[11],uo[1][2]),n=e.CC(e.GG,lo,n,i,a,r,t[15],uo[1][3]),r=e.CC(e.HH,ho,r,n,i,a,t[0],uo[2][0]),a=e.CC(e.HH,ho,a,r,n,i,t[8],uo[2][1]),i=e.CC(e.HH,ho,i,a,r,n,t[4],uo[2][2]),n=e.CC(e.HH,ho,n,i,a,r,t[12],uo[2][3]),r=e.CC(e.HH,ho,r,n,i,a,t[2],uo[2][0]),a=e.CC(e.HH,ho,a,r,n,i,t[10],uo[2][1]),i=e.CC(e.HH,ho,i,a,r,n,t[6],uo[2][2]),n=e.CC(e.HH,ho,n,i,a,r,t[14],uo[2][3]),r=e.CC(e.HH,ho,r,n,i,a,t[1],uo[2][0]),a=e.CC(e.HH,ho,a,r,n,i,t[9],uo[2][1]),i=e.CC(e.HH,ho,i,a,r,n,t[5],uo[2][2]),n=e.CC(e.HH,ho,n,i,a,r,t[13],uo[2][3]),r=e.CC(e.HH,ho,r,n,i,a,t[3],uo[2][0]),a=e.CC(e.HH,ho,a,r,n,i,t[11],uo[2][1]),i=e.CC(e.HH,ho,i,a,r,n,t[7],uo[2][2]),n=e.CC(e.HH,ho,n,i,a,r,t[15],uo[2][3]),this.state.hash=[this.state.hash[0]+r|0,this.state.hash[1]+n|0,this.state.hash[2]+i|0,this.state.hash[3]+a|0]}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"FF",value:function(t,e,r){return t&e|~t&r}},{key:"GG",value:function(t,e,r){return t&e|t&r|e&r}},{key:"HH",value:function(t,e,r){return t^e^r}},{key:"CC",value:function(t,e,r,n,i,a,o,s){return 0|za(r+t(n,i,a)+o+e,s)}}])}(Na);const fo=co;function po(t,e,r){return e=h(e),l(t,mo()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function mo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mo=function(){return!!t})()}for(var go=[[7,12,17,22],[5,9,14,20],[4,11,16,23],[6,10,15,21]],bo=new Array(64),yo=0;yo<64;yo++)bo[yo]=4294967296*Math.abs(Math.sin(yo+1))|0;var vo=function(t){function e(){return i(this,e),po(this,e,arguments)}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878]}},{key:"processBlock",value:function(t){var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3];r=e.CC(e.FF,bo[0],r,n,i,a,t[0],go[0][0]),a=e.CC(e.FF,bo[1],a,r,n,i,t[1],go[0][1]),i=e.CC(e.FF,bo[2],i,a,r,n,t[2],go[0][2]),n=e.CC(e.FF,bo[3],n,i,a,r,t[3],go[0][3]),r=e.CC(e.FF,bo[4],r,n,i,a,t[4],go[0][0]),a=e.CC(e.FF,bo[5],a,r,n,i,t[5],go[0][1]),i=e.CC(e.FF,bo[6],i,a,r,n,t[6],go[0][2]),n=e.CC(e.FF,bo[7],n,i,a,r,t[7],go[0][3]),r=e.CC(e.FF,bo[8],r,n,i,a,t[8],go[0][0]),a=e.CC(e.FF,bo[9],a,r,n,i,t[9],go[0][1]),i=e.CC(e.FF,bo[10],i,a,r,n,t[10],go[0][2]),n=e.CC(e.FF,bo[11],n,i,a,r,t[11],go[0][3]),r=e.CC(e.FF,bo[12],r,n,i,a,t[12],go[0][0]),a=e.CC(e.FF,bo[13],a,r,n,i,t[13],go[0][1]),i=e.CC(e.FF,bo[14],i,a,r,n,t[14],go[0][2]),n=e.CC(e.FF,bo[15],n,i,a,r,t[15],go[0][3]),r=e.CC(e.GG,bo[16],r,n,i,a,t[1],go[1][0]),a=e.CC(e.GG,bo[17],a,r,n,i,t[6],go[1][1]),i=e.CC(e.GG,bo[18],i,a,r,n,t[11],go[1][2]),n=e.CC(e.GG,bo[19],n,i,a,r,t[0],go[1][3]),r=e.CC(e.GG,bo[20],r,n,i,a,t[5],go[1][0]),a=e.CC(e.GG,bo[21],a,r,n,i,t[10],go[1][1]),i=e.CC(e.GG,bo[22],i,a,r,n,t[15],go[1][2]),n=e.CC(e.GG,bo[23],n,i,a,r,t[4],go[1][3]),r=e.CC(e.GG,bo[24],r,n,i,a,t[9],go[1][0]),a=e.CC(e.GG,bo[25],a,r,n,i,t[14],go[1][1]),i=e.CC(e.GG,bo[26],i,a,r,n,t[3],go[1][2]),n=e.CC(e.GG,bo[27],n,i,a,r,t[8],go[1][3]),r=e.CC(e.GG,bo[28],r,n,i,a,t[13],go[1][0]),a=e.CC(e.GG,bo[29],a,r,n,i,t[2],go[1][1]),i=e.CC(e.GG,bo[30],i,a,r,n,t[7],go[1][2]),n=e.CC(e.GG,bo[31],n,i,a,r,t[12],go[1][3]),r=e.CC(e.HH,bo[32],r,n,i,a,t[5],go[2][0]),a=e.CC(e.HH,bo[33],a,r,n,i,t[8],go[2][1]),i=e.CC(e.HH,bo[34],i,a,r,n,t[11],go[2][2]),n=e.CC(e.HH,bo[35],n,i,a,r,t[14],go[2][3]),r=e.CC(e.HH,bo[36],r,n,i,a,t[1],go[2][0]),a=e.CC(e.HH,bo[37],a,r,n,i,t[4],go[2][1]),i=e.CC(e.HH,bo[38],i,a,r,n,t[7],go[2][2]),n=e.CC(e.HH,bo[39],n,i,a,r,t[10],go[2][3]),r=e.CC(e.HH,bo[40],r,n,i,a,t[13],go[2][0]),a=e.CC(e.HH,bo[41],a,r,n,i,t[0],go[2][1]),i=e.CC(e.HH,bo[42],i,a,r,n,t[3],go[2][2]),n=e.CC(e.HH,bo[43],n,i,a,r,t[6],go[2][3]),r=e.CC(e.HH,bo[44],r,n,i,a,t[9],go[2][0]),a=e.CC(e.HH,bo[45],a,r,n,i,t[12],go[2][1]),i=e.CC(e.HH,bo[46],i,a,r,n,t[15],go[2][2]),n=e.CC(e.HH,bo[47],n,i,a,r,t[2],go[2][3]),r=e.CC(e.II,bo[48],r,n,i,a,t[0],go[3][0]),a=e.CC(e.II,bo[49],a,r,n,i,t[7],go[3][1]),i=e.CC(e.II,bo[50],i,a,r,n,t[14],go[3][2]),n=e.CC(e.II,bo[51],n,i,a,r,t[5],go[3][3]),r=e.CC(e.II,bo[52],r,n,i,a,t[12],go[3][0]),a=e.CC(e.II,bo[53],a,r,n,i,t[3],go[3][1]),i=e.CC(e.II,bo[54],i,a,r,n,t[10],go[3][2]),n=e.CC(e.II,bo[55],n,i,a,r,t[1],go[3][3]),r=e.CC(e.II,bo[56],r,n,i,a,t[8],go[3][0]),a=e.CC(e.II,bo[57],a,r,n,i,t[15],go[3][1]),i=e.CC(e.II,bo[58],i,a,r,n,t[6],go[3][2]),n=e.CC(e.II,bo[59],n,i,a,r,t[13],go[3][3]),r=e.CC(e.II,bo[60],r,n,i,a,t[4],go[3][0]),a=e.CC(e.II,bo[61],a,r,n,i,t[11],go[3][1]),i=e.CC(e.II,bo[62],i,a,r,n,t[2],go[3][2]),n=e.CC(e.II,bo[63],n,i,a,r,t[9],go[3][3]),this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"FF",value:function(t,e,r){return t&e|~t&r}},{key:"GG",value:function(t,e,r){return t&r|e&~r}},{key:"HH",value:function(t,e,r){return t^e^r}},{key:"II",value:function(t,e,r){return e^(t|~r)}},{key:"CC",value:function(t,e,r,n,i,a,o,s){return za(r+t(n,i,a)+o+e,s)+n|0}}])}(Na);const wo=vo;function _o(t,e,r){return e=h(e),l(t,ko()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ko(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ko=function(){return!!t})()}var Bo=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],xo=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Eo=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Co=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Ao=function(t){function e(t){return i(this,e),(t=t||{}).length=t.length||160,_o(this,e,[t])}return f(e,t),u(e,[{key:"reset",value:function(){switch(Fa(h(e.prototype),"reset",this).call(this),this.options.length){case 128:this.state.hash=[1732584193,4023233417,2562383102,271733878],this.processBlock=this.processBlock128;break;case 256:this.state.hash=[1732584193,4023233417,2562383102,271733878,1985229328,4275878552,2309737967,19088743],this.processBlock=this.processBlock256;break;case 320:this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520,1985229328,4275878552,2309737967,19088743,1009589775],this.processBlock=this.processBlock320;break;default:this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520],this.processBlock=this.processBlock160}}},{key:"processBlock128",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=r,s=n,u=i,l=a,h=0;h<64;h++){var c=r+t[Bo[h]]|0;c=c+e.T(h,n,i,a)|0,r=a,a=i,i=n,n=c=za(c,Eo[h]),c=(c=o+t[xo[h]]|0)+e.T64(h,s,u,l)|0,o=l,l=u,u=s,s=c=za(c,Co[h])}var f=this.state.hash[1]+i+l|0;this.state.hash[1]=this.state.hash[2]+a+o|0,this.state.hash[2]=this.state.hash[3]+r+s|0,this.state.hash[3]=this.state.hash[0]+n+u|0,this.state.hash[0]=f}},{key:"processBlock160",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=r,u=n,l=i,h=a,c=o,f=0;f<80;f++){var d=r+t[Bo[f]]|0;d=(d=za(d=d+e.T(f,n,i,a)|0,Eo[f]))+o|0,r=o,o=a,a=za(i,10),i=n,n=d,d=(d=za(d=(d=s+t[xo[f]]|0)+e.T80(f,u,l,h)|0,Co[f]))+c|0,s=c,c=h,h=za(l,10),l=u,u=d}var p=this.state.hash[1]+i+h|0;this.state.hash[1]=this.state.hash[2]+a+c|0,this.state.hash[2]=this.state.hash[3]+o+s|0,this.state.hash[3]=this.state.hash[4]+r+u|0,this.state.hash[4]=this.state.hash[0]+n+l|0,this.state.hash[0]=p}},{key:"processBlock256",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=0|this.state.hash[5],u=0|this.state.hash[6],l=0|this.state.hash[7],h=0;h<64;h+=1){var c=r+t[Bo[h]]|0;switch(c=c+e.T(h,n,i,a)|0,r=a,a=i,i=n,n=c=za(c,Eo[h]),c=(c=o+t[xo[h]]|0)+e.T64(h,s,u,l)|0,o=l,l=u,u=s,s=c=za(c,Co[h]),h){case 15:c=r,r=o,o=c;break;case 31:c=n,n=s,s=c;break;case 47:c=i,i=u,u=c;break;case 63:c=a,a=l,l=c}}this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0,this.state.hash[4]=this.state.hash[4]+o|0,this.state.hash[5]=this.state.hash[5]+s|0,this.state.hash[6]=this.state.hash[6]+u|0,this.state.hash[7]=this.state.hash[7]+l|0}},{key:"processBlock320",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=0|this.state.hash[5],u=0|this.state.hash[6],l=0|this.state.hash[7],h=0|this.state.hash[8],c=0|this.state.hash[9],f=0;f<80;f+=1){var d=r+t[Bo[f]]|0;switch(d=(d=za(d=d+e.T(f,n,i,a)|0,Eo[f]))+o|0,r=o,o=a,a=za(i,10),i=n,n=d,d=(d=za(d=(d=s+t[xo[f]]|0)+e.T80(f,u,l,h)|0,Co[f]))+c|0,s=c,c=h,h=za(l,10),l=u,u=d,f){case 15:d=n,n=u,u=d;break;case 31:d=a,a=h,h=d;break;case 47:d=r,r=s,s=d;break;case 63:d=i,i=l,l=d;break;case 79:d=o,o=c,c=d}}this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0,this.state.hash[4]=this.state.hash[4]+o|0,this.state.hash[5]=this.state.hash[5]+s|0,this.state.hash[6]=this.state.hash[6]+u|0,this.state.hash[7]=this.state.hash[7]+l|0,this.state.hash[8]=this.state.hash[8]+h|0,this.state.hash[9]=this.state.hash[9]+c|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"F",value:function(t,e,r){return t^e^r}},{key:"G",value:function(t,e,r){return t&e|~t&r}},{key:"H",value:function(t,e,r){return(t|~e)^r}},{key:"I",value:function(t,e,r){return t&r|e&~r}},{key:"J",value:function(t,e,r){return t^(e|~r)}},{key:"T",value:function(t,e,r,n){return t<16?this.F(e,r,n):t<32?this.G(e,r,n)+1518500249|0:t<48?this.H(e,r,n)+1859775393|0:t<64?this.I(e,r,n)+2400959708|0:this.J(e,r,n)+2840853838|0}},{key:"T64",value:function(t,e,r,n){return t<16?this.I(e,r,n)+1352829926|0:t<32?this.H(e,r,n)+1548603684|0:t<48?this.G(e,r,n)+1836072691|0:this.F(e,r,n)}},{key:"T80",value:function(t,e,r,n){return t<16?this.J(e,r,n)+1352829926|0:t<32?this.I(e,r,n)+1548603684|0:t<48?this.H(e,r,n)+1836072691|0:t<64?this.G(e,r,n)+2053994217|0:this.F(e,r,n)}}])}(Na);const Io=Ao;function Mo(t,e,r){return e=h(e),l(t,So()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function So(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(So=function(){return!!t})()}var Po=function(t){function e(t){var r;return i(this,e),(r=Mo(this,e,[t])).unitOrder=1,r.blockUnits=[],r}return f(e,t),u(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)<<24|this.state.message.charCodeAt(t+1)<<16|this.state.message.charCodeAt(t+2)<<8|this.state.message.charCodeAt(t+3));this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(this.state.hash[r]>>24&255)+String.fromCharCode(this.state.hash[r]>>16&255)+String.fromCharCode(this.state.hash[r]>>8&255)+String.fromCharCode(255&this.state.hash[r]);return e}},{key:"addLengthBits",value:function(){this.state.message+="\0\0\0"+String.fromCharCode(this.state.length>>29&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length<<3&255)}}])}(La);const To=Po;function Ro(t,e,r){return e=h(e),l(t,Fo()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Fo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fo=function(){return!!t})()}var Lo=[1518500249,1859775393,2400959708,3395469782],Oo=function(t){function e(t){var r;return i(this,e),(r=Ro(this,e,[t])).options.rounds=r.options.rounds||80,r.W=new Array(80),r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878,-1009589776]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<this.options.rounds;o++){this.W[o]=o<16?0|t[o]:this.W[o-3]^this.W[o-8]^this.W[o-14]^this.W[o-16];var s=za(e,5)+a+this.W[o]+Lo[o/20|0]|0;s=o<20?s+(r&n|~r&i)|0:o<40?s+(r^n^i)|0:o<60?s+(r&n|r&i|n&i)|0:s+(r^n^i)|0,a=i,i=n,n=0|za(r,30),r=e,e=s}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}])}(To);const Uo=Oo;function Do(t,e,r){return e=h(e),l(t,No()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function No(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(No=function(){return!!t})()}var zo=[1518500249,1859775393,2400959708,3395469782],Go=function(t){function e(t){var r;return i(this,e),(r=Do(this,e,[t])).options.rounds=r.options.rounds||80,r.W=new Array(80),r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878,-1009589776]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<this.options.rounds;o++){this.W[o]=o<16?0|t[o]:0|za(this.W[o-3]^this.W[o-8]^this.W[o-14]^this.W[o-16],1);var s=za(e,5)+a+this.W[o]+zo[o/20|0]|0;s=o<20?s+(r&n|~r&i)|0:o<40?s+(r^n^i)|0:o<60?s+(r&n|r&i|n&i)|0:s+(r^n^i)|0,a=i,i=n,n=0|za(r,30),r=e,e=s}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}])}(To);const jo=Go;function Ho(t,e,r){return e=h(e),l(t,Wo()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Wo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wo=function(){return!!t})()}var qo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zo=function(t){function e(t){var r;return i(this,e),(t=t||{}).length=t.length||256,t.rounds=t.rounds||64,(r=Ho(this,e,[t])).W=new Array(64),r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),224===this.options.length?this.state.hash=[-1056596264,914150663,812702999,-150054599,-4191439,1750603025,1694076839,-1090891868]:this.state.hash=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0|this.state.hash[5],s=0|this.state.hash[6],u=0|this.state.hash[7],l=0;l<this.options.rounds;l++){this.W[l]=l<16?0|t[l]:this.W[l-16]+(Ga(this.W[l-15],7)^Ga(this.W[l-15],18)^this.W[l-15]>>>3)+this.W[l-7]+(Ga(this.W[l-2],17)^Ga(this.W[l-2],19)^this.W[l-2]>>>10)|0;var h=u+(Ga(a,6)^Ga(a,11)^Ga(a,25))+(a&o^~a&s)+qo[l]+this.W[l]|0,c=(Ga(e,2)^Ga(e,13)^Ga(e,22))+(e&r^e&n^r&n)|0;u=s,s=o,o=a,a=i+h|0,i=n,n=r,r=e,e=h+c|0}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0,this.state.hash[5]=this.state.hash[5]+o|0,this.state.hash[6]=this.state.hash[6]+s|0,this.state.hash[7]=this.state.hash[7]+u|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash(this.options.length/32|0)}}])}(To);const $o=Zo;function Vo(t,e,r){return e=h(e),l(t,Yo()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Yo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Yo=function(){return!!t})()}var Xo=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Jo=function(t){function e(t){var r;return i(this,e),(t=t||{}).length=t.length||512,t.rounds=t.rounds||160,(r=Vo(this,e,[t])).blockSize=32,r.blockSizeInBytes=r.blockSize*r.unitSize,r.W=new Array(160),r}return f(e,t),u(e,[{key:"reset",value:function(){switch(Fa(h(e.prototype),"reset",this).call(this),this.options.length){case 384:this.state.hash=[-876896931,-1056596264,1654270250,914150663,-1856437926,812702999,355462360,-150054599,1731405415,-4191439,-1900787065,1750603025,-619958771,1694076839,1203062813,-1090891868];break;case 512:this.state.hash=[1779033703,-205731576,-1150833019,-2067093701,1013904242,-23791573,-1521486534,1595750129,1359893119,-1377402159,-1694144372,725511199,528734635,-79577749,1541459225,327033209];break;default:for(var t=new e,r=0;r<16;r++)t.state.hash[r]=2779096485^t.state.hash[r];t.update("SHA-512/"+this.options.length);var n=t.finalize();this.state.hash=[];for(var i=0;i<64;i+=4)this.state.hash.push(n.charCodeAt(i)<<24|n.charCodeAt(i+1)<<16|n.charCodeAt(i+2)<<8|n.charCodeAt(i+3))}}},{key:"processBlock",value:function(t){for(var e,r,n,i,a=this.state.hash[0],o=this.state.hash[1],s=this.state.hash[2],u=this.state.hash[3],l=this.state.hash[4],h=this.state.hash[5],c=this.state.hash[6],f=this.state.hash[7],d=this.state.hash[8],p=this.state.hash[9],m=this.state.hash[10],g=this.state.hash[11],b=this.state.hash[12],y=this.state.hash[13],v=this.state.hash[14],w=this.state.hash[15],_=0;_<this.options.rounds;_+=2){if(_<32)this.W[_]=t[_],this.W[_+1]=t[_+1];else{e=ja(this.W[_-30],this.W[_-29],1)^ja(this.W[_-30],this.W[_-29],8)^this.W[_-30]>>>7,r=Ha(this.W[_-30],this.W[_-29],1)^Ha(this.W[_-30],this.W[_-29],8)^(this.W[_-29]>>>7|this.W[_-30]<<25),n=ja(this.W[_-4],this.W[_-3],19)^ja(this.W[_-4],this.W[_-3],61)^this.W[_-4]>>>6,i=Ha(this.W[_-4],this.W[_-3],19)^Ha(this.W[_-4],this.W[_-3],61)^(this.W[_-3]>>>6|this.W[_-4]<<26);var k=(65535&this.W[_-13])+(65535&this.W[_-31])+(65535&r)+(65535&i)|0,B=(this.W[_-13]>>>16)+(this.W[_-31]>>>16)+(r>>>16)+(i>>>16)+(k>>>16)|0,x=(65535&this.W[_-14])+(65535&this.W[_-32])+(65535&e)+(65535&n)+(B>>>16)|0,E=(this.W[_-14]>>>16)+(this.W[_-32]>>>16)+(e>>>16)+(n>>>16)+(x>>>16)|0;this.W[_]=4294967295&(E<<16|65535&x),this.W[_+1]=4294967295&(B<<16|65535&k)}e=ja(a,o,28)^ja(a,o,34)^ja(a,o,39),r=Ha(a,o,28)^Ha(a,o,34)^Ha(a,o,39),n=ja(d,p,14)^ja(d,p,18)^ja(d,p,41);var C=p&g^~p&y,A=a&s^a&l^s&l,I=o&u^o&h^u&h,M=w+(i=Ha(d,p,14)^Ha(d,p,18)^Ha(d,p,41))|0,S=v+n+(M>>>0<w>>>0?1:0)|0;S=(S=S+(d&m^~d&b)+((M=M+C|0)>>>0<C>>>0?1:0)|0)+Xo[_]+((M=M+Xo[_+1]|0)>>>0<Xo[_+1]>>>0?1:0)|0,M=M+this.W[_+1]|0;var P=r+I|0;v=b,w=y,b=m,y=g,m=d,g=p,d=c+(S=S+this.W[_]+(M>>>0<this.W[_+1]>>>0?1:0)|0)+((p=f+M|0)>>>0<f>>>0?1:0)|0,c=l,f=h,l=s,h=u,s=a,u=o,a=S+(e+A+(P>>>0<r>>>0?1:0)|0)+((o=M+P|0)>>>0<M>>>0?1:0)|0}this.state.hash[1]=this.state.hash[1]+o|0,this.state.hash[0]=this.state.hash[0]+a+(this.state.hash[1]>>>0<o>>>0?1:0)|0,this.state.hash[3]=this.state.hash[3]+u|0,this.state.hash[2]=this.state.hash[2]+s+(this.state.hash[3]>>>0<u>>>0?1:0)|0,this.state.hash[5]=this.state.hash[5]+h|0,this.state.hash[4]=this.state.hash[4]+l+(this.state.hash[5]>>>0<h>>>0?1:0)|0,this.state.hash[7]=this.state.hash[7]+f|0,this.state.hash[6]=this.state.hash[6]+c+(this.state.hash[7]>>>0<f>>>0?1:0)|0,this.state.hash[9]=this.state.hash[9]+p|0,this.state.hash[8]=this.state.hash[8]+d+(this.state.hash[9]>>>0<p>>>0?1:0)|0,this.state.hash[11]=this.state.hash[11]+g|0,this.state.hash[10]=this.state.hash[10]+m+(this.state.hash[11]>>>0<g>>>0?1:0)|0,this.state.hash[13]=this.state.hash[13]+y|0,this.state.hash[12]=this.state.hash[12]+b+(this.state.hash[13]>>>0<y>>>0?1:0)|0,this.state.hash[15]=this.state.hash[15]+w|0,this.state.hash[14]=this.state.hash[14]+v+(this.state.hash[15]>>>0<w>>>0?1:0)|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<112?112-this.state.message.length|0:240-this.state.message.length|0),this.state.message+="\0\0\0\0\0\0\0\0",this.addLengthBits(),this.process(),this.getStateHash(this.options.length/32|0)}}])}(To);const Qo=Jo;function Ko(t,e,r){return e=h(e),l(t,ts()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function ts(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ts=function(){return!!t})()}var es=[10097,32533,76520,13586,34673,54876,80959,9117,39292,74945,37542,4805,64894,74296,24805,24037,20636,10402,822,91665,8422,68953,19645,9303,23209,2560,15953,34764,35080,33606,99019,2529,9376,70715,38311,31165,88676,74397,4436,27659,12807,99970,80157,36147,64032,36653,98951,16877,12171,76833,66065,74717,34072,76850,36697,36170,65813,39885,11199,29170,31060,10805,45571,82406,35303,42614,86799,7439,23403,9732,85269,77602,2051,65692,68665,74818,73053,85247,18623,88579,63573,32135,5325,47048,90553,57548,28468,28709,83491,25624,73796,45753,3529,64778,35808,34282,60935,20344,35273,88435,98520,17767,14905,68607,22109,40558,60970,93433,50500,73998,11805,5431,39808,27732,50725,68248,29405,24201,52775,67851,83452,99634,6288,98083,13746,70078,18475,40610,68711,77817,88685,40200,86507,58401,36766,67951,90364,76493,29609,11062,99594,67348,87517,64969,91826,8928,93785,61368,23478,34113,65481,17674,17468,50950,58047,76974,73039,57186,40218,16544,80124,35635,17727,8015,45318,22374,21115,78253,14385,53763,74350,99817,77402,77214,43236,210,45521,64237,96286,2655,69916,26803,66252,29148,36936,87203,76621,13990,94400,56418,9893,20505,14225,68514,46427,56788,96297,78822,54382,14598,91499,14523,68479,27686,46162,83554,94750,89923,37089,20048,80336,94598,26940,36858,70297,34135,53140,33340,42050,82341,44104,81949,85157,47954,32979,26575,57600,40881,22222,6413,12550,73742,11100,2040,12860,74697,96644,89439,28707,25815,63606,49329,16505,34484,40219,52563,43651,77082,7207,31790,61196,90446,26457,47774,51924,33729,65394,59593,42582,60527,15474,45266,95270,79953,59367,83848,82396,10118,33211,59466,94557,28573,67897,54387,54622,44431,91190,42592,92927,45973,42481,16213,97344,8721,16868,48767,3071,12059,25701,46670,23523,78317,73208,89837,68935,91416,26252,29663,5522,82562,4493,52494,75246,33824,45862,51025,61962,79335,65337,12472,549,97654,64051,88159,96119,63896,54692,82391,23287,29529,35963,15307,26898,9354,33351,35462,77974,50024,90103,39333,59808,8391,45427,26842,83609,49700,13021,24892,78565,20106,46058,85236,1390,92286,77281,44077,93910,83647,70617,42941,32179,597,87379,25241,5567,7007,86743,17157,85394,11838,69234,61406,20117,45204,15956,6e4,18743,92423,97118,96338,19565,41430,1758,75379,40419,21585,66674,36806,84962,85207,45155,14938,19476,7246,43667,94543,59047,90033,20826,69541,94864,31994,36168,10851,34888,81553,1540,35456,5014,51176,98086,24826,45240,28404,44999,8896,39094,73407,35441,31880,33185,16232,41941,50949,89435,48581,88695,41994,37548,73043,80951,406,96382,70774,20151,23387,25016,25298,94624,61171,79752,49140,71961,28296,69861,2591,74852,20539,387,59579,18633,32537,98145,6571,31010,24674,5455,61427,77938,91936,74029,43902,77557,32270,97790,17119,52527,58021,80814,51748,54178,45611,80993,37143,5335,12969,56127,19255,36040,90324,11664,49883,52079,84827,59381,71539,9973,33440,88461,23356,48324,77928,31249,64710,2295,36870,32307,57546,15020,9994,69074,94138,87637,91976,35584,4401,10518,21615,1848,76938,9188,20097,32825,39527,4220,86304,83389,87374,64278,58044,90045,85497,51981,50654,94938,81997,91870,76150,68476,64659,73189,50207,47677,26269,62290,64464,27124,67018,41361,82760,75768,76490,20971,87749,90429,12272,95375,5871,93823,43178,54016,44056,66281,31003,682,27398,20714,53295,7706,17813,8358,69910,78542,42785,13661,58873,4618,97553,31223,8420,28306,3264,81333,10591,40510,7893,32604,60475,94119,1840,53840,86233,81594,13628,51215,90290,28466,68795,77762,20791,91757,53741,61613,62269,50263,90212,55781,76514,83483,47055,89415,92694,397,58391,12607,17646,48949,72306,94541,37408,77513,3820,86864,29901,68414,82774,51908,13980,72893,55507,19502,37174,69979,20288,55210,29773,74287,75251,65344,67415,21818,59313,93278,81757,5686,73156,7082,85046,31853,38452,51474,66499,68107,23621,94049,91345,42836,9191,8007,45449,99559,68331,62535,24170,69777,12830,74819,78142,43860,72834,33713,48007,93584,72869,51926,64721,58303,29822,93174,93972,85274,86893,11303,22970,28834,34137,73515,90400,71148,43643,84133,89640,44035,52166,73852,70091,61222,60561,62327,18423,56732,16234,17395,96131,10123,91622,85496,57560,81604,18880,65138,56806,87648,85261,34313,65861,45875,21069,85644,47277,38001,2176,81719,11711,71602,92937,74219,64049,65584,49698,37402,96397,1304,77586,56271,10086,47324,62605,40030,37438,97125,40348,87083,31417,21815,39250,75237,62047,15501,29578,21826,41134,47143,34072,64638,85902,49139,6441,3856,54552,73135,42742,95719,9035,85794,74296,8789,88156,64691,19202,7638,77929,3061,18072,96207,44156,23821,99538,4713,66994,60528,83441,7954,19814,59175,20695,5533,52139,61212,6455,83596,35655,6958,92983,5128,9719,77433,53783,92301,50498,10850,62746,99599,10507,13499,6319,53075,71839,6410,19362,39820,98952,43622,63147,64421,80814,43800,9351,31024,73167,59580,6478,75569,78800,88835,54486,23768,6156,4111,8408,38508,7341,23793,48763,90822,97022,17719,4207,95954,49953,30692,70668,94688,16127,56196,80091,82067,63400,5462,69200,65443,95659,18288,27437,49632,24041,8337,65676,96299,90836,27267,50264,13192,72294,7477,44606,17985,48911,97341,30358,91307,6991,19072,24210,36699,53728,28825,35793,28976,66252,68434,94688,84473,13622,62126,98408,12843,82590,9815,93146,48908,15877,54745,24591,35700,4754,83824,52692,54130,55160,6913,45197,42672,78601,11883,9528,63011,98901,14974,40344,10455,16019,14210,33712,91342,37821,88325,80851,43667,70883,12883,97343,65027,61184,4285,1392,17974,15077,90712,26769,21778,30976,38807,36961,31649,42096,63281,2023,8816,47449,19523,59515,65122,59659,86283,68258,69572,13798,16435,91529,67245,52670,35583,16563,79246,86686,76463,34222,26655,90802,60584,47377,7500,37992,45134,26529,26760,83637,41326,44344,53853,41377,36066,94850,58838,73859,49364,73331,96240,43642,24637,38736,74384,89342,52623,7992,12369,18601,3742,83873,83080,12451,38992,22815,7759,51777,97377,27585,51972,37867,16444,24334,36151,99073,27493,70939,85130,32552,54846,54759,60790,18157,57178,65762,11161,78576,45819,52979,65130,4860,3991,10461,93716,16894,66083,24653,84609,58232,88618,19161,38555,95554,32886,59780,8355,60860,29735,47762,71299,23853,17546,73704,92052,46215,55121,29281,59076,7936,27954,58909,32643,52861,95819,6831,911,98936,76355,93779,80863,514,69572,68777,39510,35905,14060,40619,29549,69616,33564,60780,24122,66591,27699,6494,14845,46672,61958,77100,90899,75754,61196,30231,92962,61773,41839,55382,17267,70943,78038,70267,30532,21704,10274,12202,39685,23309,10061,68829,55986,66485,3788,97599,75867,20717,74416,53166,35208,33374,87539,8823,48228,63379,85783,47619,53152,67433,35663,52972,16818,60311,60365,94653,35075,33949,42614,29297,1918,28316,98953,73231,83799,42402,56623,34442,34994,41374,70071,14736,9958,18065,32960,7405,36409,83232,99385,41600,11133,7586,15917,6253,19322,53845,57620,52606,66497,68646,78138,66559,19640,99413,11220,94747,7399,37408,48509,23929,27482,45476,85244,35159,31751,57260,68980,5339,15470,48355,88651,22596,3152,19121,88492,99382,14454,4504,20094,98977,74843,93413,22109,78508,30934,47744,7481,83828,73788,6533,28597,20405,94205,20380,22888,48893,27499,98748,60530,45128,74022,84617,82037,10268,78212,16993,35902,91386,44372,15486,65741,14014,87481,37220,41849,84547,46850,52326,34677,58300,74910,64345,19325,81549,46352,33049,69248,93460,45305,7521,61318,31855,14413,70951,11087,96294,14013,31792,59747,67277,76503,34513,39663,77544,52701,8337,56303,87315,16520,69676,11654,99893,2181,68161,57275,36898,81304,48585,68652,27376,92852,55866,88448,3584,20857,73156,70284,24326,79375,95220,1159,63267,10622,48391,15633,84924,90415,93614,33521,26665,55823,47641,86225,31704,92694,48297,39904,2115,59589,49067,66821,41575,49767,4037,77613,19019,88152,80,20554,91409,96277,48257,50816,97616,38688,32486,45134,63545,59404,72059,43947,51680,43852,59693,25163,1889,70014,15021,41290,67312,71857,15957,68971,11403,65251,7629,37239,33295,5870,1119,92784,26340,18477,65622,36815,43625,18637,37509,82444,99005,4921,73701,14707,93997,64397,11692,5327,82162,20247,81759,45197,25332,83745,22567,4515,25624,95096,67946,48460,85558,15191,18782,16930,33361,83761,60873,43253,84145,60833,25983,1291,41349,20368,7126,14387,6345,80854,9279,43529,6318,38384,74761,41196,37480,51321,92246,80088,77074,88722,56736,66164,49431,66919,31678,72472,8,80890,18002,94813,31900,54155,83436,35352,54131,5466,55306,93128,18464,74457,90561,72848,11834,79982,68416,39528,72484,82474,25593,48545,35247,18619,13674,18611,19241,81616,18711,53342,44276,75122,11724,74627,73707,58319,15997,7586,16120,82641,22820,92904,13141,32392,19763,61199,67940,90767,4235,13574,17200,69902,63742,78464,22501,18627,90872,40188,28193,29593,88627,94972,11598,62095,36787,441,58997,34414,82157,86887,55087,19152,23,12302,80783,32624,68691,63439,75363,44989,16822,36024,867,76378,41605,65961,73488,67049,9070,93399,45547,94458,74284,5041,49807,20288,34060,79495,4146,52162,90286,54158,34243,46978,35482,59362,95938,91704,30552,4737,21031,75051,93029,47665,64382,99782,93478,94015,46874,32444,48277,59820,96163,64654,25843,41145,42820,74108,88222,88570,74015,25704,91035,1755,14750,48968,38603,62880,87873,95160,59221,22304,90314,72877,17334,39283,4149,11748,12102,80580,41867,17710,59621,6554,7850,73950,79552,17944,5600,60478,3343,25852,58905,57216,39618,49856,99326,66067,42792,95043,52680,46780,56487,9971,59481,37006,22186,54244,91030,45547,70818,59849,96169,61459,21647,87417,17198,30945,57589,31732,57260,47670,7654,46376,25366,94746,49580,69170,37403,86995,90307,94304,71803,26825,5511,12459,91314,8345,88975,35841,85771,8105,59987,87112,21476,14713,71181,27767,43584,85301,88977,29490,69714,73035,41207,74699,9310,13025,14338,54066,15243,47724,66733,47431,43905,31048,56699,80217,36292,98525,24335,24432,24896,43277,58874,11466,16082,10875,62004,90391,61105,57411,6368,53856,30743,8670,84741,54127,57326,26629,19087,24472,88779,30540,27886,61732,75454,60311,42824,37301,42678,45990,43242,17374,52003,70707,70214,49739,71484,92003,98086,76668,73209,59202,11973,2902,33250,78626,51594,16453,94614,39014,97066,83012,9832,25571,77628,66692,13986,99837,582,81232,44987,9504,96412,90193,79568,44071,28091,7362,97703,76447,42537,98524,97831,65704,9514,41468,85149,49554,17994,14924,39650,95294,556,70481,6905,94559,37559,49678,53119,70312,5682,66986,34099,74474,20740,41615,70360,64114,58660,90850,64618,80620,51790,11436,38072,50273,93113,41794,86861,24781,89683,55411,85667,77535,99892,41396,80504,90670,8289,40902,5069,95083,6783,28102,57816,25807,24260,71529,78920,72682,7385,90726,57166,98884,8583,6170,97965,88302,98041,21443,41808,68984,83620,89747,98882,60808,54444,74412,81105,1176,28838,36421,16489,18059,51061,80940,44893,10408,36222,80582,71944,92638,40333,67054,16067,19516,90120,46759,71643,13177,55292,21036,82808,77501,97427,49386,54480,23604,23554,21785,41101,91178,10174,29420,90438,6312,88940,15995,69321,47458,64809,98189,81851,29651,84215,60942,307,11897,92674,40405,68032,96717,54244,10701,41393,92329,98932,78284,46347,71209,92061,39448,93136,25722,8564,77936,63574,31384,51924,85561,29671,58137,17820,22751,36518,38101,77756,11657,13897,95889,57067,47648,13885,70669,93406,39641,69457,91339,22502,92613,89719,11947,56203,19324,20504,84054,40455,99396,63680,67667,60631,69181,96845,38525,11600,47468,3577,57649,63266,24700,71594,14004,23153,69249,5747,43321,31370,28977,23896,76479,68562,62342,7589,8899,5985,64281,61826,18555,64937,13173,33365,78851,16499,87064,13075,66847,70495,32350,2985,86716,38746,26313,77463,55387,72681,72461,33230,21529,53424,92581,2262,78438,66276,18396,73538,21032,91050,13058,16218,12470,56500,15292,76139,59526,52113,95362,67011,6651,16136,1016,857,55018,56374,35824,71708,49712,97380,10404,55452,34030,60726,75211,10271,36633,68424,58275,61764,97586,54716,50259,46345,87195,46092,26787,60939,89514,11788,68224,23417,73959,76145,30342,40277,11049,72049,15472,50669,48139,36732,46874,37088,73465,9819,58869,35220,12120,86124,51247,44302,60883,52109,21437,36786,49226,77837,19612,78430,11661,94770,77603,65669,86868,12665,30012,75989,39141,77400,28e3,64238,73258,71794,31340,26256,66453,37016,64756,80457,8747,12836,3469,50678,3274,43423,66677,82556,92901,51878,56441,22998,29718,38447,6453,25311,7565,53771,3551,90070,9483,94050,45938,18135,36908,43321,11073,51803,98884,66209,6830,53656,14663,56346,71430,4909,19818,5707,27369,86882,53473,7541,53633,70863,3748,12822,19360,49088,59066,75974,63335,20483,43514,37481,58278,26967,49325,43951,91647,93783,64169,49022,98588,9495,49829,59068,38831,4838,83605,92419,39542,7772,71568,75673,35185,89759,44901,74291,24895,88530,70774,35439,46758,70472,70207,92675,91623,61275,35720,26556,95596,20094,73750,85788,34264,1703,46833,65248,14141,53410,38649,6343,57256,61342,72709,75318,90379,37562,27416,75670,92176,72535,93119,56077,6886,18244,92344,31374,82071,7429,81007,47749,40744,56974,23336,88821,53841,10536,21445,82793,24831,93241,14199,76268,70883,68002,3829,17443,72513,76400,52225,92348,62308,98481,29744,33165,33141,61020,71479,45027,76160,57411,13780,13632,52308,77762,88874,33697,83210,51466,9088,50395,26743,5306,21706,70001,99439,80767,68749,95148,94897,78636,96750,9024,94538,91143,96693,61886,5184,75763,47075,88158,5313,53439,14908,8830,60096,21551,13651,62546,96892,25240,47511,58483,87342,78818,7855,39269,566,21220,292,24069,25072,29519,52548,54091,21282,21296,50958,17695,58072,68990,60329,95955,71586,63417,35947,67807,57621,64547,46850,37981,38527,9037,64756,3324,4986,83666,9282,25844,79139,78435,35428,43561,69799,63314,12991,93516,23394,94206,93432,37836,94919,26846,2555,74410,94915,48199,5280,37470,93622,4345,15092,19510,18094,16613,78234,50001,95491,97976,38306,32192,82639,54624,72434,92606,23191,74693,78521,104,18248,75583,90326,50785,54034,66251,35774,14692,96345,44579,85932,44053,75704,20840,86583,83944,52456,73766,77963,31151,32364,91691,47357,40338,23435,24065,8458,95366,7520,11294,23238,1748,41690,67328,54814,37777,10057,42332,38423,2309,70703,85736,46148,14258,29236,12152,5088,65825,2463,65533,21199,60555,33928,1817,7396,89215,30722,22102,15880,92261,17292,88190,61781,48898,92525,21283,88581,60098,71926,819,59144,224,30570,90194,18329,6999,26857,19238,64425,28108,16554,16016,42,83229,10333,36168,65617,94834,79782,23924,49440,30432,81077,31543,95216,64865,13658,51081,35337,74538,44553,64672,90960,41849,93865,44608,93176,34851,5249,29329,19715,94082,14738,86667,43708,66354,93692,25527,56463,99380,38793,85774,19056,13939,46062,27647,66146,63210,96296,33121,54196,34108,75814,85986,71171,15102,28992,63165,98380,36269,60014,7201,62448,46385,42175,88350,46182,49126,52567,64350,16315,53969,80395,81114,54358,64578,47269,15747,78498,90830,25955,99236,43286,91064,99969,95144,64424,77377,49553,24241,8150,89535,8703,91041,77323,81079,45127,93686,32151,7075,83155,10252,73100,88618,23891,87418,45417,20268,11314,50363,26860,27799,49416,83534,19187,8059,76677,2110,12364,71210,87052,50241,90785,97889,81399,58130,64439,5614,59467,58309,87834,57213,37510,33689,1259,62486,56320,46265,73452,17619,56421,40725,23439,41701,93223,41682,45026,47505,27635,56293,91700,4391,67317,89604,73020,69853,61517,51207,86040,2596,1655,9918,45161,222,54577,74821,47335,8582,52403,94255,26351,46527,68224,90183,85057,72310,34963,83462,49465,46581,61499,4844,94626,2963,41482,83879,44942,63915,94365,92560,12363,30246,2086,75036,88620,91088,67691,67762,34261,8769,91830,23313,18256,28850,37639,92748,57791,71328,37110,66538,39318,15626,44324,82827,8782,65960,58167,1305,83950,45424,72453,19444,68219,64733,94088,62006,89985,36936,61630,97966,76537,46467,30942,7479,67971,14558,22458,35148,1929,17165,12037,74558,16250,71750,55546,29693,94984,37782,41659,39098,23982,29899,71594,77979,54477,13764,17315,72893,32031,39608,75992,73445,1317,50525,87313,45191,30214,19769,90043,93478,58044,6949,31176,88370,50274,83987,45316,38551,79418,14322,91065,7841,36130,86602,10659,40859,964,71577,85447,61079,96910,72906,7361,84338,34114,52096,66715,51091,86219,81115,49625,48799,89485,24855,13684,68433,70595,70102,71712,88559,92476,32903,68009,58417,87962,11787,16644,72964,29776,63075,13270,84758,49560,10317,28778,23006,31036,84906,81488,17340,74154,42801,27917,89792,62604,62234,13124,76471,51667,37589,87147,24743,48023,6325,79794,35889,13255,4925,99004,70322,60832,76636,56907,56534,72615,46288,36788,93196,68656,66492,35933,52293,47953,95495,95304,50009,83464,28608,38074,74083,9337,7965,65047,36871,59015,21769,30398,44855,1020,80680,59328,8712,48190,45332,27284,31287,66011,9376,86379,74508,33579,77114,92955,23085,92824,3054,25242,16322,48498,9938,44420,13484,52319,58875,2012,88591,52500,95795,41800,95363,54142,17482,32705,60564,12505,40954,46174,64130,63026,96712,79883,39225,52653,69549,36693,59822,22684,31661,88298,15489,16030,42480,15372,38781,71995,77438,91161,10192,7839,62735,99218,25624,2547,27445,69187,55749,32322,15504,73298,51108,48717,92926,75705,89787,96114,99902,37749,96305,12829,70474,838,50385,91711,80370,56504,56857,80906,9018,76569,61072,48568,36491,22587,44363,39592,61546,90181,37348,41665,41339,62106,44203,6732,76111,79840,67999,32231,76869,58652,49983,1669,27464,79553,52855,25988,18087,38052,17529,13607,657,76173,43357,77334,24140,53860,2906,89863,44651,55715,26203,65933,51087,98234,40625,45545,63563,89148,82581,4110,66683,99001,9796,47349,65003,66524,81970,71262,14479,31300,8681,58068,44115,40064,77879,23965,69019,73985,19453,26225,97543,37044,7494,85778,35345,61115,92498,49737,64599,7158,82763,25072,38478,57782,75291,62155,52056,4786,11585,71251,25572,79771,93328,66927,54069,58752,26624,50463,77361,29991,96526,2820,91659,12818,96356,49499,1507,40223,9171,83642,21057,2677,9367,38097,16100,19355,6120,15378,56559,69167,30235,6767,66323,78294,14916,19124,88044,16673,66102,86018,29406,75415,22038,27056,26906,25867,14751,92380,30434,44114,6026,79553,55091,95385,41212,37882,46864,54717,97038,53805,64150,70915,63127,63695,41288,38192,72437,75075,18570,52065,8853,30104,79937,66913,53200,84570,78079,28970,53859,37632,80274,35240,32960,74859,7359,55176,3930,38984,35151,82576,82805,94031,12779,90879,24109,25367,77861,9541,85739,69023,64971,99321,7521,95909,43897,71724,92581,5471,64337,98949,3606,78236,78985,29212,57369,34857,67757,58019,58872,96526,28749,56592,37871,72905,70198,57319,54116,47014,18285,33692,72111,60958,96848,17893,40993,50445,14186,76877,87867,50335,9513,44346,26439,55293,6449,44301,63740,40158,72703,88321,85062,57345,66231,15409,3451,95261,43561,15673,28956,90303,62469,82517,43035,36850,15592,64098,59022,31752,4370,50486,11885,23085,41712,80692,48492,16495,99721,36912,28267,27882,16269,64483,11273,2680,1616,46138,54606,14761,5134,45144,63213,49666,27441,86989,29884,54334,6740,8368,80051,81020,17882,74973,74531,94994,24927,64894,22667,20466,82948,66831,47427,76033,31197,59817,20064,61135,28556,29695,80179,74058,18293,9963,35278,13062,83094,23373,90287,33477,48865,30348,70174,11468,25994,25343,22317,1587,30682,1,67814,59557,23362,13746,82244,42093,24671,79458,93730,45488,60234,67098,9899,25775,332,36636,57594,19958,85564,58977,12247,60774,66371,69442,20385,14486,91330,50332,46023,75768,59877,60081,92936,72302,75064,85727,52987,5750,19384,33684,78859,80458,69902,34870,88684,49762,40801,86291,18194,90366,82639,53844,96326,65728,48563,26027,52692,62406,76294,41848,63010,69841,29451,36170,21529,16525,64326,22086,24469,57407,96033,37771,31002,18311,93285,31948,14331,58335,15977,80336,81667,27286,24361,61638,57580,95270,46180,76990,53031,94366,2727,49944,19278,5756,51875,53445,33342,1965,7937,10054,97712,87693,58124,46064,39133,77385,9605,65359,70113,90563,86637,94282,12025,31926,24541,23854,58407,32131,92845,20714,27898,26917,50326,35145,50859,72119,95094,29441,42301,62460,75252,94267,38422,73047,24200,85349,72049,91723,97802,98496,12734,73432,10371,57213,53300,80847,46229,7099,72961,13767,65654,31102,82119,96946,65919,81083,3819,57888,57908,16849,77111,41429,92261,45263,1172,55926,78835,27697,48420,58865,41207,21406,8582,10785,36233,12237,7866,13706,92551,11021,63813,71512,65206,37768,94325,14721,20990,54235,71986,5345,56239,52028,1419,7215,55067,11669,21738,66605,69621,69827,8537,18638,60982,28151,98885,76431,25566,3085,23639,30849,63986,73287,26201,36174,14106,54102,57041,16141,64174,3591,90024,73332,31254,17288,59809,25061,51612,47951,16570,43330,79213,11354,55585,19646,99246,37564,32660,20632,21124,60597,69315,31312,57741,85108,21615,24365,27684,16124,33888,14966,35303,69921,15795,4020,67672,86816,63027,84470,45605,44887,26222,79888,58982,22466,98844,48353,60666,58256,31140,93507,69561,6256,88526,18655,865,75247,264,65957,98261,72706,36396,46065,85700,32121,99975,73627,78812,89638,86602,96758,65099,52777,46792,13790,55240,52002,10313,91933,71231,10053,78416,54563,96004,42215,30094,45958,48437,49591,50483,13422,69108,59952,27896,40450,79327,31962,46456,39260,51479,61882,48181,50691,64709,32902,10676,12083,35771,79656,56667,76783,3937,99859,10362,57411,40986,35045,2838,29255,64230,84418,34988,77644,39892,77327,74129,53444,35487,95803,38640,20383,55402,25793,14213,87082,42837,95030,97198,61608,97723,79390,35290,34683,81419,87133,70447,53127,97146,28299,56763,12868,1145,12147,58158,92124,60934,18414,97510,7056,54488,20719,53743,91037,44797,52110,8512,18991,20129,31441,51449,14661,71126,23180,68124,18807,70997,21913,19594,70355,73637,68266,60775,43164,52643,96363,77989,79332,39890,65379,20405,52935,43816,92740,95319,4538,60660,28982,15328,80475,34690,2293,19646,46524,96627,33159,42081,8816,74931,20674,8697,66169,46460,46326,39923,60625,28386,22919,19415,75766,43668,31626,70301,67053,3949,70082,2303,48642,38429,94053,38770,68137,68441,52928,70244,91954,17401,92693,98342,21451,84988,80487,33807,73797,49494,41878,76635,83227,76618,11946,13451,87591,78381,21407,90038,72638,69692,51599,86413,32019,64856,74730,41531,11064,1790,58817,86400,66213,92599,70905,78324,54326,43659,34206,63132,38837,40210,96346,16967,81619,96503,14881,89405,32205,49508,98425,2451,35423,56072,36810,30332,85998,49358,92748,84147,79835,94867,41224,61794,35066,82220,66684,20096,2754,41731,37068,32753,91059,13407,5607,69384,53329,95909,44968,11397,92973,50014,92997,80968,93761,57598,74703,7768,37978,73873,33475,9720,97852,98449,48722,84977,11271,11728,68318,22312,78792,87508,88466,72976,47099,84126,38595,85124,64405,90020,7492,52413,95111,34455,86311,68892,1074,60274,28136,19328,38161,57475,13771,63562,84207,94121,18901,52768,33801,82087,86091,59969,90398,56870,55756,78841,98450,54165,55106,50343,70519,14567,36780,55450,19606,83749,67562,64765,38543,16585,86841,73742,8766,39252,75678,75379,78760,37279,15280,13558,95916,89759,76686,76467,67147,63110,94008,8037,35263,53710,16667,79008,11231,29397,67136,18601,64502,90228,89109,72849,22711,65547,34542,26686,81678,87765,77654,23664,96352,14106,32938,28083,18633,80286,65507,46197,52722,75476,77816,47204,34876,45963,79262,90181,84041,3745,90041,30780,27226,92847,85572,15308,80688,5761,82638,13464,23683,81015,54214,64175,43701,86845,15569,50687,52679,87696,8285,97444,47599,94472,64150,87753,68652,60726,26213,17320,64553,81285,98126,12158,52095,64833,492,35817,55571,91300,97812,37507,4209,53515,64342,21223,16662,43265,68219,3529,43636,68417,53640,95326,93381,37113,80751,76469,96677,43054,22937,31954,13266,34140,27253,2734,99070,60077,57988,93211,92795,83795,57477,3941,39007,14619,38320,93449,31336,25279,97030,26245,47394,39475,90621,23820,29344,94859,91604,14033,41868,14816,4075,66644,87803,97815,99552,78666,3942,8175,22345,19983,76783,99044,20851,84981,59052,77178,72109,76475,21619,73017,6812,56633,50612,55289,4671,84419,94072,94446,80603,32188,93415,23464,43947,43728,74284,67177,57105,31059,10642,13803,69602,46961,66567,19359,84676,63918,40650,12923,15974,79732,20225,92525,71179,4859,91208,60430,5239,61458,24089,68852,60171,29603,42535,86365,93905,28237,45317,60718,82001,41679,20679,56304,70043,87568,21386,59049,78353,48696,77379,55309,23780,28391,5940,55583,81256,59418,97521,32846,70761,90115,45325,5490,65974,11186,15357,3568,450,96644,58976,36211,88240,92457,89200,94696,11370,91157,48487,59501,56983,89795,42789,69758,79701,29511,55968,41472,89474,84344,80517,7485,97523,17264,82840,59556,37119,30985,48866,60605,95719,70417,59083,95137,76538,44155,67286,57897,28262,4052,919,86207,79932,44236,10089,44373,65670,44285,6903,20834,49701,95735,21149,3425,17594,31427,14262,32252,68540,39427,44026,47257,45055,95091,8367,28381,57375,41562,83883,27715,10122,67745,46497,28626,87297,36568,39483,11385,63292,92305,78683,6146,81905,15038,38338,51206,65749,34119,71516,74068,51094,6665,91884,66762,11428,70908,21506,480,94183,78484,66507,75901,25728,52539,86806,69944,65036,27882,2530,4918,74351,65737,89178,8791,39342,94963,22581,56917,17541,83578,75376,65202,30935,79270,91986,99286,45236,44720,81915,70881,45886,43213,49789,97081,16075,20517,69980,25310,91953,1759,67635,88933,54558,18395,73375,62251,58871,9870,70538,48936,7757,90374,56631,88862,30487,38794,36079,32712,11130,55451,25137,38785,83558,31960,69473,45950,18225,9871,88502,75179,11551,75664,74321,67351,27703,83717,18913,42470,8816,37627,14288,62831,44047,67612,72738,26995,50933,63758,50003,43693,52661,55852,52372,59042,37595,4931,73622,68387,86478,40997,5245,75300,24902,59609,35653,15970,37681,69365,22236,86374,65550,343,98377,35354,65770,15365,41422,71356,16630,40044,19290,66449,53629,79452,71674,30260,97303,6487,62789,13005,70152,22501,49867,89294,59232,31776,54919,99851,5438,1096,72269,50486,16719,6144,82041,38332,64452,31840,99287,59928,25503,8407,46970,45907,99238,74547,19704,72035,26542,54600,79172,58779,35747,78956,11478,41195,58135,63856,33037,45753,60159,25193,71838,7526,7985,60714,88627,75790,38454,96110,39237,19792,34534,70169,24805,63215,38175,38784,38855,24826,50917,25147,17082,26997,32295,10894,21805,65245,85407,37926,69214,38579,84721,23544,88548,65626,75517,69737,55626,52175,21697,19453,16908,82841,24060,40285,19195,80281,89322,15232,70043,60691,86370,91949,19017,83846,77869,14321,95102,87073,71467,31305,64677,80358,52629,79419,22359,87867,48296,50141,46807,82184,95812,84665,74511,59914,4146,90417,58508,62875,17630,21868,9199,30322,33352,43374,25473,4119,63086,14147,14863,38020,44757,98628,57916,22199,11865,42911,62651,78290,9392,77294,63168,21043,17409,13786,27475,75979,89668,43596,74316,84489,54941,95992,45445,41059,55142,15214,42903,16799,88254,95984,48575,77822,21067,57238,35352,96779,89564,23797,99937,46379,27119,16060,30302,95327,12849,38111,97090,7598,78473,63079,18570,72803,70040,91385,96436,96263,17368,56188,85999,50026,36050,73736,13351,48321,28357,51718,65636,72903,21584,21060,39829,15564,4716,14594,22363,97639,65937,17802,31535,42767,98761,30987,57657,33398,63053,25926,20944,19306,81727,2695,97479,79172,72764,66446,78864,12698,15812,97209,38827,91016,91281,57875,45228,49211,69755,99224,43999,62879,8879,80015,74396,57146,64665,31159,6980,79069,37409,75037,69977,85919,42826,6974,61063,97640,13433,92528,91311,8440,38840,22362,93929,1836,36590,75052,89475,15437,65648,99012,70236,12307,83585,414,62851,48787,28447,21702,57033,29633,44760,34165,27548,37516,24343,63046,2081,20378,19510,42226,97134,68739,32982,56455,53129,77693,25022,55534,99375,30086,98001,7432,67126,76656,29347,28492,43108,64736,32278,84816,80440,30461,818,9136,1952,48442,91058,92590,10443,5195,34009,32141,62209,43740,54102,76895,98172,31583,4155,66492,58981,16591,11331,6838,3818,77063,12523,45570,68970,70055,77751,73743,71732,4704,61384,57343,66682,44500,89745,10436,67202,36455,42467,88801,91280,1056,27534,81619,79004,25824,66362,33280,20706,31929,57422,18730,96197,22101,47592,2180,18287,82310,60430,59627,26471,7794,60475,76713,45427,89654,14370,81674,41246,98416,8669,48883,77154,9806,94015,60347,20027,8405,33150,27368,53375,70171,59431,14534,34018,85665,77797,17944,49602,74391,48830,55029,10371,94261,16658,68400,44148,28150,40364,90913,73151,64463,50058,78191,84439,82478,62398,3113,17578,12830,6571,95934,9132,25287,78731,80683,67207,76597,42096,34934,76609,52553,47508,71561,8038,83011,72577,95790,40076,20292,32138,61197,95476,23123,26648,13611,48452,39963,85857,4855,27029,1542,72443,53688,82635,56264,7977,23090,93553,65434,12124,91087,87800,95675,99419,44659,30382,55263,82514,86800,16781,65977,65946,13033,93895,4056,75895,47878,91309,51233,81409,46773,69135,56906,84493,34530,84534,38312,54574,92933,77341,20839,36126,1143,35356,35459,7959,98335,53266,36146,78047,50607,22486,63308,8996,96056,39085,26567,6779,62663,30523,47881,41279,49864,82248,78333,29466,48151,41957,93235,53308,22682,90722,54478,7235,34306,15827,20121,96837,6283,80172,66109,92592,48238,76428,94546,45430,16288,74839,740,25553,83767,35900,5998,7493,46755,11449,88824,44906,33143,7454,56652,34755,63992,59674,65131,46358,12799,96988,51158,73176,1184,49925,63519,11785,29073,72850,47997,75172,55187,15313,40725,33225,56643,10465,38583,86440,97967,26401,17078,38765,33454,19136,57712,48446,98790,27315,71074,10157,57946,35582,49383,61324,26572,84503,3496,60449,17962,26017,65651,40400,83246,80056,75306,75147,41863,25581,87530,33193,43294,5065,99644,62771,75986,79005,44924,18703,40889,4403,5862,2571,82500,74200,36170,46836,74642,65471,26815,30937,64946,10160,15544,31962,54015,28853,66533,14573,79398,47391,73165,47805,77589,16881,13423,89452,76992,62509,9796,57540,13486,48855,25546,47589,21012,47388,78428,70196,84413,81026,87597,22445,83769,85937,38321,85485,87359,9839,67228,71179,94372,4446,62801,50775,96179,40646,44272,12417,47199,39701,30665,32775,66525,53558,78882,31939,67209,38906,34533,99914,27719,216,99225,96537,3843,90564,91110,51838,30300,9559,37795,94880,11325,44979,89696,28129,29931,89971,46292,92710,11036,74760,75307,12291,49618,16293,92408,67928,80823,32872,25460,66819,35374,4035,99087,61129,11341,39118,10891,37217,63638,75477,30068,42334,57570,6890,59353,89939,37692,15232,20033,32202,22348,2766,96791,58448,92248,5769,96684,67885,99295,47271,38655,59513,96960,31718,8974,16122,20535,52380,29769,70660,57425,50891,75044,84257,73315,38181,28673,93140,26307,82265,78382,19681,56585,8975,76764,39956,83450,84663,89963,71584,57696,30829,60527,64947,34899,28805,28397,91830,51842,99838,39839,66971,67177,74219,35637,35634,93581,81746,29991,81096,94279,2968,62561,2479,82126,25702,67953,88088,50293,83423,86206,39935,23253,43041,48941,85787,8388,6671,43574,84908,67295,33623,55060,28174,48415,2529,22009,24524,5283,30460,32399,80423,56929,40852,69969,88541,5979,91496,64730,57198,83145,39750,3568,54669,98679,4297,51047,31492,47734,31343,31180,232,19707,24823,75079,73943,17997,8446,91252,39879,58682,82972,18417,39203,36681,42895,8459,15618,17941,52594,43277,16530,40052,91100,87422,47230,95699,49794,50492,87439,86354,4546,65333,11057,77727,19748,38722,91821,18107,42125,89239,28847,54623,38783,47803,31414,38450,3697,89186,30579,44188,26532,8420,80723,48100,60748,76330,45832,8311,16051,4475,13400,48527,46073,17439,56498,94632,9021,16871,83366,14896,4219,38375,87890,90217,42370,61028,85101,76771,83715,94737,69973,74187,1958,59691,86712,86570,60984,76342,13648,85250,28323,48379,45141,36277,51845,29039,3553,5128,59866,51281,68124,17007,24729,29710,41439,40574,11774,86746,89698,56020,37810,88972,11361,95583,70786,589,74473,87513,17690,61427,72914,32517,1804,97910,6327,30246,33049,2622,41026,80875,41293,16752,84225,84414,37137,68956,8095,64981,28180,38629,76962,23840,17477,75268,48297,70340,57888,13938,38554,86836,2195,30270,55484,53364,54705,41380,56316,37723,234,21424,26664,63804,75139,36534,18579,9833,98849,72762,59767,52497,24227,83152,71794,21398,99456,89215,51632,54799,27973,68568,68465,98500,28681,18369,24279,96335,12874,82160,67202,85199,27908,67022,49810,77929,96212,81153,77884,7032,1671,53362,28119,56786,30883,28540,76029,3774,64611,19736,25589,46569,45206,48215,69523,17423,91807,90039,30393,58319,85098,66519,57571,24541,3562,14400,62731,82534,61477,89731,18421,29861,52829,838,78040,43350,74323,82892,84746,28302,13264,7595,134,12933,46831,24864,47275,20527,9110,28485,30326,99826,64005,99308,65779,42760,90066,3974,38688,39968,32604,11694,46262,73262,45405,43923,67397,88228,56405,17839,92073,57622,93328,15442,50186,7570,58001,31e3,8915,11467,14793,82691,51238,12485,51745,18192,5985,36826,89434,38669,91592,88799,65621,67237,59541,19657,93402,58705,73553,78280,69125,95591,81168,91927,25976,89077,71690,19404,64603,59752,74698,44233,67602,38615,31303,28650,53700,89819,7783,4351,77451,47350,21234,16016,41532,76508,23063,44993,43983,33356,61715,96485,22121,78004,6316,87896,99289,93981,37850,66128,92735,45064,50924,24204,58816,65290,34392,55567,66416,72353,45775,68590,85685,72683,60090,37149,85347,57414,72336,12979,5720,92754,76911,96883,74420,5220,85815,23557,80567,44365,70254,50864,36619,51479,23281,76428,18580,34240,59289,49076,18439,29522,42541,4024,84446,92434,90407,77241,19690,78143,65919,13699,91844,91241,38361,67171,90551,5709,3474,76025,97043,33834,44638,54040,82797,545,38159,16089,35870,89158,55864,98078,50563,36492,10994,85909,9018,19252,73887,67928,60045,70782,11937,4074,53814,46621,52577,94853,45968,73667,65062,73306,76045,78649,91654,53958,96537,95542,67622,54579,17279,67440,56441,20681,64011,52226,96618,32831,60664,67547,39523,2043,59748,1887,69229,94653,99271,98164,62155,9234,47367,13047,6364,35064,10073,6793,80248,29009,44969,11129,17139,79630,89772,26921,56949,23465,30036,17173,82459,96218,60768,76417,24405,18710,68887,82394,69729,82503,40873,41590,67255,30757,9657,91881,34578,9511,5417,58953,18532,10721,22029,48524,47778,881,83489,3464,57462,97459,86689,39755,39547,740,36666,7993,31671,86304,12970,73402,52849,31652,79655,11250,18463,57518,20306,25301,1374,51208,33298,87662,61849,60923,68685,69411,39266,80320,34844,89416,81569,83651,35795,40168,33501,1042,58931,3892,85188,74740,85476,23790,33842,89565,53359,25579,59049,62394,72435,12457,21904,18370,97035,57905,9581,91227,92754,37760,1411,7440,87175,88318,63242,85960,56690,12618,30493,11569,73723,7448,58830,157,65814,21118,22140,73793,57855,81830,6795,13183,12625,30635,56429,73216,12342,36722,83886,96828,82870,90954,97614,2370,42160,73370,11944,49067,59452,80495,43911,46712,17033,68037,41963,3874,44856,82985,57453,84358,16120,4454,76624,405,62369,55080,61880,51270,87807,10653,36894,70850,35660,234,14705,93418,94084,82856,25384,71555,56754,78315,18291,91656,98079,52384,43306,65205,75903,58701,99496,50048,33557,87793,90857,10143,46726,84284,43635,41213,83845,70986,91408,80220,5728,68890,46577,21152,43759,43301,93661,97252,50106,10099,13722,18572,44024,351,18173,23717,85114,85998,57782,63951,53723,86853,63851,79430,49181,46386,69666,55743,76162,71724,40028,94786,34457,16906,90040,30789,40281,94697,96584,81907,4055,53990,66397,80579,42517,78181,39251,9467,67097,95523,66568,63632,71048,15581,39904,75774,77495,75994,29911,65690,41178,47712,70355,16998,56025,5230,10093,71495,34784,70950,54680,57811,53782,39145,36829,85342,40406,35883,45668,3459,29870,78252,70088,70621,67153,5737,40933,91075,93335,86853,15860,81167,91259,16118,52401,83593,84474,2423,75608,39646,90871,70284,82100,96032,5115,63678,2225,88087,58581,44364,57468,21539,13042,64150,63754,5210,87644,54114,64013,63562,41388,32397,74152,23982,71982,71700,33026,66477,47838,46712,39848,35083,65927,97868,11067,76771,71799,43836,41014,97025,93225,8511,63096,26628,73012,12543,76269,99708,2629,49845,73677,19193,14924,57236,95564,15010,59667,73773,78515,2624,99744,13585,33746,58771,94785,62628,99585,11363,80832,59979,9444,78700,2596,85984,69438,16913,96475,93283,18625,77086,45911,39746,64722,39938,43930,54619,302,50384,2738,75714,75249,95439,80714,52555,47266,96190,78750,94973,83669,16479,53163,48071,28e3,45011,26733,67132,83362,84162,43028,8415,27236,52651,89059,64844,80910,1676,91752,57815,26264,3415,57532,29981,61200,96036,62600,20068,56530,38487,8432,89514,26883,69165,97237,22361,55276,39902,95927,82190,49269,27212,46095,37106,64254,27460,49572,51700,27679,12574,33891,3867,9925,6476,82018,45094,59014,67113,44192,75,23318,79895,70550,81717,28833,30271,15821,14999,88174,62617,57517,55256,50281,51583,96879,5225,42272,5339,20483,57596,41011,75937,22767,50120,95938,49753,63882,99616,69083,38721,73889,80236,99531,23053,71237,48861,59046,76283,60538,19732,93877,30345,64882,66660,17026,70364,45676,8039,96228,89936,59141,95585,89552,97247,59325,27848,80058,15950,61481,90906,40998,44137,16144,66300,44091,50018,81364,18211,60294,76559,20279,27414,10589,39860,23e3,31767,95618,56738,50332,16936,70342,92481,30702,76264,62619,68678,62284,83112,93032,55203,52614,36950,41796,45403,79262,2887,53596,61308,20738,34811,27099,90956,65448,3080,75795,29753,97699,80872,23830,85882,74427,99523,74904,28017,45898,57232,48525,7086,26805,74533,92470,18840,76011,93109,14344,55614,50284,15865,19458,35856,13464,53679,64603,51571,56124,79107,29596,89572,78198,57121,73649,8804,87977,87959,70859,40909,77295,87877,75158,62810,92074,23244,59516,50552,31602,41899,6347,27821,68370,48596,88577,30231,25267,84622,31449,12086,56461,22962,78213,62483,93966,60437,52239,58113,32526,38708,81607,57016,1695,90110,4649,59990,23979,3855,10297,46516,96092,82305,30760,78756,4967,82876,4773,86651,16648,53133,82439,78851,49766,24553,15273,36417,1901,33386,76979,25920,33372,2695,11982,40911,6230,91696,43907,17827,30332,89203,32215,91806,23080,49102,9174,11548,54590,75803,66108,73882,62324,26017,72716,33887,1285,31604,71039,24337,53514,58964,89901,22040,92751,12617,37007,5523,61672,62557,98540,26094,60284,19621,96230,38044,6545,9458,42988,2913,86345,67936,90174,40840,44991,24256,34989,74086,13652,68706,1363,4294,88008,78693,83068,94746,221,89299,53186,5930,61889,51341,45412,58860,72568,11381,59785,36887,10690,31347,93326,96267,86987,57565,86836,49071,90331,41248,34629,30240,27270,3864,84308,3035,61369,36902,51017,44409,17120,23823,36460,63359,8333,63173,19134,6493,303,18550,26191,19051,81502,66343,6737,90430,65478,58982,82484,16483,47704,44640,68322,44548,72787,2335,28749,39320,5436,98146,56596,812,51445,35533,35478,47573,38414,25542,38032,13442,42983,97207,77854,57806,81616,52828,79429,47389,96795,57764,19605,24767,63253,18809,65093,44449,22952,76872,30983,38948,9310,48336,87651,27110,84427,76209,56412,12760,16747,14551,82626,31224,98636,75100,84882,79479,83420,5347,6803,90063,4617,40257,79183,41766,71873,25242,12275,336,40798,42055,74066,69128,32547,76508,32530,42359,89207,49758,58984,92732,15779,7234,28884,28226,50011,35883,99606,45423,76224,75427,85747,33879,97978,57441,927,19164,74716,40702,19715,70917,60344,40236,9019,50577,15598,53136,57285,20536,7539,74832,89184,41501,39447,97422,97041,21913,40581,76081,13089,28776,54164,55736,36263,71841,34488,74988,55467,43322,9214,36746,67981,71877,81683,32461,84091,19422,88366,62054,85664,13409,8003,88276,6989,16607,33633,85349,5784,25950,97998,74110,16699,60184,92818,79705,10381,1474,18656,50434,18232,92132,66537,70141,42854,25120,39581,28249,14215,34810,19767,3409,11807,6566,66138,42997,41999,67504,87117,28961,5e3,29673,77726,73225,54753,69712,71576,92337,17713,63185,87923,91889,68351,17712,75532,93849,48280,62219,317,25290,29209,90927,92929,92762,60413,2018,31793,76290,73373,80777,60819,77375,57886,47291,99670,32605,29064,99476,80999,31217,35,91300,14892,73653,26593,25305,56797,12837,39560,27582,37253,38531,76489,49946,69108,58687,43092,73807,96282,6648,67431,87124,57694,21660,64002,6,33600,30245,60636,80164,9285,61426,4658,54130,14710,76553,1904,93668,63110,98618,5601,32199,74923,98049,49717,55539,35940,58545,43295,35810,45451,38735,42065,66769,69825,45461,83881,67372,67351,90612,79502,69460,23108,74421,82990,46821,40683,71603,55267,48192,50242,79738,96417,6664,19929,23644,41116,51056,219,45086,32747,49492,15399,24874,80825,95928,61457,45813,59037,16136,3953,83583,5910,12654,53630,92997,22168,93491,71897,74579,24022,6278,24049,71670,43044,8474,38572,77402,35800,7455,96177,41653,74493,20802,65843,73050,73349,2638,65813,96209,49196,45007,32207,14097,66059,46681,7534,71263,20582,10171,51514,52142,60961,57951,25637,37860,21683,86190,90434,94481,85697,95344,2606,74095,61133,7472,64777,94050,41482,975,23471,76052,82021,87676,91345,20196,2612,86299,44996,40312,65712,46079,88514,8610,3685,63197,9073,53105,86824,28112,99306,40706,66840,83003,51590,52755,32285,68454,85058,13645,23073,24724,52989,71880,21952,44144,74975,76715,7844,46447,86643,75579,29276,10864,83179,36721,19300,35066,29383,47478,56644,33354,31414,17643,92374,85085,88458,87191,85248,34963,76278,53230,13953,76985,70959,36663,5293,32658,56767,56997,76736,6558,64248,11907,29123,78458,17678,63805,89973,5076,39263,54404,4355,64957,74407,99838,18836,78098,6490,74888,73719,80675,86178,56283,33591,96957,38382,18772,74773,71229,2603,52673,44609,14843,58418,18060,95459,626,30914,13550,42195,44863,8871,89182,64446,78422,41140,15312,98274,48168,95651,35562,85386,56252,72136,85088,68761,78434,98143,61330,2446,64409,49406,99127,98626,55095,44808,13594,87370,89472,12833,98932,68064,58193,20225,5192,28425,23978,24542,80845,55858,4015,21454,37346,51007,17202,10242,12682,55933,96922,22280,75597,50227,70712,44236,20470,36320,49339,60536,80083,38880,93327,49522,93585,9918,55268,4671,57526,11457,48424,54610,7211,78610,9473,72923,27347,30057,76968,26177,59367,46172,88951,40229,34921,60405,88959,16779,29547,92231,61997,36002,21080,39795,77221,10012,49748,76900,15964,3803,40260,92351,92844,10288,57483,10881,70408,75688,16610,1638,93082,44282,66849,75702,69428,34047,84968,71281,72328,73143,88672,49802,50639,18129,93659,58389,49095,45971,34196,84609,59222,19332,17777,41004,47057,30688,16039,20906,41477,42915,60877,33864,75195,62294,3371,11672,1370,2486,35553,17907,90621,45136,9722,67635,12114,63055,16004,21625,24321,20491,26881,66259,94287,54751,36242,36557,5842,30687,65418,94608,24741,45887,78800,86912,42076,50287,9284,68891,76368,83094,96302,35997,30761,97081,9501,68887,32876,1705,34260,95065,45528,88241,30402,12318,52430,40139,96986,84900,72408,42027,31676,54382,73370,26184,14024,57444,57660,52173,30274,93448,63273,77681,74946,2099,69091,19372,66961,14595,58642,75760,52253,53148,26074,52293,65359,63971,4833,86492,1227,54505,19515,89889,46933,13364,33883,83389,36952,52505,67513,40071,31001,3105,87912,29610,75108,37363,28479,43546,89992,19550,54863,82633,19209,21548,35022,21960,57961,11815,95867,559,26428,69386,57453,70147,73538,49562,46806,64550,36653,25718,68792,31113,7607,48037,71020,22666,65957,11141,39227,7990,19849,65972,74528,40888,55386,95918,92088,91125,53648,66122,138,79933,71058,34826,97725,69513,22915,18246,52244,91161,40861,40374,13239,56162,4703,95851,22824,41271,28202,62852,84238,46625,20031,8524,20077,65817,21174,29279,57712,22401,67500,30980,74485,26480,21343,30031,61921,35744,57308,71196,1865,49234,62616,54021,29008,83672,85839,96836,45077,80900,66906,63526,93824,71820,11033,20183,85704,4683,63512,39144,56880,64424,95979,17709,94849,31771,5737,84286,16757,46256,24478,73180,59978,8254,78963,95437,86351,33824,32540,18357,2668,99260,21284,81351,70961,10255,6911,47394,72408,23827,59865,96395,30665,43699,3593,29165,23388,26628,92402,16731,86740,29493,9069,78653,90094,42735,33682,95041,89887,92369,57949,81585,50593,14698,4737,72551,57271,59433,156,33966,58773,59108,49578,18100,59836,73221,21110,1650,11058,47770,66141,84576,58388,40915,94507,32209,17272,65674,95552,25685,5345,36995,36302,7971,67001,62062,75939,36005,26739,56484,46885,66348,87666,78055,44485,82955,85936,9219,1847,92687,72579,45457,78252,98239,4e4,75563,92408,17175,78845,32638,26959,35406,59553,57852,7506,9,93172,77713,93880,40981,27924,9678,24538,52426,84852,83781,23712,82490,77890,22482,66668,55850,25644,44972,62275,78089,28894,98685,32998,98766,89119,34355,75127,69797,71419,62067,57990,96514,50603,79807,26135,29207,43632,32905,38513,18924,88872,20758,70232,60425,1116,24077,21369,93541,75329,78656,44251,42014,98154,42552,14575,30765,348,1134,71581,68420,78141,21105,63305,9718,54851,65867,8595,47390,39182,51174,41478,64433,59628,31945,87322,78667,95282,5622,26224,19972,97269,98376,14779,51138,49658,45345,4972,52794,15737,496,48939,63485,42780,16061,59631,37171,13483,56058,51093,62290,88227,17400,88433,67363,89507,26482,85964,71336,67799,28342,37747,61722,27180,78755,18603,42953,6606,23875,56766,1932,36113,62807,84012,21103,9685,69662,76755,13701,95168,13169,44726,15284,16702,89617,54397,52052,12835,37741,86434,22400,37947,95763,86337,35189,22756,47473,16618,42479,47405,14055,64262,66670,89692,54032,94591,44149,29854,76691,33263,62048,25116,88598,16119,62116,54517,31883,86707,18895,81790,71294,2684,15292,48107,14341,91416,75609,92564,39987,2283,89970,95855,80970,5432,89860,90293,99851,94648,5598,32171,28793,92305,64244,8277,93391,96717,34464,29838,10664,28050,60122,77934,10758,84922,92220,45071,97697,36368,17792,84792,76594,67319,51886,5665,45201,11348,9254,7510,51039,91683,84500,85338,5555,19633,3870,39576,41486,58524,54508,20707,58504,39642,22454,80069,83455,31043,90794,51934,3295,26582,16300,74990,22197,83310,69642,81113,58558,84833,17105,46659,25003,85749,44829,4103,67516,76458,52392,53546,70291,98846,67315,30686,18555,29755,5923,22732,19501,56181,85351,5023,4808,56911,16793,75336,49712,27723,96974,34321,5454,12862,71924,45928,95697,68664,58183,78104,42483,71204,99628,40642,56410,17350,13396,76724,87509,9158,83708,27298,92651,95086,38851,63558,89810,1580,32518,35795,26514,56322,78635,63731,91428,7247,66460,38671,26799,22549,47991,46064,80467,40083,17141,39152,99872,27561,75389,74778,94893,82935,99076,93419,10474,84436,47536,16719,60136,80566,28404,74525,74212,3704,65516,98197,34210,64140,22238,49939,99542,27481,21992,78181,90060,71365,66935,29578,14961,8569,9454,43308,66753,45972,93572,16382,87320,37183,25478,38164,31997,69856,60898,63968,62264,4799,17591,89937,73905,55890,88285,2448,40398,54180,65869,45155,43407,39105,339,51619,20203,21189,68245,76912,1222,76411,82679,7,66047,32043,42627,16638,27019,15248,66444,8249,18790,82150,54084,84469,3426,50226,99868,88894,43769,66384,8593,41414,2976,60053,51866,87904,74135,53842,59520,67482,16995,32328,29555,49067,2799,68851,41049,97190,53984,99755,46412,45885,64e3,21962,36438,71742,57223,66599,86071,31436,32667,98099,38399,47377,5171,2742,48803,17823,22093,9866,691,5514,25546,2114,5919,56181,96052,67211,61712,25995,3188,23833,38549,44775,55355,61548,55988,47309,23749,30667,70732,33299,16127,30842,78961,41072,9876,18903,30292,25275,61881,15939,72573,84502,92654,97226,53434,77025,63892,12421,33644,39445,30933,84218,13757,37719,84450,2697,60309,22402,80310,92771,45205,72792,95776,85945,74651,216,50842,47854,21916,61588,75405,10495,83083,60427,78495,99809,47890,22993,21508,9459,26845,98130,1184,46438,27698,40652,65654,98517,1096,6998,49133,57041,77983,58708,42176,67356,324,70063,10597,65205,25622,34336,16640,27896,26907,86760,48244,89650,44997,51609,28934,9171,97859,97213,19859,41037,64081,94781,27683,41521,52871,86935,26486,38744,25943,60617,6414,42292,46204,53262,30201,38776,88831,97253,67282,72860,18452,60927,81504,57713,30296,10896,39900,67135,42772,4631,55283,39253,25264,1809,12874,88035,88421,90491,83290,6884,15444,90113,20406,20796,40239,34431,15018,45600,17241,26611,9551,89126,65673,31708,91252,39647,63011,24193,58932,89326,33491,53217,27976,70151,37531,53576,23931,11789,73073,52171,89301,51718,15385,79487,66436,35771,34163,86540,42665,80748,77622,14679,40185,25030,42622,13162,17048,24243,59985,59807,60562,3595,10135,29199,69784,59796,38194,58432,50943,40422,63035,3208,81440,90749,88046,32218,88092,22224,2627,91576,16781,43948,57795,71073,27817,87077,82717,24473,42096,76920,88864,90537,14715,42551,45066,24316,37361,38582,21871,14672,93362,21727,57021,94313,39562,64985,94028,46094,43845,91838,79574,7597,3153,56783,18817,74711,6883,91061,31674,73729,99315,66183,57647,74484,68077,33224,397,56753,53158,71872,68153,9298,20961,49656,33407,95683,14328,44708,72952,27048,67887,28741,46752,88177,95894,40086,88534,87112,68614,83073,88794,96799,67588,75049,84603,83140,97347,87316,73087,77135,71883,98643,3808,8848,14133,60447,1366,72976,1868,51667,63279,60040,88264,79152,3474,61366,20523,21584,93712,83654,89761,90154,96345,37539,32556,74254,70603,97122,44978,78028,8943,13778,11080,34271,68276,85372,48410,94516,15427,75323,71685,70774,50342,33771,3678,42321,69788,41758,55004,30992,17402,63523,42328,87171,24751,15084,33884,83655,88345,69602,52606,57886,18034,3381,75796,35901,77480,28683,68324,66035,7223,14926,16128,13645,90370,31949,11057,98849,29499,21565,30786,83292,92392,37104,36899,49906,79368,43710,80365,88735,75275,21664,57965,19002,301,12658,94385,1717,96191,50404,80166,93965,24688,27839,10812,31715,92127,42588,93307,80834,11317,26583,25769,98227,14884,58462,29148,68662,26872,72927,79021,51622,29521,33355,45701,45996,33782,93424,16530,96086,17329,74020,11501,46660,5583,22277,77653,55430,84644,448,86828,58855,67451,95264,67386,82424,52611,60012,88620,72894,94716,22262,99813,69592,63464,33163,91857,47904,22209,78590,68615,52952,31441,41313,18550,72685,68825,4795,53971,14592,39634,23682,76630,2731,81481,86542,23727,54291,56045,61635,32186,9355,73416,63532,24340,18886,84832,30654,48543,18339,65024,91197,64624,74648,9660,27897,49771,11123,8732,49393,12911,72416,17834,18878,62754,85072,23727,56577,51257,83291,12329,16203,91681,68137,79959,43609,58987,2026,42969,59144,84349,75214,76972,22633,64104,53799,16851,99197,70476,77113,46320,88693,37711,96536,68156,7119,2104,49435,77706,18924,24957,92406,87148,70482,36491,42605,54440,7893,31618,35707,65130,30007,75706,77266,37100,9601,87681,42543,69847,81848,32034,49429,99434,62209,17125,55227,61634,52574,83649,28725,70119,62467,80676,21192,99584,21310,25292,72781,17186,10393,98390,19789,92931,36234,62627,23437,3885,58822,82941,43806,8172,23790,72295,36196,98200,2889,87619,13846,56197,27151,21238,48794,81100,62643,40001,39243,33213,78416,194,91369,79342,36404,52308,13741,24442,88610,12659,11574,70052,93039,79367,41792,61816,35435,47192,97596,28330,41145,16918,62865,9576,45857,68737,90124,16703,7071,48433,57222,34435,800,72496,16449,68187,28739,97672,86818,50768,40807,88681,64340,2224,19703,59245,90905,31239,84216,93942,97371,16842,92168,52692,16064,84686,89444,27938,98406,41365,4515,20494,18813,16242,10634,61566,18592,78057,8720,33739,78345,87693,30242,70545,55521,23687,9160,8655,38811,61768,7228,5567,5561,82071,85,50145,23113,97761,88441,14891,72188,85166,37189,75671,81377,92470,73645,93258,6610,12185,43065,26704,47922,56650,7527,18006,56948,51675,16658,66402,1047,81624,77395,62310,73262,66050,57275,32936,87641,51528,58183,21952,84098,28913,28622,18140,89796,41317,93954,67690,64667,57092,21315,4731,76115,77291,11204,8634,93034,27411,27149,13843,9817,9407,84492,28444,59901,14592,89654,66207,66232,80293,74502,36925,55515,10121,16768,4720,71502,40500,21406,571,87320,81683,42788,86367,44686,22159,67015,35892,49668,83991,72088,30210,74009,86370,97956,2132,93512,54819,26094,51409,21485,94764,85806,13393,48543,7042,76538,64224,47909,9994,23750,17351,52141,30486,60380,86546,66606,36913,58173,45709,83679,82617,23381,9603,61107,566,6572,64745,10614,86371,43244,97154,10397,50975,68006,20045,16942,25536,74031,31807,70133,78790,40341,68730,39635,39013,66841,44043,96215,21270,59427,25034,40645,84741,52083,54503,36861,27659,95463,53847,40921,70116,61536,56756,8967,31079,20097,76014,99818,16606,19713,66904,27106,24874,96701,73287,76772,6073,57343,51428,91171,28299,17520,64903,4177,36071,94952,59008,28543,11576,74547,13260,20688,41261,2780,6633,37536,8844,95774,49323,30448,14154,83379,71259,23302,68402,43750,88505,15575,44927,6584,29867,21541,65763,12154,86616,79877,73259,68626,98962,68548,86576,48046,51755,64995,3661,64585,81550,46798,49319,50206,22024,5175,12923,23427,55915,91723,55831,83784,81034,86779,34622,84570,18960,48798,42970,95789,39465,82353,68905,44234,18244,54345,5592,89361,14644,67924,66415,89349,88530,72096,44459,5258,48317,48866,56886,90458,75889,4514,37227,11302,4667,2129,80414,86289,15887,87380,50749,83220,50529,20619,11606,36531,23409,78122,19566,76564,33045,66703,30017,35347,35038,12952,13971,3922,98702,11786,38388,69556,76728,60535,59961,23634,42211,98387,34880,27755,93182,99040,96390,65989,38375,3652,59657,57431,24666,11061,64713,85185,72849,58611,31220,26657,77056,24553,24993,5210,89024,32054,46997,92652,28363,98992,22593,97710,47766,37646,93573,95502,33790,92973,27766,62671,89698,10877,73893,41004,96035,18795,48080,59666,30241,35233,87353,43647,13404,41982,19264,29229,61369,8309,39383,42305,25944,13577,51545,68990,69801,37145,79189,55897,57793,66816,21930,56771,79296,73793,21632,42301,23696,72641,56310,85576,3004,25669,69221,32996,23040,65782,23712,13414,10758,15590,97298,74246,51511,46900,36795,38292,3852,6384,84421,3446,91670,45312,27609,87034,6683,83891,88991,16533,9197,34427,60384,48525,90978,46107,21693,12956,21804,46558,37682,81207,85840,53238,35026,4835,53264,41376,17783,64756,39278,25403,33042,20954,31193,24247,45911,92453,25370,86602,48574,57865,26436,16122,76614,17028,21262,59718,77821,14036,31033,90563,45410,15158,90209,84089,38053,60780,54166,14255,33120,27171,71798,91214,80040,56699,12475,40193,59415,4769,75920,1036,2692,75862,16612,73670,61182,3305,90334,187,91659,28063,75684,50017,82643,9282,77376,85469,8164,5584,36623,82597,83859,3435,98460,70095,80257,4381,6501,8924,35514,14297,54373,71369,5172,15955,82441,4636,48215,6821,3385,17663,40107,55679,30366,42390,95895,16083,58499,17176,55993,51034,49296,4010,78974,35930,2019,96226,27167,68245,53109,59037,37843,79243,10262,58797,61490,82590,52411,54783,29447,94551,30026,97959,93939,73217,82573,62154,78291,33728,39102,11484,86210,43794,73553,87435,1110,77108,56521,78610,8254,1842,43068,70415,79195,26136,49786,47279,38471,20379,54704,86614,91138,51595,50818,80186,73087,17262,94735,4952,27935,4928,74862,51392,62388,9570,38485,30594,56278,47395,72762,94597,72279,16010,34697,54475,67874,78014,88381,4045,41494,55178,46054,24373,1824,55333,7525,97908,61178,84635,2199,35361,4803,21907,79414,66083,54782,58692,28332,41851,28198,55819,37313,67046,16147,90478,71230,34141,85002,44332,35906,429,39744,773,22909,19536,98986,90945,45209,85439,92265,25291,22775,60611,49159,95701,36113,53923,60824,84935,29656,50007,86624,61691,76150,32187,42765,60660,13859,10792,88210,29374,29563,45188,28811,19739,67649,73775,99247,48414,91067,68253,9452,90116,91737,73979,62370,69112,58791,20349,71480,56852,36919,87977,77609,68738,85159,4918,70076,46473,4122,57713,1426,50987,77910,66211,62546,77749,96462,34304,77441,12104,91805,10287,60943,49632,83116,25716,23113,22707,77770,31176,6759,46130,4739,55554,3843,31653,70834,72877,41561,36903,23010,6663,2266,16360,70118,91936,17098,77278,4880,23484,94970,41826,46733,93484,68350,38861,18134,32936,241,24803,13876,93278,5039,35873,44418,5305,28510,36115,46717,15238,78607,23464,68635,55712,55007,92411,65739,4858,67537,37041,67453,89801,45963,14800,14225,65655,80463,9716,77255,65136,11230,76323,81433,36445,86523,61058,59560,19380,40791,48073,29626,36661,87907,57369,41623,13705,3880,45088,55444,41003,27754,1450,75312,71801,99600,60719,54182,29245,63315,73758,42973,32702,10855,56363,14638,84424,27178,78195,3133,70865,48019,26117,7151,52107,85562,41347,50486,69457,86961,95482,11857,93587,45680,42145,13029,10043,5142,49213,54525,85761,42707,70754,33768,87671,85038,58900,88438,20004,63390,14815,38875,73417,82875,89481,55517,944,15773,61814,32915,27868,5510,21916,28426,89881,16680,88850,11056,51991,4230,39107,49216,40065,4523,75848,95349,56034,10724,9885,88232,42478,65702,95696,39746,66032,88082,86905,30007,75068,66629,7358,26706,90511,72843,67857,20061,98581,69682,38e3,14186,70,2290,17269,30909,69449,19997,13275,2444,84985,51290,97641,15092,69650,21920,19617,7418,49725,91090,20805,28627,80665,67192,34697,57667,99323,50101,40587,35081,14037,34414,19898,60779,83267,87499,29596,41852,15813,32419,72232,8322,39184,46525,13833,65743,94595,37363,4711,35386,96413,10627,62625,56555,12919,93218,25191,98380,51923,66181,5788,73491,1452,487,12277,45415,11884,61300,94528,9181,26616,11455,31514,63290,45035,42759,33804,85721,80979,46010,50975,72482,31231,3086,58941,46102,25773,89742,29788,96741,88523,14922,88262,76305,57676,93259,2396,69145,26074,30056,3853,75317,56639,66203,38923,48939,22813,91864,10934,6714,84099,25631,73223,95630,97552,45950,22197,42886,33764,1263,41856,82057,62349,94091,78028,62651,18911,5693,92561,97821,41994,92343,76785,22216,4203,5038,86151,23596,24338,77181,51761,97693,10955,98159,37568,58932,72128,27303,99608,31688,57557,91022,43036,93927,32869,53653,55205,33139,47271,31224,51650,36422,86857,73799,22068,43376,84760,44898,65776,42451,71480,38509,41673,44141,75918,95652,68981,83001,48815,98086,67950,27986,33175,43624,55274,71051,61124,51550,64967,31570,15748,19159,38174,51078,79811,39183,57527,96550,85168,28824,47466,56993,13151,96664,29735,70251,1079,4314,77714,11507,1440,48415,31984,99915,20282,26524,18057,4992,40521,98108,84045,91961,79256,72244,25788,5487,23595,73302,14205,8925,27625,64343,28821,37992,67156,83320,31106,10884,30735,15067,51091,15668,48777,50770,19169,76504,41165,29749,92812,8065,66782,26841,1411,95461,61134,18699,52261,60469,81373,44825,11448,73320,30151,56991,31372,6655,36472,86292,30247,30931,21029,53410,9859,37267,47514,3492,49008,94727,25234,40546,53417,36492,25723,76227,58456,15979,34876,9574,34392,3751,36933,83921,65108,63135,67572,40184,21098],rs=new Array(16),ns=[16,8,16,24],is=4,as=0;function os(t,e){var r=e-t+1,n=0,i=1;do{for(n=0,i=1;i<r;i*=10)n=10*n+(is<0&&(is=4,as++),es[as]%Math.pow(10,is+1)/Math.pow(10,is--)|0)}while(n>=(i/r|0)*r);return t+n%r|0}!function(t){for(var e=0;e<16;e++){rs[e]=new Array(256);for(var r=0;r<256;r++)rs[e][r]=r|r<<8|r<<16|r<<24;for(var n=3;n>=0;n--)for(var i=0;i<255;i++){var a=255<<(n<<3),o=0|rs[e][i],s=os(i,255);rs[e][i]=rs[e][i]&~a|rs[e][s]&a,rs[e][s]=rs[e][s]&~a|o&a}}}();var ss=function(t){function e(t){var r;return i(this,e),(t=t||{}).length=t.length||128,t.rounds=t.rounds||8,(r=Ko(this,e,[t])).blockSize=16-r.state.hash.length,r.blockSizeInBytes=r.blockSize*r.unitSize,r.W=new Array(16),r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=new Array(this.options.length/32|0);for(var t=0;t<this.state.hash.length;t++)this.state.hash[t]=0}},{key:"processBlock",value:function(t){for(var e=0;e<this.state.hash.length;e++)this.W[e]=0|this.state.hash[e];for(var r=this.state.hash.length;r<16;r++)this.W[r]=0|t[r-this.state.hash.length];for(var n=0;n<this.options.rounds<<1;n+=2)for(var i=0;i<4;i++){for(var a=0;a<16;a++){var o=0|rs[n+(a/2|0)%2][255&this.W[a]];this.W[a-1>>>0&15]^=o,this.W[a+1&15]^=o}for(var s=0;s<16;s++)this.W[s]=Ga(this.W[s],ns[i])}for(var u=0;u<this.state.hash.length;u++)this.state.hash[u]=this.state.hash[u]^this.W[15-u]}},{key:"finalize",value:function(){return this.state.message.length>0&&this.addPaddingZero(this.blockSizeInBytes-this.state.message.length|0),this.addPaddingZero(this.blockSizeInBytes-8|0),this.addLengthBits(),this.process(),this.getStateHash()}}])}(To);const us=ss;function ls(t,e,r){return e=h(e),l(t,hs()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function hs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hs=function(){return!!t})()}var cs=new Array(256),fs=[104,208,235,43,72,157,106,228,227,163,86,129,125,241,133,158,44,142,120,202,23,169,97,213,93,11,140,60,119,81,34,66,63,84,65,128,204,134,179,24,46,87,6,98,244,54,209,107,27,101,117,16,218,73,38,249,203,102,231,186,174,80,82,171,5,240,13,115,59,4,32,254,221,245,180,95,10,181,192,160,113,165,45,96,114,147,57,8,131,33,92,135,177,224,0,195,18,145,138,2,28,230,69,194,196,253,191,68,161,76,51,197,132,35,124,176,37,21,53,105,255,148,77,112,162,175,205,214,108,183,248,9,243,103,164,234,236,182,212,210,20,30,225,36,56,198,219,75,122,58,222,94,223,149,252,170,215,206,7,15,61,88,154,152,156,242,167,17,126,139,67,3,226,220,229,178,78,199,109,233,39,64,216,55,146,143,1,29,83,62,89,193,79,50,22,250,116,251,99,159,52,26,42,90,141,201,207,246,144,40,136,155,49,14,189,74,232,150,166,12,200,121,188,190,239,110,70,151,91,237,25,217,172,153,168,41,100,31,173,85,19,187,247,111,185,71,47,238,184,123,137,48,211,127,118,130],ds=[1,11,9,12,13,6,15,3,14,8,7,4,10,2,5,0],ps=[7,12,11,13,14,4,9,15,6,3,8,10,2,5,1,0],ms=new Array(16),gs=[1,1,4,1,8,5,2,9],bs=[1,1,3,1,5,8,9,5],ys=new Array(512),vs=new Array(22),ws=new Array(512),_s=new Array(22),ks=new Array(512),Bs=new Array(22);function xs(t,e){for(var r=new Array(512),n=new Array(22),i=0;i<8;i++)r[i]=[];for(var a=0;a<256;a++){var o=new Array(10);o[1]=t[a],o[2]=o[1]<<1,o[2]>=256&&(o[2]^=285),o[3]=o[2]^o[1],o[4]=o[2]<<1,o[4]>=256&&(o[4]^=285),o[5]=o[4]^o[1],o[8]=o[4]<<1,o[8]>=256&&(o[8]^=285),o[9]=o[8]^o[1],r[0][2*a]=o[e[0]]<<24|o[e[1]]<<16|o[e[2]]<<8|o[e[3]],r[0][2*a+1]=o[e[4]]<<24|o[e[5]]<<16|o[e[6]]<<8|o[e[7]];for(var s=1;s<8;s++)r[s][2*a]=Ha(r[0][2*a+1],r[0][2*a],s<<3),r[s][2*a+1]=ja(r[0][2*a+1],r[0][2*a],s<<3)}n[0]=0,n[1]=0;for(var u=1;u<=10;u++)n[2*u]=4278190080&r[0][16*u-16]^16711680&r[1][16*u-14]^65280&r[2][16*u-12]^255&r[3][16*u-10],n[2*u+1]=4278190080&r[4][16*u-7]^16711680&r[5][16*u-5]^65280&r[6][16*u-3]^255&r[7][16*u-1];return[r,n]}!function(){!function(){for(var t=0;t<16;t++)ms[ds[t]]=0|t;for(var e=0;e<256;e++){var r=ds[e>>4],n=ms[15&e],i=ps[r^n];cs[e]=ds[r^i]<<4|ms[n^i]}}();var t=xs(fs,bs);ws=t[0],_s=t[1],t=xs(cs,bs),ks=t[0],Bs=t[1],t=xs(cs,gs),ys=t[0],vs=t[1]}();var Es=function(t){function e(t){var r;switch(i(this,e),(t=t||{}).type=t.type||"",t.rounds=t.rounds||10,(r=ls(this,e,[t])).options.type){case"0":case 0:r.C=ws,r.RC=_s;break;case"t":r.C=ks,r.RC=Bs;break;default:r.C=ys,r.RC=vs}return r}return f(e,t),u(e,[{key:"reset",value:function(){Fa(h(e.prototype),"reset",this).call(this),this.state.hash=new Array(16);for(var t=0;t<16;t++)this.state.hash[t]=0}},{key:"processBlock",value:function(t){for(var e=new Array(16),r=[],n=0;n<16;n++)r[n]=t[n]^(e[n]=this.state.hash[n]);for(var i=[],a=1;a<=this.options.rounds;a++){for(var o=0;o<8;o++){i[2*o]=0,i[2*o+1]=0;for(var s=0,u=56,l=0;s<8;s++,l=(u-=8)<32?1:0)i[2*o]^=this.C[s][2*(e[2*(o-s&7)+l]>>>u%32&255)],i[2*o+1]^=this.C[s][2*(e[2*(o-s&7)+l]>>>u%32&255)+1]}for(var h=0;h<16;h++)e[h]=i[h];e[0]^=this.RC[2*a],e[1]^=this.RC[2*a+1];for(var c=0;c<8;c++){i[2*c]=e[2*c],i[2*c+1]=e[2*c+1];for(var f=0,d=56,p=0;f<8;f++,p=(d-=8)<32?1:0)i[2*c]^=this.C[f][2*(r[2*(c-f&7)+p]>>>d%32&255)],i[2*c+1]^=this.C[f][2*(r[2*(c-f&7)+p]>>>d%32&255)+1]}for(var m=0;m<16;m++)r[m]=i[m]}for(var g=0;g<16;g++)this.state.hash[g]^=r[g]^t[g]}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<32?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}])}(To);const Cs=Es;function As(t){for(var e="",r=0,n=t.length;r<n;r++){var i=t.charCodeAt(r);i<128?e+=String.fromCharCode(i):i<2048?(e+=String.fromCharCode(192|i>>6),e+=String.fromCharCode(128|63&i)):i<55296||i>=57344?(e+=String.fromCharCode(224|i>>12),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|63&i)):(r++,i=65536+((1023&i)<<10|1023&t.charCodeAt(r)),e+=String.fromCharCode(240|i>>18),e+=String.fromCharCode(128|i>>12&63),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|63&i))}return e}function Is(t){for(var e="",r=new Uint8Array(t),n=0;n<r.length;n++)e+=String.fromCharCode(r[n]);return e}function Ms(t){for(var e="",r=0,n=t.length;r<n;r++)e+=(t.charCodeAt(r)<16?"0":"")+t.charCodeAt(r).toString(16);return e}var Ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ps(t){for(var e="",r=t.length-t.length%3|0,n=0,i=0;i<r;i+=3)n=t.charCodeAt(i)<<16|t.charCodeAt(i+1)<<8|t.charCodeAt(i+2),e+=Ss.charAt(n>>18)+Ss.charAt(n>>12&63)+Ss.charAt(n>>6&63)+Ss.charAt(63&n);return t.length-r==2?(n=t.charCodeAt(r)<<16|t.charCodeAt(r+1)<<8,e+=Ss.charAt(n>>18)+Ss.charAt(n>>12&63)+Ss.charAt(n>>6&63)+"="):t.length-r==1&&(n=t.charCodeAt(r)<<16,e+=Ss.charAt(n>>18)+Ss.charAt(n>>12&63)+"=="),e}var Ts=function(){return u((function t(e,r){i(this,t),e.length>r.blockSizeInBytes&&(r.update(e),e=r.finalize(),r.reset());for(var n=e.length;n<r.blockSizeInBytes;n++)e+="\0";this.oPad="";for(var a=0;a<e.length;a++)r.update(String.fromCharCode(54^e.charCodeAt(a))),this.oPad+=String.fromCharCode(92^e.charCodeAt(a));this.hasher=r}),[{key:"update",value:function(t){this.hasher.update(t)}},{key:"finalize",value:function(){var t=this.hasher.finalize();return this.hasher.reset(),this.hasher.update(this.oPad),this.hasher.update(t),this.hasher.finalize()}}])}();const Rs=Ts;var Fs=function(){return u((function t(){i(this,t),this.encoder={},this.encoder.fromUtf=As,this.encoder.fromArrayBuffer=Is,this.encoder.toHex=Ms,this.encoder.toBase64=Ps}),[{key:"getHasher",value:function(t,e){switch(e=e||{},t){case"has160":return new Ja(e);case"md2":return new ao(e);case"md4":return new fo(e);case"md5":return new wo(e);case"ripemd128":return e=Object.assign({},{length:128},e),new Io(e);case"ripemd":case"ripemd160":return e=Object.assign({},{length:160},e),new Io(e);case"ripemd256":return e=Object.assign({},{length:256},e),new Io(e);case"ripemd320":return e=Object.assign({},{length:320},e),new Io(e);case"sha0":return new Uo(e);case"sha1":return new jo(e);case"sha224":return e=Object.assign({},{length:224},e),new $o(e);case"sha256":return e=Object.assign({},{length:256},e),new $o(e);case"sha384":return e=Object.assign({},{length:384},e),new Qo(e);case"sha512":return e=Object.assign({},{length:512},e),new Qo(e);case"sha512/224":return e=Object.assign({},{length:224},e),new Qo(e);case"sha512/256":return e=Object.assign({},{length:256},e),new Qo(e);case"snefru":case"snefru128":case"snefru128/8":return e=Object.assign({},{length:128},e),new us(e);case"snefru256":case"snefru256/8":return e=Object.assign({},{length:256},e),new us(e);case"snefru128/2":return e=Object.assign({},{length:128,rounds:2},e),new us(e);case"snefru256/4":return e=Object.assign({},{length:256,rounds:4},e),new us(e);case"whirlpool":return new Cs(e);case"whirlpool-0":return e=Object.assign({},{type:"0"},e),new Cs(e);case"whirlpool-t":return e=Object.assign({},{type:"t"},e),new Cs(e)}}},{key:"hash",value:function(t,e,r){r=r||{};var n=this.getHasher(t,r);return n.update(As(e)),Ms(n.finalize())}},{key:"getHmac",value:function(t,e){return new Rs(t,e)}},{key:"hmac",value:function(t,e,r){var n=this.getHmac(As(t),r);return n.update(As(e)),Ms(n.finalize())}}])}();const Ls=Fs=new Fs;function Os(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O.arrayBufferToStr(e,!1),i=Ls.getHasher(t,r);return i.update(n),Ls.encoder.toHex(i.finalize())}function Us(t,e,r){return e=h(e),l(t,Ds()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Ds(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ds=function(){return!!t})()}const Ns=function(t){function e(){var t;return i(this,e),(t=Us(this,e)).name="Randomize Colour Palette",t.module="Image",t.description="Randomizes each colour in an image's colour palette. This can often reveal text or symbols that were previously a very similar colour to their surroundings, a technique sometimes used in Steganography.",t.infoURL="https://wikipedia.org/wiki/Indexed_color",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Seed",type:"string",value:""}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Please enter a valid image file.");case 2:return n=r[0]||Math.random().toString().substr(2),t.next=5,ci.read(e);case 5:return i=t.sent,a=i.bitmap.width,o=i.bitmap.height,i.scan(0,0,a,o,(function(t,e,r){s=this.bitmap.data.slice(r,r+3).join("."),u=Os("md5",O.strToArrayBuffer(n+s)),l=u.substr(0,6)+"ff",i.setPixelColor(parseInt(l,16),t,e)})),t.next=11,i.getBufferAsync(ci.AUTO);case 11:return h=t.sent,t.abrupt("return",new Uint8Array(h).buffer);case 13:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){return t.byteLength?`<img src="data:${At(t)};base64,${E(t)}">`:""}}]);var r}(ne);function zs(t,e){if("string"!=typeof e)throw"'unpack' error. Got invalid type argument.";for(var r,n=0,i=1;i<t.length;i++)if("b"==t[i].toLowerCase())n+=1;else if("h"==t[i].toLowerCase())n+=2;else{if("l"!=t[i].toLowerCase())throw"'unpack' error. Got invalid mark.";n+=4}if(n!=e.length)throw"'unpack' error. Mismatch between symbol and string length. "+n+":"+e.length;if("<"==t[0])r=!0;else{if(">"!=t[0])throw"'unpack' error.";r=!1}for(var a=[],o=0,s=1,u=null,l=null,h=null,c="";l=t[s];){if("b"==l.toLowerCase())h=1,u=(c=e.slice(o,o+h)).charCodeAt(0),"b"==l&&u>=128&&(u-=256);else if("H"==l)h=2,c=e.slice(o,o+h),r&&(c=c.split("").reverse().join("")),u=256*c.charCodeAt(0)+c.charCodeAt(1);else{if("l"!=l.toLowerCase())throw"'unpack' error. "+l;h=4,c=e.slice(o,o+h),r&&(c=c.split("").reverse().join("")),u=16777216*c.charCodeAt(0)+65536*c.charCodeAt(1)+256*c.charCodeAt(2)+c.charCodeAt(3),"l"==l&&u>=2147483648&&(u-=4294967296)}a.push(u),o+=h,s+=1}return a}function Gs(t,e,r){return e=h(e),l(t,js()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function js(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(js=function(){return!!t})()}const Hs=function(t){function e(){var t;return i(this,e),(t=Gs(this,e)).name="Remove EXIF",t.module="Image",t.description=["Removes EXIF data from a JPEG image.","<br><br>","EXIF data embedded in photos usually contains information about the image file itself as well as the device used to create it."].join("\n"),t.infoURL="https://wikipedia.org/wiki/Exif",t.inputType="ArrayBuffer",t.outputType="byteArray",t.args=[],t}return f(e,t),u(e,[{key:"run",value:function(t,e){if(0===(t=new Uint8Array(t)).length)return t;try{return function(t){if("ÿØ"!=(t=O.byteArrayToChars(t)).slice(0,2))throw"Given data is not jpeg.";var e=function(t){if("ÿØ"!=t.slice(0,2))throw"Given data isn't JPEG.";for(var e=2,r=["ÿØ"];;){if("ÿÚ"==t.slice(e,e+2)){r.push(t.slice(e));break}var n=e+zs(">H",t.slice(e+2,e+4))[0]+2;if(r.push(t.slice(e,n)),(e=n)>=t.length)throw"Wrong JPEG data."}return r}(t);if("ÿá"==e[1].slice(0,2)&&"Exif\0\0"==e[1].slice(4,10))e=[e[0]].concat(e.slice(2));else{if("ÿá"!=e[2].slice(0,2)||"Exif\0\0"!=e[2].slice(4,10))throw"Exif not found.";e=e.slice(0,2).concat(e.slice(3))}var r=e.join("");return O.strToCharcode(r)}(t)}catch(e){if("Exif not found."===e)return t;throw new x(`Could not remove EXIF data from image: ${e}`)}}}])}(ne);function Ws(t,e,r){return e=h(e),l(t,qs()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function qs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qs=function(){return!!t})()}const Zs=function(t){function e(){var t;return i(this,e),(t=Ws(this,e)).name="Render Image",t.module="Image",t.description="Displays the input as an image. Supports the following formats:<br><br><ul><li>jpg/jpeg</li><li>png</li><li>gif</li><li>webp</li><li>bmp</li><li>ico</li></ul>",t.inputType="string",t.outputType="byteArray",t.presentType="html",t.args=[{name:"Input format",type:"option",value:["Raw","Base64","Hex"]}],t.checks=[{pattern:"^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",flags:"",args:["Raw"],useful:!0,output:{mime:"image"}}],t}return f(e,t),u(e,[{key:"run",value:function(t,e){var r=e[0];if(!t.length)return[];switch(r){case"Hex":t=A(t);break;case"Base64":t=C(t,void 0,"byteArray");break;default:t=O.strToByteArray(t)}if(!At(t))throw new x("Invalid file type");return t}},{key:"present",value:(r=n(p().mark((function t(e){var r,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.length){t.next=2;break}return t.abrupt("return","");case 2:if(r="data:",!(n=At(e))){t.next=8;break}r+=n+";",t.next=9;break;case 8:throw new x("Invalid file type");case 9:return r+="base64,"+E(e),t.abrupt("return","<img src='"+r+"'>");case 11:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})}]);var r}(ne);function $s(t,e,r){return e=h(e),l(t,Vs()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Vs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vs=function(){return!!t})()}const Ys=function(t){function e(){var t;return i(this,e),(t=$s(this,e)).name="Resize Image",t.module="Image",t.description="Resizes an image to the specified width and height values.",t.infoURL="https://wikipedia.org/wiki/Image_scaling",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Unit type",type:"option",value:["Pixels","Percent"]},{name:"Maintain aspect ratio",type:"boolean",value:!1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u={"Nearest Neighbour":ci.RESIZE_NEAREST_NEIGHBOR,Bilinear:ci.RESIZE_BILINEAR,Bicubic:ci.RESIZE_BICUBIC,Hermite:ci.RESIZE_HERMITE,Bezier:ci.RESIZE_BEZIER},At(e)){t.next=5;break}throw new x("Invalid file type.");case 5:return t.prev=5,t.next=8,ci.read(e);case 8:l=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new x(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,"Percent"===a&&(n=l.getWidth()*(n/100),i=l.getHeight()*(i/100)),L()&&self.sendStatusMessage("Resizing image..."),o?l.scaleToFit(n,i,u[s]):l.resize(n,i,u[s]),"image/gif"!==l.getMIME()){t.next=24;break}return t.next=21,l.getBufferAsync(ci.MIME_PNG);case 21:h=t.sent,t.next=27;break;case 24:return t.next=26,l.getBufferAsync(ci.AUTO);case 26:h=t.sent;case 27:return t.abrupt("return",h.buffer);case 30:throw t.prev=30,t.t1=t.catch(14),new x(`Error resizing image. (${t.t1})`);case 33:case"end":return t.stop()}}),t,null,[[5,11],[14,30]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Xs(t,e,r){return e=h(e),l(t,Js()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function Js(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Js=function(){return!!t})()}const Qs=function(t){function e(){var t;return i(this,e),(t=Xs(this,e)).name="Rotate Image",t.module="Image",t.description="Rotates an image by the specified number of degrees.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Rotation amount (degrees)",type:"number",value:90}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,1),i=n[0],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Rotating image..."),a.rotate(i),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ci.MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ci.AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new x(`Error rotating image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);function Ks(t,e,r){return e=h(e),l(t,tu()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function tu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tu=function(){return!!t})()}const eu=function(t){function e(){var t;return i(this,e),(t=Ks(this,e)).name="Sharpen Image",t.module="Image",t.description="Sharpens an image (Unsharp mask)",t.infoURL="https://wikipedia.org/wiki/Unsharp_masking",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Radius",type:"number",value:2,min:1},{name:"Amount",type:"number",value:1,min:0,step:.1},{name:"Threshold",type:"number",value:10,min:0,max:100}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ot(r,3),i=n[0],a=n[1],o=n[2],At(e)){t.next=3;break}throw new x("Invalid file type.");case 3:return t.prev=3,t.next=6,ci.read(e);case 6:s=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new x(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Sharpening image... (Cloning image)"),u=s.clone(),L()&&self.sendStatusMessage("Sharpening image... (Blurring cloned image)"),l=bi(s.clone(),i),L()&&self.sendStatusMessage("Sharpening image... (Creating unsharp mask)"),u.scan(0,0,u.bitmap.width,u.bitmap.height,(function(t,e,r){var n=l.bitmap.data[r],i=l.bitmap.data[r+1],a=l.bitmap.data[r+2],o=this.bitmap.data[r],s=this.bitmap.data[r+1],u=this.bitmap.data[r+2];this.bitmap.data[r]=o>n?o-n:0,this.bitmap.data[r+1]=s>i?s-i:0,this.bitmap.data[r+2]=u>a?u-a:0})),L()&&self.sendStatusMessage("Sharpening image... (Merging with unsharp mask)"),s.scan(0,0,s.bitmap.width,s.bitmap.height,(function(t,e,r){var n=u.bitmap.data[r],i=u.bitmap.data[r+1],s=u.bitmap.data[r+2],l=this.bitmap.data[r],h=this.bitmap.data[r+1],c=this.bitmap.data[r+2],f=.2126*n+.7152*i+.0722*s,d=.2126*l+.7152*h+.0722*c;n*=a,i*=a,s*=a,(f>d?f-d:d-f)/255*100>=o&&(this.bitmap.data[r]=l+n<=255?l+n:255,this.bitmap.data[r+1]=h+i<=255?h+i:255,this.bitmap.data[r+2]=c+s<=255?c+s:255)})),"image/gif"!==s.getMIME()){t.next=27;break}return t.next=24,s.getBufferAsync(ci.MIME_PNG);case 24:h=t.sent,t.next=30;break;case 27:return t.next=29,s.getBufferAsync(ci.AUTO);case 29:h=t.sent;case 30:return t.abrupt("return",h.buffer);case 33:throw t.prev=33,t.t1=t.catch(12),new x(`Error sharpening image. (${t.t1})`);case 36:case"end":return t.stop()}}),t,null,[[3,9],[12,33]])}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=At(e);if(!r)throw new x("Invalid file type.");return`<img src="data:${r};base64,${E(e)}">`}}]);var r}(ne);var ru=__webpack_require__(48287).Buffer;function nu(t,e,r){return e=h(e),l(t,iu()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function iu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(iu=function(){return!!t})()}const au=function(t){function e(){var t;return i(this,e),(t=nu(this,e)).name="Split Colour Channels",t.module="Image",t.description="Splits the given image into its red, green and blue colour channels.",t.infoURL="https://wikipedia.org/wiki/Channel_(digital_image)",t.inputType="ArrayBuffer",t.outputType="List<File>",t.presentType="html",t.args=[],t}return f(e,t),u(e,[{key:"run",value:(a=n(p().mark((function t(e,r){var i,a,o,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e=new Uint8Array(e))){t.next=3;break}throw new x("Invalid file type.");case 3:return t.next=5,ci.read(ru.from(e));case 5:return i=t.sent,a=new Promise(function(){var t=n(p().mark((function t(e,r){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.clone().color([{apply:"blue",params:[-255]},{apply:"green",params:[-255]}]).getBufferAsync(ci.MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"red.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new x(`Could not split red channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),o=new Promise(function(){var t=n(p().mark((function t(e,r){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.clone().color([{apply:"red",params:[-255]},{apply:"blue",params:[-255]}]).getBufferAsync(ci.MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"green.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new x(`Could not split green channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),s=new Promise(function(){var t=n(p().mark((function t(e,r){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.color([{apply:"red",params:[-255]},{apply:"green",params:[-255]}]).getBufferAsync(ci.MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"blue.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new x(`Could not split blue channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),t.next=11,Promise.all([a,o,s]);case 11:return t.abrupt("return",t.sent);case 12:case"end":return t.stop()}}),t)}))),function(t,e){return a.apply(this,arguments)})},{key:"present",value:(r=n(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.displayFilesAsHTML(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})}]);var r,a}(ne);function ou(t,e,r){return e=h(e),l(t,su()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function su(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(su=function(){return!!t})()}var uu=function(t){function e(){var t;return i(this,e),(t=ou(this,e)).name="View Bit Plane",t.module="Image",t.description="Extracts and displays a bit plane of any given image. These show only a single bit from each pixel, and can be used to hide messages in Steganography.",t.infoURL="https://wikipedia.org/wiki/Bit_plane",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Colour",type:"option",value:lu},{name:"Bit",type:"number",value:0}],t}return f(e,t),u(e,[{key:"run",value:(r=n(p().mark((function t(e,r){var n,i,a,o,s,u,l,h,c,f,d,m;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(At(e)){t.next=2;break}throw new x("Please enter a valid image file.");case 2:return n=ot(r,2),i=n[0],a=n[1],t.next=7,ci.read(e);case 7:if(o=t.sent,s=o.bitmap.width,u=o.bitmap.height,l=lu.indexOf(i),h=7-a,!(a<0||a>7)){t.next=14;break}throw new x("Error: Bit argument must be between 0 and 7");case 14:return o.scan(0,0,s,u,(function(t,e,r){c=this.bitmap.data[r+l],f=O.bin(c),d=255,"1"===f.charAt(h)&&(d=0);for(var n=0;n<3;n++)this.bitmap.data[r+n]=d;this.bitmap.data[r+3]=255})),t.next=17,o.getBufferAsync(ci.AUTO);case 17:return m=t.sent,t.abrupt("return",new Uint8Array(m).buffer);case 19:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})},{key:"present",value:function(t){return t.byteLength?`<img src="data:${At(t)};base64,${E(t)}">`:""}}]);var r}(ne),lu=["Red","Green","Blue","Alpha"];const hu=uu;("undefined"==typeof self?{}:self.OpModules||{}).Image={"Add Text To Image":gi,"Blur Image":_i,"Contain Image":xi,"Convert Image Format":Ai,"Cover Image":Si,"Crop Image":Ri,"Dither Image":Oi,"Extract EXIF":Ni,"Extract LSB":Zi,"Extract RGBA":Xi,"Flip Image":Ki,"Generate Image":na,"Generate QR Code":fa,"Image Brightness / Contrast":ma,"Image Filter":ya,"Image Hue/Saturation/Lightness":_a,"Image Opacity":xa,"Invert Image":Aa,"Normalise Image":Sa,"Parse QR Code":Ra,"Randomize Colour Palette":Ns,"Remove EXIF":Hs,"Render Image":Zs,"Resize Image":Ys,"Rotate Image":Qs,"Sharpen Image":eu,"Split Colour Channels":au,"View Bit Plane":hu}})()})();