@dwelle/excalidraw 0.3.21 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +2 -0
- package/dist/excalidraw-assets/image-2be1c869cd5bacebdc3c.js +1 -0
- package/dist/excalidraw.development.js +10 -10
- package/dist/excalidraw.production.min.js +2 -1
- package/package.json +4 -4
- package/types/packages/excalidraw/dist/excalidraw-assets/image-2be1c869cd5bacebdc3c.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-8e0c265e832504f62477.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-9592159c56d563857679.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-98a7b39bd21998c69c4b.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-af02967a8a4c328f2713.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-bd5991c772b4867c8d27.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-c198828284ec0dba28dc.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/image-eac20119cbc2ceb81523.d.ts +0 -0
- package/types/packages/excalidraw/webpack.prod.config.d.ts +2 -0
- package/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.js +0 -1
- package/dist/excalidraw-assets/image-0db17e06143a31f9772b.js +0 -1
- package/dist/excalidraw-assets/image-46f5e8e621bfedbf6d91.js +0 -1
- package/dist/excalidraw-assets/image-6f8d3b9873832b5f7a67.js +0 -1
- package/dist/excalidraw-assets/image-a26261fb8a718f15853e.js +0 -1
- package/dist/excalidraw-assets/image-a97adda58b4c4d8d0107.js +0 -1
- package/dist/excalidraw-assets/image-eafab0c39ce13f7fea67.js +0 -1
- package/dist/excalidraw-assets/vendor-1018b0a7e7e60d808384.js +0 -2
- package/dist/excalidraw-assets/vendor-1018b0a7e7e60d808384.js.LICENSE.txt +0 -14
- package/dist/excalidraw-assets/vendor-405364e1fdefedf5d3d7.js +0 -2
- package/dist/excalidraw-assets/vendor-405364e1fdefedf5d3d7.js.LICENSE.txt +0 -14
- package/dist/excalidraw-assets/vendor-448ccb79e58765b61834.js +0 -2
- package/dist/excalidraw-assets/vendor-448ccb79e58765b61834.js.LICENSE.txt +0 -1
- package/dist/excalidraw-assets/vendor-585a4c89d479fd91edeb.js +0 -2
- package/dist/excalidraw-assets/vendor-585a4c89d479fd91edeb.js.LICENSE.txt +0 -1
- package/dist/excalidraw-assets/vendor-807e23d7531555236936.js +0 -2
- package/dist/excalidraw-assets/vendor-807e23d7531555236936.js.LICENSE.txt +0 -14
- package/dist/excalidraw-assets/vendor-b088910ac1ba8853a571.js +0 -2
- package/dist/excalidraw-assets/vendor-b088910ac1ba8853a571.js.LICENSE.txt +0 -8
- package/dist/excalidraw-assets/vendor-cb708a4580b007d81177.js +0 -2
- package/dist/excalidraw-assets/vendor-cb708a4580b007d81177.js.LICENSE.txt +0 -1
- package/dist/excalidraw-assets/vendor-ce466849186c701b6c48.js +0 -2
- package/dist/excalidraw-assets/vendor-ce466849186c701b6c48.js.LICENSE.txt +0 -14
- package/dist/excalidraw-assets/vendor-e5c6cd57013e8e575a61.js +0 -1
- package/dist/excalidraw-assets-dev/image-028ba554a42cc8a4995a.js +0 -42
- package/dist/excalidraw-assets-dev/image-664005f0b02c93342b89.js +0 -42
- package/dist/excalidraw-assets-dev/image-821afe7d20de2d2ca898.js +0 -42
- package/dist/excalidraw-assets-dev/image-9f771c114a0a3ad7b334.js +0 -42
- package/dist/excalidraw-assets-dev/image-a98d24ea9aa42940a0df.js +0 -42
- package/dist/excalidraw-assets-dev/image-b2befe1e2a0424a41fb3.js +0 -42
- package/dist/excalidraw-assets-dev/image-cacb3d0c02eb2e346ecc.js +0 -33
- package/dist/excalidraw-assets-dev/image-d7e941a51c2e0a7b3c23.js +0 -42
- package/dist/excalidraw-assets-dev/vendor-0454f90696ac835aeb45.js +0 -356
- package/dist/excalidraw-assets-dev/vendor-26ccabf52930f0ce0ffd.js +0 -334
- package/dist/excalidraw-assets-dev/vendor-5d1c4700bd0fa2109ab5.js +0 -334
- package/dist/excalidraw-assets-dev/vendor-7664c12c379862ed98a5.js +0 -356
- package/dist/excalidraw-assets-dev/vendor-7fcb99cece261da4983f.js +0 -344
- package/dist/excalidraw-assets-dev/vendor-bb07a412033591d5470d.js +0 -344
- package/dist/excalidraw-assets-dev/vendor-ec7db14ff9ba640888c4.js +0 -344
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see vendor-585a4c89d479fd91edeb.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkExcalidraw=self.webpackChunkExcalidraw||[]).push([[736],{6233:function(e,t){var r;r=function(e){e.version="0.3.0";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r="undefined"!=typeof Buffer;function n(e){for(var r=-1,n=0,a=e.length-7;n<a;)r=(r=(r=(r=(r=(r=(r=(r=r>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])])>>>8^t[255&(r^e[n++])];for(;n<a+7;)r=r>>>8^t[255&(r^e[n++])];return-1^r}e.table=t,e.bstr=function(e){if(e.length>32768&&r)return n(new Buffer(e));for(var a=-1,o=e.length-1,i=0;i<o;)a=t[255&(a^e.charCodeAt(i++))]^a>>>8,a=t[255&(a^e.charCodeAt(i++))]^a>>>8;return i===o&&(a=a>>>8^t[255&(a^e.charCodeAt(i))]),-1^a},e.buf=function(e){if(e.length>1e4)return n(e);for(var r=-1,a=0,o=e.length-3;a<o;)r=(r=(r=(r=r>>>8^t[255&(r^e[a++])])>>>8^t[255&(r^e[a++])])>>>8^t[255&(r^e[a++])])>>>8^t[255&(r^e[a++])];for(;a<o+3;)r=r>>>8^t[255&(r^e[a++])];return-1^r},e.str=function(e){for(var r,n,a=-1,o=0,i=e.length;o<i;)(r=e.charCodeAt(o++))<128?a=a>>>8^t[255&(a^r)]:r<2048?a=(a=a>>>8^t[255&(a^(192|r>>6&31))])>>>8^t[255&(a^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),n=1023&e.charCodeAt(o++),a=(a=(a=(a=a>>>8^t[255&(a^(240|r>>8&7))])>>>8^t[255&(a^(128|r>>2&63))])>>>8^t[255&(a^(128|n>>6&15|3&r))])>>>8^t[255&(a^(128|63&n))]):a=(a=(a=a>>>8^t[255&(a^(224|r>>12&15))])>>>8^t[255&(a^(128|r>>6&63))])>>>8^t[255&(a^(128|63&r))];return-1^a}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(t):r({})},2744:function(e,t,r){"use strict";var n={};(0,r(9187).assign)(n,r(4395),r(578),r(2684)),e.exports=n},4395:function(e,t,r){"use strict";var n=r(7651),a=r(9187),o=r(8592),i=r(5604),s=r(249),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=a.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.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,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(i[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(i[r]);this._dict_set=!0}}function f(e,t){var r=new l(t);if(r.push(e,!0),r.err)throw r.msg||i[r.err];return r.result}l.prototype.push=function(e,t){var r,i,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;i=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new a.Buf8(l),s.next_out=0,s.avail_out=l),1!==(r=n.deflate(s,i))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(o.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===i?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==i||(this.onEnd(0),s.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=f,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},578:function(e,t,r){"use strict";var n=r(7823),a=r(9187),o=r(8592),i=r(2684),s=r(5604),c=r(249),l=r(9968),f=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==i.Z_OK)throw new Error(s[r]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===f.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==i.Z_OK))throw new Error(s[r])}function d(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}u.prototype.push=function(e,t){var r,s,c,l,u,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?i.Z_FINISH:i.Z_NO_FLUSH,"string"==typeof e?d.input=o.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new a.Buf8(h),d.next_out=0,d.avail_out=h),(r=n.inflate(d,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===i.Z_BUF_ERROR&&!0===y&&(r=i.Z_OK,y=!1),r!==i.Z_STREAM_END&&r!==i.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==i.Z_STREAM_END&&(0!==d.avail_in||s!==i.Z_FINISH&&s!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),l=d.next_out-c,u=o.buf2string(d.output,c),d.next_out=l,d.avail_out=h-l,l&&a.arraySet(d.output,d.output,c,l,0),this.onData(u)):this.onData(a.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==i.Z_STREAM_END);return r===i.Z_STREAM_END&&(s=i.Z_FINISH),s===i.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===i.Z_OK):s!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),d.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===i.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=u,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},9187:function(e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var a in r)n(r,a)&&(e[a]=r[a])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var o=0;o<n;o++)e[a+o]=t[r+o]},flattenChunks:function(e){var t,r,n,a,o,i;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),a=0,t=0,r=e.length;t<r;t++)o=e[t],i.set(o,a),a+=o.length;return i}},o={arraySet:function(e,t,r,n,a){for(var o=0;o<n;o++)e[a+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,a)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},8592:function(e,t,r){"use strict";var n=r(9187),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var i=new n.Buf8(256),s=0;s<256;s++)i[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}i[254]=i[254]=1,t.string2buf=function(e){var t,r,a,o,i,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(a=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(a-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),i=0,o=0;i<c;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(a=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(a-56320),o++),r<128?t[i++]=r:r<2048?(t[i++]=192|r>>>6,t[i++]=128|63&r):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|63&r):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|63&r);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},t.buf2string=function(e,t){var r,n,a,o,s=t||e.length,l=new Array(2*s);for(n=0,r=0;r<s;)if((a=e[r++])<128)l[n++]=a;else if((o=i[a])>4)l[n++]=65533,r+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&r<s;)a=a<<6|63&e[r++],o--;o>1?l[n++]=65533:a<65536?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}return c(l,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+i[e[r]]>t?r:t}},3693:function(e){"use strict";e.exports=function(e,t,r,n){for(var a=65535&e|0,o=e>>>16&65535|0,i=0;0!==r;){r-=i=r>2e3?2e3:r;do{o=o+(a=a+t[n++]|0)|0}while(--i);a%=65521,o%=65521}return a|o<<16|0}},2684:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(e){"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,a){var o=t,i=a+n;e^=-1;for(var s=a;s<i;s++)e=e>>>8^o[255&(e^r[s])];return-1^e}},7651:function(e,t,r){"use strict";var n,a=r(9187),o=r(8676),i=r(3693),s=r(8464),c=r(5604),l=-2,f=258,u=262,d=103,h=113,p=666;function y(e,t){return e.msg=c[t],t}function g(e){return(e<<1)-(e>4?9:0)}function _(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function m(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function A(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var r,n,a=e.max_chain_length,o=e.strstart,i=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,l=e.window,d=e.w_mask,h=e.prev,p=e.strstart+f,y=l[o+i-1],g=l[o+i];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(r=t)+i]===g&&l[r+i-1]===y&&l[r]===l[o]&&l[++r]===l[o+1]){o+=2,r++;do{}while(l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&o<p);if(n=f-(p-o),o=p-f,n>i){if(e.match_start=t,i=n,n>=s)break;y=l[o+i-1],g=l[o+i]}}}while((t=h[t&d])>c&&0!=--a);return i<=e.lookahead?i:e.lookahead}function E(e){var t,r,n,o,c,l,f,d,h,p,y=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=y+(y-u)){a.arraySet(e.window,e.window,y,y,0),e.match_start-=y,e.strstart-=y,e.block_start-=y,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=y?n-y:0}while(--r);t=r=y;do{n=e.prev[--t],e.prev[t]=n>=y?n-y:0}while(--r);o+=y}if(0===e.strm.avail_in)break;if(l=e.strm,f=e.window,d=e.strstart+e.lookahead,h=o,p=void 0,(p=l.avail_in)>h&&(p=h),r=0===p?0:(l.avail_in-=p,a.arraySet(f,l.input,l.next_in,p,d),1===l.state.wrap?l.adler=i(l.adler,f,p,d):2===l.state.wrap&&(l.adler=s(l.adler,f,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<u&&0!==e.strm.avail_in)}function I(e,t){for(var r,n;;){if(e.lookahead<u){if(E(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-u&&(e.match_length=w(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function S(e,t){for(var r,n,a;;){if(e.lookahead<u){if(E(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-u&&(e.match_length=w(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(m(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&m(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}function P(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function T(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(1146),this.dyn_dtree=new a.Buf16(122),this.bl_tree=new a.Buf16(78),_(this.dyn_ltree),_(this.dyn_dtree),_(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(16),this.heap=new a.Buf16(573),_(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(573),_(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 R(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):y(e,l)}function N(e){var t,r=R(e);return 0===r&&((t=e.state).window_size=2*t.w_size,_(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function U(e,t,r,n,o,i){if(!e)return l;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||i<0||i>4)return y(e,l);8===n&&(n=9);var c=new T;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new a.Buf8(2*c.w_size),c.head=new a.Buf16(c.hash_size),c.prev=new a.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new a.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=i,c.method=r,N(e)}n=[new P(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,m(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-u&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(m(e,!1),e.strm.avail_out),1)})),new P(4,4,8,4,I),new P(4,5,16,8,I),new P(4,6,32,32,I),new P(4,4,16,16,S),new P(8,16,32,32,S),new P(8,16,128,128,S),new P(8,32,128,256,S),new P(32,128,258,1024,S),new P(32,258,258,4096,S)],t.deflateInit=function(e,t){return U(e,t,8,15,8,0)},t.deflateInit2=U,t.deflateReset=N,t.deflateResetKeep=R,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var r,a,i,c;if(!e||!e.state||t>5||t<0)return e?y(e,l):l;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===p&&4!==t)return y(e,0===e.avail_out?-5:l);if(a.strm=e,r=a.last_flush,a.last_flush=t,42===a.status)if(2===a.wrap)e.adler=0,A(a,31),A(a,139),A(a,8),a.gzhead?(A(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),A(a,255&a.gzhead.time),A(a,a.gzhead.time>>8&255),A(a,a.gzhead.time>>16&255),A(a,a.gzhead.time>>24&255),A(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),A(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(A(a,255&a.gzhead.extra.length),A(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(A(a,0),A(a,0),A(a,0),A(a,0),A(a,0),A(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),A(a,3),a.status=h);else{var u=8+(a.w_bits-8<<4)<<8;u|=(a.strategy>=2||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(u|=32),u+=31-u%31,a.status=h,b(a,u),0!==a.strstart&&(b(a,e.adler>>>16),b(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(i=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),v(e),i=a.pending,a.pending!==a.pending_buf_size));)A(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){i=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),v(e),i=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,A(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),0===c&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){i=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),v(e),i=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,A(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>i&&(e.adler=s(e.adler,a.pending_buf,a.pending-i,i)),0===c&&(a.status=d)}else a.status=d;if(a.status===d&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&v(e),a.pending+2<=a.pending_buf_size&&(A(a,255&e.adler),A(a,e.adler>>8&255),e.adler=0,a.status=h)):a.status=h),0!==a.pending){if(v(e),0===e.avail_out)return a.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(r)&&4!==t)return y(e,-5);if(a.status===p&&0!==e.avail_in)return y(e,-5);if(0!==e.avail_in||0!==a.lookahead||0!==t&&a.status!==p){var w=2===a.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(a,t):3===a.strategy?function(e,t){for(var r,n,a,i,s=e.window;;){if(e.lookahead<=f){if(E(e),e.lookahead<=f&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){i=e.strstart+f;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<i);e.match_length=f-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(m(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(m(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(m(e,!1),0===e.strm.avail_out)?1:2}(a,t):n[a.level].func(a,t);if(3!==w&&4!==w||(a.status=p),1===w||3===w)return 0===e.avail_out&&(a.last_flush=-1),0;if(2===w&&(1===t?o._tr_align(a):5!==t&&(o._tr_stored_block(a,0,0,!1),3===t&&(_(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),v(e),0===e.avail_out))return a.last_flush=-1,0}return 4!==t?0:a.wrap<=0?1:(2===a.wrap?(A(a,255&e.adler),A(a,e.adler>>8&255),A(a,e.adler>>16&255),A(a,e.adler>>24&255),A(a,255&e.total_in),A(a,e.total_in>>8&255),A(a,e.total_in>>16&255),A(a,e.total_in>>24&255)):(b(a,e.adler>>>16),b(a,65535&e.adler)),v(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==h&&t!==p?y(e,l):(e.state=null,t===h?y(e,-3):0):l},t.deflateSetDictionary=function(e,t){var r,n,o,s,c,f,u,d,h=t.length;if(!e||!e.state)return l;if(2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return l;for(1===s&&(e.adler=i(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new a.Buf8(r.w_size),a.arraySet(d,t,h-r.w_size,r.w_size,0),t=d,h=r.w_size),c=e.avail_in,f=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,E(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,E(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=f,e.input=u,e.avail_in=c,r.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},9968:function(e){"use strict";e.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}},9365:function(e){"use strict";e.exports=function(e,t){var r,n,a,o,i,s,c,l,f,u,d,h,p,y,g,_,v,m,A,b,w,E,I,S,P;r=e.state,n=e.next_in,S=e.input,a=n+(e.avail_in-5),o=e.next_out,P=e.output,i=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,l=r.wsize,f=r.whave,u=r.wnext,d=r.window,h=r.hold,p=r.bits,y=r.lencode,g=r.distcode,_=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),m=y[h&_];t:for(;;){if(h>>>=A=m>>>24,p-=A,0===(A=m>>>16&255))P[o++]=65535&m;else{if(!(16&A)){if(0==(64&A)){m=y[(65535&m)+(h&(1<<A)-1)];continue t}if(32&A){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}b=65535&m,(A&=15)&&(p<A&&(h+=S[n++]<<p,p+=8),b+=h&(1<<A)-1,h>>>=A,p-=A),p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),m=g[h&v];r:for(;;){if(h>>>=A=m>>>24,p-=A,!(16&(A=m>>>16&255))){if(0==(64&A)){m=g[(65535&m)+(h&(1<<A)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(w=65535&m,p<(A&=15)&&(h+=S[n++]<<p,(p+=8)<A&&(h+=S[n++]<<p,p+=8)),(w+=h&(1<<A)-1)>c){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=A,p-=A,w>(A=o-i)){if((A=w-A)>f&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,I=d,0===u){if(E+=l-A,A<b){b-=A;do{P[o++]=d[E++]}while(--A);E=o-w,I=P}}else if(u<A){if(E+=l+u-A,(A-=u)<b){b-=A;do{P[o++]=d[E++]}while(--A);if(E=0,u<b){b-=A=u;do{P[o++]=d[E++]}while(--A);E=o-w,I=P}}}else if(E+=u-A,A<b){b-=A;do{P[o++]=d[E++]}while(--A);E=o-w,I=P}for(;b>2;)P[o++]=I[E++],P[o++]=I[E++],P[o++]=I[E++],b-=3;b&&(P[o++]=I[E++],b>1&&(P[o++]=I[E++]))}else{E=o-w;do{P[o++]=P[E++],P[o++]=P[E++],P[o++]=P[E++],b-=3}while(b>2);b&&(P[o++]=P[E++],b>1&&(P[o++]=P[E++]))}break}}break}}while(n<a&&o<s);n-=b=p>>3,h&=(1<<(p-=b<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=h,r.bits=p}},7823:function(e,t,r){"use strict";var n=r(9187),a=r(3693),o=r(8464),i=r(9365),s=r(6446),c=-2,l=12,f=30;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){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 h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):c}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):c}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):c}function g(e,t){var r,n;return e?(n=new d,e.state=n,n.window=null,0!==(r=y(e,t))&&(e.state=null),r):c}var _,v,m=!0;function A(e){if(m){var t;for(_=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),m=!1}e.lencode=_,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,r,a){var o,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new n.Buf8(i.wsize)),a>=i.wsize?(n.arraySet(i.window,t,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>a&&(o=a),n.arraySet(i.window,t,r-a,o,i.wnext),(a-=o)?(n.arraySet(i.window,t,r-a,a,0),i.wnext=a,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0}t.inflateReset=p,t.inflateReset2=y,t.inflateResetKeep=h,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var r,d,h,p,y,g,_,v,m,w,E,I,S,P,T,R,N,U,O,C,$,x,L,k,F=0,M=new n.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;(r=e.state).mode===l&&(r.mode=13),y=e.next_out,h=e.output,_=e.avail_out,p=e.next_in,d=e.input,g=e.avail_in,v=r.hold,m=r.bits,w=g,E=_,x=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;m<16;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(2&r.wrap&&35615===v){r.check=0,M[0]=255&v,M[1]=v>>>8&255,r.check=o(r.check,M,2,0),v=0,m=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=f;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=f;break}if(m-=4,$=8+(15&(v>>>=4)),0===r.wbits)r.wbits=$;else if($>r.wbits){e.msg="invalid window size",r.mode=f;break}r.dmax=1<<$,e.adler=r.check=1,r.mode=512&v?10:l,v=0,m=0;break;case 2:for(;m<16;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(r.flags=v,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=f;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=f;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(M[0]=255&v,M[1]=v>>>8&255,r.check=o(r.check,M,2,0)),v=0,m=0,r.mode=3;case 3:for(;m<32;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.head&&(r.head.time=v),512&r.flags&&(M[0]=255&v,M[1]=v>>>8&255,M[2]=v>>>16&255,M[3]=v>>>24&255,r.check=o(r.check,M,4,0)),v=0,m=0,r.mode=4;case 4:for(;m<16;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(M[0]=255&v,M[1]=v>>>8&255,r.check=o(r.check,M,2,0)),v=0,m=0,r.mode=5;case 5:if(1024&r.flags){for(;m<16;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(M[0]=255&v,M[1]=v>>>8&255,r.check=o(r.check,M,2,0)),v=0,m=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((I=r.length)>g&&(I=g),I&&(r.head&&($=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,p,I,$)),512&r.flags&&(r.check=o(r.check,d,I,p)),g-=I,p+=I,r.length-=I),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;I=0;do{$=d[p+I++],r.head&&$&&r.length<65536&&(r.head.name+=String.fromCharCode($))}while($&&I<g);if(512&r.flags&&(r.check=o(r.check,d,I,p)),g-=I,p+=I,$)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break e;I=0;do{$=d[p+I++],r.head&&$&&r.length<65536&&(r.head.comment+=String.fromCharCode($))}while($&&I<g);if(512&r.flags&&(r.check=o(r.check,d,I,p)),g-=I,p+=I,$)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;m<16;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(v!==(65535&r.check)){e.msg="header crc mismatch",r.mode=f;break}v=0,m=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=l;break;case 10:for(;m<32;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}e.adler=r.check=u(v),v=0,m=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=y,e.avail_out=_,e.next_in=p,e.avail_in=g,r.hold=v,r.bits=m,2;e.adler=r.check=1,r.mode=l;case l:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&m,m-=7&m,r.mode=27;break}for(;m<3;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}switch(r.last=1&v,m-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6===t){v>>>=2,m-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=f}v>>>=2,m-=2;break;case 14:for(v>>>=7&m,m-=7&m;m<32;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=f;break}if(r.length=65535&v,v=0,m=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(I=r.length){if(I>g&&(I=g),I>_&&(I=_),0===I)break e;n.arraySet(h,d,p,I,y),g-=I,p+=I,_-=I,y+=I,r.length-=I;break}r.mode=l;break;case 17:for(;m<14;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(r.nlen=257+(31&v),v>>>=5,m-=5,r.ndist=1+(31&v),v>>>=5,m-=5,r.ncode=4+(15&v),v>>>=4,m-=4,r.nlen>286||r.ndist>30){e.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(;m<3;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.lens[B[r.have++]]=7&v,v>>>=3,m-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},x=s(0,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,x){e.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(;R=(F=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,N=65535&F,!((T=F>>>24)<=m);){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(N<16)v>>>=T,m-=T,r.lens[r.have++]=N;else{if(16===N){for(k=T+2;m<k;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(v>>>=T,m-=T,0===r.have){e.msg="invalid bit length repeat",r.mode=f;break}$=r.lens[r.have-1],I=3+(3&v),v>>>=2,m-=2}else if(17===N){for(k=T+3;m<k;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}m-=T,$=0,I=3+(7&(v>>>=T)),v>>>=3,m-=3}else{for(k=T+7;m<k;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}m-=T,$=0,I=11+(127&(v>>>=T)),v>>>=7,m-=7}if(r.have+I>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=f;break}for(;I--;)r.lens[r.have++]=$}}if(r.mode===f)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=f;break}if(r.lenbits=9,L={bits:r.lenbits},x=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,x){e.msg="invalid literal/lengths set",r.mode=f;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},x=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,x){e.msg="invalid distances set",r.mode=f;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(g>=6&&_>=258){e.next_out=y,e.avail_out=_,e.next_in=p,e.avail_in=g,r.hold=v,r.bits=m,i(e,E),y=e.next_out,h=e.output,_=e.avail_out,p=e.next_in,d=e.input,g=e.avail_in,v=r.hold,m=r.bits,r.mode===l&&(r.back=-1);break}for(r.back=0;R=(F=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,N=65535&F,!((T=F>>>24)<=m);){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(R&&0==(240&R)){for(U=T,O=R,C=N;R=(F=r.lencode[C+((v&(1<<U+O)-1)>>U)])>>>16&255,N=65535&F,!(U+(T=F>>>24)<=m);){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}v>>>=U,m-=U,r.back+=U}if(v>>>=T,m-=T,r.back+=T,r.length=N,0===R){r.mode=26;break}if(32&R){r.back=-1,r.mode=l;break}if(64&R){e.msg="invalid literal/length code",r.mode=f;break}r.extra=15&R,r.mode=22;case 22:if(r.extra){for(k=r.extra;m<k;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;R=(F=r.distcode[v&(1<<r.distbits)-1])>>>16&255,N=65535&F,!((T=F>>>24)<=m);){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(0==(240&R)){for(U=T,O=R,C=N;R=(F=r.distcode[C+((v&(1<<U+O)-1)>>U)])>>>16&255,N=65535&F,!(U+(T=F>>>24)<=m);){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}v>>>=U,m-=U,r.back+=U}if(v>>>=T,m-=T,r.back+=T,64&R){e.msg="invalid distance code",r.mode=f;break}r.offset=N,r.extra=15&R,r.mode=24;case 24:if(r.extra){for(k=r.extra;m<k;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=f;break}r.mode=25;case 25:if(0===_)break e;if(I=E-_,r.offset>I){if((I=r.offset-I)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=f;break}I>r.wnext?(I-=r.wnext,S=r.wsize-I):S=r.wnext-I,I>r.length&&(I=r.length),P=r.window}else P=h,S=y-r.offset,I=r.length;I>_&&(I=_),_-=I,r.length-=I;do{h[y++]=P[S++]}while(--I);0===r.length&&(r.mode=21);break;case 26:if(0===_)break e;h[y++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;m<32;){if(0===g)break e;g--,v|=d[p++]<<m,m+=8}if(E-=_,e.total_out+=E,r.total+=E,E&&(e.adler=r.check=r.flags?o(r.check,h,E,y-E):a(r.check,h,E,y-E)),E=_,(r.flags?v:u(v))!==r.check){e.msg="incorrect data check",r.mode=f;break}v=0,m=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;m<32;){if(0===g)break e;g--,v+=d[p++]<<m,m+=8}if(v!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=f;break}v=0,m=0}r.mode=29;case 29:x=1;break e;case f:x=-3;break e;case 31:return-4;case 32:default:return c}return e.next_out=y,e.avail_out=_,e.next_in=p,e.avail_in=g,r.hold=v,r.bits=m,(r.wsize||E!==e.avail_out&&r.mode<f&&(r.mode<27||4!==t))&&b(e,e.output,e.next_out,E-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,E-=e.avail_out,e.total_in+=w,e.total_out+=E,r.total+=E,r.wrap&&E&&(e.adler=r.check=r.flags?o(r.check,h,E,e.next_out-E):a(r.check,h,E,e.next_out-E)),e.data_type=r.bits+(r.last?64:0)+(r.mode===l?128:0)+(20===r.mode||15===r.mode?256:0),(0===w&&0===E||4===t)&&0===x&&(x=-5),x)},t.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?c:(r.head=t,t.done=!1,0):c},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?c:11===r.mode&&a(1,t,n,0)!==r.check?-3:b(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):c},t.inflateInfo="pako inflate (from Nodeca project)"},6446:function(e,t,r){"use strict";var n=r(9187),a=15,o=[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],i=[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],s=[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],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,l,f,u,d,h){var p,y,g,_,v,m,A,b,w,E=h.bits,I=0,S=0,P=0,T=0,R=0,N=0,U=0,O=0,C=0,$=0,x=null,L=0,k=new n.Buf16(16),F=new n.Buf16(16),M=null,B=0;for(I=0;I<=a;I++)k[I]=0;for(S=0;S<l;S++)k[t[r+S]]++;for(R=E,T=a;T>=1&&0===k[T];T--);if(R>T&&(R=T),0===T)return f[u++]=20971520,f[u++]=20971520,h.bits=1,0;for(P=1;P<T&&0===k[P];P++);for(R<P&&(R=P),O=1,I=1;I<=a;I++)if(O<<=1,(O-=k[I])<0)return-1;if(O>0&&(0===e||1!==T))return-1;for(F[1]=0,I=1;I<a;I++)F[I+1]=F[I]+k[I];for(S=0;S<l;S++)0!==t[r+S]&&(d[F[t[r+S]]++]=S);if(0===e?(x=M=d,m=19):1===e?(x=o,L-=257,M=i,B-=257,m=256):(x=s,M=c,m=-1),$=0,S=0,I=P,v=u,N=R,U=0,g=-1,_=(C=1<<R)-1,1===e&&C>852||2===e&&C>592)return 1;for(;;){A=I-U,d[S]<m?(b=0,w=d[S]):d[S]>m?(b=M[B+d[S]],w=x[L+d[S]]):(b=96,w=0),p=1<<I-U,P=y=1<<N;do{f[v+($>>U)+(y-=p)]=A<<24|b<<16|w|0}while(0!==y);for(p=1<<I-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,S++,0==--k[I]){if(I===T)break;I=t[r+d[S]]}if(I>R&&($&_)!==g){for(0===U&&(U=R),v+=P,O=1<<(N=I-U);N+U<T&&!((O-=k[N+U])<=0);)N++,O<<=1;if(C+=1<<N,1===e&&C>852||2===e&&C>592)return 1;f[g=$&_]=R<<24|N<<16|v-u|0}}return 0!==$&&(f[v+$]=I-U<<24|64<<16|0),h.bits=R,0}},5604:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(e,t,r){"use strict";var n=r(9187);function a(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,i=286,s=30,c=15,l=[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],f=[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],u=[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],h=new Array(576);a(h);var p=new Array(60);a(p);var y=new Array(512);a(y);var g=new Array(256);a(g);var _=new Array(29);a(_);var v,m,A,b=new Array(s);function w(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?y[e]:y[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function T(e,t,r){P(e,r[2*t],r[2*t+1])}function R(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function N(e,t,r){var n,a,o=new Array(16),i=0;for(n=1;n<=c;n++)o[n]=i=i+r[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=R(o[s]++,s))}}function U(e){var t;for(t=0;t<i;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function C(e,t,r,n){var a=2*t,o=2*r;return e[a]<e[o]||e[a]===e[o]&&n[t]<=n[r]}function $(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&C(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!C(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function x(e,t,r){var n,a,i,s,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],a=e.pending_buf[e.l_buf+c],c++,0===n?T(e,a,t):(T(e,(i=g[a])+o+1,t),0!==(s=l[i])&&P(e,a-=_[i],s),T(e,i=I(--n),r),0!==(s=f[i])&&P(e,n-=b[i],s))}while(c<e.last_lit);T(e,256,t)}function L(e,t){var r,n,a,o=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(a=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=i[2*a+1]);for(t.max_code=f,r=e.heap_len>>1;r>=1;r--)$(e,o,r);a=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*a]=o[2*r]+o[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=a,e.heap[1]=a++,$(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,a,o,i,s,l=t.dyn_tree,f=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,y=t.stat_desc.max_length,g=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)>y&&(o=y,g++),l[2*n+1]=o,n>f||(e.bl_count[o]++,i=0,n>=p&&(i=h[n-p]),s=l[2*n],e.opt_len+=s*(o+i),d&&(e.static_len+=s*(u[2*n+1]+i)));if(0!==g){do{for(o=y-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[y]--,g-=2}while(g>0);for(o=y;0!==o;o--)for(n=e.bl_count[o];0!==n;)(a=e.heap[--r])>f||(l[2*a+1]!==o&&(e.opt_len+=(o-l[2*a+1])*l[2*a],l[2*a+1]=o),n--)}}(e,t),N(o,f,e.bl_count)}function k(e,t,r){var n,a,o=-1,i=t[1],s=0,c=7,l=4;for(0===i&&(c=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=i,i=t[2*(n+1)+1],++s<c&&a===i||(s<l?e.bl_tree[2*a]+=s:0!==a?(a!==o&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=a,0===i?(c=138,l=3):a===i?(c=6,l=3):(c=7,l=4))}function F(e,t,r){var n,a,o=-1,i=t[1],s=0,c=7,l=4;for(0===i&&(c=138,l=3),n=0;n<=r;n++)if(a=i,i=t[2*(n+1)+1],!(++s<c&&a===i)){if(s<l)do{T(e,a,e.bl_tree)}while(0!=--s);else 0!==a?(a!==o&&(T(e,a,e.bl_tree),s--),T(e,16,e.bl_tree),P(e,s-3,2)):s<=10?(T(e,17,e.bl_tree),P(e,s-3,3)):(T(e,18,e.bl_tree),P(e,s-11,7));s=0,o=a,0===i?(c=138,l=3):a===i?(c=6,l=3):(c=7,l=4)}}a(b);var M=!1;function B(e,t,r,a){P(e,0+(a?1:0),3),function(e,t,r,a){O(e),a&&(S(e,r),S(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}t._tr_init=function(e){M||(!function(){var e,t,r,n,a,o=new Array(16);for(r=0,n=0;n<28;n++)for(_[n]=r,e=0;e<1<<l[n];e++)g[r++]=n;for(g[r-1]=n,a=0,n=0;n<16;n++)for(b[n]=a,e=0;e<1<<f[n];e++)y[a++]=n;for(a>>=7;n<s;n++)for(b[n]=a<<7,e=0;e<1<<f[n]-7;e++)y[256+a++]=n;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,o[8]++;for(;e<=255;)h[2*e+1]=9,e++,o[9]++;for(;e<=279;)h[2*e+1]=7,e++,o[7]++;for(;e<=287;)h[2*e+1]=8,e++,o[8]++;for(N(h,287,o),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=R(e,5);v=new w(h,l,257,i,c),m=new w(p,f,0,s,c),A=new w(new Array(0),u,0,19,7)}(),M=!0),e.l_desc=new E(e.dyn_ltree,v),e.d_desc=new E(e.dyn_dtree,m),e.bl_desc=new E(e.bl_tree,A),e.bi_buf=0,e.bi_valid=0,U(e)},t._tr_stored_block=B,t._tr_flush_block=function(e,t,r,n){var a,i,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),s=function(e){var t;for(k(e,e.dyn_ltree,e.l_desc.max_code),k(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=r+5,r+4<=a&&-1!==t?B(e,t,r,n):4===e.strategy||i===a?(P(e,2+(n?1:0),3),x(e,h,p)):(P(e,4+(n?1:0),3),function(e,t,r,n){var a;for(P(e,t-257,5),P(e,r-1,5),P(e,n-4,4),a=0;a<n;a++)P(e,e.bl_tree[2*d[a]+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),x(e,e.dyn_ltree,e.dyn_dtree)),U(e),n&&O(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+o+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){P(e,2,3),T(e,256,h),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},249:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(e){e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,r="",n="",a=0;a<e.length;a++){var o=e[a];if(t)o?n+=String.fromCharCode(o):t=!1;else{if(!o)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");r+=String.fromCharCode(o)}}return{keyword:n,text:r}}},9686:function(e){e.exports=function(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var r,n=e.length+t.length+1,a=new Uint8Array(n),o=0,i=0;i<e.length;i++){if(!(r=e.charCodeAt(i)))throw new Error("0x00 character is not permitted in tEXt keywords");a[o++]=r}a[o++]=0;for(var s=0;s<t.length;s++){if(!(r=t.charCodeAt(s)))throw new Error("0x00 character is not permitted in tEXt content");a[o++]=r}return{name:"tEXt",data:a}}},1194:function(e,t,r){t.encode=r(9686),t.decode=r(9066)},3434:function(e,t,r){var n=r(5714),a=r(6233);e.exports=function(e){var t,r=8,c=r;for(t=0;t<e.length;t++)r+=e[t].data.length,r+=12;var l=new Uint8Array(r);for(l[0]=137,l[1]=80,l[2]=78,l[3]=71,l[4]=13,l[5]=10,l[6]=26,l[7]=10,t=0;t<e.length;t++){var f=e[t],u=f.name,d=f.data,h=d.length,p=[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3)];s[0]=h,l[c++]=o[3],l[c++]=o[2],l[c++]=o[1],l[c++]=o[0],l[c++]=p[0],l[c++]=p[1],l[c++]=p[2],l[c++]=p[3];for(var y=0;y<h;)l[c++]=d[y++];var g=p.concat(n(d)),_=a.buf(g);i[0]=_,l[c++]=o[3],l[c++]=o[2],l[c++]=o[1],l[c++]=o[0]}return l};var o=new Uint8Array(4),i=new Int32Array(o.buffer),s=new Uint32Array(o.buffer)},2983:function(e,t,r){var n=r(6233);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");var t=!1,r=[],s=8;for(;s<e.length;){a[3]=e[s++],a[2]=e[s++],a[1]=e[s++],a[0]=e[s++];var c=i[0]+4,l=new Uint8Array(c);l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++];var f=String.fromCharCode(l[0])+String.fromCharCode(l[1])+String.fromCharCode(l[2])+String.fromCharCode(l[3]);if(!r.length&&"IHDR"!==f)throw new Error("IHDR header missing");if("IEND"===f){t=!0,r.push({name:f,data:new Uint8Array(0)});break}for(var u=4;u<c;u++)l[u]=e[s++];a[3]=e[s++],a[2]=e[s++],a[1]=e[s++],a[0]=e[s++];var d=o[0];if(n.buf(l)!==d)throw new Error("CRC values for "+f+" header do not match, PNG file is likely corrupted");var h=new Uint8Array(l.buffer.slice(4));r.push({name:f,data:h})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return r};var a=new Uint8Array(4),o=new Int32Array(a.buffer),i=new Uint32Array(a.buffer)},5714:function(e){e.exports=function(e,t,r){var n=[],a=e.length;if(0===a)return n;var o=t<0?Math.max(0,t+a):t||0;for(void 0!==r&&(a=r<0?r+a:r);a-- >o;)n[a-o]=e[a];return n}},5756:function(e,t,r){"use strict";r.r(t);const n=async(e,t,r=e.name)=>{const a=[],o=[];for await(const i of e.values()){const s=`${r}/${i.name}`;"file"===i.kind?o.push(i.getFile().then((t=>(t.directoryHandle=e,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>s}))))):"directory"===i.kind&&t&&a.push(n(i,t,s))}return[...(await Promise.all(a)).flat(),...await Promise.all(o)]};t.default=async(e={})=>{e.recursive=e.recursive||!1;const t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return n(t,e.recursive)}},6629:function(e,t,r){"use strict";r.r(t);const n=async e=>{const t=await e.getFile();return t.handle=e,t};t.default=async(e=[{}])=>{Array.isArray(e)||(e=[e]);const t=[];e.forEach(((e,r)=>{t[r]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map((n=>{t[r].accept[n]=e.extensions||[]})):t[r].accept["*/*"]=e.extensions||[]}));const r=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),a=await Promise.all(r.map(n));return e[0].multiple?a:a[0]}},4868:function(e,t,r){"use strict";r.r(t),t.default=async(e,t=[{}],r=null,n=!1)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";const a=[];if(t.forEach(((t,r)=>{a[r]={description:t.description||"",accept:{}},t.mimeTypes?(0===r&&t.mimeTypes.push(e.type),t.mimeTypes.map((e=>{a[r].accept[e]=t.extensions||[]}))):a[r].accept[e.type]=t.extensions||[]})),r)try{await r.getFile()}catch(e){if(r=null,n)throw e}const o=r||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:a,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=await o.createWritable();return await i.write(e),await i.close(),o}},8396:function(e,t,r){"use strict";r.r(t),t.default=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise(((t,r)=>{const n=document.createElement("input");n.type="file",n.webkitdirectory=!0;const a=e=>{"function"==typeof o&&o(),t(e)},o=e[0].legacySetup&&e[0].legacySetup(a,(()=>o(r)),n);n.addEventListener("change",(()=>{a(n.multiple?Array.from(n.files):n.files[0])})),n.addEventListener("change",(()=>{let t=Array.from(n.files);e[0].recursive||(t=t.filter((e=>2===e.webkitRelativePath.split("/").length))),a(t)})),n.click()})))},3112:function(e,t,r){"use strict";r.r(t),t.default=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise(((t,r)=>{const n=document.createElement("input");n.type="file";const a=[...e.map((e=>e.mimeTypes||[])).join(),e.map((e=>e.extensions||[])).join()].join();n.multiple=e[0].multiple||!1,n.accept=a||"";const o=e=>{"function"==typeof i&&i(),t(e)},i=e[0].legacySetup&&e[0].legacySetup(o,(()=>i(r)),n);n.addEventListener("change",(()=>{o(n.multiple?Array.from(n.files):n.files[0])})),n.click()})))},6882:function(e,t,r){"use strict";r.r(t),t.default=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);const r=document.createElement("a");r.download=t.fileName||"Untitled",r.href=URL.createObjectURL(e);const n=e=>{"function"==typeof a&&a(),resolve(e)},a=t.legacySetup&&t.legacySetup(n,(()=>a(reject)),r);return r.addEventListener("click",(()=>{setTimeout((()=>URL.revokeObjectURL(r.href)),3e4),n(null)})),r.click(),null}},9987:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";function _mergeNamespaces(e,t){return t.forEach((function(t){Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}function ownKeys$1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$1(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return imageCompression}});var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var check=function(e){return e&&e.Math==Math&&e},global$1=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),isPure=!1,setGlobal=function(e,t){try{Object.defineProperty(global$1,e,{value:t,configurable:!0,writable:!0})}catch(r){global$1[e]=t}return t},SHARED="__core-js_shared__",store$1=global$1[SHARED]||setGlobal(SHARED,{}),sharedStore=store$1,shared=createCommonjsModule((function(e){(e.exports=function(e,t){return sharedStore[e]||(sharedStore[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),requireObjectCoercible=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},toObject=function(e){return Object(requireObjectCoercible(e))},hasOwnProperty={}.hasOwnProperty,has$1=Object.hasOwn||function(e,t){return hasOwnProperty.call(toObject(e),t)},id=0,postfix=Math.random(),uid=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++id+postfix).toString(36)},isCallable=function(e){return"function"==typeof e},aFunction=function(e){return isCallable(e)?e:void 0},getBuiltIn=function(e,t){return arguments.length<2?aFunction(global$1[e]):global$1[e]&&global$1[e][t]},engineUserAgent=getBuiltIn("navigator","userAgent")||"",process$3=global$1.process,Deno=global$1.Deno,versions=process$3&&process$3.versions||Deno&&Deno.version,v8=versions&&versions.v8,match,version;v8?(match=v8.split("."),version=match[0]<4?1:match[0]+match[1]):engineUserAgent&&(match=engineUserAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=engineUserAgent.match(/Chrome\/(\d+)/),match&&(version=match[1])));var engineV8Version=version&&+version,fails=function(e){try{return!!e()}catch(e){return!0}},nativeSymbol=!!Object.getOwnPropertySymbols&&!fails((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&engineV8Version&&engineV8Version<41})),useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WellKnownSymbolsStore=shared("wks"),Symbol$1=global$1.Symbol,createWellKnownSymbol=useSymbolAsUid?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid,wellKnownSymbol=function(e){return has$1(WellKnownSymbolsStore,e)&&(nativeSymbol||"string"==typeof WellKnownSymbolsStore[e])||(nativeSymbol&&has$1(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},TO_STRING_TAG$4=wellKnownSymbol("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),descriptors=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),isObject=function(e){return"object"==typeof e?null!==e:isCallable(e)},document$3=global$1.document,EXISTS$1=isObject(document$3)&&isObject(document$3.createElement),documentCreateElement=function(e){return EXISTS$1?document$3.createElement(e):{}},ie8DomDefine=!descriptors&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),anObject=function(e){if(isObject(e))return e;throw TypeError(String(e)+" is not an object")},isSymbol=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn("Symbol");return isCallable(t)&&Object(e)instanceof t},tryToString=function(e){try{return String(e)}catch(e){return"Object"}},aCallable=function(e){if(isCallable(e))return e;throw TypeError(tryToString(e)+" is not a function")},getMethod=function(e,t){var r=e[t];return null==r?void 0:aCallable(r)},ordinaryToPrimitive=function(e,t){var r,n;if("string"===t&&isCallable(r=e.toString)&&!isObject(n=r.call(e)))return n;if(isCallable(r=e.valueOf)&&!isObject(n=r.call(e)))return n;if("string"!==t&&isCallable(r=e.toString)&&!isObject(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),toPrimitive=function(e,t){if(!isObject(e)||isSymbol(e))return e;var r,n=getMethod(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=n.call(e,t),!isObject(r)||isSymbol(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPropertyKey=function(e){var t=toPrimitive(e,"string");return isSymbol(t)?t:String(t)},$defineProperty=Object.defineProperty,f$5=descriptors?$defineProperty:function(e,t,r){if(anObject(e),t=toPropertyKey(t),anObject(r),ie8DomDefine)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e},objectDefineProperty={f:f$5},createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},createNonEnumerableProperty=descriptors?function(e,t,r){return objectDefineProperty.f(e,t,createPropertyDescriptor(1,r))}:function(e,t,r){return e[t]=r,e},functionToString=Function.toString;isCallable(sharedStore.inspectSource)||(sharedStore.inspectSource=function(e){return functionToString.call(e)});var inspectSource=sharedStore.inspectSource,WeakMap$1=global$1.WeakMap,nativeWeakMap=isCallable(WeakMap$1)&&/native code/.test(inspectSource(WeakMap$1)),keys$2=shared("keys"),sharedKey=function(e){return keys$2[e]||(keys$2[e]=uid(e))},hiddenKeys$1={},OBJECT_ALREADY_INITIALIZED="Object already initialized",WeakMap=global$1.WeakMap,set$2,get$1,has,enforce=function(e){return has(e)?get$1(e):set$2(e,{})},getterFor=function(e){return function(t){var r;if(!isObject(t)||(r=get$1(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(nativeWeakMap||sharedStore.state){var store=sharedStore.state||(sharedStore.state=new WeakMap),wmget=store.get,wmhas=store.has,wmset=store.set;set$2=function(e,t){if(wmhas.call(store,e))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset.call(store,e,t),t},get$1=function(e){return wmget.call(store,e)||{}},has=function(e){return wmhas.call(store,e)}}else{var STATE=sharedKey("state");hiddenKeys$1[STATE]=!0,set$2=function(e,t){if(has$1(e,STATE))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty(e,STATE,t),t},get$1=function(e){return has$1(e,STATE)?e[STATE]:{}},has=function(e){return has$1(e,STATE)}}var internalState={set:set$2,get:get$1,has:has,enforce:enforce,getterFor:getterFor},FunctionPrototype$1=Function.prototype,getDescriptor=descriptors&&Object.getOwnPropertyDescriptor,EXISTS=has$1(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!descriptors||descriptors&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},redefine=createCommonjsModule((function(e){var t=functionName.CONFIGURABLE,r=internalState.get,n=internalState.enforce,a=String(String).split("String");(e.exports=function(e,r,o,i){var s,c=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet,u=i&&void 0!==i.name?i.name:r;isCallable(o)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!has$1(o,"name")||t&&o.name!==u)&&createNonEnumerableProperty(o,"name",u),(s=n(o)).source||(s.source=a.join("string"==typeof u?u:""))),e!==global$1?(c?!f&&e[r]&&(l=!0):delete e[r],l?e[r]=o:createNonEnumerableProperty(e,r,o)):l?e[r]=o:setGlobal(r,o)})(Function.prototype,"toString",(function(){return isCallable(this)&&r(this).source||inspectSource(this)}))})),toString$1={}.toString,classofRaw=function(e){return toString$1.call(e).slice(8,-1)},TO_STRING_TAG$3=wellKnownSymbol("toStringTag"),CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof=toStringTagSupport?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=Object(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(n=classofRaw(t))&&isCallable(t.callee)?"Arguments":n},objectToString=toStringTagSupport?{}.toString:function(){return"[object "+classof(this)+"]"};toStringTagSupport||redefine(Object.prototype,"toString",objectToString,{unsafe:!0});var $propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$4&&!$propertyIsEnumerable.call({1:2},1),f$4=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$4(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable,objectPropertyIsEnumerable={f:f$4},split="".split,indexedObject=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==classofRaw(e)?split.call(e,""):Object(e)}:Object,toIndexedObject=function(e){return indexedObject(requireObjectCoercible(e))},$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,f$3=descriptors?$getOwnPropertyDescriptor:function(e,t){if(e=toIndexedObject(e),t=toPropertyKey(t),ie8DomDefine)try{return $getOwnPropertyDescriptor(e,t)}catch(e){}if(has$1(e,t))return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(e,t),e[t])},objectGetOwnPropertyDescriptor={f:f$3},ceil=Math.ceil,floor$7=Math.floor,toInteger=function(e){return isNaN(e=+e)?0:(e>0?floor$7:ceil)(e)},min$6=Math.min,toLength=function(e){return e>0?min$6(toInteger(e),9007199254740991):0},max$2=Math.max,min$5=Math.min,toAbsoluteIndex=function(e,t){var r=toInteger(e);return r<0?max$2(r+t,0):min$5(r,t)},createMethod$5=function(e){return function(t,r,n){var a,o=toIndexedObject(t),i=toLength(o.length),s=toAbsoluteIndex(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$5(!0),indexOf:createMethod$5(!1)},indexOf=arrayIncludes.indexOf,objectKeysInternal=function(e,t){var r,n=toIndexedObject(e),a=0,o=[];for(r in n)!has$1(hiddenKeys$1,r)&&has$1(n,r)&&o.push(r);for(;t.length>a;)has$1(n,r=t[a++])&&(~indexOf(o,r)||o.push(r));return o},enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hiddenKeys=enumBugKeys.concat("length","prototype"),f$2=Object.getOwnPropertyNames||function(e){return objectKeysInternal(e,hiddenKeys)},objectGetOwnPropertyNames={f:f$2},f$1=Object.getOwnPropertySymbols,objectGetOwnPropertySymbols={f:f$1},ownKeys=getBuiltIn("Reflect","ownKeys")||function(e){var t=objectGetOwnPropertyNames.f(anObject(e)),r=objectGetOwnPropertySymbols.f;return r?t.concat(r(e)):t},copyConstructorProperties=function(e,t){for(var r=ownKeys(t),n=objectDefineProperty.f,a=objectGetOwnPropertyDescriptor.f,o=0;o<r.length;o++){var i=r[o];has$1(e,i)||n(e,i,a(t,i))}},replacement=/#|\.prototype\./,isForced=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable(t)?fails(t):!!t)},normalize=isForced.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P",isForced_1=isForced,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor.f,_export=function(e,t){var r,n,a,o,i,s=e.target,c=e.global,l=e.stat;if(r=c?global$1:l?global$1[s]||setGlobal(s,{}):(global$1[s]||{}).prototype)for(n in t){if(o=t[n],a=e.noTargetGet?(i=getOwnPropertyDescriptor$3(r,n))&&i.value:r[n],!isForced_1(c?n:s+(l?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;copyConstructorProperties(o,a)}(e.sham||a&&a.sham)&&createNonEnumerableProperty(o,"sham",!0),redefine(r,n,o,e)}},nativePromiseConstructor=global$1.Promise,redefineAll=function(e,t,r){for(var n in t)redefine(e,n,t[n],r);return e},aPossiblePrototype=function(e){if("object"==typeof e||isCallable(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")},objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject(r),aPossiblePrototype(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),defineProperty$5=objectDefineProperty.f,TO_STRING_TAG$2=wellKnownSymbol("toStringTag"),setToStringTag=function(e,t,r){e&&!has$1(e=r?e:e.prototype,TO_STRING_TAG$2)&&defineProperty$5(e,TO_STRING_TAG$2,{configurable:!0,value:t})},SPECIES$6=wellKnownSymbol("species"),setSpecies=function(e){var t=getBuiltIn(e),r=objectDefineProperty.f;descriptors&&t&&!t[SPECIES$6]&&r(t,SPECIES$6,{configurable:!0,get:function(){return this}})},anInstance=function(e,t,r){if(e instanceof t)return e;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")},iterators={},ITERATOR$8=wellKnownSymbol("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod=function(e){return void 0!==e&&(iterators.Array===e||ArrayPrototype$1[ITERATOR$8]===e)},functionBindContext=function(e,t,r){if(aCallable(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}},ITERATOR$7=wellKnownSymbol("iterator"),getIteratorMethod=function(e){if(null!=e)return getMethod(e,ITERATOR$7)||getMethod(e,"@@iterator")||iterators[classof(e)]},getIterator=function(e,t){var r=arguments.length<2?getIteratorMethod(e):t;if(aCallable(r))return anObject(r.call(e));throw TypeError(String(e)+" is not iterable")},iteratorClose=function(e,t,r){var n,a;anObject(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=n.call(e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return anObject(n),r},Result=function(e,t){this.stopped=e,this.result=t},iterate=function(e,t,r){var n,a,o,i,s,c,l,f=r&&r.that,u=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=functionBindContext(t,f,1+u+h),y=function(e){return n&&iteratorClose(n,"normal",e),new Result(!0,e)},g=function(e){return u?(anObject(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)n=e;else{if(!(a=getIteratorMethod(e)))throw TypeError(String(e)+" is not iterable");if(isArrayIteratorMethod(a)){for(o=0,i=toLength(e.length);i>o;o++)if((s=g(e[o]))&&s instanceof Result)return s;return new Result(!1)}n=getIterator(e,a)}for(c=n.next;!(l=c.call(n)).done;){try{s=g(l.value)}catch(e){iteratorClose(n,"throw",e)}if("object"==typeof s&&s&&s instanceof Result)return s}return new Result(!1)},ITERATOR$6=wellKnownSymbol("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$6]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR$6]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},empty=[],construct=getBuiltIn("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=constructorRegExp.exec,INCORRECT_TO_STRING=!constructorRegExp.exec((function(){})),isConstructorModern=function(e){if(!isCallable(e))return!1;try{return construct(Object,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable(e))return!1;switch(classof(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return INCORRECT_TO_STRING||!!exec.call(constructorRegExp,inspectSource(e))},isConstructor=!construct||fails((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,aConstructor=function(e){if(isConstructor(e))return e;throw TypeError(tryToString(e)+" is not a constructor")},SPECIES$5=wellKnownSymbol("species"),speciesConstructor=function(e,t){var r,n=anObject(e).constructor;return void 0===n||null==(r=anObject(n)[SPECIES$5])?t:aConstructor(r)},html=getBuiltIn("document","documentElement"),engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent),engineIsNode="process"==classofRaw(global$1.process),set$1=global$1.setImmediate,clear=global$1.clearImmediate,process$2=global$1.process,MessageChannel=global$1.MessageChannel,Dispatch=global$1.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",location,defer,channel,port;try{location=global$1.location}catch(e){}var run=function(e){if(queue.hasOwnProperty(e)){var t=queue[e];delete queue[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$1.postMessage(String(e),location.protocol+"//"+location.host)};set$1&&clear||(set$1=function(e){for(var t=[],r=arguments.length,n=1;r>n;)t.push(arguments[n++]);return queue[++counter]=function(){(isCallable(e)?e:Function(e)).apply(void 0,t)},defer(counter),counter},clear=function(e){delete queue[e]},engineIsNode?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!engineIsIos?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listener,defer=functionBindContext(port.postMessage,port,1)):global$1.addEventListener&&isCallable(global$1.postMessage)&&!global$1.importScripts&&location&&"file:"!==location.protocol&&!fails(post)?(defer=post,global$1.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in documentCreateElement("script")?function(e){html.appendChild(documentCreateElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var task$1={set:set$1,clear:clear},engineIsIosPebble=/ipad|iphone|ipod/i.test(engineUserAgent)&&void 0!==global$1.Pebble,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(engineUserAgent),getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,MutationObserver=global$1.MutationObserver||global$1.WebKitMutationObserver,document$2=global$1.document,process$1=global$1.process,Promise$1=global$1.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$2(global$1,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,flush,head,last,notify$1,toggle,node,promise,then;queueMicrotask||(flush=function(){var e,t;for(engineIsNode&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},engineIsIos||engineIsNode||engineIsWebosWebkit||!MutationObserver||!document$2?!engineIsIosPebble&&Promise$1&&Promise$1.resolve?(promise=Promise$1.resolve(void 0),promise.constructor=Promise$1,then=promise.then,notify$1=function(){then.call(promise,flush)}):notify$1=engineIsNode?function(){process$1.nextTick(flush)}:function(){macrotask.call(global$1,flush)}:(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}));var microtask=queueMicrotask||function(e){var t={fn:e,next:void 0};last&&(last.next=t),head||(head=t,notify$1()),last=t},PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable(t),this.reject=aCallable(r)},f=function(e){return new PromiseCapability(e)},newPromiseCapability$1={f:f},promiseResolve=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;var r=newPromiseCapability$1.f(e);return(0,r.resolve)(t),r.promise},hostReportErrors=function(e,t){var r=global$1.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))},perform=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},engineIsBrowser="object"==typeof window,task=task$1.set,SPECIES$4=wellKnownSymbol("species"),PROMISE="Promise",getInternalState$4=internalState.get,setInternalState$5=internalState.set,getInternalPromiseState=internalState.getterFor(PROMISE),NativePromisePrototype=nativePromiseConstructor&&nativePromiseConstructor.prototype,PromiseConstructor=nativePromiseConstructor,PromiseConstructorPrototype=NativePromisePrototype,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability=newPromiseCapability$1.f,newGenericPromiseCapability=newPromiseCapability,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),NATIVE_REJECTION_EVENT=isCallable(global$1.PromiseRejectionEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,SUBCLASSING=!1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,FORCED$6=isForced_1(PROMISE,(function(){var e=inspectSource(PromiseConstructor),t=e!==String(PromiseConstructor);if(!t&&66===engineV8Version)return!0;if(engineV8Version>=51&&/native code/.test(e))return!1;var r=new PromiseConstructor((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[SPECIES$4]=n,!(SUBCLASSING=r.then((function(){}))instanceof n)||!t&&engineIsBrowser&&!NATIVE_REJECTION_EVENT})),INCORRECT_ITERATION=FORCED$6||!checkCorrectnessOfIteration((function(e){PromiseConstructor.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!isObject(e)||!isCallable(t=e.then))&&t},notify=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;microtask((function(){for(var n=e.value,a=e.state==FULFILLED,o=0;r.length>o;){var i,s,c,l=r[o++],f=a?l.ok:l.fail,u=l.resolve,d=l.reject,h=l.domain;try{f?(a||(e.rejection===UNHANDLED&&onHandleUnhandled(e),e.rejection=HANDLED),!0===f?i=n:(h&&h.enter(),i=f(n),h&&(h.exit(),c=!0)),i===l.promise?d(TypeError$1("Promise-chain cycle")):(s=isThenable(i))?s.call(i,u,d):u(i)):d(n)}catch(e){h&&!c&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&onUnhandled(e)}))}},dispatchEvent=function(e,t,r){var n,a;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$1.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_REJECTION_EVENT&&(a=global$1["on"+e])?a(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){task.call(global$1,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform((function(){engineIsNode?process.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=engineIsNode||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){task.call(global$1,(function(){var t=e.facade;engineIsNode?process.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$1("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{n.call(t,bind(internalResolve,r,e),bind(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};if(FORCED$6&&(PromiseConstructor=function(e){anInstance(this,PromiseConstructor,PROMISE),aCallable(e),Internal.call(this);var t=getInternalState$4(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}},PromiseConstructorPrototype=PromiseConstructor.prototype,Internal=function(e){setInternalState$5(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:PENDING,value:void 0})},Internal.prototype=redefineAll(PromiseConstructorPrototype,{then:function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability(speciesConstructor(this,PromiseConstructor));return n.ok=!isCallable(e)||e,n.fail=isCallable(t)&&t,n.domain=engineIsNode?process.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=PENDING&¬ify(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalState$4(e);this.promise=e,this.resolve=bind(internalResolve,t),this.reject=bind(internalReject,t)},newPromiseCapability$1.f=newPromiseCapability=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable(nativePromiseConstructor)&&NativePromisePrototype!==Object.prototype)){nativeThen=NativePromisePrototype.then,SUBCLASSING||(redefine(NativePromisePrototype,"then",(function(e,t){var r=this;return new PromiseConstructor((function(e,t){nativeThen.call(r,e,t)})).then(e,t)}),{unsafe:!0}),redefine(NativePromisePrototype,"catch",PromiseConstructorPrototype.catch,{unsafe:!0}));try{delete NativePromisePrototype.constructor}catch(e){}objectSetPrototypeOf&&objectSetPrototypeOf(NativePromisePrototype,PromiseConstructorPrototype)}_export({global:!0,wrap:!0,forced:FORCED$6},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE),PromiseWrapper=getBuiltIn(PROMISE),_export({target:PROMISE,stat:!0,forced:FORCED$6},{reject:function(e){var t=newPromiseCapability(this);return t.reject.call(void 0,e),t.promise}}),_export({target:PROMISE,stat:!0,forced:FORCED$6},{resolve:function(e){return promiseResolve(this,e)}}),_export({target:PROMISE,stat:!0,forced:INCORRECT_ITERATION},{all:function(e){var t=this,r=newPromiseCapability(t),n=r.resolve,a=r.reject,o=perform((function(){var r=aCallable(t.resolve),o=[],i=0,s=1;iterate(e,(function(e){var c=i++,l=!1;o.push(void 0),s++,r.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||n(o))}),a)})),--s||n(o)}));return o.error&&a(o.value),r.promise},race:function(e){var t=this,r=newPromiseCapability(t),n=r.reject,a=perform((function(){var a=aCallable(t.resolve);iterate(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}});var inheritIfRequired=function(e,t,r){var n,a;return objectSetPrototypeOf&&isCallable(n=t.constructor)&&n!==r&&isObject(a=n.prototype)&&a!==r.prototype&&objectSetPrototypeOf(e,a),e},objectKeys=Object.keys||function(e){return objectKeysInternal(e,enumBugKeys)},objectDefineProperties=descriptors?Object.defineProperties:function(e,t){anObject(e);for(var r,n=objectKeys(t),a=n.length,o=0;a>o;)objectDefineProperty.f(e,r=n[o++],t[r]);return e},GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys[e]];return NullProtoObject()};hiddenKeys$1[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:objectDefineProperties(r,t)},toString=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},whitespaces="\t\n\v\f\r \u2028\u2029\ufeff",whitespace="["+whitespaces+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$4=function(e){return function(t){var r=toString(requireObjectCoercible(t));return 1&e&&(r=r.replace(ltrim,"")),2&e&&(r=r.replace(rtrim,"")),r}},stringTrim={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},getOwnPropertyNames$1=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,defineProperty$4=objectDefineProperty.f,trim=stringTrim.trim,NUMBER="Number",NativeNumber=global$1[NUMBER],NumberPrototype=NativeNumber.prototype,BROKEN_CLASSOF=classofRaw(objectCreate(NumberPrototype))==NUMBER,toNumber=function(e){if(isSymbol(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,a,o,i,s,c,l=toPrimitive(e,"number");if("string"==typeof l&&l.length>2)if(43===(t=(l=trim(l)).charCodeAt(0))||45===t){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+l}for(i=(o=l.slice(2)).length,s=0;s<i;s++)if((c=o.charCodeAt(s))<48||c>a)return NaN;return parseInt(o,n)}return+l};if(isForced_1(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var NumberWrapper=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof NumberWrapper&&(BROKEN_CLASSOF?fails((function(){NumberPrototype.valueOf.call(r)})):classofRaw(r)!=NUMBER)?inheritIfRequired(new NativeNumber(toNumber(t)),r,NumberWrapper):toNumber(t)},keys$1=descriptors?getOwnPropertyNames$1(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),j$1=0,key$1;keys$1.length>j$1;j$1++)has$1(NativeNumber,key$1=keys$1[j$1])&&!has$1(NumberWrapper,key$1)&&defineProperty$4(NumberWrapper,key$1,getOwnPropertyDescriptor$1(NativeNumber,key$1));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,redefine(global$1,NUMBER,NumberWrapper)}var FUNCTION_NAME_EXISTS=functionName.EXISTS,defineProperty$3=objectDefineProperty.f,FunctionPrototype=Function.prototype,FunctionPrototypeToString=FunctionPrototype.toString,nameRE=/^\s*function ([^ (]*)/,NAME$1="name";descriptors&&!FUNCTION_NAME_EXISTS&&defineProperty$3(FunctionPrototype,NAME$1,{configurable:!0,get:function(){try{return FunctionPrototypeToString.call(this).match(nameRE)[1]}catch(e){return""}}}),_export({global:!0},{globalThis:global$1});var $assign=Object.assign,defineProperty$2=Object.defineProperty,objectAssign=!$assign||fails((function(){if(descriptors&&1!==$assign({b:1},$assign(defineProperty$2({},"a",{enumerable:!0,get:function(){defineProperty$2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||"abcdefghijklmnopqrst"!=objectKeys($assign({},t)).join("")}))?function(e,t){for(var r=toObject(e),n=arguments.length,a=1,o=objectGetOwnPropertySymbols.f,i=objectPropertyIsEnumerable.f;n>a;)for(var s,c=indexedObject(arguments[a++]),l=o?objectKeys(c).concat(o(c)):objectKeys(c),f=l.length,u=0;f>u;)s=l[u++],descriptors&&!i.call(c,s)||(r[s]=c[s]);return r}:$assign;_export({target:"Object",stat:!0,forced:Object.assign!==objectAssign},{assign:objectAssign});var path=global$1;path.Object.assign;var regexpFlags=function(){var e=anObject(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$RegExp$2=global$1.RegExp,UNSUPPORTED_Y$2=fails((function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET=fails((function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),regexpStickyHelpers={UNSUPPORTED_Y:UNSUPPORTED_Y$2,BROKEN_CARET:BROKEN_CARET},$RegExp$1=global$1.RegExp,regexpUnsupportedDotAll=fails((function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$RegExp=global$1.RegExp,regexpUnsupportedNcg=fails((function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),getInternalState$3=internalState.get,nativeExec=RegExp.prototype.exec,nativeReplace=shared("native-string-replace",String.prototype.replace),patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=(re1=/a/,re2=/b*/g,nativeExec.call(re1,"a"),nativeExec.call(re2,"a"),0!==re1.lastIndex||0!==re2.lastIndex),re1,re2,UNSUPPORTED_Y$1=regexpStickyHelpers.UNSUPPORTED_Y||regexpStickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||regexpUnsupportedDotAll||regexpUnsupportedNcg;PATCH&&(patchedExec=function(e){var t,r,n,a,o,i,s,c=this,l=getInternalState$3(c),f=toString(e),u=l.raw;if(u)return u.lastIndex=c.lastIndex,t=patchedExec.call(u,f),c.lastIndex=u.lastIndex,t;var d=l.groups,h=UNSUPPORTED_Y$1&&c.sticky,p=regexpFlags.call(c),y=c.source,g=0,_=f;if(h&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),_=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(y="(?: "+y+")",_=" "+_,g++),r=new RegExp("^(?:"+y+")",p)),NPCG_INCLUDED&&(r=new RegExp("^"+y+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(n=c.lastIndex),a=nativeExec.call(h?r:c,_),h?a?(a.input=a.input.slice(g),a[0]=a[0].slice(g),a.index=c.lastIndex,c.lastIndex+=a[0].length):c.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&a&&(c.lastIndex=c.global?a.index+a[0].length:n),NPCG_INCLUDED&&a&&a.length>1&&nativeReplace.call(a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&d)for(a.groups=i=objectCreate(null),o=0;o<d.length;o++)i[(s=d[o])[0]]=a[s[1]];return a});var regexpExec=patchedExec;_export({target:"RegExp",proto:!0,forced:/./.exec!==regexpExec},{exec:regexpExec});var SPECIES$3=wellKnownSymbol("species"),RegExpPrototype$1=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(e,t,r,n){var a=wellKnownSymbol(e),o=!fails((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),i=o&&!fails((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[SPECIES$3]=function(){return r},r.flags="",r[a]=/./[a]),r.exec=function(){return t=!0,null},r[a](""),!t}));if(!o||!i||r){var s=/./[a],c=t(a,""[e],(function(e,t,r,n,a){var i=t.exec;return i===regexpExec||i===RegExpPrototype$1.exec?o&&!a?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));redefine(String.prototype,e,c[0]),redefine(RegExpPrototype$1,a,c[1])}n&&createNonEnumerableProperty(RegExpPrototype$1[a],"sham",!0)},MATCH$1=wellKnownSymbol("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classofRaw(e))},createMethod$3=function(e){return function(t,r){var n,a,o=toString(requireObjectCoercible(t)),i=toInteger(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=o.charCodeAt(i))<55296||n>56319||i+1===s||(a=o.charCodeAt(i+1))<56320||a>57343?e?o.charAt(i):n:e?o.slice(i,i+2):a-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex=function(e,t,r){return t+(r?charAt$1(e,t).length:1)},regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable(r)){var n=r.call(e,t);return null!==n&&anObject(n),n}if("RegExp"===classofRaw(e))return regexpExec.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,arrayPush=[].push,min$4=Math.min,MAX_UINT32=4294967295,SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));fixRegexpWellKnownSymbolLogic("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=toString(requireObjectCoercible(this)),a=void 0===r?MAX_UINT32:r>>>0;if(0===a)return[];if(void 0===e)return[n];if(!isRegexp(e))return t.call(n,e,a);for(var o,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,u=new RegExp(e.source,l+"g");(o=regexpExec.call(u,n))&&!((i=u.lastIndex)>f&&(c.push(n.slice(f,o.index)),o.length>1&&o.index<n.length&&arrayPush.apply(c,o.slice(1)),s=o[0].length,f=i,c.length>=a));)u.lastIndex===o.index&&u.lastIndex++;return f===n.length?!s&&u.test("")||c.push(""):c.push(n.slice(f)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var a=requireObjectCoercible(this),o=null==t?void 0:getMethod(t,e);return o?o.call(t,a,r):n.call(toString(a),t,r)},function(e,a){var o=anObject(this),i=toString(e),s=r(n,o,i,a,n!==t);if(s.done)return s.value;var c=speciesConstructor(o,RegExp),l=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),u=new c(UNSUPPORTED_Y?"^(?:"+o.source+")":o,f),d=void 0===a?MAX_UINT32:a>>>0;if(0===d)return[];if(0===i.length)return null===regexpExecAbstract(u,i)?[i]:[];for(var h=0,p=0,y=[];p<i.length;){u.lastIndex=UNSUPPORTED_Y?0:p;var g,_=regexpExecAbstract(u,UNSUPPORTED_Y?i.slice(p):i);if(null===_||(g=min$4(toLength(u.lastIndex+(UNSUPPORTED_Y?p:0)),i.length))===h)p=advanceStringIndex(i,p,l);else{if(y.push(i.slice(h,p)),y.length===d)return y;for(var v=1;v<=_.length-1;v++)if(y.push(_[v]),y.length===d)return y;p=h=g}}return y.push(i.slice(h)),y}]}),!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y),fixRegexpWellKnownSymbolLogic("match",(function(e,t,r){return[function(t){var r=requireObjectCoercible(this),n=null==t?void 0:getMethod(t,e);return n?n.call(t,r):new RegExp(t)[e](toString(r))},function(e){var n=anObject(this),a=toString(e),o=r(t,n,a);if(o.done)return o.value;if(!n.global)return regexpExecAbstract(n,a);var i=n.unicode;n.lastIndex=0;for(var s,c=[],l=0;null!==(s=regexpExecAbstract(n,a));){var f=toString(s[0]);c[l]=f,""===f&&(n.lastIndex=advanceStringIndex(a,toLength(n.lastIndex),i)),l++}return 0===l?null:c}]}));var UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;null==ArrayPrototype[UNSCOPABLES]&&objectDefineProperty.f(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:objectCreate(null)});var addToUnscopables=function(e){ArrayPrototype[UNSCOPABLES][e]=!0},correctPrototypeGetter=!fails((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),IE_PROTO=sharedKey("IE_PROTO"),ObjectPrototype$2=Object.prototype,objectGetPrototypeOf=correctPrototypeGetter?Object.getPrototypeOf:function(e){var t=toObject(e);if(has$1(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable(r)&&t instanceof r?r.prototype:t instanceof Object?ObjectPrototype$2:null},ITERATOR$5=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=null==IteratorPrototype$2||fails((function(){var e={};return IteratorPrototype$2[ITERATOR$5].call(e)!==e}));NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable(IteratorPrototype$2[ITERATOR$5])||redefine(IteratorPrototype$2,ITERATOR$5,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(e,t,r){var n=t+" Iterator";return e.prototype=objectCreate(IteratorPrototype$1,{next:createPropertyDescriptor(1,r)}),setToStringTag(e,n,!1),iterators[n]=returnThis$1,e},PROPER_FUNCTION_NAME$3=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,IteratorPrototype=iteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=iteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$4=wellKnownSymbol("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator=function(e,t,r,n,a,o,i){createIteratorConstructor(r,t,n);var s,c,l,f=function(e){if(e===a&&y)return y;if(!BUGGY_SAFARI_ITERATORS&&e in h)return h[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",d=!1,h=e.prototype,p=h[ITERATOR$4]||h["@@iterator"]||a&&h[a],y=!BUGGY_SAFARI_ITERATORS&&p||f(a),g="Array"==t&&h.entries||p;if(g&&(s=objectGetPrototypeOf(g.call(new e)))!==Object.prototype&&s.next&&(objectGetPrototypeOf(s)!==IteratorPrototype&&(objectSetPrototypeOf?objectSetPrototypeOf(s,IteratorPrototype):isCallable(s[ITERATOR$4])||redefine(s,ITERATOR$4,returnThis)),setToStringTag(s,u,!0)),PROPER_FUNCTION_NAME$3&&a==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty(h,"name",VALUES):(d=!0,y=function(){return p.call(this)})),a)if(c={values:f(VALUES),keys:o?y:f(KEYS),entries:f(ENTRIES)},i)for(l in c)(BUGGY_SAFARI_ITERATORS||d||!(l in h))&&redefine(h,l,c[l]);else _export({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||d},c);return h[ITERATOR$4]!==y&&redefine(h,ITERATOR$4,y,{name:a}),iterators[t]=y,c},ARRAY_ITERATOR="Array Iterator",setInternalState$4=internalState.set,getInternalState$2=internalState.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",(function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})}),(function(){var e=getInternalState$2(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");iterators.Arguments=iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var arrayBufferNative="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,defineProperty$1=objectDefineProperty.f,Int8Array$3=global$1.Int8Array,Int8ArrayPrototype=Int8Array$3&&Int8Array$3.prototype,Uint8ClampedArray=global$1.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray&&Uint8ClampedArray.prototype,TypedArray=Int8Array$3&&objectGetPrototypeOf(Int8Array$3),TypedArrayPrototype=Int8ArrayPrototype&&objectGetPrototypeOf(Int8ArrayPrototype),ObjectPrototype$1=Object.prototype,isPrototypeOf=ObjectPrototype$1.isPrototypeOf,TO_STRING_TAG$1=wellKnownSymbol("toStringTag"),TYPED_ARRAY_TAG=uid("TYPED_ARRAY_TAG"),TYPED_ARRAY_CONSTRUCTOR$1=uid("TYPED_ARRAY_CONSTRUCTOR"),NATIVE_ARRAY_BUFFER_VIEWS$1=arrayBufferNative&&!!objectSetPrototypeOf&&"Opera"!==classof(global$1.opera),TYPED_ARRAY_TAG_REQIRED=!1,NAME,Constructor,Prototype,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},isView=function(e){if(!isObject(e))return!1;var t=classof(e);return"DataView"===t||has$1(TypedArrayConstructorsList,t)||has$1(BigIntArrayConstructorsList,t)},isTypedArray=function(e){if(!isObject(e))return!1;var t=classof(e);return has$1(TypedArrayConstructorsList,t)||has$1(BigIntArrayConstructorsList,t)},aTypedArray$m=function(e){if(isTypedArray(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor$2=function(e){if(isCallable(e)&&(!objectSetPrototypeOf||isPrototypeOf.call(TypedArray,e)))return e;throw TypeError(tryToString(e)+" is not a typed array constructor")},exportTypedArrayMethod$n=function(e,t,r){if(descriptors){if(r)for(var n in TypedArrayConstructorsList){var a=global$1[n];if(a&&has$1(a.prototype,e))try{delete a.prototype[e]}catch(e){}}TypedArrayPrototype[e]&&!r||redefine(TypedArrayPrototype,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$1&&Int8ArrayPrototype[e]||t)}},exportTypedArrayStaticMethod=function(e,t,r){var n,a;if(descriptors){if(objectSetPrototypeOf){if(r)for(n in TypedArrayConstructorsList)if((a=global$1[n])&&has$1(a,e))try{delete a[e]}catch(e){}if(TypedArray[e]&&!r)return;try{return redefine(TypedArray,e,r?t:NATIVE_ARRAY_BUFFER_VIEWS$1&&TypedArray[e]||t)}catch(e){}}for(n in TypedArrayConstructorsList)!(a=global$1[n])||a[e]&&!r||redefine(a,e,t)}};for(NAME in TypedArrayConstructorsList)Constructor=global$1[NAME],Prototype=Constructor&&Constructor.prototype,Prototype?createNonEnumerableProperty(Prototype,TYPED_ARRAY_CONSTRUCTOR$1,Constructor):NATIVE_ARRAY_BUFFER_VIEWS$1=!1;for(NAME in BigIntArrayConstructorsList)Constructor=global$1[NAME],Prototype=Constructor&&Constructor.prototype,Prototype&&createNonEnumerableProperty(Prototype,TYPED_ARRAY_CONSTRUCTOR$1,Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS$1||!isCallable(TypedArray)||TypedArray===Function.prototype)&&(TypedArray=function(){throw TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$1))for(NAME in TypedArrayConstructorsList)global$1[NAME]&&objectSetPrototypeOf(global$1[NAME],TypedArray);if((!NATIVE_ARRAY_BUFFER_VIEWS$1||!TypedArrayPrototype||TypedArrayPrototype===ObjectPrototype$1)&&(TypedArrayPrototype=TypedArray.prototype,NATIVE_ARRAY_BUFFER_VIEWS$1))for(NAME in TypedArrayConstructorsList)global$1[NAME]&&objectSetPrototypeOf(global$1[NAME].prototype,TypedArrayPrototype);if(NATIVE_ARRAY_BUFFER_VIEWS$1&&objectGetPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype&&objectSetPrototypeOf(Uint8ClampedArrayPrototype,TypedArrayPrototype),descriptors&&!has$1(TypedArrayPrototype,TO_STRING_TAG$1))for(NAME in TYPED_ARRAY_TAG_REQIRED=!0,defineProperty$1(TypedArrayPrototype,TO_STRING_TAG$1,{get:function(){return isObject(this)?this[TYPED_ARRAY_TAG]:void 0}}),TypedArrayConstructorsList)global$1[NAME]&&createNonEnumerableProperty(global$1[NAME],TYPED_ARRAY_TAG,NAME);var arrayBufferViewCore={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$1,TYPED_ARRAY_CONSTRUCTOR:TYPED_ARRAY_CONSTRUCTOR$1,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQIRED&&TYPED_ARRAY_TAG,aTypedArray:aTypedArray$m,aTypedArrayConstructor:aTypedArrayConstructor$2,exportTypedArrayMethod:exportTypedArrayMethod$n,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod,isView:isView,isTypedArray:isTypedArray,TypedArray:TypedArray,TypedArrayPrototype:TypedArrayPrototype},NATIVE_ARRAY_BUFFER_VIEWS=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$1=global$1.ArrayBuffer,Int8Array$2=global$1.Int8Array,typedArrayConstructorsRequireWrappers=!NATIVE_ARRAY_BUFFER_VIEWS||!fails((function(){Int8Array$2(1)}))||!fails((function(){new Int8Array$2(-1)}))||!checkCorrectnessOfIteration((function(e){new Int8Array$2,new Int8Array$2(null),new Int8Array$2(1.5),new Int8Array$2(e)}),!0)||fails((function(){return 1!==new Int8Array$2(new ArrayBuffer$1(2),1,void 0).length})),toIndex=function(e){if(void 0===e)return 0;var t=toInteger(e),r=toLength(t);if(t!==r)throw RangeError("Wrong length or index");return r},abs=Math.abs,pow$1=Math.pow,floor$6=Math.floor,log=Math.log,LN2=Math.LN2,pack=function(e,t,r){var n,a,o,i=new Array(r),s=8*r-t-1,c=(1<<s)-1,l=c>>1,f=23===t?pow$1(2,-24)-pow$1(2,-77):0,u=e<0||0===e&&1/e<0?1:0,d=0;for((e=abs(e))!=e||e===1/0?(a=e!=e?1:0,n=c):(n=floor$6(log(e)/LN2),e*(o=pow$1(2,-n))<1&&(n--,o*=2),(e+=n+l>=1?f/o:f*pow$1(2,1-l))*o>=2&&(n++,o/=2),n+l>=c?(a=0,n=c):n+l>=1?(a=(e*o-1)*pow$1(2,t),n+=l):(a=e*pow$1(2,l-1)*pow$1(2,t),n=0));t>=8;i[d++]=255&a,a/=256,t-=8);for(n=n<<t|a,s+=t;s>0;i[d++]=255&n,n/=256,s-=8);return i[--d]|=128*u,i},unpack=function(e,t){var r,n=e.length,a=8*n-t-1,o=(1<<a)-1,i=o>>1,s=a-7,c=n-1,l=e[c--],f=127&l;for(l>>=7;s>0;f=256*f+e[c],c--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;r=256*r+e[c],c--,s-=8);if(0===f)f=1-i;else{if(f===o)return r?NaN:l?-1/0:1/0;r+=pow$1(2,t),f-=i}return(l?-1:1)*r*pow$1(2,f-t)},ieee754={pack:pack,unpack:unpack},arrayFill=function(e){for(var t=toObject(this),r=toLength(t.length),n=arguments.length,a=toAbsoluteIndex(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,i=void 0===o?r:toAbsoluteIndex(o,r);i>a;)t[a++]=e;return t},getOwnPropertyNames=objectGetOwnPropertyNames.f,defineProperty=objectDefineProperty.f,PROPER_FUNCTION_NAME$2=functionName.PROPER,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,getInternalState$1=internalState.get,setInternalState$3=internalState.set,ARRAY_BUFFER="ArrayBuffer",DATA_VIEW="DataView",PROTOTYPE="prototype",WRONG_LENGTH="Wrong length",WRONG_INDEX="Wrong index",NativeArrayBuffer=global$1[ARRAY_BUFFER],$ArrayBuffer=NativeArrayBuffer,$DataView=global$1[DATA_VIEW],$DataViewPrototype=$DataView&&$DataView[PROTOTYPE],ObjectPrototype=Object.prototype,RangeError$1=global$1.RangeError,packIEEE754=ieee754.pack,unpackIEEE754=ieee754.unpack,packInt8=function(e){return[255&e]},packInt16=function(e){return[255&e,e>>8&255]},packInt32=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return packIEEE754(e,23,4)},packFloat64=function(e){return packIEEE754(e,52,8)},addGetter=function(e,t){defineProperty(e[PROTOTYPE],t,{get:function(){return getInternalState$1(this)[t]}})},get=function(e,t,r,n){var a=toIndex(r),o=getInternalState$1(e);if(a+t>o.byteLength)throw RangeError$1(WRONG_INDEX);var i=getInternalState$1(o.buffer).bytes,s=a+o.byteOffset,c=i.slice(s,s+t);return n?c:c.reverse()},set=function(e,t,r,n,a,o){var i=toIndex(r),s=getInternalState$1(e);if(i+t>s.byteLength)throw RangeError$1(WRONG_INDEX);for(var c=getInternalState$1(s.buffer).bytes,l=i+s.byteOffset,f=n(+a),u=0;u<t;u++)c[l+u]=f[o?u:t-u-1]};if(arrayBufferNative){var INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME$2&&NativeArrayBuffer.name!==ARRAY_BUFFER;if(fails((function(){NativeArrayBuffer(1)}))&&fails((function(){new NativeArrayBuffer(-1)}))&&!fails((function(){return new NativeArrayBuffer,new NativeArrayBuffer(1.5),new NativeArrayBuffer(NaN),INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})))INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty(NativeArrayBuffer,"name",ARRAY_BUFFER);else{$ArrayBuffer=function(e){return anInstance(this,$ArrayBuffer),new NativeArrayBuffer(toIndex(e))};for(var ArrayBufferPrototype=$ArrayBuffer[PROTOTYPE]=NativeArrayBuffer[PROTOTYPE],keys=getOwnPropertyNames(NativeArrayBuffer),j=0,key;keys.length>j;)(key=keys[j++])in $ArrayBuffer||createNonEnumerableProperty($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype.constructor=$ArrayBuffer}objectSetPrototypeOf&&objectGetPrototypeOf($DataViewPrototype)!==ObjectPrototype&&objectSetPrototypeOf($DataViewPrototype,ObjectPrototype);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=$DataViewPrototype.setInt8;testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||redefineAll($DataViewPrototype,{setInt8:function(e,t){$setInt8.call(this,e,t<<24>>24)},setUint8:function(e,t){$setInt8.call(this,e,t<<24>>24)}},{unsafe:!0})}else $ArrayBuffer=function(e){anInstance(this,$ArrayBuffer,ARRAY_BUFFER);var t=toIndex(e);setInternalState$3(this,{bytes:arrayFill.call(new Array(t),0),byteLength:t}),descriptors||(this.byteLength=t)},$DataView=function(e,t,r){anInstance(this,$DataView,DATA_VIEW),anInstance(e,$ArrayBuffer,DATA_VIEW);var n=getInternalState$1(e).byteLength,a=toInteger(t);if(a<0||a>n)throw RangeError$1("Wrong offset");if(a+(r=void 0===r?n-a:toLength(r))>n)throw RangeError$1(WRONG_LENGTH);setInternalState$3(this,{buffer:e,byteLength:r,byteOffset:a}),descriptors||(this.buffer=e,this.byteLength=r,this.byteOffset=a)},descriptors&&(addGetter($ArrayBuffer,"byteLength"),addGetter($DataView,"buffer"),addGetter($DataView,"byteLength"),addGetter($DataView,"byteOffset")),redefineAll($DataView[PROTOTYPE],{getInt8:function(e){return get(this,1,e)[0]<<24>>24},getUint8:function(e){return get(this,1,e)[0]},getInt16:function(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return unpackIEEE754(get(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return unpackIEEE754(get(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){set(this,1,e,packInt8,t)},setUint8:function(e,t){set(this,1,e,packInt8,t)},setInt16:function(e,t){set(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){set(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){set(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){set(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){set(this,4,e,packFloat32,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){set(this,8,e,packFloat64,t,arguments.length>2?arguments[2]:void 0)}});setToStringTag($ArrayBuffer,ARRAY_BUFFER),setToStringTag($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},floor$5=Math.floor,isInteger=function(e){return!isObject(e)&&isFinite(e)&&floor$5(e)===e},toPositiveInteger=function(e){var t=toInteger(e);if(t<0)throw RangeError("The argument can't be less than 0");return t},toOffset=function(e,t){var r=toPositiveInteger(e);if(r%t)throw RangeError("Wrong offset");return r},aTypedArrayConstructor$1=arrayBufferViewCore.aTypedArrayConstructor,typedArrayFrom=function(e){var t,r,n,a,o,i,s=aConstructor(this),c=toObject(e),l=arguments.length,f=l>1?arguments[1]:void 0,u=void 0!==f,d=getIteratorMethod(c);if(d&&!isArrayIteratorMethod(d))for(i=(o=getIterator(c,d)).next,c=[];!(a=i.call(o)).done;)c.push(a.value);for(u&&l>2&&(f=functionBindContext(f,arguments[2],2)),r=toLength(c.length),n=new(aTypedArrayConstructor$1(s))(r),t=0;r>t;t++)n[t]=u?f(c[t],t):c[t];return n},isArray=Array.isArray||function(e){return"Array"==classofRaw(e)},SPECIES$2=wellKnownSymbol("species"),arraySpeciesConstructor=function(e){var t;return isArray(e)&&(t=e.constructor,(isConstructor(t)&&(t===Array||isArray(t.prototype))||isObject(t)&&null===(t=t[SPECIES$2]))&&(t=void 0)),void 0===t?Array:t},arraySpeciesCreate=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},push=[].push,createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,a=4==e,o=6==e,i=7==e,s=5==e||o;return function(c,l,f,u){for(var d,h,p=toObject(c),y=indexedObject(p),g=functionBindContext(l,f,3),_=toLength(y.length),v=0,m=u||arraySpeciesCreate,A=t?m(c,_):r||i?m(c,0):void 0;_>v;v++)if((s||v in y)&&(h=g(d=y[v],v,p),e))if(t)A[v]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:push.call(A,d)}else switch(e){case 4:return!1;case 7:push.call(A,d)}return o?-1:n||a?a:A}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},typedArrayConstructor=createCommonjsModule((function(e){var t=objectGetOwnPropertyNames.f,r=arrayIteration.forEach,n=internalState.get,a=internalState.set,o=objectDefineProperty.f,i=objectGetOwnPropertyDescriptor.f,s=Math.round,c=global$1.RangeError,l=arrayBuffer.ArrayBuffer,f=arrayBuffer.DataView,u=arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,d=arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR,h=arrayBufferViewCore.TYPED_ARRAY_TAG,p=arrayBufferViewCore.TypedArray,y=arrayBufferViewCore.TypedArrayPrototype,g=arrayBufferViewCore.aTypedArrayConstructor,_=arrayBufferViewCore.isTypedArray,v=function(e,t){for(var r=0,n=t.length,a=new(g(e))(n);n>r;)a[r]=t[r++];return a},m=function(e,t){o(e,t,{get:function(){return n(this)[t]}})},A=function(e){var t;return e instanceof l||"ArrayBuffer"==(t=classof(e))||"SharedArrayBuffer"==t},b=function(e,t){return _(e)&&!isSymbol(t)&&t in e&&isInteger(+t)&&t>=0},w=function(e,t){return t=toPropertyKey(t),b(e,t)?createPropertyDescriptor(2,e[t]):i(e,t)},E=function(e,t,r){return t=toPropertyKey(t),!(b(e,t)&&isObject(r)&&has$1(r,"value"))||has$1(r,"get")||has$1(r,"set")||r.configurable||has$1(r,"writable")&&!r.writable||has$1(r,"enumerable")&&!r.enumerable?o(e,t,r):(e[t]=r.value,e)};descriptors?(u||(objectGetOwnPropertyDescriptor.f=w,objectDefineProperty.f=E,m(y,"buffer"),m(y,"byteOffset"),m(y,"byteLength"),m(y,"length")),_export({target:"Object",stat:!0,forced:!u},{getOwnPropertyDescriptor:w,defineProperty:E}),e.exports=function(e,i,g){var m=e.match(/\d+$/)[0]/8,b=e+(g?"Clamped":"")+"Array",w="get"+e,E="set"+e,I=global$1[b],S=I,P=S&&S.prototype,T={},R=function(e,t){o(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[w](t*m+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var a=n(e);g&&(r=(r=s(r))<0?0:r>255?255:255&r),a.view[E](t*m+a.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};u?typedArrayConstructorsRequireWrappers&&(S=i((function(e,t,r,n){return anInstance(e,S,b),inheritIfRequired(isObject(t)?A(t)?void 0!==n?new I(t,toOffset(r,m),n):void 0!==r?new I(t,toOffset(r,m)):new I(t):_(t)?v(S,t):typedArrayFrom.call(S,t):new I(toIndex(t)),e,S)})),objectSetPrototypeOf&&objectSetPrototypeOf(S,p),r(t(I),(function(e){e in S||createNonEnumerableProperty(S,e,I[e])})),S.prototype=P):(S=i((function(e,t,r,n){anInstance(e,S,b);var o,i,s,u=0,d=0;if(isObject(t)){if(!A(t))return _(t)?v(S,t):typedArrayFrom.call(S,t);o=t,d=toOffset(r,m);var h=t.byteLength;if(void 0===n){if(h%m)throw c("Wrong length");if((i=h-d)<0)throw c("Wrong length")}else if((i=toLength(n)*m)+d>h)throw c("Wrong length");s=i/m}else s=toIndex(t),o=new l(i=s*m);for(a(e,{buffer:o,byteOffset:d,byteLength:i,length:s,view:new f(o)});u<s;)R(e,u++)})),objectSetPrototypeOf&&objectSetPrototypeOf(S,p),P=S.prototype=objectCreate(y)),P.constructor!==S&&createNonEnumerableProperty(P,"constructor",S),createNonEnumerableProperty(P,d,S),h&&createNonEnumerableProperty(P,h,b),T[b]=S,_export({global:!0,forced:S!=I,sham:!u},T),"BYTES_PER_ELEMENT"in S||createNonEnumerableProperty(S,"BYTES_PER_ELEMENT",m),"BYTES_PER_ELEMENT"in P||createNonEnumerableProperty(P,"BYTES_PER_ELEMENT",m),setSpecies(b)}):e.exports=function(){}}));typedArrayConstructor("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var min$3=Math.min,arrayCopyWithin=[].copyWithin||function(e,t){var r=toObject(this),n=toLength(r.length),a=toAbsoluteIndex(e,n),o=toAbsoluteIndex(t,n),i=arguments.length>2?arguments[2]:void 0,s=min$3((void 0===i?n:toAbsoluteIndex(i,n))-o,n-a),c=1;for(o<a&&a<o+s&&(c=-1,o+=s-1,a+=s-1);s-- >0;)o in r?r[a]=r[o]:delete r[a],a+=c,o+=c;return r},aTypedArray$l=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$m=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$m("copyWithin",(function(e,t){return arrayCopyWithin.call(aTypedArray$l(this),e,t,arguments.length>2?arguments[2]:void 0)}));var $every=arrayIteration.every,aTypedArray$k=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$l=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$l("every",(function(e){return $every(aTypedArray$k(this),e,arguments.length>1?arguments[1]:void 0)}));var aTypedArray$j=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$k=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$k("fill",(function(e){return arrayFill.apply(aTypedArray$j(this),arguments)}));var arrayFromConstructorAndList=function(e,t){for(var r=0,n=t.length,a=new e(n);n>r;)a[r]=t[r++];return a},TYPED_ARRAY_CONSTRUCTOR=arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR,aTypedArrayConstructor=arrayBufferViewCore.aTypedArrayConstructor,typedArraySpeciesConstructor=function(e){return aTypedArrayConstructor(speciesConstructor(e,e[TYPED_ARRAY_CONSTRUCTOR]))},typedArrayFromSpeciesAndList=function(e,t){return arrayFromConstructorAndList(typedArraySpeciesConstructor(e),t)},$filter$1=arrayIteration.filter,aTypedArray$i=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$j=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$j("filter",(function(e){var t=$filter$1(aTypedArray$i(this),e,arguments.length>1?arguments[1]:void 0);return typedArrayFromSpeciesAndList(this,t)}));var $find=arrayIteration.find,aTypedArray$h=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$i=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$i("find",(function(e){return $find(aTypedArray$h(this),e,arguments.length>1?arguments[1]:void 0)}));var $findIndex=arrayIteration.findIndex,aTypedArray$g=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$h=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$h("findIndex",(function(e){return $findIndex(aTypedArray$g(this),e,arguments.length>1?arguments[1]:void 0)}));var $forEach$1=arrayIteration.forEach,aTypedArray$f=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$g=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$g("forEach",(function(e){$forEach$1(aTypedArray$f(this),e,arguments.length>1?arguments[1]:void 0)}));var $includes$1=arrayIncludes.includes,aTypedArray$e=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$f=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$f("includes",(function(e){return $includes$1(aTypedArray$e(this),e,arguments.length>1?arguments[1]:void 0)}));var $indexOf=arrayIncludes.indexOf,aTypedArray$d=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$e=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$e("indexOf",(function(e){return $indexOf(aTypedArray$d(this),e,arguments.length>1?arguments[1]:void 0)}));var PROPER_FUNCTION_NAME$1=functionName.PROPER,ITERATOR$3=wellKnownSymbol("iterator"),Uint8Array$2=global$1.Uint8Array,arrayValues=es_array_iterator.values,arrayKeys=es_array_iterator.keys,arrayEntries=es_array_iterator.entries,aTypedArray$c=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$d=arrayBufferViewCore.exportTypedArrayMethod,nativeTypedArrayIterator=Uint8Array$2&&Uint8Array$2.prototype[ITERATOR$3],PROPER_ARRAY_VALUES_NAME=!!nativeTypedArrayIterator&&"values"===nativeTypedArrayIterator.name,typedArrayValues=function(){return arrayValues.call(aTypedArray$c(this))};exportTypedArrayMethod$d("entries",(function(){return arrayEntries.call(aTypedArray$c(this))})),exportTypedArrayMethod$d("keys",(function(){return arrayKeys.call(aTypedArray$c(this))})),exportTypedArrayMethod$d("values",typedArrayValues,PROPER_FUNCTION_NAME$1&&!PROPER_ARRAY_VALUES_NAME),exportTypedArrayMethod$d(ITERATOR$3,typedArrayValues,PROPER_FUNCTION_NAME$1&&!PROPER_ARRAY_VALUES_NAME);var aTypedArray$b=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$c=arrayBufferViewCore.exportTypedArrayMethod,$join=[].join;exportTypedArrayMethod$c("join",(function(e){return $join.apply(aTypedArray$b(this),arguments)}));var arrayMethodIsStrict=function(e,t){var r=[][e];return!!r&&fails((function(){r.call(null,t||function(){throw 1},1)}))},min$2=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD$2=arrayMethodIsStrict("lastIndexOf"),FORCED$5=NEGATIVE_ZERO||!STRICT_METHOD$2,arrayLastIndexOf=FORCED$5?function(e){if(NEGATIVE_ZERO)return $lastIndexOf.apply(this,arguments)||0;var t=toIndexedObject(this),r=toLength(t.length),n=r-1;for(arguments.length>1&&(n=min$2(n,toInteger(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf,aTypedArray$a=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$b=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$b("lastIndexOf",(function(e){return arrayLastIndexOf.apply(aTypedArray$a(this),arguments)}));var $map=arrayIteration.map,aTypedArray$9=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$a=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$a("map",(function(e){return $map(aTypedArray$9(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(typedArraySpeciesConstructor(e))(t)}))}));var createMethod$1=function(e){return function(t,r,n,a){aCallable(r);var o=toObject(t),i=indexedObject(o),s=toLength(o.length),c=e?s-1:0,l=e?-1:1;if(n<2)for(;;){if(c in i){a=i[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in i&&(a=r(a,i[c],c,o));return a}},arrayReduce={left:createMethod$1(!1),right:createMethod$1(!0)},$reduce=arrayReduce.left,aTypedArray$8=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$9=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$9("reduce",(function(e){return $reduce(aTypedArray$8(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var $reduceRight=arrayReduce.right,aTypedArray$7=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$8=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$8("reduceRight",(function(e){return $reduceRight(aTypedArray$7(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var aTypedArray$6=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$7=arrayBufferViewCore.exportTypedArrayMethod,floor$4=Math.floor;exportTypedArrayMethod$7("reverse",(function(){for(var e,t=aTypedArray$6(this).length,r=floor$4(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}));var aTypedArray$5=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$6=arrayBufferViewCore.exportTypedArrayMethod,FORCED$4=fails((function(){new Int8Array(1).set({})}));exportTypedArrayMethod$6("set",(function(e){aTypedArray$5(this);var t=toOffset(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=toObject(e),a=toLength(n.length),o=0;if(a+t>r)throw RangeError("Wrong length");for(;o<a;)this[t+o]=n[o++]}),FORCED$4);var aTypedArray$4=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$5=arrayBufferViewCore.exportTypedArrayMethod,$slice$1=[].slice,FORCED$3=fails((function(){new Int8Array(1).slice()}));exportTypedArrayMethod$5("slice",(function(e,t){for(var r=$slice$1.call(aTypedArray$4(this),e,t),n=typedArraySpeciesConstructor(this),a=0,o=r.length,i=new n(o);o>a;)i[a]=r[a++];return i}),FORCED$3);var $some=arrayIteration.some,aTypedArray$3=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$4=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$4("some",(function(e){return $some(aTypedArray$3(this),e,arguments.length>1?arguments[1]:void 0)}));var floor$3=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor$3(r/2);return r<8?insertionSort(e,t):merge(mergeSort(e.slice(0,n),t),mergeSort(e.slice(n),t),t)},insertionSort=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},merge=function(e,t,r){for(var n=e.length,a=t.length,o=0,i=0,s=[];o<n||i<a;)o<n&&i<a?s.push(r(e[o],t[i])<=0?e[o++]:t[i++]):s.push(o<n?e[o++]:t[i++]);return s},arraySort=mergeSort,firefox=engineUserAgent.match(/firefox\/(\d+)/i),engineFfVersion=!!firefox&&+firefox[1],engineIsIeOrEdge=/MSIE|Trident/.test(engineUserAgent),webkit=engineUserAgent.match(/AppleWebKit\/(\d+)\./),engineWebkitVersion=!!webkit&&+webkit[1],aTypedArray$2=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$3=arrayBufferViewCore.exportTypedArrayMethod,Uint16Array$1=global$1.Uint16Array,nativeSort$1=Uint16Array$1&&Uint16Array$1.prototype.sort,ACCEPT_INCORRECT_ARGUMENTS=!!nativeSort$1&&!fails((function(){var e=new Uint16Array$1(2);e.sort(null),e.sort({})})),STABLE_SORT$1=!!nativeSort$1&&!fails((function(){if(engineV8Version)return engineV8Version<74;if(engineFfVersion)return engineFfVersion<67;if(engineIsIeOrEdge)return!0;if(engineWebkitVersion)return engineWebkitVersion<602;var e,t,r=new Uint16Array$1(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(r.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0})),getSortCompare$1=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};exportTypedArrayMethod$3("sort",(function(e){if(void 0!==e&&aCallable(e),STABLE_SORT$1)return nativeSort$1.call(this,e);aTypedArray$2(this);var t,r=toLength(this.length),n=Array(r);for(t=0;t<r;t++)n[t]=this[t];for(n=arraySort(this,getSortCompare$1(e)),t=0;t<r;t++)this[t]=n[t];return this}),!STABLE_SORT$1||ACCEPT_INCORRECT_ARGUMENTS);var aTypedArray$1=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$2=arrayBufferViewCore.exportTypedArrayMethod;exportTypedArrayMethod$2("subarray",(function(e,t){var r=aTypedArray$1(this),n=r.length,a=toAbsoluteIndex(e,n);return new(typedArraySpeciesConstructor(r))(r.buffer,r.byteOffset+a*r.BYTES_PER_ELEMENT,toLength((void 0===t?n:toAbsoluteIndex(t,n))-a))}));var Int8Array$1=global$1.Int8Array,aTypedArray=arrayBufferViewCore.aTypedArray,exportTypedArrayMethod$1=arrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,$slice=[].slice,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails((function(){$toLocaleString.call(new Int8Array$1(1))})),FORCED$2=fails((function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()}))||!fails((function(){Int8Array$1.prototype.toLocaleString.call([1,2])}));exportTypedArrayMethod$1("toLocaleString",(function(){return $toLocaleString.apply(TO_LOCALE_STRING_BUG?$slice.call(aTypedArray(this)):aTypedArray(this),arguments)}),FORCED$2);var exportTypedArrayMethod=arrayBufferViewCore.exportTypedArrayMethod,Uint8Array$1=global$1.Uint8Array,Uint8ArrayPrototype=Uint8Array$1&&Uint8Array$1.prototype||{},arrayToString=[].toString,arrayJoin=[].join;fails((function(){arrayToString.call({})}))&&(arrayToString=function(){return arrayJoin.call(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!=arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD);var $includes=arrayIncludes.includes;_export({target:"Array",proto:!0},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var notARegexp=function(e){if(isRegexp(e))throw TypeError("The method doesn't accept regular expressions");return e},MATCH=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH]=!1,"/./"[e](t)}catch(e){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function(e){return!!~toString(requireObjectCoercible(this)).indexOf(toString(notARegexp(e)),arguments.length>1?arguments[1]:void 0)}});var createProperty=function(e,t,r){var n=toPropertyKey(t);n in e?objectDefineProperty.f(e,n,createPropertyDescriptor(0,r)):e[n]=r},SPECIES$1=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(e){return engineV8Version>=51||!fails((function(){var t=[];return(t.constructor={})[SPECIES$1]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport("slice"),SPECIES=wellKnownSymbol("species"),nativeSlice=[].slice,max$1=Math.max;_export({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{slice:function(e,t){var r,n,a,o=toIndexedObject(this),i=toLength(o.length),s=toAbsoluteIndex(e,i),c=toAbsoluteIndex(void 0===t?i:t,i);if(isArray(o)&&(r=o.constructor,(isConstructor(r)&&(r===Array||isArray(r.prototype))||isObject(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===Array||void 0===r))return nativeSlice.call(o,s,c);for(n=new(void 0===r?Array:r)(max$1(c-s,0)),a=0;s<c;s++,a++)s in o&&createProperty(n,a,o[s]);return n.length=a,n}}),typedArrayConstructor("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}})),typedArrayConstructor("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var $filter=arrayIteration.filter,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("filter");_export({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{filter:function(e){return $filter(this,e,arguments.length>1?arguments[1]:void 0)}});var PROPER_FUNCTION_NAME=functionName.PROPER,TO_STRING="toString",RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails((function(){return"/a/b"!=nativeToString.call({source:"a",flags:"b"})})),INCORRECT_NAME=PROPER_FUNCTION_NAME&&nativeToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&redefine(RegExp.prototype,TO_STRING,(function(){var e=anObject(this),t=toString(e.source),r=e.flags;return"/"+t+"/"+toString(void 0===r&&e instanceof RegExp&&!("flags"in RegExpPrototype)?regexpFlags.call(e):r)}),{unsafe:!0});var test=[],nativeSort=test.sort,FAILS_ON_UNDEFINED=fails((function(){test.sort(void 0)})),FAILS_ON_NULL=fails((function(){test.sort(null)})),STRICT_METHOD$1=arrayMethodIsStrict("sort"),STABLE_SORT=!fails((function(){if(engineV8Version)return engineV8Version<70;if(!(engineFfVersion&&engineFfVersion>3)){if(engineIsIeOrEdge)return!0;if(engineWebkitVersion)return engineWebkitVersion<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)test.push({k:t+n,v:r})}for(test.sort((function(e,t){return t.v-e.v})),n=0;n<test.length;n++)t=test[n].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}})),FORCED$1=FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD$1||!STABLE_SORT,getSortCompare=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:toString(t)>toString(r)?1:-1}};_export({target:"Array",proto:!0,forced:FORCED$1},{sort:function(e){void 0!==e&&aCallable(e);var t=toObject(this);if(STABLE_SORT)return void 0===e?nativeSort.call(t):nativeSort.call(t,e);var r,n,a=[],o=toLength(t.length);for(n=0;n<o;n++)n in t&&a.push(t[n]);for(r=(a=arraySort(a,getSortCompare(e))).length,n=0;n<r;)t[n]=a[n++];for(;n<o;)delete t[n++];return t}});var UZIP_1=createCommonjsModule((function(e){var t,r,n={};e.exports=n,n.parse=function(e,t){for(var r=n.bin.readUshort,a=n.bin.readUint,o=0,i={},s=new Uint8Array(e),c=s.length-4;101010256!=a(s,c);)c--;o=c,o+=4;var l=r(s,o+=4);r(s,o+=2);var f=a(s,o+=2),u=a(s,o+=4);o+=4,o=u;for(var d=0;d<l;d++){a(s,o),o+=4,o+=4,o+=4,a(s,o+=4),f=a(s,o+=4);var h=a(s,o+=4),p=r(s,o+=4),y=r(s,o+2),g=r(s,o+4);o+=6;var _=a(s,o+=8);o+=4,o+=p+y+g,n._readLocal(s,_,i,f,h,t)}return i},n._readLocal=function(e,t,r,a,o,i){var s=n.bin.readUshort,c=n.bin.readUint;c(e,t),s(e,t+=4),s(e,t+=2);var l=s(e,t+=2);c(e,t+=2),c(e,t+=4),t+=4;var f=s(e,t+=8),u=s(e,t+=2);t+=2;var d=n.bin.readUTF8(e,t,f);if(t+=f,t+=u,i)r[d]={size:o,csize:a};else{var h=new Uint8Array(e.buffer,t);if(0==l)r[d]=new Uint8Array(h.buffer.slice(t,t+a));else{if(8!=l)throw"unknown compression method: "+l;var p=new Uint8Array(o);n.inflateRaw(h,p),r[d]=p}}},n.inflateRaw=function(e,t){return n.F.inflate(e,t)},n.inflate=function(e,t){return e[0],e[1],n.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},n.deflate=function(e,t){null==t&&(t={level:6});var r=0,a=new Uint8Array(50+Math.floor(1.1*e.length));a[r]=120,a[r+1]=156,r+=2,r=n.F.deflateRaw(e,a,r,t.level);var o=n.adler(e,0,e.length);return a[r+0]=o>>>24&255,a[r+1]=o>>>16&255,a[r+2]=o>>>8&255,a[r+3]=o>>>0&255,new Uint8Array(a.buffer,0,r+4)},n.deflateRaw=function(e,t){null==t&&(t={level:6});var r=new Uint8Array(50+Math.floor(1.1*e.length)),a=n.F.deflateRaw(e,r,a,t.level);return new Uint8Array(r.buffer,0,a)},n.encode=function(e,t){null==t&&(t=!1);var r=0,a=n.bin.writeUint,o=n.bin.writeUshort,i={};for(var s in e){var c=!n._noNeed(s)&&!t,l=e[s],f=n.crc.crc(l,0,l.length);i[s]={cpr:c,usize:l.length,crc:f,file:c?n.deflateRaw(l):l}}for(var s in i)r+=i[s].file.length+30+46+2*n.bin.sizeUTF8(s);r+=22;var u=new Uint8Array(r),d=0,h=[];for(var s in i){var p=i[s];h.push(d),d=n._writeHeader(u,d,s,p,0)}var y=0,g=d;for(var s in i)p=i[s],h.push(d),d=n._writeHeader(u,d,s,p,1,h[y++]);var _=d-g;return a(u,d,101010256),d+=4,o(u,d+=4,y),o(u,d+=2,y),a(u,d+=2,_),a(u,d+=4,g),d+=4,d+=2,u.buffer},n._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},n._writeHeader=function(e,t,r,a,o,i){var s=n.bin.writeUint,c=n.bin.writeUshort,l=a.file;return s(e,t,0==o?67324752:33639248),t+=4,1==o&&(t+=2),c(e,t,20),c(e,t+=2,0),c(e,t+=2,a.cpr?8:0),s(e,t+=2,0),s(e,t+=4,a.crc),s(e,t+=4,l.length),s(e,t+=4,a.usize),c(e,t+=4,n.bin.sizeUTF8(r)),c(e,t+=2,0),t+=2,1==o&&(t+=2,t+=2,s(e,t+=6,i),t+=4),t+=n.bin.writeUTF8(e,t,r),0==o&&(e.set(l,t),t+=l.length),t},n.crc={table:function(){for(var e=new Uint32Array(256),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}return e}(),update:function(e,t,r,a){for(var o=0;o<a;o++)e=n.crc.table[255&(e^t[r+o])]^e>>>8;return e},crc:function(e,t,r){return 4294967295^n.crc.update(4294967295,e,t,r)}},n.adler=function(e,t,r){for(var n=1,a=0,o=t,i=t+r;o<i;){for(var s=Math.min(o+5552,i);o<s;)a+=n+=e[o++];n%=65521,a%=65521}return a<<16|n},n.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,r){e[t]=255&r,e[t+1]=r>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,r){e[t]=255&r,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},readASCII:function(e,t,r){for(var n="",a=0;a<r;a++)n+=String.fromCharCode(e[t+a]);return n},writeASCII:function(e,t,r){for(var n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,r){for(var a,o="",i=0;i<r;i++)o+="%"+n.bin.pad(e[t+i].toString(16));try{a=decodeURIComponent(o)}catch(a){return n.bin.readASCII(e,t,r)}return a},writeUTF8:function(e,t,r){for(var n=r.length,a=0,o=0;o<n;o++){var i=r.charCodeAt(o);if(0==(4294967168&i))e[t+a]=i,a++;else if(0==(4294965248&i))e[t+a]=192|i>>6,e[t+a+1]=128|i>>0&63,a+=2;else if(0==(4294901760&i))e[t+a]=224|i>>12,e[t+a+1]=128|i>>6&63,e[t+a+2]=128|i>>0&63,a+=3;else{if(0!=(4292870144&i))throw"e";e[t+a]=240|i>>18,e[t+a+1]=128|i>>12&63,e[t+a+2]=128|i>>6&63,e[t+a+3]=128|i>>0&63,a+=4}}return a},sizeUTF8:function(e){for(var t=e.length,r=0,n=0;n<t;n++){var a=e.charCodeAt(n);if(0==(4294967168&a))r++;else if(0==(4294965248&a))r+=2;else if(0==(4294901760&a))r+=3;else{if(0!=(4292870144&a))throw"e";r+=4}}return r}},n.F={},n.F.deflateRaw=function(e,t,r,a){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][a],i=n.F.U,s=n.F._goodIndex;n.F._hash;var c=n.F._putsE,l=0,f=r<<3,u=0,d=e.length;if(0==a){for(;l<d;)c(t,f,l+(I=Math.min(65535,d-l))==d?1:0),f=n.F._copyExact(e,l,I,t,f+8),l+=I;return f>>>3}var h=i.lits,p=i.strt,y=i.prev,g=0,_=0,v=0,m=0,A=0,b=0;for(d>2&&(p[b=n.F._hash(e,0)]=0),l=0;l<d;l++){if(A=b,l+1<d-2){b=n.F._hash(e,l+1);var w=l+1&32767;y[w]=p[b],p[b]=w}if(u<=l){(g>14e3||_>26697)&&d-l>100&&(u<l&&(h[g]=l-u,g+=2,u=l),f=n.F._writeBlock(l==d-1||u==d?1:0,h,g,m,e,v,l-v,t,f),g=_=m=0,v=l);var E=0;l<d-2&&(E=n.F._bestMatch(e,l,y,A,Math.min(o[2],d-l),o[3]));var I=E>>>16,S=65535&E;if(0!=E){S=65535&E;var P=s(I=E>>>16,i.of0);i.lhst[257+P]++;var T=s(S,i.df0);i.dhst[T]++,m+=i.exb[P]+i.dxb[T],h[g]=I<<23|l-u,h[g+1]=S<<16|P<<8|T,g+=2,u=l+I}else i.lhst[e[l]]++;_++}}for(v==l&&0!=e.length||(u<l&&(h[g]=l-u,g+=2,u=l),f=n.F._writeBlock(1,h,g,m,e,v,l-v,t,f),g=0,_=0,g=_=m=0,v=l);0!=(7&f);)f++;return f>>>3},n.F._bestMatch=function(e,t,r,a,o,i){var s=32767&t,c=r[s],l=s-c+32768&32767;if(c==s||a!=n.F._hash(e,t-l))return 0;for(var f=0,u=0,d=Math.min(32767,t);l<=d&&0!=--i&&c!=s;){if(0==f||e[t+f]==e[t+f-l]){var h=n.F._howLong(e,t,l);if(h>f){if(u=l,(f=h)>=o)break;l+2<h&&(h=l+2);for(var p=0,y=0;y<h-2;y++){var g=t-l+y+32768&32767,_=g-r[g]+32768&32767;_>p&&(p=_,c=g)}}}l+=(s=c)-(c=r[s])+32768&32767}return f<<16|u},n.F._howLong=function(e,t,r){if(e[t]!=e[t-r]||e[t+1]!=e[t+1-r]||e[t+2]!=e[t+2-r])return 0;var n=t,a=Math.min(e.length,t+258);for(t+=3;t<a&&e[t]==e[t-r];)t++;return t-n},n.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(e,t,r,a,o,i,s,c,l){var f,u,d,h,p,y,g,_,v,m=n.F.U,A=n.F._putsF,b=n.F._putsE;m.lhst[256]++,u=(f=n.F.getTrees())[0],d=f[1],h=f[2],p=f[3],y=f[4],g=f[5],_=f[6],v=f[7];var w=32+(0==(l+3&7)?0:8-(l+3&7))+(s<<3),E=a+n.F.contSize(m.fltree,m.lhst)+n.F.contSize(m.fdtree,m.dhst),I=a+n.F.contSize(m.ltree,m.lhst)+n.F.contSize(m.dtree,m.dhst);I+=14+3*g+n.F.contSize(m.itree,m.ihst)+(2*m.ihst[16]+3*m.ihst[17]+7*m.ihst[18]);for(var S=0;S<286;S++)m.lhst[S]=0;for(S=0;S<30;S++)m.dhst[S]=0;for(S=0;S<19;S++)m.ihst[S]=0;var P=w<E&&w<I?0:E<I?1:2;if(A(c,l,e),A(c,l+1,P),l+=3,0==P){for(;0!=(7&l);)l++;l=n.F._copyExact(o,i,s,c,l)}else{var T,R;if(1==P&&(T=m.fltree,R=m.fdtree),2==P){n.F.makeCodes(m.ltree,u),n.F.revCodes(m.ltree,u),n.F.makeCodes(m.dtree,d),n.F.revCodes(m.dtree,d),n.F.makeCodes(m.itree,h),n.F.revCodes(m.itree,h),T=m.ltree,R=m.dtree,b(c,l,p-257),b(c,l+=5,y-1),b(c,l+=5,g-4),l+=4;for(var N=0;N<g;N++)b(c,l+3*N,m.itree[1+(m.ordr[N]<<1)]);l+=3*g,l=n.F._codeTiny(_,m.itree,c,l),l=n.F._codeTiny(v,m.itree,c,l)}for(var U=i,O=0;O<r;O+=2){for(var C=t[O],$=C>>>23,x=U+(8388607&C);U<x;)l=n.F._writeLit(o[U++],T,c,l);if(0!=$){var L=t[O+1],k=L>>16,F=L>>8&255,M=255&L;b(c,l=n.F._writeLit(257+F,T,c,l),$-m.of0[F]),l+=m.exb[F],A(c,l=n.F._writeLit(M,R,c,l),k-m.df0[M]),l+=m.dxb[M],U+=$}}l=n.F._writeLit(256,T,c,l)}return l},n.F._copyExact=function(e,t,r,n,a){var o=a>>>3;return n[o]=r,n[o+1]=r>>>8,n[o+2]=255-n[o],n[o+3]=255-n[o+1],o+=4,n.set(new Uint8Array(e.buffer,t,r),o),a+(r+4<<3)},n.F.getTrees=function(){for(var e=n.F.U,t=n.F._hufTree(e.lhst,e.ltree,15),r=n.F._hufTree(e.dhst,e.dtree,15),a=[],o=n.F._lenCodes(e.ltree,a),i=[],s=n.F._lenCodes(e.dtree,i),c=0;c<a.length;c+=2)e.ihst[a[c]]++;for(c=0;c<i.length;c+=2)e.ihst[i[c]]++;for(var l=n.F._hufTree(e.ihst,e.itree,7),f=19;f>4&&0==e.itree[1+(e.ordr[f-1]<<1)];)f--;return[t,r,l,o,s,f,a,i]},n.F.getSecond=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(e[r+1]);return t},n.F.nonZero=function(e){for(var t="",r=0;r<e.length;r+=2)0!=e[r+1]&&(t+=(r>>1)+",");return t},n.F.contSize=function(e,t){for(var r=0,n=0;n<t.length;n++)r+=t[n]*e[1+(n<<1)];return r},n.F._codeTiny=function(e,t,r,a){for(var o=0;o<e.length;o+=2){var i=e[o],s=e[o+1];a=n.F._writeLit(i,t,r,a);var c=16==i?2:17==i?3:7;i>15&&(n.F._putsE(r,a,s,c),a+=c)}return a},n.F._lenCodes=function(e,t){for(var r=e.length;2!=r&&0==e[r-1];)r-=2;for(var n=0;n<r;n+=2){var a=e[n+1],o=n+3<r?e[n+3]:-1,i=n+5<r?e[n+5]:-1,s=0==n?-1:e[n-1];if(0==a&&o==a&&i==a){for(var c=n+5;c+2<r&&e[c+2]==a;)c+=2;(l=Math.min(c+1-n>>>1,138))<11?t.push(17,l-3):t.push(18,l-11),n+=2*l-2}else if(a==s&&o==a&&i==a){for(c=n+5;c+2<r&&e[c+2]==a;)c+=2;var l=Math.min(c+1-n>>>1,6);t.push(16,l-3),n+=2*l-2}else t.push(a,0)}return r>>>1},n.F._hufTree=function(e,t,r){var a=[],o=e.length,i=t.length,s=0;for(s=0;s<i;s+=2)t[s]=0,t[s+1]=0;for(s=0;s<o;s++)0!=e[s]&&a.push({lit:s,f:e[s]});var c=a.length,l=a.slice(0);if(0==c)return 0;if(1==c){var f=a[0].lit;return l=0==f?1:0,t[1+(f<<1)]=1,t[1+(l<<1)]=1,1}a.sort((function(e,t){return e.f-t.f}));var u=a[0],d=a[1],h=0,p=1,y=2;for(a[0]={lit:-1,f:u.f+d.f,l:u,r:d,d:0};p!=c-1;)u=h!=p&&(y==c||a[h].f<a[y].f)?a[h++]:a[y++],d=h!=p&&(y==c||a[h].f<a[y].f)?a[h++]:a[y++],a[p++]={lit:-1,f:u.f+d.f,l:u,r:d};var g=n.F.setDepth(a[p-1],0);for(g>r&&(n.F.restrictDepth(l,r,g),g=r),s=0;s<c;s++)t[1+(l[s].lit<<1)]=l[s].d;return g},n.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(n.F.setDepth(e.l,t+1),n.F.setDepth(e.r,t+1))},n.F.restrictDepth=function(e,t,r){var n=0,a=1<<r-t,o=0;for(e.sort((function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d})),n=0;n<e.length&&e[n].d>t;n++){var i=e[n].d;e[n].d=t,o+=a-(1<<r-i)}for(o>>>=r-t;o>0;)(i=e[n].d)<t?(e[n].d++,o-=1<<t-i-1):n++;for(;n>=0;n--)e[n].d==t&&o<0&&(e[n].d--,o++);0!=o&&console.log("debt left")},n.F._goodIndex=function(e,t){var r=0;return t[16|r]<=e&&(r|=16),t[8|r]<=e&&(r|=8),t[4|r]<=e&&(r|=4),t[2|r]<=e&&(r|=2),t[1|r]<=e&&(r|=1),r},n.F._writeLit=function(e,t,r,a){return n.F._putsF(r,a,t[e<<1]),a+t[1+(e<<1)]},n.F.inflate=function(e,t){var r=Uint8Array;if(3==e[0]&&0==e[1])return t||new r(0);var a=n.F,o=a._bitsF,i=a._bitsE,s=a._decodeTiny,c=a.makeCodes,l=a.codes2map,f=a._get17,u=a.U,d=null==t;d&&(t=new r(e.length>>>2<<3));for(var h,p,y=0,g=0,_=0,v=0,m=0,A=0,b=0,w=0,E=0;0==y;)if(y=o(e,E,1),g=o(e,E+1,2),E+=3,0!=g){if(d&&(t=n.F._check(t,w+(1<<17))),1==g&&(h=u.flmap,p=u.fdmap,A=511,b=31),2==g){_=i(e,E,5)+257,v=i(e,E+5,5)+1,m=i(e,E+10,4)+4,E+=14;for(var I=0;I<38;I+=2)u.itree[I]=0,u.itree[I+1]=0;var S=1;for(I=0;I<m;I++){var P=i(e,E+3*I,3);u.itree[1+(u.ordr[I]<<1)]=P,P>S&&(S=P)}E+=3*m,c(u.itree,S),l(u.itree,S,u.imap),h=u.lmap,p=u.dmap,E=s(u.imap,(1<<S)-1,_+v,e,E,u.ttree);var T=a._copyOut(u.ttree,0,_,u.ltree);A=(1<<T)-1;var R=a._copyOut(u.ttree,_,v,u.dtree);b=(1<<R)-1,c(u.ltree,T),l(u.ltree,T,h),c(u.dtree,R),l(u.dtree,R,p)}for(;;){var N=h[f(e,E)&A];E+=15&N;var U=N>>>4;if(U>>>8==0)t[w++]=U;else{if(256==U)break;var O=w+U-254;if(U>264){var C=u.ldef[U-257];O=w+(C>>>3)+i(e,E,7&C),E+=7&C}var $=p[f(e,E)&b];E+=15&$;var x=$>>>4,L=u.ddef[x],k=(L>>>4)+o(e,E,15&L);for(E+=15&L,d&&(t=n.F._check(t,w+(1<<17)));w<O;)t[w]=t[w++-k],t[w]=t[w++-k],t[w]=t[w++-k],t[w]=t[w++-k];w=O}}}else{0!=(7&E)&&(E+=8-(7&E));var F=4+(E>>>3),M=e[F-4]|e[F-3]<<8;d&&(t=n.F._check(t,w+M)),t.set(new r(e.buffer,e.byteOffset+F,M),w),E=F+M<<3,w+=M}return t.length==w?t:t.slice(0,w)},n.F._check=function(e,t){var r=e.length;if(t<=r)return e;var n=new Uint8Array(Math.max(r<<1,t));return n.set(e,0),n},n.F._decodeTiny=function(e,t,r,a,o,i){for(var s=n.F._bitsE,c=n.F._get17,l=0;l<r;){var f=e[c(a,o)&t];o+=15&f;var u=f>>>4;if(u<=15)i[l]=u,l++;else{var d=0,h=0;16==u?(h=3+s(a,o,2),o+=2,d=i[l-1]):17==u?(h=3+s(a,o,3),o+=3):18==u&&(h=11+s(a,o,7),o+=7);for(var p=l+h;l<p;)i[l]=d,l++}}return o},n.F._copyOut=function(e,t,r,n){for(var a=0,o=0,i=n.length>>>1;o<r;){var s=e[o+t];n[o<<1]=0,n[1+(o<<1)]=s,s>a&&(a=s),o++}for(;o<i;)n[o<<1]=0,n[1+(o<<1)]=0,o++;return a},n.F.makeCodes=function(e,t){for(var r,a,o,i,s=n.F.U,c=e.length,l=s.bl_count,f=0;f<=t;f++)l[f]=0;for(f=1;f<c;f+=2)l[e[f]]++;var u=s.next_code;for(r=0,l[0]=0,a=1;a<=t;a++)r=r+l[a-1]<<1,u[a]=r;for(o=0;o<c;o+=2)0!=(i=e[o+1])&&(e[o]=u[i],u[i]++)},n.F.codes2map=function(e,t,r){for(var a=e.length,o=n.F.U.rev15,i=0;i<a;i+=2)if(0!=e[i+1])for(var s=i>>1,c=e[i+1],l=s<<4|c,f=t-c,u=e[i]<<f,d=u+(1<<f);u!=d;)r[o[u]>>>15-t]=l,u++},n.F.revCodes=function(e,t){for(var r=n.F.U.rev15,a=15-t,o=0;o<e.length;o+=2){var i=e[o]<<t-e[o+1];e[o]=r[i]>>>a}},n.F._putsE=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8},n.F._putsF=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},n.F._bitsE=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<r)-1},n.F._bitsF=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<r)-1},n.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},n.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},n.F.U=(t=Uint16Array,r=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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,0],ldef:new t(32),df0:[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,65535,65535],dxb:[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,0,0],ddef:new r(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new r(286),dhst:new r(30),ihst:new r(19),lits:new r(15e3),strt:new t(65536),prev:new t(32768)}),function(){for(var e=n.F.U,t=0;t<32768;t++){var r=t;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,e.rev15[t]=(r>>>16|r<<16)>>>17}function a(e,t,r){for(;0!=t--;)e.push(0,r)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];a(e.fltree,144,8),a(e.fltree,112,9),a(e.fltree,24,7),a(e.fltree,8,8),n.F.makeCodes(e.fltree,9),n.F.codes2map(e.fltree,9,e.flmap),n.F.revCodes(e.fltree,9),a(e.fdtree,32,5),n.F.makeCodes(e.fdtree,5),n.F.codes2map(e.fdtree,5,e.fdmap),n.F.revCodes(e.fdtree,5),a(e.itree,19,0),a(e.ltree,286,0),a(e.dtree,30,0),a(e.ttree,320,0)}()})),UZIP=Object.freeze(_mergeNamespaces({__proto__:null,default:UZIP_1},[UZIP_1])),UPNG={},N,W,H;UPNG.toRGBA8=function(e){var t=e.width,r=e.height;if(null==e.tabs.acTL)return[UPNG.toRGBA8.decodeImage(e.data,t,r,e).buffer];var n=[];null==e.frames[0].data&&(e.frames[0].data=e.data);for(var a=t*r*4,o=new Uint8Array(a),i=new Uint8Array(a),s=new Uint8Array(a),c=0;c<e.frames.length;c++){var l=e.frames[c],f=l.rect.x,u=l.rect.y,d=l.rect.width,h=l.rect.height,p=UPNG.toRGBA8.decodeImage(l.data,d,h,e);if(0!=c)for(var y=0;y<a;y++)s[y]=o[y];if(0==l.blend?UPNG._copyTile(p,d,h,o,t,r,f,u,0):1==l.blend&&UPNG._copyTile(p,d,h,o,t,r,f,u,1),n.push(o.buffer.slice(0)),0==l.dispose);else if(1==l.dispose)UPNG._copyTile(i,d,h,o,t,r,f,u,0);else if(2==l.dispose)for(y=0;y<a;y++)o[y]=s[y]}return n},UPNG.toRGBA8.decodeImage=function(e,t,r,n){var a=t*r,o=UPNG.decode._getBPP(n),i=Math.ceil(t*o/8),s=new Uint8Array(4*a),c=new Uint32Array(s.buffer),l=n.ctype,f=n.depth,u=UPNG._bin.readUshort;if(6==l){var d=a<<2;if(8==f)for(var h=0;h<d;h+=4)s[h]=e[h],s[h+1]=e[h+1],s[h+2]=e[h+2],s[h+3]=e[h+3];if(16==f)for(h=0;h<d;h++)s[h]=e[h<<1]}else if(2==l){var p=n.tabs.tRNS;if(null==p){if(8==f)for(h=0;h<a;h++){var y=3*h;c[h]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y]}if(16==f)for(h=0;h<a;h++)y=6*h,c[h]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y]}else{var g=p[0],_=p[1],v=p[2];if(8==f)for(h=0;h<a;h++){var m=h<<2;y=3*h,c[h]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y],e[y]==g&&e[y+1]==_&&e[y+2]==v&&(s[m+3]=0)}if(16==f)for(h=0;h<a;h++)m=h<<2,y=6*h,c[h]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y],u(e,y)==g&&u(e,y+2)==_&&u(e,y+4)==v&&(s[m+3]=0)}}else if(3==l){var A=n.tabs.PLTE,b=n.tabs.tRNS,w=b?b.length:0;if(1==f)for(var E=0;E<r;E++){var I=E*i,S=E*t;for(h=0;h<t;h++){m=S+h<<2;var P=3*(T=e[I+(h>>3)]>>7-((7&h)<<0)&1);s[m]=A[P],s[m+1]=A[P+1],s[m+2]=A[P+2],s[m+3]=T<w?b[T]:255}}if(2==f)for(E=0;E<r;E++)for(I=E*i,S=E*t,h=0;h<t;h++)m=S+h<<2,P=3*(T=e[I+(h>>2)]>>6-((3&h)<<1)&3),s[m]=A[P],s[m+1]=A[P+1],s[m+2]=A[P+2],s[m+3]=T<w?b[T]:255;if(4==f)for(E=0;E<r;E++)for(I=E*i,S=E*t,h=0;h<t;h++)m=S+h<<2,P=3*(T=e[I+(h>>1)]>>4-((1&h)<<2)&15),s[m]=A[P],s[m+1]=A[P+1],s[m+2]=A[P+2],s[m+3]=T<w?b[T]:255;if(8==f)for(h=0;h<a;h++){var T;m=h<<2,P=3*(T=e[h]),s[m]=A[P],s[m+1]=A[P+1],s[m+2]=A[P+2],s[m+3]=T<w?b[T]:255}}else if(4==l){if(8==f)for(h=0;h<a;h++){m=h<<2;var R=e[N=h<<1];s[m]=R,s[m+1]=R,s[m+2]=R,s[m+3]=e[N+1]}if(16==f)for(h=0;h<a;h++){var N;m=h<<2,R=e[N=h<<2],s[m]=R,s[m+1]=R,s[m+2]=R,s[m+3]=e[N+2]}}else if(0==l)for(g=n.tabs.tRNS?n.tabs.tRNS:-1,E=0;E<r;E++){var U=E*i,O=E*t;if(1==f)for(var C=0;C<t;C++){var $=(R=255*(e[U+(C>>>3)]>>>7-(7&C)&1))==255*g?0:255;c[O+C]=$<<24|R<<16|R<<8|R}else if(2==f)for(C=0;C<t;C++)$=(R=85*(e[U+(C>>>2)]>>>6-((3&C)<<1)&3))==85*g?0:255,c[O+C]=$<<24|R<<16|R<<8|R;else if(4==f)for(C=0;C<t;C++)$=(R=17*(e[U+(C>>>1)]>>>4-((1&C)<<2)&15))==17*g?0:255,c[O+C]=$<<24|R<<16|R<<8|R;else if(8==f)for(C=0;C<t;C++)$=(R=e[U+C])==g?0:255,c[O+C]=$<<24|R<<16|R<<8|R;else if(16==f)for(C=0;C<t;C++)R=e[U+(C<<1)],$=u(e,U+(C<<h))==g?0:255,c[O+C]=$<<24|R<<16|R<<8|R}return s},UPNG.decode=function(e){for(var t,r=new Uint8Array(e),n=8,a=UPNG._bin,o=a.readUshort,i=a.readUint,s={tabs:{},frames:[]},c=new Uint8Array(r.length),l=0,f=0,u=[137,80,78,71,13,10,26,10],d=0;d<8;d++)if(r[d]!=u[d])throw"The input is not a PNG file!";for(;n<r.length;){var h=a.readUint(r,n);n+=4;var p=a.readASCII(r,n,4);if(n+=4,"IHDR"==p)UPNG.decode._IHDR(r,n,s);else if("CgBI"==p)s.tabs[p]=r.slice(n,n+4);else if("IDAT"==p){for(d=0;d<h;d++)c[l+d]=r[n+d];l+=h}else if("acTL"==p)s.tabs[p]={num_frames:i(r,n),num_plays:i(r,n+4)},t=new Uint8Array(r.length);else if("fcTL"==p){var y;0!=f&&((y=s.frames[s.frames.length-1]).data=UPNG.decode._decompress(s,t.slice(0,f),y.rect.width,y.rect.height),f=0);var g={x:i(r,n+12),y:i(r,n+16),width:i(r,n+4),height:i(r,n+8)},_=o(r,n+22);_=o(r,n+20)/(0==_?100:_);var v={rect:g,delay:Math.round(1e3*_),dispose:r[n+24],blend:r[n+25]};s.frames.push(v)}else if("fdAT"==p){for(d=0;d<h-4;d++)t[f+d]=r[n+d+4];f+=h-4}else if("pHYs"==p)s.tabs[p]=[a.readUint(r,n),a.readUint(r,n+4),r[n+8]];else if("cHRM"==p)for(s.tabs[p]=[],d=0;d<8;d++)s.tabs[p].push(a.readUint(r,n+4*d));else if("tEXt"==p||"zTXt"==p){null==s.tabs[p]&&(s.tabs[p]={});var m=a.nextZero(r,n),A=a.readASCII(r,n,m-n),b=n+h-m-1;if("tEXt"==p)I=a.readASCII(r,m+1,b);else{var w=UPNG.decode._inflate(r.slice(m+2,m+2+b));I=a.readUTF8(w,0,w.length)}s.tabs[p][A]=I}else if("iTXt"==p){null==s.tabs[p]&&(s.tabs[p]={}),m=0;var E=n;m=a.nextZero(r,E),A=a.readASCII(r,E,m-E);var I,S=r[E=m+1];r[E+1],E+=2,m=a.nextZero(r,E),a.readASCII(r,E,m-E),E=m+1,m=a.nextZero(r,E),a.readUTF8(r,E,m-E),b=h-((E=m+1)-n),0==S?I=a.readUTF8(r,E,b):(w=UPNG.decode._inflate(r.slice(E,E+b)),I=a.readUTF8(w,0,w.length)),s.tabs[p][A]=I}else if("PLTE"==p)s.tabs[p]=a.readBytes(r,n,h);else if("hIST"==p){var P=s.tabs.PLTE.length/3;for(s.tabs[p]=[],d=0;d<P;d++)s.tabs[p].push(o(r,n+2*d))}else if("tRNS"==p)3==s.ctype?s.tabs[p]=a.readBytes(r,n,h):0==s.ctype?s.tabs[p]=o(r,n):2==s.ctype&&(s.tabs[p]=[o(r,n),o(r,n+2),o(r,n+4)]);else if("gAMA"==p)s.tabs[p]=a.readUint(r,n)/1e5;else if("sRGB"==p)s.tabs[p]=r[n];else if("bKGD"==p)0==s.ctype||4==s.ctype?s.tabs[p]=[o(r,n)]:2==s.ctype||6==s.ctype?s.tabs[p]=[o(r,n),o(r,n+2),o(r,n+4)]:3==s.ctype&&(s.tabs[p]=r[n]);else if("IEND"==p)break;n+=h,a.readUint(r,n),n+=4}return 0!=f&&((y=s.frames[s.frames.length-1]).data=UPNG.decode._decompress(s,t.slice(0,f),y.rect.width,y.rect.height),f=0),s.data=UPNG.decode._decompress(s,c,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},UPNG.decode._decompress=function(e,t,r,n){var a=UPNG.decode._getBPP(e),o=Math.ceil(r*a/8),i=new Uint8Array((o+1+e.interlace)*n);return t=e.tabs.CgBI?UPNG.inflateRaw(t,i):UPNG.decode._inflate(t,i),0==e.interlace?t=UPNG.decode._filterZero(t,e,0,r,n):1==e.interlace&&(t=UPNG.decode._readInterlace(t,e)),t},UPNG.decode._inflate=function(e,t){return UPNG.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},UPNG.inflateRaw=(H={},H.H={},H.H.N=function(e,t){var r,n,a=Uint8Array,o=0,i=0,s=0,c=0,l=0,f=0,u=0,d=0,h=0;if(3==e[0]&&0==e[1])return t||new a(0);var p=H.H,y=p.b,g=p.e,_=p.R,v=p.n,m=p.A,A=p.Z,b=p.m,w=null==t;for(w&&(t=new a(e.length>>>2<<5));0==o;)if(o=y(e,h,1),i=y(e,h+1,2),h+=3,0!=i){if(w&&(t=H.H.W(t,d+(1<<17))),1==i&&(r=b.J,n=b.h,f=511,u=31),2==i){s=g(e,h,5)+257,c=g(e,h+5,5)+1,l=g(e,h+10,4)+4,h+=14;for(var E=1,I=0;I<38;I+=2)b.Q[I]=0,b.Q[I+1]=0;for(I=0;I<l;I++){var S=g(e,h+3*I,3);b.Q[1+(b.X[I]<<1)]=S,S>E&&(E=S)}h+=3*l,v(b.Q,E),m(b.Q,E,b.u),r=b.w,n=b.d,h=_(b.u,(1<<E)-1,s+c,e,h,b.v);var P=p.V(b.v,0,s,b.C);f=(1<<P)-1;var T=p.V(b.v,s,c,b.D);u=(1<<T)-1,v(b.C,P),m(b.C,P,r),v(b.D,T),m(b.D,T,n)}for(;;){var R=r[A(e,h)&f];h+=15&R;var N=R>>>4;if(N>>>8==0)t[d++]=N;else{if(256==N)break;var U=d+N-254;if(N>264){var O=b.q[N-257];U=d+(O>>>3)+g(e,h,7&O),h+=7&O}var C=n[A(e,h)&u];h+=15&C;var $=C>>>4,x=b.c[$],L=(x>>>4)+y(e,h,15&x);for(h+=15&x;d<U;)t[d]=t[d++-L],t[d]=t[d++-L],t[d]=t[d++-L],t[d]=t[d++-L];d=U}}}else{0!=(7&h)&&(h+=8-(7&h));var k=4+(h>>>3),F=e[k-4]|e[k-3]<<8;w&&(t=H.H.W(t,d+F)),t.set(new a(e.buffer,e.byteOffset+k,F),d),h=k+F<<3,d+=F}return t.length==d?t:t.slice(0,d)},H.H.W=function(e,t){var r=e.length;if(t<=r)return e;var n=new Uint8Array(r<<1);return n.set(e,0),n},H.H.R=function(e,t,r,n,a,o){for(var i=H.H.e,s=H.H.Z,c=0;c<r;){var l=e[s(n,a)&t];a+=15&l;var f=l>>>4;if(f<=15)o[c]=f,c++;else{var u=0,d=0;16==f?(d=3+i(n,a,2),a+=2,u=o[c-1]):17==f?(d=3+i(n,a,3),a+=3):18==f&&(d=11+i(n,a,7),a+=7);for(var h=c+d;c<h;)o[c]=u,c++}}return a},H.H.V=function(e,t,r,n){for(var a=0,o=0,i=n.length>>>1;o<r;){var s=e[o+t];n[o<<1]=0,n[1+(o<<1)]=s,s>a&&(a=s),o++}for(;o<i;)n[o<<1]=0,n[1+(o<<1)]=0,o++;return a},H.H.n=function(e,t){for(var r,n,a,o,i=H.H.m,s=e.length,c=i.j,l=0;l<=t;l++)c[l]=0;for(l=1;l<s;l+=2)c[e[l]]++;var f=i.K;for(r=0,c[0]=0,n=1;n<=t;n++)r=r+c[n-1]<<1,f[n]=r;for(a=0;a<s;a+=2)0!=(o=e[a+1])&&(e[a]=f[o],f[o]++)},H.H.A=function(e,t,r){for(var n=e.length,a=H.H.m.r,o=0;o<n;o+=2)if(0!=e[o+1])for(var i=o>>1,s=e[o+1],c=i<<4|s,l=t-s,f=e[o]<<l,u=f+(1<<l);f!=u;)r[a[f]>>>15-t]=c,f++},H.H.l=function(e,t){for(var r=H.H.m.r,n=15-t,a=0;a<e.length;a+=2){var o=e[a]<<t-e[a+1];e[a]=r[o]>>>n}},H.H.M=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8},H.H.I=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},H.H.e=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<r)-1},H.H.b=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<r)-1},H.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},H.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},H.H.m=(N=Uint16Array,W=Uint32Array,{K:new N(16),j:new N(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0],q:new N(32),p:[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,65535,65535],z:[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,0,0],c:new W(32),J:new N(512),_:[],h:new N(32),$:[],w:new N(32768),C:[],v:[],d:new N(32768),D:[],u:new N(512),Q:[],r:new N(32768),s:new W(286),Y:new W(30),a:new W(19),t:new W(15e3),k:new N(65536),g:new N(32768)}),function(){for(var e=H.H.m,t=0;t<32768;t++){var r=t;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,e.r[t]=(r>>>16|r<<16)>>>17}function n(e,t,r){for(;0!=t--;)e.push(0,r)}for(t=0;t<32;t++)e.q[t]=e.S[t]<<3|e.T[t],e.c[t]=e.p[t]<<4|e.z[t];n(e._,144,8),n(e._,112,9),n(e._,24,7),n(e._,8,8),H.H.n(e._,9),H.H.A(e._,9,e.J),H.H.l(e._,9),n(e.$,32,5),H.H.n(e.$,5),H.H.A(e.$,5,e.h),H.H.l(e.$,5),n(e.Q,19,0),n(e.C,286,0),n(e.D,30,0),n(e.v,320,0)}(),H.H.N),UPNG.decode._readInterlace=function(e,t){for(var r=t.width,n=t.height,a=UPNG.decode._getBPP(t),o=a>>3,i=Math.ceil(r*a/8),s=new Uint8Array(n*i),c=0,l=[0,0,4,0,2,0,1],f=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1],h=0;h<7;){for(var p=u[h],y=d[h],g=0,_=0,v=l[h];v<n;)v+=p,_++;for(var m=f[h];m<r;)m+=y,g++;var A=Math.ceil(g*a/8);UPNG.decode._filterZero(e,t,c,g,_);for(var b=0,w=l[h];w<n;){for(var E=f[h],I=c+b*A<<3;E<r;){var S;if(1==a&&(S=(S=e[I>>3])>>7-(7&I)&1,s[w*i+(E>>3)]|=S<<7-((7&E)<<0)),2==a&&(S=(S=e[I>>3])>>6-(7&I)&3,s[w*i+(E>>2)]|=S<<6-((3&E)<<1)),4==a&&(S=(S=e[I>>3])>>4-(7&I)&15,s[w*i+(E>>1)]|=S<<4-((1&E)<<2)),a>=8)for(var P=w*i+E*o,T=0;T<o;T++)s[P+T]=e[(I>>3)+T];I+=a,E+=y}b++,w+=p}g*_!=0&&(c+=_*(1+A)),h+=1}return s},UPNG.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},UPNG.decode._filterZero=function(e,t,r,n,a){var o=UPNG.decode._getBPP(t),i=Math.ceil(n*o/8),s=UPNG.decode._paeth;o=Math.ceil(o/8);var c=0,l=1,f=e[r],u=0;if(f>1&&(e[r]=[0,0,1][f-2]),3==f)for(u=o;u<i;u++)e[u+1]=e[u+1]+(e[u+1-o]>>>1)&255;for(var d=0;d<a;d++)if(u=0,0==(f=e[(l=(c=r+d*i)+d+1)-1]))for(;u<i;u++)e[c+u]=e[l+u];else if(1==f){for(;u<o;u++)e[c+u]=e[l+u];for(;u<i;u++)e[c+u]=e[l+u]+e[c+u-o]}else if(2==f)for(;u<i;u++)e[c+u]=e[l+u]+e[c+u-i];else if(3==f){for(;u<o;u++)e[c+u]=e[l+u]+(e[c+u-i]>>>1);for(;u<i;u++)e[c+u]=e[l+u]+(e[c+u-i]+e[c+u-o]>>>1)}else{for(;u<o;u++)e[c+u]=e[l+u]+s(0,e[c+u-i],0);for(;u<i;u++)e[c+u]=e[l+u]+s(e[c+u-o],e[c+u-i],e[c+u-o-i])}return e},UPNG.decode._paeth=function(e,t,r){var n=e+t-r,a=n-e,o=n-t,i=n-r;return a*a<=o*o&&a*a<=i*i?e:o*o<=i*i?t:r},UPNG.decode._IHDR=function(e,t,r){var n=UPNG._bin;r.width=n.readUint(e,t),t+=4,r.height=n.readUint(e,t),t+=4,r.depth=e[t],t++,r.ctype=e[t],t++,r.compress=e[t],t++,r.filter=e[t],t++,r.interlace=e[t],t++},UPNG._bin={nextZero:function(e,t){for(;0!=e[t];)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,r){e[t]=r>>8&255,e[t+1]=255&r},readUint:function(e,t){return 16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r},readASCII:function(e,t,r){for(var n="",a=0;a<r;a++)n+=String.fromCharCode(e[t+a]);return n},writeASCII:function(e,t,r){for(var n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},readBytes:function(e,t,r){for(var n=[],a=0;a<r;a++)n.push(e[t+a]);return n},pad:function(e){return e.length<2?"0".concat(e):e},readUTF8:function(e,t,r){for(var n,a="",o=0;o<r;o++)a+="%".concat(UPNG._bin.pad(e[t+o].toString(16)));try{n=decodeURIComponent(a)}catch(n){return UPNG._bin.readASCII(e,t,r)}return n}},UPNG._copyTile=function(e,t,r,n,a,o,i,s,c){for(var l=Math.min(t,a),f=Math.min(r,o),u=0,d=0,h=0;h<f;h++)for(var p=0;p<l;p++)if(i>=0&&s>=0?(u=h*t+p<<2,d=(s+h)*a+i+p<<2):(u=(-s+h)*t-i+p<<2,d=h*a+p<<2),0==c)n[d]=e[u],n[d+1]=e[u+1],n[d+2]=e[u+2],n[d+3]=e[u+3];else if(1==c){var y=e[u+3]*(1/255),g=e[u]*y,_=e[u+1]*y,v=e[u+2]*y,m=n[d+3]*(1/255),A=n[d]*m,b=n[d+1]*m,w=n[d+2]*m,E=1-y,I=y+m*E,S=0==I?0:1/I;n[d+3]=255*I,n[d+0]=(g+A*E)*S,n[d+1]=(_+b*E)*S,n[d+2]=(v+w*E)*S}else if(2==c)y=e[u+3],g=e[u],_=e[u+1],v=e[u+2],m=n[d+3],A=n[d],b=n[d+1],w=n[d+2],y==m&&g==A&&_==b&&v==w?(n[d]=0,n[d+1]=0,n[d+2]=0,n[d+3]=0):(n[d]=g,n[d+1]=_,n[d+2]=v,n[d+3]=y);else if(3==c){if(y=e[u+3],g=e[u],_=e[u+1],v=e[u+2],m=n[d+3],A=n[d],b=n[d+1],w=n[d+2],y==m&&g==A&&_==b&&v==w)continue;if(y<220&&m>20)return!1}return!0},UPNG.encode=function(e,t,r,n,a,o,i){null==n&&(n=0),null==i&&(i=!1);var s=UPNG.encode.compress(e,t,r,n,[!1,!1,!1,0,i]);return UPNG.encode.compressPNG(s,-1),UPNG.encode._main(s,t,r,a,o)},UPNG.encodeLL=function(e,t,r,n,a,o,i,s){for(var c={ctype:0+(1==n?0:2)+(0==a?0:4),depth:o,frames:[]},l=(n+a)*o,f=l*t,u=0;u<e.length;u++)c.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[u]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(f/8)});return UPNG.encode.compressPNG(c,0,!0),UPNG.encode._main(c,t,r,i,s)},UPNG.encode._main=function(e,t,r,n,a){null==a&&(a={});var o=UPNG.crc.crc,i=UPNG._bin.writeUint,s=UPNG._bin.writeUshort,c=UPNG._bin.writeASCII,l=8,f=e.frames.length>1,u=!1,d=33+(f?20:0);if(null!=a.sRGB&&(d+=13),null!=a.pHYs&&(d+=21),3==e.ctype){for(var h=e.plte.length,p=0;p<h;p++)e.plte[p]>>>24!=255&&(u=!0);d+=8+3*h+4+(u?8+1*h+4:0)}for(var y=0;y<e.frames.length;y++)f&&(d+=38),d+=(I=e.frames[y]).cimg.length+12,0!=y&&(d+=4);d+=12;var g=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)g[p]=_[p];if(i(g,l,13),c(g,l+=4,"IHDR"),i(g,l+=4,t),i(g,l+=4,r),g[l+=4]=e.depth,g[++l]=e.ctype,g[++l]=0,g[++l]=0,g[++l]=0,i(g,++l,o(g,l-17,17)),l+=4,null!=a.sRGB&&(i(g,l,1),c(g,l+=4,"sRGB"),g[l+=4]=a.sRGB,i(g,++l,o(g,l-5,5)),l+=4),null!=a.pHYs&&(i(g,l,9),c(g,l+=4,"pHYs"),i(g,l+=4,a.pHYs[0]),i(g,l+=4,a.pHYs[1]),g[l+=4]=a.pHYs[2],i(g,++l,o(g,l-13,13)),l+=4),f&&(i(g,l,8),c(g,l+=4,"acTL"),i(g,l+=4,e.frames.length),i(g,l+=4,null!=a.loop?a.loop:0),i(g,l+=4,o(g,l-12,12)),l+=4),3==e.ctype){for(i(g,l,3*(h=e.plte.length)),c(g,l+=4,"PLTE"),l+=4,p=0;p<h;p++){var v=3*p,m=e.plte[p],A=255&m,b=m>>>8&255,w=m>>>16&255;g[l+v+0]=A,g[l+v+1]=b,g[l+v+2]=w}if(i(g,l+=3*h,o(g,l-3*h-4,3*h+4)),l+=4,u){for(i(g,l,h),c(g,l+=4,"tRNS"),l+=4,p=0;p<h;p++)g[l+p]=e.plte[p]>>>24&255;i(g,l+=h,o(g,l-h-4,h+4)),l+=4}}var E=0;for(y=0;y<e.frames.length;y++){var I=e.frames[y];f&&(i(g,l,26),c(g,l+=4,"fcTL"),i(g,l+=4,E++),i(g,l+=4,I.rect.width),i(g,l+=4,I.rect.height),i(g,l+=4,I.rect.x),i(g,l+=4,I.rect.y),s(g,l+=4,n[y]),s(g,l+=2,1e3),g[l+=2]=I.dispose,g[++l]=I.blend,i(g,++l,o(g,l-30,30)),l+=4);var S=I.cimg;i(g,l,(h=S.length)+(0==y?0:4));var P=l+=4;c(g,l,0==y?"IDAT":"fdAT"),l+=4,0!=y&&(i(g,l,E++),l+=4),g.set(S,l),i(g,l+=h,o(g,P,l-P)),l+=4}return i(g,l,0),c(g,l+=4,"IEND"),i(g,l+=4,o(g,l-4,4)),l+=4,g.buffer},UPNG.encode.compressPNG=function(e,t,r){for(var n=0;n<e.frames.length;n++){var a=e.frames[n];a.rect.width;var o=a.rect.height,i=new Uint8Array(o*a.bpl+o);a.cimg=UPNG.encode._filterZero(a.img,o,a.bpp,a.bpl,i,t,r)}},UPNG.encode.compress=function(e,t,r,n,a){for(var o=a[0],i=a[1],s=a[2],c=a[3],l=a[4],f=6,u=8,d=255,h=0;h<e.length;h++)for(var p=new Uint8Array(e[h]),y=p.length,g=0;g<y;g+=4)d&=p[g+3];var _=255!=d,v=UPNG.encode.framize(e,t,r,o,i,s),m={},A=[],b=[];if(0!=n){var w=[];for(g=0;g<v.length;g++)w.push(v[g].img.buffer);var E=UPNG.encode.concatRGBA(w),I=UPNG.quantize(E,n),S=0,P=new Uint8Array(I.abuf);for(g=0;g<v.length;g++){var T=(W=v[g].img).length;for(b.push(new Uint8Array(I.inds.buffer,S>>2,T>>2)),h=0;h<T;h+=4)W[h]=P[S+h],W[h+1]=P[S+h+1],W[h+2]=P[S+h+2],W[h+3]=P[S+h+3];S+=T}for(g=0;g<I.plte.length;g++)A.push(I.plte[g].est.rgba)}else for(h=0;h<v.length;h++){var R=v[h],N=new Uint32Array(R.img.buffer),U=R.rect.width,O=(y=N.length,new Uint8Array(y));for(b.push(O),g=0;g<y;g++){var C=N[g];if(0!=g&&C==N[g-1])O[g]=O[g-1];else if(g>U&&C==N[g-U])O[g]=O[g-U];else{var $=m[C];if(null==$&&(m[C]=$=A.length,A.push(C),A.length>=300))break;O[g]=$}}}var x=A.length;for(x<=256&&0==l&&(u=x<=2?1:x<=4?2:x<=16?4:8,u=Math.max(u,c)),h=0;h<v.length;h++){(R=v[h]).rect.x,R.rect.y,U=R.rect.width;var L=R.rect.height,k=R.img;new Uint32Array(k.buffer);var F=4*U,M=4;if(x<=256&&0==l){F=Math.ceil(u*U/8);for(var B=new Uint8Array(F*L),D=b[h],G=0;G<L;G++){g=G*F;var j=G*U;if(8==u)for(var H=0;H<U;H++)B[g+H]=D[j+H];else if(4==u)for(H=0;H<U;H++)B[g+(H>>1)]|=D[j+H]<<4-4*(1&H);else if(2==u)for(H=0;H<U;H++)B[g+(H>>2)]|=D[j+H]<<6-2*(3&H);else if(1==u)for(H=0;H<U;H++)B[g+(H>>3)]|=D[j+H]<<7-1*(7&H)}k=B,f=3,M=1}else if(0==_&&1==v.length){B=new Uint8Array(U*L*3);var V=U*L;for(g=0;g<V;g++){var W,z=4*g;B[W=3*g]=k[z],B[W+1]=k[z+1],B[W+2]=k[z+2]}k=B,f=2,M=3,F=3*U}R.img=k,R.bpl=F,R.bpp=M}return{ctype:f,depth:u,plte:A,frames:v}},UPNG.encode.framize=function(e,t,r,n,a,o){for(var i=[],s=0;s<e.length;s++){var c,l=new Uint8Array(e[s]),f=new Uint32Array(l.buffer),u=0,d=0,h=t,p=r,y=n?1:0;if(0!=s){for(var g=o||n||1==s||0!=i[s-2].dispose?1:2,_=0,v=1e9,m=0;m<g;m++){for(var A=new Uint8Array(e[s-1-m]),b=new Uint32Array(e[s-1-m]),w=t,E=r,I=-1,S=-1,P=0;P<r;P++)for(var T=0;T<t;T++)f[x=P*t+T]!=b[x]&&(T<w&&(w=T),T>I&&(I=T),P<E&&(E=P),P>S&&(S=P));-1==I&&(w=E=I=S=0),a&&(1==(1&w)&&w--,1==(1&E)&&E--);var R=(I-w+1)*(S-E+1);R<v&&(v=R,_=m,u=w,d=E,h=I-w+1,p=S-E+1)}A=new Uint8Array(e[s-1-_]),1==_&&(i[s-1].dispose=2),c=new Uint8Array(h*p*4),UPNG._copyTile(A,t,r,c,h,p,-u,-d,0),1==(y=UPNG._copyTile(l,t,r,c,h,p,-u,-d,3)?1:0)?UPNG.encode._prepareDiff(l,t,r,c,{x:u,y:d,width:h,height:p}):UPNG._copyTile(l,t,r,c,h,p,-u,-d,0)}else c=l.slice(0);i.push({rect:{x:u,y:d,width:h,height:p},img:c,blend:y,dispose:0})}if(n)for(s=0;s<i.length;s++)if(1!=(L=i[s]).blend){var N=L.rect,U=i[s-1].rect,O=Math.min(N.x,U.x),C=Math.min(N.y,U.y),$={x:O,y:C,width:Math.max(N.x+N.width,U.x+U.width)-O,height:Math.max(N.y+N.height,U.y+U.height)-C};i[s-1].dispose=1,s-1!=0&&UPNG.encode._updateFrame(e,t,r,i,s-1,$,a),UPNG.encode._updateFrame(e,t,r,i,s,$,a)}if(1!=e.length)for(var x=0;x<i.length;x++){var L;(L=i[x]).rect.width,L.rect.height}return i},UPNG.encode._updateFrame=function(e,t,r,n,a,o,i){for(var s=Uint8Array,c=Uint32Array,l=new s(e[a-1]),f=new c(e[a-1]),u=a+1<e.length?new s(e[a+1]):null,d=new s(e[a]),h=new c(d.buffer),p=t,y=r,g=-1,_=-1,v=0;v<o.height;v++)for(var m=0;m<o.width;m++){var A=o.x+m,b=o.y+v,w=b*t+A,E=h[w];0==E||0==n[a-1].dispose&&f[w]==E&&(null==u||0!=u[4*w+3])||(A<p&&(p=A),A>g&&(g=A),b<y&&(y=b),b>_&&(_=b))}-1==g&&(p=y=g=_=0),i&&(1==(1&p)&&p--,1==(1&y)&&y--),o={x:p,y:y,width:g-p+1,height:_-y+1};var I=n[a];I.rect=o,I.blend=1,I.img=new Uint8Array(o.width*o.height*4),0==n[a-1].dispose?(UPNG._copyTile(l,t,r,I.img,o.width,o.height,-o.x,-o.y,0),UPNG.encode._prepareDiff(d,t,r,I.img,o)):UPNG._copyTile(d,t,r,I.img,o.width,o.height,-o.x,-o.y,0)},UPNG.encode._prepareDiff=function(e,t,r,n,a){UPNG._copyTile(e,t,r,n,a.width,a.height,-a.x,-a.y,2)},UPNG.encode._filterZero=function(e,t,r,n,a,o,i){var s,c=[],l=[0,1,2,3,4];-1!=o?l=[o]:(t*n>5e5||1==r)&&(l=[0]),i&&(s={level:0});for(var f,u=UZIP,d=0;d<l.length;d++){for(var h=0;h<t;h++)UPNG.encode._filterLine(a,e,h,n,r,l[d]);c.push(u.deflate(a,s))}var p=1e9;for(d=0;d<c.length;d++)c[d].length<p&&(f=d,p=c[d].length);return c[f]},UPNG.encode._filterLine=function(e,t,r,n,a,o){var i=r*n,s=i+r,c=UPNG.decode._paeth;if(e[s]=o,s++,0==o)if(n<500)for(var l=0;l<n;l++)e[s+l]=t[i+l];else e.set(new Uint8Array(t.buffer,i,n),s);else if(1==o){for(l=0;l<a;l++)e[s+l]=t[i+l];for(l=a;l<n;l++)e[s+l]=t[i+l]-t[i+l-a]+256&255}else if(0==r){for(l=0;l<a;l++)e[s+l]=t[i+l];if(2==o)for(l=a;l<n;l++)e[s+l]=t[i+l];if(3==o)for(l=a;l<n;l++)e[s+l]=t[i+l]-(t[i+l-a]>>1)+256&255;if(4==o)for(l=a;l<n;l++)e[s+l]=t[i+l]-c(t[i+l-a],0,0)+256&255}else{if(2==o)for(l=0;l<n;l++)e[s+l]=t[i+l]+256-t[i+l-n]&255;if(3==o){for(l=0;l<a;l++)e[s+l]=t[i+l]+256-(t[i+l-n]>>1)&255;for(l=a;l<n;l++)e[s+l]=t[i+l]+256-(t[i+l-n]+t[i+l-a]>>1)&255}if(4==o){for(l=0;l<a;l++)e[s+l]=t[i+l]+256-c(0,t[i+l-n],0)&255;for(l=a;l<n;l++)e[s+l]=t[i+l]+256-c(t[i+l-a],t[i+l-n],t[i+l-a-n])&255}}},UPNG.crc={table:function(){for(var e=new Uint32Array(256),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}return e}(),update:function(e,t,r,n){for(var a=0;a<n;a++)e=UPNG.crc.table[255&(e^t[r+a])]^e>>>8;return e},crc:function(e,t,r){return 4294967295^UPNG.crc.update(4294967295,e,t,r)}},UPNG.quantize=function(e,t){var r,n=new Uint8Array(e),a=n.slice(0),o=new Uint32Array(a.buffer),i=UPNG.quantize.getKDtree(a,t),s=i[0],c=i[1],l=UPNG.quantize.planeDst,f=n,u=o,d=f.length,h=new Uint8Array(n.length>>2);if(n.length<2e7)for(var p=0;p<d;p+=4){var y=f[p]*(1/255),g=f[p+1]*(1/255),_=f[p+2]*(1/255),v=f[p+3]*(1/255);r=UPNG.quantize.getNearest(s,y,g,_,v),h[p>>2]=r.ind,u[p>>2]=r.est.rgba}else for(p=0;p<d;p+=4){for(y=f[p]*(1/255),g=f[p+1]*(1/255),_=f[p+2]*(1/255),v=f[p+3]*(1/255),r=s;r.left;)r=l(r.est,y,g,_,v)<=0?r.left:r.right;h[p>>2]=r.ind,u[p>>2]=r.est.rgba}return{abuf:a.buffer,inds:h,plte:c}},UPNG.quantize.getKDtree=function(e,t,r){null==r&&(r=1e-4);var n=new Uint32Array(e.buffer),a={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};a.bst=UPNG.quantize.stats(e,a.i0,a.i1),a.est=UPNG.quantize.estats(a.bst);for(var o=[a];o.length<t;){for(var i=0,s=0,c=0;c<o.length;c++)o[c].est.L>i&&(i=o[c].est.L,s=c);if(i<r)break;var l=o[s],f=UPNG.quantize.splitPixels(e,n,l.i0,l.i1,l.est.e,l.est.eMq255);if(l.i0>=f||l.i1<=f)l.est.L=0;else{var u={i0:l.i0,i1:f,bst:null,est:null,tdst:0,left:null,right:null};u.bst=UPNG.quantize.stats(e,u.i0,u.i1),u.est=UPNG.quantize.estats(u.bst);var d={i0:f,i1:l.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:l.bst.N-u.bst.N},c=0;c<16;c++)d.bst.R[c]=l.bst.R[c]-u.bst.R[c];for(c=0;c<4;c++)d.bst.m[c]=l.bst.m[c]-u.bst.m[c];d.est=UPNG.quantize.estats(d.bst),l.left=u,l.right=d,o[s]=u,o.push(d)}}for(o.sort((function(e,t){return t.bst.N-e.bst.N})),c=0;c<o.length;c++)o[c].ind=c;return[a,o]},UPNG.quantize.getNearest=function(e,t,r,n,a){if(null==e.left)return e.tdst=UPNG.quantize.dist(e.est.q,t,r,n,a),e;var o=UPNG.quantize.planeDst(e.est,t,r,n,a),i=e.left,s=e.right;o>0&&(i=e.right,s=e.left);var c=UPNG.quantize.getNearest(i,t,r,n,a);if(c.tdst<=o*o)return c;var l=UPNG.quantize.getNearest(s,t,r,n,a);return l.tdst<c.tdst?l:c},UPNG.quantize.planeDst=function(e,t,r,n,a){var o=e.e;return o[0]*t+o[1]*r+o[2]*n+o[3]*a-e.eMq},UPNG.quantize.dist=function(e,t,r,n,a){var o=t-e[0],i=r-e[1],s=n-e[2],c=a-e[3];return o*o+i*i+s*s+c*c},UPNG.quantize.splitPixels=function(e,t,r,n,a,o){var i=UPNG.quantize.vecDot;for(n-=4;r<n;){for(;i(e,r,a)<=o;)r+=4;for(;i(e,n,a)>o;)n-=4;if(r>=n)break;var s=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=s,r+=4,n-=4}for(;i(e,r,a)>o;)r-=4;return r+4},UPNG.quantize.vecDot=function(e,t,r){return e[t]*r[0]+e[t+1]*r[1]+e[t+2]*r[2]+e[t+3]*r[3]},UPNG.quantize.stats=function(e,t,r){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],o=r-t>>2,i=t;i<r;i+=4){var s=e[i]*(1/255),c=e[i+1]*(1/255),l=e[i+2]*(1/255),f=e[i+3]*(1/255);a[0]+=s,a[1]+=c,a[2]+=l,a[3]+=f,n[0]+=s*s,n[1]+=s*c,n[2]+=s*l,n[3]+=s*f,n[5]+=c*c,n[6]+=c*l,n[7]+=c*f,n[10]+=l*l,n[11]+=l*f,n[15]+=f*f}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:a,N:o}},UPNG.quantize.estats=function(e){var t=e.R,r=e.m,n=e.N,a=r[0],o=r[1],i=r[2],s=r[3],c=0==n?0:1/n,l=[t[0]-a*a*c,t[1]-a*o*c,t[2]-a*i*c,t[3]-a*s*c,t[4]-o*a*c,t[5]-o*o*c,t[6]-o*i*c,t[7]-o*s*c,t[8]-i*a*c,t[9]-i*o*c,t[10]-i*i*c,t[11]-i*s*c,t[12]-s*a*c,t[13]-s*o*c,t[14]-s*i*c,t[15]-s*s*c],f=l,u=UPNG.M4,d=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,p=0;if(0!=n)for(var y=0;y<16&&(d=u.multVec(f,d),p=Math.sqrt(u.dot(d,d)),d=u.sml(1/p,d),!(0!=y&&Math.abs(p-h)<1e-9));y++)h=p;var g=[a*c,o*c,i*c,s*c];return{Cov:l,q:g,e:d,L:h,eMq255:u.dot(u.sml(255,g),d),eMq:u.dot(d,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},UPNG.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},UPNG.encode.concatRGBA=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].byteLength;var n=new Uint8Array(t),a=0;for(r=0;r<e.length;r++){for(var o=new Uint8Array(e[r]),i=o.length,s=0;s<i;s+=4){var c=o[s],l=o[s+1],f=o[s+2],u=o[s+3];0==u&&(c=l=f=0),n[a+s]=c,n[a+s+1]=l,n[a+s+2]=f,n[a+s+3]=u}a+=i}return n.buffer};var MaxCanvasSize={chrome:16384,firefox:11180,"desktop safari":16384,"internet explorer":8192,"mobile safari":4096,etc:8192},isBrowser="undefined"!=typeof window,moduleMapper=isBrowser&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=isBrowser&&(moduleMapper&&moduleMapper.getOriginalSymbol(window,"File")||void 0!==window.File&&File),CustomFileReader=isBrowser&&(moduleMapper&&moduleMapper.getOriginalSymbol(window,"FileReader")||void 0!==window.FileReader&&FileReader);function getFilefromDataUrl(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise((function(n){for(var a=e.split(","),o=a[0].match(/:(.*?);/)[1],i=globalThis.atob(a[1]),s=i.length,c=new Uint8Array(s);s--;)c[s]=i.charCodeAt(s);var l=new Blob([c],{type:o});l.name=t,l.lastModified=r,n(l)}))}function getDataUrlFromFile(e){return new Promise((function(t,r){var n=new CustomFileReader;n.onload=function(){return t(n.result)},n.onerror=function(e){return r(e)},n.readAsDataURL(e)}))}function loadImage(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(e){return r(e)},n.src=e}))}function getBrowserName(){var e="etc",t=navigator.userAgent;return/Chrom(e|ium)/i.test(t)?e="chrome":/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)&&!/(CriOS|FxiOS|OPiOS|mercury)/i.test(t)?e="mobile safari":/Safari/i.test(t)?e="desktop safari":/Firefox/i.test(t)?e="firefox":(/MSIE/i.test(t)||1==!!document.documentMode)&&(e="internet explorer"),e}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){for(var r=getBrowserName(),n=MaxCanvasSize[r],a=e,o=t,i=a*o,s=a>o?o/a:a/o;i>n*n;){var c=(n+a)/2,l=(n+o)/2;c<l?(o=l,a=l*s):(o=c*s,a=c),i=a*o}return{width:a,height:o}}function getNewCanvasAndCtx(e,t){var r,n;try{if(null===(n=(r=new OffscreenCanvas(e,t)).getContext("2d")))throw new Error("getContext of OffscreenCanvas returns null")}catch(e){n=(r=document.createElement("canvas")).getContext("2d")}return r.width=e,r.height=t,[r,n]}function drawImageInCanvas(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),n=r.width,a=r.height,o=getNewCanvasAndCtx(n,a),i=_slicedToArray(o,2),s=i[0],c=i[1];return t&&/jpe?g/.test(t)&&(c.fillStyle="white",c.fillRect(0,0,s.width,s.height)),c.drawImage(e,0,0,s.width,s.height),s}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e){return new Promise((function(t,r){var n,a,o=function(){try{return a=drawImageInCanvas(n,e.type),t([n,a])}catch(e){return r(e)}},i=function(t){try{var a=function(e){try{throw e}catch(e){return r(e)}};try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return n=e,function(){try{return o()}catch(e){return r(e)}}()}catch(e){return a(e)}}),a)}catch(e){return a(e)}}),a)}catch(e){a(e)}}catch(e){return r(e)}};try{if(isIOS())throw new Error("Skip createImageBitmap on IOS device");return createImageBitmap(e).then((function(e){try{return n=e,o()}catch(e){return i()}}),i)}catch(e){i()}}))}function canvasToFile(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(o,i){var s,c,l;if("image/png"===t)return c=e.getContext("2d").getImageData(0,0,e.width,e.height).data,l=UPNG.encode([c],e.width,e.height,256*a),(s=new Blob([l],{type:t})).name=r,s.lastModified=n,u.call(this);{return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:t,quality:a}).then(function(e){try{return(s=e).name=r,s.lastModified=n,f.call(this)}catch(e){return i(e)}}.bind(this),i):getFilefromDataUrl(e.toDataURL(t,a),r,n).then(function(e){try{return s=e,f.call(this)}catch(e){return i(e)}}.bind(this),i);function f(){return u.call(this)}}function u(){return o(s)}}))}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise((function(e,t){var r,n,a,o;return void 0!==isAutoOrientationInBrowser.result?e(isAutoOrientationInBrowser.result):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then((function(i){try{return drawFileInCanvas(r=i).then((function(i){try{return canvasToFile(n=i[1],r.type,r.name,r.lastModified).then((function(r){try{return a=r,cleanupCanvasMemory(n),drawFileInCanvas(a).then((function(r){try{return o=r[0],isAutoOrientationInBrowser.result=1===o.width&&2===o.height,e(isAutoOrientationInBrowser.result)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}))}function getExifOrientation(e){return new Promise((function(t,r){var n=new CustomFileReader;n.onload=function(e){var r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return t(-2);for(var n=r.byteLength,a=2;a<n;){if(r.getUint16(a+2,!1)<=8)return t(-1);var o=r.getUint16(a,!1);if(a+=2,65505==o){if(1165519206!=r.getUint32(a+=2,!1))return t(-1);var i=18761==r.getUint16(a+=6,!1);a+=r.getUint32(a+4,i);var s=r.getUint16(a,i);a+=2;for(var c=0;c<s;c++)if(274==r.getUint16(a+12*c,i))return t(r.getUint16(a+12*c+8,i))}else{if(65280!=(65280&o))break;a+=r.getUint16(a,!1)}}return t(-1)},n.onerror=function(e){return r(e)},n.readAsArrayBuffer(e)}))}function handleMaxWidthOrHeight(e,t){var r,n=e.width,a=e.height,o=t.maxWidthOrHeight,i=e;if(isFinite(o)&&(n>o||a>o)){var s=_slicedToArray(getNewCanvasAndCtx(n,a),2);i=s[0],r=s[1],n>a?(i.width=o,i.height=a/n*o):(i.width=n/a*o,i.height=o),r.drawImage(e,0,0,i.width,i.height),cleanupCanvasMemory(e)}return i}function followExifOrientation(e,t){var r=e.width,n=e.height,a=_slicedToArray(getNewCanvasAndCtx(r,n),2),o=a[0],i=a[1];switch(t>4&&t<9?(o.width=n,o.height=r):(o.width=r,o.height=n),t){case 2:i.transform(-1,0,0,1,r,0);break;case 3:i.transform(-1,0,0,-1,r,n);break;case 4:i.transform(1,0,0,-1,0,n);break;case 5:i.transform(0,1,1,0,0,0);break;case 6:i.transform(0,1,-1,0,n,0);break;case 7:i.transform(0,-1,-1,0,n,r);break;case 8:i.transform(0,-1,1,0,0,r)}return i.drawImage(e,0,0,r,n),cleanupCanvasMemory(e),o}function compress(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise((function(n,a){var o,i,s,c,l,f,u,d,h,p,y,g,_,v,m,A,b,w;function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;o+=e,t.onProgress(Math.min(o,100))}function I(e){o=Math.min(Math.max(e,o),100),t.onProgress(o)}return o=r,i=t.maxIteration||10,s=1024*t.maxSizeMB*1024,E(),drawFileInCanvas(e).then(function(r){try{var o=_slicedToArray(r,2);return c=o[1],E(),l=handleMaxWidthOrHeight(c,t),E(),new Promise((function(r,n){var a;if(!(a=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return a=e,o.call(this)}catch(e){return n(e)}}.bind(this),n);function o(){return r(a)}return o.call(this)})).then(function(r){try{return f=r,E(),isAutoOrientationInBrowser().then(function(r){try{return u=r?l:followExifOrientation(l,f),E(),d=t.initialQuality||1,h=t.fileType||e.type,canvasToFile(u,h,e.name,e.lastModified,d).then(function(t){try{{if(p=t,E(),y=p.size>s,g=p.size>e.size,!y&&!g)return I(100),n(p);var r;function o(){if(i--&&(m>s||m>_)){var t,r,n=_slicedToArray(getNewCanvasAndCtx(t=y?.95*w.width:w.width,r=y?.95*w.height:w.height),2);return b=n[0],n[1].drawImage(w,0,0,t,r),d*=.95,canvasToFile(b,h,e.name,e.lastModified,d).then((function(e){try{return A=e,cleanupCanvasMemory(w),w=b,m=A.size,I(Math.min(99,Math.floor((v-m)/(v-s)*100))),o}catch(e){return a(e)}}),a)}return[1]}return _=e.size,v=p.size,m=v,w=u,(r=function(e){for(;e;){if(e.then)return void e.then(r,a);try{if(e.pop){if(e.length)return e.pop()?f.call(this):e;e=o}else e=e.call(this)}catch(e){return a(e)}}}.bind(this))(o);function f(){return cleanupCanvasMemory(w),cleanupCanvasMemory(b),cleanupCanvasMemory(l),cleanupCanvasMemory(u),cleanupCanvasMemory(c),I(100),n(A)}}}catch(e){return a(e)}}.bind(this),a)}catch(e){return a(e)}}.bind(this),a)}catch(e){return a(e)}}.bind(this),a)}catch(e){return a(e)}}.bind(this),a)}))}var charAt=stringMultibyte.charAt,STRING_ITERATOR="String Iterator",setInternalState$2=internalState.set,getInternalState=internalState.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$2(this,{type:STRING_ITERATOR,string:toString(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=charAt(r,n),t.index+=e.length,{value:e,done:!1})}));var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype,ITERATOR$2=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=es_array_iterator.values,handlePrototype$1=function(e,t){if(e){if(e[ITERATOR$2]!==ArrayValues)try{createNonEnumerableProperty(e,ITERATOR$2,ArrayValues)}catch(t){e[ITERATOR$2]=ArrayValues}if(e[TO_STRING_TAG]||createNonEnumerableProperty(e,TO_STRING_TAG,t),domIterables[t])for(var r in es_array_iterator)if(e[r]!==es_array_iterator[r])try{createNonEnumerableProperty(e,r,es_array_iterator[r])}catch(t){e[r]=es_array_iterator[r]}}};for(var COLLECTION_NAME$1 in domIterables)handlePrototype$1(global$1[COLLECTION_NAME$1]&&global$1[COLLECTION_NAME$1].prototype,COLLECTION_NAME$1);handlePrototype$1(domTokenListPrototype,"DOMTokenList");var ITERATOR$1=wellKnownSymbol("iterator"),nativeUrl=!fails((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),isPure&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$1]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),callWithSafeIterationClosing=function(e,t,r,n){try{return n?t(anObject(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},arrayFrom=function(e){var t=toObject(e),r=isConstructor(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=functionBindContext(a,n>2?arguments[2]:void 0,2));var i,s,c,l,f,u,d=getIteratorMethod(t),h=0;if(!d||this==Array&&isArrayIteratorMethod(d))for(i=toLength(t.length),s=r?new this(i):Array(i);i>h;h++)u=o?a(t[h],h):t[h],createProperty(s,h,u);else for(f=(l=getIterator(t,d)).next,s=r?new this:[];!(c=f.call(l)).done;h++)u=o?callWithSafeIterationClosing(l,a,[c.value,h],!0):c.value,createProperty(s,h,u);return s.length=h,s},maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,floor$2=Math.floor,stringFromCharCode=String.fromCharCode,ucs2decode=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&a)<<10)+(1023&o)+65536):(t.push(a),r--)}else t.push(a)}return t},digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?floor$2(e/damp):e>>1,e+=floor$2(e/t);e>baseMinusTMin*tMax>>1;n+=base)e=floor$2(e/baseMinusTMin);return floor$2(n+(baseMinusTMin+1)*e/(e+skew))},encode=function(e){var t,r,n=[],a=(e=ucs2decode(e)).length,o=initialN,i=0,s=initialBias;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(stringFromCharCode(r));var c=n.length,l=c;for(c&&n.push(delimiter);l<a;){var f=maxInt;for(t=0;t<e.length;t++)(r=e[t])>=o&&r<f&&(f=r);var u=l+1;if(f-o>floor$2((maxInt-i)/u))throw RangeError(OVERFLOW_ERROR);for(i+=(f-o)*u,o=f,t=0;t<e.length;t++){if((r=e[t])<o&&++i>maxInt)throw RangeError(OVERFLOW_ERROR);if(r==o){for(var d=i,h=base;;h+=base){var p=h<=s?tMin:h>=s+tMax?tMax:h-s;if(d<p)break;var y=d-p,g=base-p;n.push(stringFromCharCode(digitToBasic(p+y%g))),d=floor$2(y/g)}n.push(stringFromCharCode(digitToBasic(d))),s=adapt(i,u,l==c),i=0,++l}}++i,++o}return n.join("")},stringPunycodeToAscii=function(e){var t,r,n=[],a=e.toLowerCase().replace(regexSeparators,".").split(".");for(t=0;t<a.length;t++)r=a[t],n.push(regexNonASCII.test(r)?"xn--"+encode(r):r);return n.join(".")},nativeFetch=getBuiltIn("fetch"),NativeRequest=getBuiltIn("Request"),RequestPrototype=NativeRequest&&NativeRequest.prototype,Headers=getBuiltIn("Headers"),ITERATOR=wellKnownSymbol("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1=internalState.set,getInternalParamsState=internalState.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=internalState.getterFor(URL_SEARCH_PARAMS_ITERATOR),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent(e)}catch(t){return e}},deserialize=function(e){var t=e.replace(plus," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replace$1={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replace$1[e]},serialize=function(e){return encodeURIComponent(e).replace(find,replacer)},parseSearchParams=function(e,t){if(t)for(var r,n,a=t.split("&"),o=0;o<a.length;)(r=a[o++]).length&&(n=r.split("="),e.push({key:deserialize(n.shift()),value:deserialize(n.join("="))}))},updateSearchParams=function(e){this.entries.length=0,parseSearchParams(this.entries,e)},validateArgumentsLength=function(e,t){if(e<t)throw TypeError("Not enough arguments")},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsConstructor,URL_SEARCH_PARAMS);var e,t,r,n,a,o,i,s,c,l=arguments.length>0?arguments[0]:void 0,f=this,u=[];if(setInternalState$1(f,{type:URL_SEARCH_PARAMS,entries:u,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==l)if(isObject(l))if(e=getIteratorMethod(l))for(r=(t=getIterator(l,e)).next;!(n=r.call(t)).done;){if((i=(o=(a=getIterator(anObject(n.value))).next).call(a)).done||(s=o.call(a)).done||!o.call(a).done)throw TypeError("Expected sequence with length 2");u.push({key:toString(i.value),value:toString(s.value)})}else for(c in l)has$1(l,c)&&u.push({key:c,value:toString(l[c])});else parseSearchParams(u,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:toString(l))},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(redefineAll(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength(arguments.length,2);var r=getInternalParamsState(this);r.entries.push({key:toString(e),value:toString(t)}),r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=toString(e),a=0;a<r.length;)r[a].key===n?r.splice(a,1):a++;t.updateURL()},get:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=toString(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=toString(e),n=[],a=0;a<t.length;a++)t[a].key===r&&n.push(t[a].value);return n},has:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=toString(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength(arguments.length,1);for(var r,n=getInternalParamsState(this),a=n.entries,o=!1,i=toString(e),s=toString(t),c=0;c<a.length;c++)(r=a[c]).key===i&&(o?a.splice(c--,1):(o=!0,r.value=s));o||a.push({key:i,value:s}),n.updateURL()},sort:function(){var e,t,r,n=getInternalParamsState(this),a=n.entries,o=a.slice();for(a.length=0,r=0;r<o.length;r++){for(e=o[r],t=0;t<r;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=functionBindContext(e,arguments.length>1?arguments[1]:void 0,3),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),redefine(URLSearchParamsPrototype,ITERATOR,URLSearchParamsPrototype.entries,{name:"entries"}),redefine(URLSearchParamsPrototype,"toString",(function(){for(var e,t=getInternalParamsState(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(serialize(e.key)+"="+serialize(e.value));return r.join("&")}),{enumerable:!0}),setToStringTag(URLSearchParamsConstructor,URL_SEARCH_PARAMS),_export({global:!0,forced:!nativeUrl},{URLSearchParams:URLSearchParamsConstructor}),!nativeUrl&&isCallable(Headers)){var wrapRequestOptions=function(e){if(isObject(e)){var t,r=e.body;if(classof(r)===URL_SEARCH_PARAMS)return(t=e.headers?new Headers(e.headers):new Headers).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),objectCreate(e,{body:createPropertyDescriptor(0,String(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance(this,RequestConstructor,"Request"),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,_export({global:!0,forced:!0},{Request:RequestConstructor})}}var web_urlSearchParams={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},codeAt=stringMultibyte.codeAt,NativeURL=global$1.URL,URLSearchParams$1=web_urlSearchParams.URLSearchParams,getInternalSearchParamsState=web_urlSearchParams.getState,setInternalState=internalState.set,getInternalURLState=internalState.getterFor("URL"),floor$1=Math.floor,pow=Math.pow,INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,TAB_AND_NEW_LINE=/[\t\n\r]/g,EOF,parseHost=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return INVALID_HOST;if(!(r=parseIPv6(t.slice(1,-1))))return INVALID_HOST;e.host=r}else if(isSpecial(e)){if(t=stringPunycodeToAscii(t),FORBIDDEN_HOST_CODE_POINT.test(t))return INVALID_HOST;if(null===(r=parseIPv4(t)))return INVALID_HOST;e.host=r}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(t))return INVALID_HOST;for(r="",n=arrayFrom(t),a=0;a<n.length;a++)r+=percentEncode(n[a],C0ControlPercentEncodeSet);e.host=r}},parseIPv4=function(e){var t,r,n,a,o,i,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=c[n]))return e;if(o=10,a.length>1&&"0"==a.charAt(0)&&(o=HEX_START.test(a)?16:8,a=a.slice(8==o?1:2)),""===a)i=0;else{if(!(10==o?DEC:8==o?OCT:HEX).test(a))return e;i=parseInt(a,o)}r.push(i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=pow(256,5-t))return null}else if(i>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*pow(256,3-n);return s},parseIPv6=function(e){var t,r,n,a,o,i,s,c=[0,0,0,0,0,0,0,0],l=0,f=null,u=0,d=function(){return e.charAt(u)};if(":"==d()){if(":"!=e.charAt(1))return;u+=2,f=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=r=0;r<4&&HEX.test(d());)t=16*t+parseInt(d(),16),u++,r++;if("."==d()){if(0==r)return;if(u-=r,l>6)return;for(n=0;d();){if(a=null,n>0){if(!("."==d()&&n<4))return;u++}if(!DIGIT.test(d()))return;for(;DIGIT.test(d());){if(o=parseInt(d(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;u++}c[l]=256*c[l]+a,2!=++n&&4!=n||l++}if(4!=n)return;break}if(":"==d()){if(u++,!d())return}else if(d())return;c[l++]=t}else{if(null!==f)return;u++,f=++l}}if(null!==f)for(i=l-f,l=7;0!=l&&i>0;)s=c[l],c[l--]=c[f+i-1],c[f+--i]=s;else if(8!=l)return;return c},findLongestZeroSequence=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t},serializeHost=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=floor$1(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=findLongestZeroSequence(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=objectAssign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=objectAssign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=objectAssign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=codeAt(e,0);return r>32&&r<127&&!has$1(t,e)?e:encodeURIComponent(e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(e){return has$1(specialSchemes,e.scheme)},includesCredentials=function(e){return""!=e.username||""!=e.password},cannotHaveUsernamePasswordPort=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&ALPHA.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},shortenURLsPath=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&isWindowsDriveLetter(t[0],!0)||t.pop()},isSingleDot=function(e){return"."===e||"%2e"===e.toLowerCase()},isDoubleDot=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(e,t,r,n){var a,o,i,s,c=r||SCHEME_START,l=0,f="",u=!1,d=!1,h=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,"")),t=t.replace(TAB_AND_NEW_LINE,""),a=arrayFrom(t);l<=a.length;){switch(o=a[l],c){case SCHEME_START:if(!o||!ALPHA.test(o)){if(r)return INVALID_SCHEME;c=NO_SCHEME;continue}f+=o.toLowerCase(),c=SCHEME;break;case SCHEME:if(o&&(ALPHANUMERIC.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(r)return INVALID_SCHEME;f="",c=NO_SCHEME,l=0;continue}if(r&&(isSpecial(e)!=has$1(specialSchemes,f)||"file"==f&&(includesCredentials(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,r)return void(isSpecial(e)&&specialSchemes[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?c=FILE:isSpecial(e)&&n&&n.scheme==e.scheme?c=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(e)?c=SPECIAL_AUTHORITY_SLASHES:"/"==a[l+1]?(c=PATH_OR_AUTHORITY,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!n||n.cannotBeABaseURL&&"#"!=o)return INVALID_SCHEME;if(n.cannotBeABaseURL&&"#"==o){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=FRAGMENT;break}c="file"==n.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=o||"/"!=a[l+1]){c=RELATIVE;continue}c=SPECIAL_AUTHORITY_IGNORE_SLASHES,l++;break;case PATH_OR_AUTHORITY:if("/"==o){c=AUTHORITY;break}c=PATH;continue;case RELATIVE:if(e.scheme=n.scheme,o==EOF)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==o||"\\"==o&&isSpecial(e))c=RELATIVE_SLASH;else if("?"==o)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=QUERY;else{if("#"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=PATH;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=FRAGMENT}break;case RELATIVE_SLASH:if(!isSpecial(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=PATH;continue}c=AUTHORITY}else c=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(c=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=o||"/"!=f.charAt(l+1))continue;l++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=o&&"\\"!=o){c=AUTHORITY;continue}break;case AUTHORITY:if("@"==o){u&&(f="%40"+f),u=!0,i=arrayFrom(f);for(var p=0;p<i.length;p++){var y=i[p];if(":"!=y||h){var g=percentEncode(y,userinfoPercentEncodeSet);h?e.password+=g:e.username+=g}else h=!0}f=""}else if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&isSpecial(e)){if(u&&""==f)return INVALID_AUTHORITY;l-=arrayFrom(f).length+1,f="",c=HOST}else f+=o;break;case HOST:case HOSTNAME:if(r&&"file"==e.scheme){c=FILE_HOST;continue}if(":"!=o||d){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&isSpecial(e)){if(isSpecial(e)&&""==f)return INVALID_HOST;if(r&&""==f&&(includesCredentials(e)||null!==e.port))return;if(s=parseHost(e,f))return s;if(f="",c=PATH_START,r)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return INVALID_HOST;if(s=parseHost(e,f))return s;if(f="",c=PORT,r==HOSTNAME)return}break;case PORT:if(!DIGIT.test(o)){if(o==EOF||"/"==o||"?"==o||"#"==o||"\\"==o&&isSpecial(e)||r){if(""!=f){var _=parseInt(f,10);if(_>65535)return INVALID_PORT;e.port=isSpecial(e)&&_===specialSchemes[e.scheme]?null:_,f=""}if(r)return;c=PATH_START;continue}return INVALID_PORT}f+=o;break;case FILE:if(e.scheme="file","/"==o||"\\"==o)c=FILE_SLASH;else{if(!n||"file"!=n.scheme){c=PATH;continue}if(o==EOF)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==o)e.host=n.host,e.path=n.path.slice(),e.query="",c=QUERY;else{if("#"!=o){startsWithWindowsDriveLetter(a.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),shortenURLsPath(e)),c=PATH;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=FRAGMENT}}break;case FILE_SLASH:if("/"==o||"\\"==o){c=FILE_HOST;break}n&&"file"==n.scheme&&!startsWithWindowsDriveLetter(a.slice(l).join(""))&&(isWindowsDriveLetter(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=PATH;continue;case FILE_HOST:if(o==EOF||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&isWindowsDriveLetter(f))c=PATH;else if(""==f){if(e.host="",r)return;c=PATH_START}else{if(s=parseHost(e,f))return s;if("localhost"==e.host&&(e.host=""),r)return;f="",c=PATH_START}continue}f+=o;break;case PATH_START:if(isSpecial(e)){if(c=PATH,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=EOF&&(c=PATH,"/"!=o))continue}else e.fragment="",c=FRAGMENT;else e.query="",c=QUERY;break;case PATH:if(o==EOF||"/"==o||"\\"==o&&isSpecial(e)||!r&&("?"==o||"#"==o)){if(isDoubleDot(f)?(shortenURLsPath(e),"/"==o||"\\"==o&&isSpecial(e)||e.path.push("")):isSingleDot(f)?"/"==o||"\\"==o&&isSpecial(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&isWindowsDriveLetter(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==EOF||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",c=QUERY):"#"==o&&(e.fragment="",c=FRAGMENT)}else f+=percentEncode(o,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==o?(e.query="",c=QUERY):"#"==o?(e.fragment="",c=FRAGMENT):o!=EOF&&(e.path[0]+=percentEncode(o,C0ControlPercentEncodeSet));break;case QUERY:r||"#"!=o?o!=EOF&&("'"==o&&isSpecial(e)?e.query+="%27":e.query+="#"==o?"%23":percentEncode(o,C0ControlPercentEncodeSet)):(e.fragment="",c=FRAGMENT);break;case FRAGMENT:o!=EOF&&(e.fragment+=percentEncode(o,fragmentPercentEncodeSet))}l++}},URLConstructor=function(e){var t,r,n=anInstance(this,URLConstructor,"URL"),a=arguments.length>1?arguments[1]:void 0,o=toString(e),i=setInternalState(n,{type:"URL"});if(void 0!==a)if(a instanceof URLConstructor)t=getInternalURLState(a);else if(r=parseURL(t={},toString(a)))throw TypeError(r);if(r=parseURL(i,o,null,t))throw TypeError(r);var s=i.searchParams=new URLSearchParams$1,c=getInternalSearchParamsState(s);c.updateSearchParams(i.query),c.updateURL=function(){i.query=String(s)||null},descriptors||(n.href=serializeURL.call(n),n.origin=getOrigin.call(n),n.protocol=getProtocol.call(n),n.username=getUsername.call(n),n.password=getPassword.call(n),n.host=getHost.call(n),n.hostname=getHostname.call(n),n.port=getPort.call(n),n.pathname=getPathname.call(n),n.search=getSearch.call(n),n.searchParams=getSearchParams.call(n),n.hash=getHash.call(n))},URLPrototype=URLConstructor.prototype,serializeURL=function(){var e=getInternalURLState(this),t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==a?(l+="//",includesCredentials(e)&&(l+=r+(n?":"+n:"")+"@"),l+=serializeHost(a),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},getOrigin=function(){var e=getInternalURLState(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URLConstructor(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&isSpecial(e)?t+"://"+serializeHost(e.host)+(null!==r?":"+r:""):"null"},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var e=getInternalURLState(this),t=e.host,r=e.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},getHostname=function(){var e=getInternalURLState(this).host;return null===e?"":serializeHost(e)},getPort=function(){var e=getInternalURLState(this).port;return null===e?"":String(e)},getPathname=function(){var e=getInternalURLState(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},getSearch=function(){var e=getInternalURLState(this).query;return e?"?"+e:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var e=getInternalURLState(this).fragment;return e?"#"+e:""},accessorDescriptor=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(descriptors&&objectDefineProperties(URLPrototype,{href:accessorDescriptor(serializeURL,(function(e){var t=getInternalURLState(this),r=toString(e),n=parseURL(t,r);if(n)throw TypeError(n);getInternalSearchParamsState(t.searchParams).updateSearchParams(t.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(e){var t=getInternalURLState(this);parseURL(t,toString(e)+":",SCHEME_START)})),username:accessorDescriptor(getUsername,(function(e){var t=getInternalURLState(this),r=arrayFrom(toString(e));if(!cannotHaveUsernamePasswordPort(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=percentEncode(r[n],userinfoPercentEncodeSet)}})),password:accessorDescriptor(getPassword,(function(e){var t=getInternalURLState(this),r=arrayFrom(toString(e));if(!cannotHaveUsernamePasswordPort(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=percentEncode(r[n],userinfoPercentEncodeSet)}})),host:accessorDescriptor(getHost,(function(e){var t=getInternalURLState(this);t.cannotBeABaseURL||parseURL(t,toString(e),HOST)})),hostname:accessorDescriptor(getHostname,(function(e){var t=getInternalURLState(this);t.cannotBeABaseURL||parseURL(t,toString(e),HOSTNAME)})),port:accessorDescriptor(getPort,(function(e){var t=getInternalURLState(this);cannotHaveUsernamePasswordPort(t)||(""==(e=toString(e))?t.port=null:parseURL(t,e,PORT))})),pathname:accessorDescriptor(getPathname,(function(e){var t=getInternalURLState(this);t.cannotBeABaseURL||(t.path=[],parseURL(t,toString(e),PATH_START))})),search:accessorDescriptor(getSearch,(function(e){var t=getInternalURLState(this);""==(e=toString(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",parseURL(t,e,QUERY)),getInternalSearchParamsState(t.searchParams).updateSearchParams(t.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(e){var t=getInternalURLState(this);""!=(e=toString(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",parseURL(t,e,FRAGMENT)):t.fragment=null}))}),redefine(URLPrototype,"toJSON",(function(){return serializeURL.call(this)}),{enumerable:!0}),redefine(URLPrototype,"toString",(function(){return serializeURL.call(this)}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&redefine(URLConstructor,"createObjectURL",(function(e){return nativeCreateObjectURL.apply(NativeURL,arguments)})),nativeRevokeObjectURL&&redefine(URLConstructor,"revokeObjectURL",(function(e){return nativeRevokeObjectURL.apply(NativeURL,arguments)}))}setToStringTag(URLConstructor,"URL"),_export({global:!0,forced:!nativeUrl,sham:!descriptors},{URL:URLConstructor});var $forEach=arrayIteration.forEach,STRICT_METHOD=arrayMethodIsStrict("forEach"),arrayForEach=STRICT_METHOD?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},handlePrototype=function(e){if(e&&e.forEach!==arrayForEach)try{createNonEnumerableProperty(e,"forEach",arrayForEach)}catch(t){e.forEach=arrayForEach}};for(var COLLECTION_NAME in domIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype);handlePrototype(domTokenListPrototype);var propertyIsEnumerable=objectPropertyIsEnumerable.f,createMethod=function(e){return function(t){for(var r,n=toIndexedObject(t),a=objectKeys(n),o=a.length,i=0,s=[];o>i;)r=a[i++],descriptors&&!propertyIsEnumerable.call(n,r)||s.push(e?[r,n[r]]:n[r]);return s}},objectToArray={entries:createMethod(!0),values:createMethod(!1)},$entries=objectToArray.entries;_export({target:"Object",stat:!0},{entries:function(e){return $entries(e)}});var getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,$startsWith="".startsWith,min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegexpLogic("startsWith"),MDN_POLYFILL_BUG=!(CORRECT_IS_REGEXP_LOGIC||(descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith"),!descriptor||descriptor.writable)),descriptor;_export({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{startsWith:function(e){var t=toString(requireObjectCoercible(this));notARegexp(e);var r=toLength(min$1(arguments.length>1?arguments[1]:void 0,t.length)),n=toString(e);return $startsWith?$startsWith.call(t,n,r):t.slice(r,r+n.length)===n}});var floor=Math.floor,replace="".replace,SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution=function(e,t,r,n,a,o){var i=r+e.length,s=n.length,c=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==a&&(a=toObject(a),c=SUBSTITUTION_SYMBOLS),replace.call(o,c,(function(o,c){var l;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(i);case"<":l=a[c.slice(1,-1)];break;default:var f=+c;if(0===f)return o;if(f>s){var u=floor(f/10);return 0===u?o:u<=s?void 0===n[u-1]?c.charAt(1):n[u-1]+c.charAt(1):o}l=n[f-1]}return void 0===l?"":l}))},REPLACE=wellKnownSymbol("replace"),max=Math.max,min=Math.min,maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));fixRegexpWellKnownSymbolLogic("replace",(function(e,t,r){var n=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,r){var n=requireObjectCoercible(this),a=null==e?void 0:getMethod(e,REPLACE);return a?a.call(e,n,r):t.call(toString(n),e,r)},function(e,a){var o=anObject(this),i=toString(e);if("string"==typeof a&&-1===a.indexOf(n)&&-1===a.indexOf("$<")){var s=r(t,o,i,a);if(s.done)return s.value}var c=isCallable(a);c||(a=toString(a));var l=o.global;if(l){var f=o.unicode;o.lastIndex=0}for(var u=[];;){var d=regexpExecAbstract(o,i);if(null===d)break;if(u.push(d),!l)break;""===toString(d[0])&&(o.lastIndex=advanceStringIndex(i,toLength(o.lastIndex),f))}for(var h="",p=0,y=0;y<u.length;y++){d=u[y];for(var g=toString(d[0]),_=max(min(toInteger(d.index),i.length),0),v=[],m=1;m<d.length;m++)v.push(maybeToString(d[m]));var A=d.groups;if(c){var b=[g].concat(v,_,i);void 0!==A&&b.push(A);var w=toString(a.apply(void 0,b))}else w=getSubstitution(g,i,_,v,A,a);_>=p&&(h+=i.slice(p,_)+w,p=_+g.length)}return h+i.slice(p)}]}),!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable"),MAX_SAFE_INTEGER=9007199254740991,MAXIMUM_ALLOWED_INDEX_EXCEEDED="Maximum allowed index exceeded",IS_CONCAT_SPREADABLE_SUPPORT=engineV8Version>=51||!fails((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray(e)},FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;_export({target:"Array",proto:!0,forced:FORCED},{concat:function(e){var t,r,n,a,o,i=toObject(this),s=arraySpeciesCreate(i,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(o=-1===t?i:arguments[t])){if(c+(a=toLength(o.length))>MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);for(r=0;r<a;r++,c++)r in o&&createProperty(s,c,o[r])}else{if(c>=MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);createProperty(s,c++,o)}return s.length=c,s}});var cnt=0,imageCompressionLibUrl,worker;function createWorker(e){var t=[];return"function"==typeof e?t.push("(".concat(e,")()")):t.push(e),new Worker(URL.createObjectURL(new Blob(t)))}function createSourceObject(e){return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}function stringify(e){return JSON.stringify(e,(function(e,t){return"function"==typeof t?"BIC_FN:::(function () { return ".concat(t.toString()," })()"):t}))}function parse(o){if("string"==typeof o)return o;var result={};return Object.entries(o).forEach((function(_ref){var _ref2=_slicedToArray(_ref,2),key=_ref2[0],value=_ref2[1];if("string"==typeof value&&value.startsWith("BIC_FN:::"))try{result[key]=eval(value.replace(/^BIC_FN:::/,""))}catch(e){throw e}else result[key]=parse(value)})),result}function generateLib(){return createSourceObject("\n // reconstruct library\n function imageCompression (){return (".concat(imageCompression,").apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ").concat(imageCompression.getDataUrlFromFile,"\n imageCompression.getFilefromDataUrl = ").concat(imageCompression.getFilefromDataUrl,"\n imageCompression.loadImage = ").concat(imageCompression.loadImage,"\n imageCompression.drawImageInCanvas = ").concat(imageCompression.drawImageInCanvas,"\n imageCompression.drawFileInCanvas = ").concat(imageCompression.drawFileInCanvas,"\n imageCompression.canvasToFile = ").concat(imageCompression.canvasToFile,"\n imageCompression.getExifOrientation = ").concat(imageCompression.getExifOrientation,"\n imageCompression.handleMaxWidthOrHeight = ").concat(imageCompression.handleMaxWidthOrHeight,"\n imageCompression.followExifOrientation = ").concat(imageCompression.followExifOrientation,"\n imageCompression.cleanupCanvasMemory = ").concat(imageCompression.cleanupCanvasMemory,"\n imageCompression.isAutoOrientationInBrowser = ").concat(imageCompression.isAutoOrientationInBrowser,"\n imageCompression.approximateBelowMaximumCanvasSizeOfBrowser = ").concat(imageCompression.approximateBelowMaximumCanvasSizeOfBrowser,"\n imageCompression.getBrowserName = ").concat(imageCompression.getBrowserName,"\n\n // functions / objects\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupCanvasMemory = imageCompression.cleanupCanvasMemory\n isAutoOrientationInBrowser = imageCompression.isAutoOrientationInBrowser\n approximateBelowMaximumCanvasSizeOfBrowser = imageCompression.approximateBelowMaximumCanvasSizeOfBrowser\n getBrowserName = imageCompression.getBrowserName\n isIOS = ").concat(isIOS,"\n \n getNewCanvasAndCtx = ").concat(getNewCanvasAndCtx,"\n CustomFileReader = FileReader\n CustomFile = File\n MaxCanvasSize = ").concat(JSON.stringify(MaxCanvasSize),"\n function compress (){return (").concat(compress,").apply(null, arguments)}\n\n // core-js\n function _slicedToArray(arr, n) { return arr }\n function _typeof(a) { return typeof a }\n function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n \n Object.assign(target, source)\n }\n \n return target;\n }\n\n // Libraries\n const parse = ").concat(parse,"\n const UPNG = {}\n UPNG.toRGBA8 = ").concat(UPNG.toRGBA8,"\n UPNG.toRGBA8.decodeImage = ").concat(UPNG.toRGBA8.decodeImage,"\n UPNG.decode = ").concat(UPNG.decode,"\n UPNG.decode._decompress = ").concat(UPNG.decode._decompress,"\n UPNG.decode._inflate = ").concat(UPNG.decode._inflate,"\n UPNG.decode._readInterlace = ").concat(UPNG.decode._readInterlace,"\n UPNG.decode._getBPP = ").concat(UPNG.decode._getBPP," \n UPNG.decode._filterZero = ").concat(UPNG.decode._filterZero,"\n UPNG.decode._paeth = ").concat(UPNG.decode._paeth,"\n UPNG.decode._IHDR = ").concat(UPNG.decode._IHDR,"\n UPNG._bin = parse(").concat(stringify(UPNG._bin),")\n UPNG._copyTile = ").concat(UPNG._copyTile,"\n UPNG.encode = ").concat(UPNG.encode,"\n UPNG.encodeLL = ").concat(UPNG.encodeLL," \n UPNG.encode._main = ").concat(UPNG.encode._main,"\n UPNG.encode.compressPNG = ").concat(UPNG.encode.compressPNG," \n UPNG.encode.compress = ").concat(UPNG.encode.compress,"\n UPNG.encode.framize = ").concat(UPNG.encode.framize," \n UPNG.encode._updateFrame = ").concat(UPNG.encode._updateFrame," \n UPNG.encode._prepareDiff = ").concat(UPNG.encode._prepareDiff," \n UPNG.encode._filterZero = ").concat(UPNG.encode._filterZero," \n UPNG.encode._filterLine = ").concat(UPNG.encode._filterLine,"\n UPNG.encode.concatRGBA = ").concat(UPNG.encode.concatRGBA,"\n UPNG.crc = parse(").concat(stringify(UPNG.crc),")\n UPNG.crc.table = ( function() {\n var tab = new Uint32Array(256);\n for (var n=0; n<256; n++) {\n var c = n;\n for (var k=0; k<8; k++) {\n if (c & 1) c = 0xedb88320 ^ (c >>> 1);\n else c = c >>> 1;\n }\n tab[n] = c; }\n return tab; })()\n UPNG.quantize = ").concat(UPNG.quantize," \n UPNG.quantize.getKDtree = ").concat(UPNG.quantize.getKDtree," \n UPNG.quantize.getNearest = ").concat(UPNG.quantize.getNearest," \n UPNG.quantize.planeDst = ").concat(UPNG.quantize.planeDst," \n UPNG.quantize.dist = ").concat(UPNG.quantize.dist," \n UPNG.quantize.splitPixels = ").concat(UPNG.quantize.splitPixels," \n UPNG.quantize.vecDot = ").concat(UPNG.quantize.vecDot," \n UPNG.quantize.stats = ").concat(UPNG.quantize.stats," \n UPNG.quantize.estats = ").concat(UPNG.quantize.estats,"\n UPNG.M4 = parse(").concat(stringify(UPNG.M4),")\n UPNG.encode.concatRGBA = ").concat(UPNG.encode.concatRGBA,'\n UPNG.inflateRaw=function(){\n var H={};H.H={};H.H.N=function(N,W){var R=Uint8Array,i=0,m=0,J=0,h=0,Q=0,X=0,u=0,w=0,d=0,v,C;\n if(N[0]==3&&N[1]==0)return W?W:new R(0);var V=H.H,n=V.b,A=V.e,l=V.R,M=V.n,I=V.A,e=V.Z,b=V.m,Z=W==null;\n if(Z)W=new R(N.length>>>2<<5);while(i==0){i=n(N,d,1);m=n(N,d+1,2);d+=3;if(m==0){if((d&7)!=0)d+=8-(d&7);\n var D=(d>>>3)+4,q=N[D-4]|N[D-3]<<8;if(Z)W=H.H.W(W,w+q);W.set(new R(N.buffer,N.byteOffset+D,q),w);d=D+q<<3;\n w+=q;continue}if(Z)W=H.H.W(W,w+(1<<17));if(m==1){v=b.J;C=b.h;X=(1<<9)-1;u=(1<<5)-1}if(m==2){J=A(N,d,5)+257;\n h=A(N,d+5,5)+1;Q=A(N,d+10,4)+4;d+=14;var E=d,j=1;for(var c=0;c<38;c+=2){b.Q[c]=0;b.Q[c+1]=0}for(var c=0;\n c<Q;c++){var K=A(N,d+c*3,3);b.Q[(b.X[c]<<1)+1]=K;if(K>j)j=K}d+=3*Q;M(b.Q,j);I(b.Q,j,b.u);v=b.w;C=b.d;\n d=l(b.u,(1<<j)-1,J+h,N,d,b.v);var r=V.V(b.v,0,J,b.C);X=(1<<r)-1;var S=V.V(b.v,J,h,b.D);u=(1<<S)-1;M(b.C,r);\n I(b.C,r,v);M(b.D,S);I(b.D,S,C)}while(!0){var T=v[e(N,d)&X];d+=T&15;var p=T>>>4;if(p>>>8==0){W[w++]=p}else if(p==256){break}else{var z=w+p-254;\n if(p>264){var _=b.q[p-257];z=w+(_>>>3)+A(N,d,_&7);d+=_&7}var $=C[e(N,d)&u];d+=$&15;var s=$>>>4,Y=b.c[s],a=(Y>>>4)+n(N,d,Y&15);\n d+=Y&15;while(w<z){W[w]=W[w++-a];W[w]=W[w++-a];W[w]=W[w++-a];W[w]=W[w++-a]}w=z}}}return W.length==w?W:W.slice(0,w)};\n H.H.W=function(N,W){var R=N.length;if(W<=R)return N;var V=new Uint8Array(R<<1);V.set(N,0);return V};\n H.H.R=function(N,W,R,V,n,A){var l=H.H.e,M=H.H.Z,I=0;while(I<R){var e=N[M(V,n)&W];n+=e&15;var b=e>>>4;\n if(b<=15){A[I]=b;I++}else{var Z=0,m=0;if(b==16){m=3+l(V,n,2);n+=2;Z=A[I-1]}else if(b==17){m=3+l(V,n,3);\n n+=3}else if(b==18){m=11+l(V,n,7);n+=7}var J=I+m;while(I<J){A[I]=Z;I++}}}return n};H.H.V=function(N,W,R,V){var n=0,A=0,l=V.length>>>1;\n while(A<R){var M=N[A+W];V[A<<1]=0;V[(A<<1)+1]=M;if(M>n)n=M;A++}while(A<l){V[A<<1]=0;V[(A<<1)+1]=0;A++}return n};\n H.H.n=function(N,W){var R=H.H.m,V=N.length,n,A,l,M,I,e=R.j;for(var M=0;M<=W;M++)e[M]=0;for(M=1;M<V;M+=2)e[N[M]]++;\n var b=R.K;n=0;e[0]=0;for(A=1;A<=W;A++){n=n+e[A-1]<<1;b[A]=n}for(l=0;l<V;l+=2){I=N[l+1];if(I!=0){N[l]=b[I];\n b[I]++}}};H.H.A=function(N,W,R){var V=N.length,n=H.H.m,A=n.r;for(var l=0;l<V;l+=2)if(N[l+1]!=0){var M=l>>1,I=N[l+1],e=M<<4|I,b=W-I,Z=N[l]<<b,m=Z+(1<<b);\n while(Z!=m){var J=A[Z]>>>15-W;R[J]=e;Z++}}};H.H.l=function(N,W){var R=H.H.m.r,V=15-W;for(var n=0;n<N.length;\n n+=2){var A=N[n]<<W-N[n+1];N[n]=R[A]>>>V}};H.H.M=function(N,W,R){R=R<<(W&7);var V=W>>>3;N[V]|=R;N[V+1]|=R>>>8};\n H.H.I=function(N,W,R){R=R<<(W&7);var V=W>>>3;N[V]|=R;N[V+1]|=R>>>8;N[V+2]|=R>>>16};H.H.e=function(N,W,R){return(N[W>>>3]|N[(W>>>3)+1]<<8)>>>(W&7)&(1<<R)-1};\n H.H.b=function(N,W,R){return(N[W>>>3]|N[(W>>>3)+1]<<8|N[(W>>>3)+2]<<16)>>>(W&7)&(1<<R)-1};H.H.Z=function(N,W){return(N[W>>>3]|N[(W>>>3)+1]<<8|N[(W>>>3)+2]<<16)>>>(W&7)};\n H.H.i=function(N,W){return(N[W>>>3]|N[(W>>>3)+1]<<8|N[(W>>>3)+2]<<16|N[(W>>>3)+3]<<24)>>>(W&7)};H.H.m=function(){var N=Uint16Array,W=Uint32Array;\n return{K:new N(16),j:new N(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0],q:new N(32),p:[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,65535,65535],z:[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,0,0],c:new W(32),J:new N(512),_:[],h:new N(32),$:[],w:new N(32768),C:[],v:[],d:new N(32768),D:[],u:new N(512),Q:[],r:new N(1<<15),s:new W(286),Y:new W(30),a:new W(19),t:new W(15e3),k:new N(1<<16),g:new N(1<<15)}}();\n (function(){var N=H.H.m,W=1<<15;for(var R=0;R<W;R++){var V=R;V=(V&2863311530)>>>1|(V&1431655765)<<1;\n V=(V&3435973836)>>>2|(V&858993459)<<2;V=(V&4042322160)>>>4|(V&252645135)<<4;V=(V&4278255360)>>>8|(V&16711935)<<8;\n N.r[R]=(V>>>16|V<<16)>>>17}function n(A,l,M){while(l--!=0)A.push(0,M)}for(var R=0;R<32;R++){N.q[R]=N.S[R]<<3|N.T[R];\n N.c[R]=N.p[R]<<4|N.z[R]}n(N._,144,8);n(N._,255-143,9);n(N._,279-255,7);n(N._,287-279,8);H.H.n(N._,9);\n H.H.A(N._,9,N.J);H.H.l(N._,9);n(N.$,32,5);H.H.n(N.$,5);H.H.A(N.$,5,N.h);H.H.l(N.$,5);n(N.Q,19,0);n(N.C,286,0);\n n(N.D,30,0);n(N.v,320,0)}());return H.H.N}()\n \n const UZIP = {}\n UZIP["parse"] = ').concat(UZIP_1.parse,"\n UZIP._readLocal = ").concat(UZIP_1._readLocal,"\n UZIP.inflateRaw = ").concat(UZIP_1.inflateRaw,"\n UZIP.inflate = ").concat(UZIP_1.inflate,"\n UZIP.deflate = ").concat(UZIP_1.deflate,"\n UZIP.deflateRaw = ").concat(UZIP_1.deflateRaw,"\n UZIP.encode = ").concat(UZIP_1.encode,"\n UZIP._noNeed = ").concat(UZIP_1._noNeed,"\n UZIP._writeHeader = ").concat(UZIP_1._writeHeader,"\n UZIP.crc = parse(").concat(stringify(UZIP_1.crc),")\n UZIP.crc.table = ( function() {\n var tab = new Uint32Array(256);\n for (var n=0; n<256; n++) {\n var c = n;\n for (var k=0; k<8; k++) {\n if (c & 1) c = 0xedb88320 ^ (c >>> 1);\n else c = c >>> 1;\n }\n tab[n] = c; }\n return tab; })()\n \n UZIP.adler = ").concat(UZIP_1.adler,"\n UZIP.bin = parse(").concat(stringify(UZIP_1.bin),")\n UZIP.F = {}\n UZIP.F.deflateRaw = ").concat(UZIP_1.F.deflateRaw,"\n UZIP.F._bestMatch = ").concat(UZIP_1.F._bestMatch,"\n UZIP.F._howLong = ").concat(UZIP_1.F._howLong,"\n UZIP.F._hash = ").concat(UZIP_1.F._hash,"\n UZIP.saved = ").concat(UZIP_1.saved,"\n UZIP.F._writeBlock = ").concat(UZIP_1.F._writeBlock,"\n UZIP.F._copyExact = ").concat(UZIP_1.F._copyExact,"\n UZIP.F.getTrees = ").concat(UZIP_1.F.getTrees,"\n UZIP.F.getSecond = ").concat(UZIP_1.F.getSecond,"\n UZIP.F.nonZero = ").concat(UZIP_1.F.nonZero,"\n UZIP.F.contSize = ").concat(UZIP_1.F.contSize,"\n UZIP.F._codeTiny = ").concat(UZIP_1.F._codeTiny," \n UZIP.F._lenCodes = ").concat(UZIP_1.F._lenCodes," \n UZIP.F._hufTree = ").concat(UZIP_1.F._hufTree," \n UZIP.F.setDepth = ").concat(UZIP_1.F.setDepth," \n UZIP.F.restrictDepth = ").concat(UZIP_1.F.restrictDepth,"\n UZIP.F._goodIndex = ").concat(UZIP_1.F._goodIndex," \n UZIP.F._writeLit = ").concat(UZIP_1.F._writeLit," \n UZIP.F.inflate = ").concat(UZIP_1.F.inflate," \n UZIP.F._check = ").concat(UZIP_1.F._check," \n UZIP.F._decodeTiny = ").concat(UZIP_1.F._decodeTiny," \n UZIP.F._copyOut = ").concat(UZIP_1.F._copyOut," \n UZIP.F.makeCodes = ").concat(UZIP_1.F.makeCodes," \n UZIP.F.codes2map = ").concat(UZIP_1.F.codes2map," \n UZIP.F.revCodes = ").concat(UZIP_1.F.revCodes," \n\n // used only in deflate\n UZIP.F._putsE = ").concat(UZIP_1.F._putsE,"\n UZIP.F._putsF = ").concat(UZIP_1.F._putsF,"\n \n UZIP.F._bitsE = ").concat(UZIP_1.F._bitsE,"\n UZIP.F._bitsF = ").concat(UZIP_1.F._bitsF,"\n\n UZIP.F._get17 = ").concat(UZIP_1.F._get17,"\n UZIP.F._get25 = ").concat(UZIP_1.F._get25,"\n UZIP.F.U = function(){\n var u16=Uint16Array, u32=Uint32Array;\n return {\n next_code : new u16(16),\n bl_count : new u16(16),\n ordr : [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ],\n of0 : [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,999,999,999],\n exb : [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, 0],\n ldef : new u16(32),\n df0 : [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, 65535, 65535],\n dxb : [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, 0, 0],\n ddef : new u32(32),\n flmap: new u16( 512), fltree: [],\n fdmap: new u16( 32), fdtree: [],\n lmap : new u16(32768), ltree : [], ttree:[],\n dmap : new u16(32768), dtree : [],\n imap : new u16( 512), itree : [],\n //rev9 : new u16( 512)\n rev15: new u16(1<<15),\n lhst : new u32(286), dhst : new u32( 30), ihst : new u32(19),\n lits : new u32(15000),\n strt : new u16(1<<16),\n prev : new u16(1<<15)\n };\n } ();\n\n (function(){\n var U = UZIP.F.U;\n var len = 1<<15;\n for(var i=0; i<len; i++) {\n var x = i;\n x = (((x & 0xaaaaaaaa) >>> 1) | ((x & 0x55555555) << 1));\n x = (((x & 0xcccccccc) >>> 2) | ((x & 0x33333333) << 2));\n x = (((x & 0xf0f0f0f0) >>> 4) | ((x & 0x0f0f0f0f) << 4));\n x = (((x & 0xff00ff00) >>> 8) | ((x & 0x00ff00ff) << 8));\n U.rev15[i] = (((x >>> 16) | (x << 16)))>>>17;\n }\n \n function pushV(tgt, n, sv) { while(n--!=0) tgt.push(0,sv); }\n \n for(var i=0; i<32; i++) { U.ldef[i]=(U.of0[i]<<3)|U.exb[i]; U.ddef[i]=(U.df0[i]<<4)|U.dxb[i]; }\n \n pushV(U.fltree, 144, 8); pushV(U.fltree, 255-143, 9); pushV(U.fltree, 279-255, 7); pushV(U.fltree,287-279,8);\n /*\n var i = 0;\n for(; i<=143; i++) U.fltree.push(0,8);\n for(; i<=255; i++) U.fltree.push(0,9);\n for(; i<=279; i++) U.fltree.push(0,7);\n for(; i<=287; i++) U.fltree.push(0,8);\n */\n UZIP.F.makeCodes(U.fltree, 9);\n UZIP.F.codes2map(U.fltree, 9, U.flmap);\n UZIP.F.revCodes (U.fltree, 9)\n \n pushV(U.fdtree,32,5);\n //for(i=0;i<32; i++) U.fdtree.push(0,5);\n UZIP.F.makeCodes(U.fdtree, 5);\n UZIP.F.codes2map(U.fdtree, 5, U.fdmap);\n UZIP.F.revCodes (U.fdtree, 5)\n \n pushV(U.itree,19,0); pushV(U.ltree,286,0); pushV(U.dtree,30,0); pushV(U.ttree,320,0);\n /*\n for(var i=0; i< 19; i++) U.itree.push(0,0);\n for(var i=0; i<286; i++) U.ltree.push(0,0);\n for(var i=0; i< 30; i++) U.dtree.push(0,0);\n for(var i=0; i<320; i++) U.ttree.push(0,0);\n */\n })()\n "))}function generateWorkerScript(){return createWorker("\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n })\n ")}function compressOnWebWorker(e,t){return new Promise((function(r,n){var a=cnt+=1;imageCompressionLibUrl||(imageCompressionLibUrl=generateLib()),worker||(worker=generateWorkerScript()),worker.addEventListener("message",(function e(o){if(o.data.id===a){if(void 0!==o.data.progress)return void t.onProgress(o.data.progress);worker.removeEventListener("message",e),o.data.error&&n(new Error(o.data.error)),r(o.data.file)}})),worker.addEventListener("error",n),worker.postMessage({file:e,id:a,imageCompressionLibUrl:imageCompressionLibUrl,options:_objectSpread2(_objectSpread2({},t),{},{onProgress:void 0})})}))}function imageCompression(e,t){return new Promise((function(r,n){var a,o,i,s,c,l;if(a=_objectSpread2({},t),i=0,s=a.onProgress,a.maxSizeMB=a.maxSizeMB||Number.POSITIVE_INFINITY,c="boolean"!=typeof a.useWebWorker||a.useWebWorker,delete a.useWebWorker,a.onProgress=function(e){i=e,"function"==typeof s&&s(i)},!(e instanceof Blob||e instanceof CustomFile))return n(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return n(new Error("The file given is not an image"));if(l="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!c||"function"!=typeof Worker||l)return compress(e,a).then(function(e){try{return o=e,d.call(this)}catch(e){return n(e)}}.bind(this),n);var f=function(){try{return d.call(this)}catch(e){return n(e)}}.bind(this),u=function(t){try{return compress(e,a).then((function(e){try{return o=e,f()}catch(e){return n(e)}}),n)}catch(e){return n(e)}};try{return compressOnWebWorker(e,a).then((function(e){try{return o=e,f()}catch(e){return u()}}),u)}catch(e){u()}function d(){try{o.name=e.name,o.lastModified=e.lastModified}catch(e){}return r(o)}}))}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.getBrowserName=getBrowserName,imageCompression.version="1.0.16"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// @license © 2020 Google LLC. Licensed under the Apache License, Version 2.0.
|