filecat 7.12.1 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/2300.3c83fc27783efb65df57.js +2 -0
- package/build/dist/2674.2713dbaf7b4dbb6baa4c.js +1 -0
- package/build/dist/2728.d0205a036e2caff34c1c.js +1 -0
- package/build/dist/3299.b85fad5623f990484bd9.js +1 -0
- package/build/dist/3528.55d2faabf2edbde62652.js +1 -0
- package/build/dist/4004.ca7e777145c700c5b186.js +1 -0
- package/build/dist/{4220.b65b40382726a69ba0bc.js → 4220.6e56dcffa8e57c91e363.js} +1 -1
- package/build/dist/4493.f527f1994d14470017f4.js +1 -0
- package/build/dist/5602.b92e2770ff00ee6da48a.js +2 -0
- package/build/dist/5602.b92e2770ff00ee6da48a.js.LICENSE.txt +28 -0
- package/build/dist/{5877.e2316c84a95490f77439.js → 5877.0d338155dc591229a758.js} +1 -1
- package/build/dist/6404.bcf224539211a7979990.js +1 -0
- package/build/dist/{7310.bf944d03f24fcf109680.js → 7310.258969acc0782007bdf5.js} +1 -1
- package/build/dist/735.38718e61fe313f131a3e.js +1 -0
- package/build/dist/{8090.8977224618a14ae42159.js → 8090.8b172ffd0f62ceebf881.js} +2 -2
- package/build/dist/8277.c76a3bbffade9d2d859b.js +1 -0
- package/build/dist/8302.c72a3767319d87419737.js +1 -0
- package/build/dist/8725.970abee75f92962aeab9.js +1 -0
- package/build/dist/9334.d3102e0ed30ae564f506.js +1 -0
- package/build/dist/{9546.2cecad04cf676a6616cd.js → 9546.ba8ea7791f14ee133338.js} +1 -1
- package/build/dist/index.html +1 -1
- package/build/dist/main.e03c0b1342da0ac83715.js +2 -0
- package/build/main.js +1 -1
- package/build/ripgrep/rg.exe +0 -0
- package/package.json +1 -1
- package/shell/config/webpack.web.config.js +5 -0
- package/build/dist/1417.d390b18dd58ff5c28160.js +0 -1
- package/build/dist/2300.c99b1dd4e752cdfd5e32.js +0 -2
- package/build/dist/2479.294792ef5d360ad64abc.js +0 -1
- package/build/dist/2674.46c009a7ec426b7d8828.js +0 -1
- package/build/dist/3299.5c01eebc0f62cdc7bb39.js +0 -1
- package/build/dist/3528.0f8f34028d92fa87c518.js +0 -1
- package/build/dist/4004.916c0413a6db61a54e11.js +0 -1
- package/build/dist/4193.58d3a34cac783ff289c6.js +0 -1
- package/build/dist/7943.acf25a5e98dd13290985.js +0 -1
- package/build/dist/8302.894efa465f6037f9f5a8.js +0 -1
- package/build/dist/9334.f04716a7e41f783abc47.js +0 -1
- package/build/dist/main.65dcea654963fc771a86.js +0 -2
- /package/build/dist/{2300.c99b1dd4e752cdfd5e32.js.LICENSE.txt → 2300.3c83fc27783efb65df57.js.LICENSE.txt} +0 -0
- /package/build/dist/{8090.8977224618a14ae42159.js.LICENSE.txt → 8090.8b172ffd0f62ceebf881.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.65dcea654963fc771a86.js.LICENSE.txt → main.e03c0b1342da0ac83715.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 5602.b92e2770ff00ee6da48a.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[5602],{72717(t,e,i){"use strict";var n={};(0,i(83110).assign)(n,i(99282),i(72778),i(5154)),t.exports=n},99282(t,e,i){"use strict";var n=i(79084),r=i(83110),o=i(50957),s=i(49007),a=i(11317),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(s[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=n.deflateSetDictionary(this.strm,d)))throw new Error(s[i]);this._dict_set=!0}}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,a=this.strm,h=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(h),a.next_out=0,a.avail_out=h),1!==(i=n.deflate(a,s))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==i);return 4===s?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==s||(this.onEnd(0),a.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},72778(t,e,i){"use strict";var n=i(51680),r=i(83110),o=i(50957),s=i(5154),a=i(49007),l=i(11317),h=i(36227),d=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==s.Z_OK)throw new Error(a[i]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===d.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[i])}function u(t,e){var i=new c(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}c.prototype.push=function(t,e){var i,a,l,h,c,u=this.strm,f=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?u.input=o.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new r.Buf8(f),u.next_out=0,u.avail_out=f),(i=n.inflate(u,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===s.Z_BUF_ERROR&&!0===m&&(i=s.Z_OK,m=!1),i!==s.Z_STREAM_END&&i!==s.Z_OK)return this.onEnd(i),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&i!==s.Z_STREAM_END&&(0!==u.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(u.output,u.next_out),h=u.next_out-l,c=o.buf2string(u.output,l),u.next_out=h,u.avail_out=f-h,h&&r.arraySet(u.output,u.output,l,h,0),this.onData(c)):this.onData(r.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(m=!0)}while((u.avail_in>0||0===u.avail_out)&&i!==s.Z_STREAM_END);return i===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),u.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=c,e.inflate=u,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.ungzip=u},83110(t,e){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(t[r]=i[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,s;for(n=0,e=0,i=t.length;e<i;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,i=t.length;e<i;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(i)},50957(t,e,i){"use strict";var n=i(83110),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",s=0;s<e;s++)i+=String.fromCharCode(t[s]);return i}s[254]=s[254]=1,e.string2buf=function(t){var e,i,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),s=0,o=0;s<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[s++]=i:i<2048?(e[s++]=192|i>>>6,e[s++]=128|63&i):i<65536?(e[s++]=224|i>>>12,e[s++]=128|i>>>6&63,e[s++]=128|63&i):(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63,e[s++]=128|i>>>6&63,e[s++]=128|63&i);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},e.buf2string=function(t,e){var i,n,r,o,a=e||t.length,h=new Array(2*a);for(n=0,i=0;i<a;)if((r=t[i++])<128)h[n++]=r;else if((o=s[r])>4)h[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&i<a;)r=r<<6|63&t[i++],o--;o>1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},e.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}},66318(t){"use strict";t.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,s=0;0!==i;){i-=s=i>2e3?2e3:i;do{o=o+(r=r+e[n++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16}},5154(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},27760(t){"use strict";var e=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();t.exports=function(t,i,n,r){var o=e,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^i[a])];return-1^t}},79084(t,e,i){"use strict";var n,r=i(83110),o=i(81270),s=i(66318),a=i(27760),l=i(49007),h=-2,d=258,c=262,u=103,f=113,p=666;function m(t,e){return t.msg=l[e],e}function g(t){return(t<<1)-(t>4?9:0)}function v(t){for(var e=t.length;--e>=0;)t[e]=0}function y(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function b(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function x(t,e){t.pending_buf[t.pending++]=e}function w(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function k(t,e,i,n){var o=t.avail_in;return o>n&&(o=n),0===o?0:(t.avail_in-=o,r.arraySet(e,t.input,t.next_in,o,i),1===t.state.wrap?t.adler=s(t.adler,e,o,i):2===t.state.wrap&&(t.adler=a(t.adler,e,o,i)),t.next_in+=o,t.total_in+=o,o)}function E(t,e){var i,n,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,h=t.window,u=t.w_mask,f=t.prev,p=t.strstart+d,m=h[o+s-1],g=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(i=e)+s]===g&&h[i+s-1]===m&&h[i]===h[o]&&h[++i]===h[o+1]){o+=2,i++;do{}while(h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&o<p);if(n=d-(p-o),o=p-d,n>s){if(t.match_start=e,s=n,n>=a)break;m=h[o+s-1],g=h[o+s]}}}while((e=f[e&u])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function N(t){var e,i,n,o,s,a=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-c)){r.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=i=t.hash_size;do{n=t.head[--e],t.head[e]=n>=a?n-a:0}while(--i);e=i=a;do{n=t.prev[--e],t.prev[e]=n>=a?n-a:0}while(--i);o+=a}if(0===t.strm.avail_in)break;if(i=k(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=i,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function T(t,e){for(var i,n;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var i,n,r;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&b(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function C(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function S(){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 r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),v(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 M(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:f,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):m(t,h)}function A(t){var e,i=M(t);return 0===i&&((e=t.state).window_size=2*e.w_size,v(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i}function z(t,e,i,n,o,s){if(!t)return h;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==i||n<8||n>15||e<0||e>9||s<0||s>4)return m(t,h);8===n&&(n=9);var l=new S;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=i,A(t)}n=[new C(0,0,0,0,function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)}),new C(4,4,8,4,T),new C(4,5,16,8,T),new C(4,6,32,32,T),new C(4,4,16,16,_),new C(8,16,32,32,_),new C(8,16,128,128,_),new C(8,32,128,256,_),new C(32,128,258,1024,_),new C(32,258,258,4096,_)],e.deflateInit=function(t,e){return z(t,e,8,15,8,0)},e.deflateInit2=z,e.deflateReset=A,e.deflateResetKeep=M,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var i,r,s,l;if(!t||!t.state||e>5||e<0)return t?m(t,h):h;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===p&&4!==e)return m(t,0===t.avail_out?-5:h);if(r.strm=t,i=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,x(r,31),x(r,139),x(r,8),r.gzhead?(x(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),x(r,255&r.gzhead.time),x(r,r.gzhead.time>>8&255),x(r,r.gzhead.time>>16&255),x(r,r.gzhead.time>>24&255),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(x(r,255&r.gzhead.extra.length),x(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(x(r,0),x(r,0),x(r,0),x(r,0),x(r,0),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,3),r.status=f);else{var c=8+(r.w_bits-8<<4)<<8;c|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(c|=32),c+=31-c%31,r.status=f,w(r,c),0!==r.strstart&&(w(r,t.adler>>>16),w(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending!==r.pending_buf_size));)x(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=u)}else r.status=u;if(r.status===u&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&y(t),r.pending+2<=r.pending_buf_size&&(x(r,255&t.adler),x(r,t.adler>>8&255),t.adler=0,r.status=f)):r.status=f),0!==r.pending){if(y(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(i)&&4!==e)return m(t,-5);if(r.status===p&&0!==t.avail_in)return m(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==p){var k=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var i,n,r,s,a=t.window;;){if(t.lookahead<=d){if(N(t),t.lookahead<=d&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[r=t.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){s=t.strstart+d;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<s);t.match_length=d-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==k&&4!==k||(r.status=p),1===k||3===k)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===k&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(v(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),y(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(x(r,255&t.adler),x(r,t.adler>>8&255),x(r,t.adler>>16&255),x(r,t.adler>>24&255),x(r,255&t.total_in),x(r,t.total_in>>8&255),x(r,t.total_in>>16&255),x(r,t.total_in>>24&255)):(w(r,t.adler>>>16),w(r,65535&t.adler)),y(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==f&&e!==p?m(t,h):(t.state=null,e===f?m(t,-3):0):h},e.deflateSetDictionary=function(t,e){var i,n,o,a,l,d,c,u,f=e.length;if(!t||!t.state)return h;if(2===(a=(i=t.state).wrap)||1===a&&42!==i.status||i.lookahead)return h;for(1===a&&(t.adler=s(t.adler,e,f,0)),i.wrap=0,f>=i.w_size&&(0===a&&(v(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new r.Buf8(i.w_size),r.arraySet(u,e,f-i.w_size,i.w_size,0),e=u,f=i.w_size),l=t.avail_in,d=t.next_in,c=t.input,t.avail_in=f,t.next_in=0,t.input=e,N(i);i.lookahead>=3;){n=i.strstart,o=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--o);i.strstart=n,i.lookahead=2,N(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=d,t.input=c,t.avail_in=l,i.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},36227(t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},48194(t){"use strict";t.exports=function(t,e){var i,n,r,o,s,a,l,h,d,c,u,f,p,m,g,v,y,b,x,w,k,E,N,T,_;i=t.state,n=t.next_in,T=t.input,r=n+(t.avail_in-5),o=t.next_out,_=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=i.dmax,h=i.wsize,d=i.whave,c=i.wnext,u=i.window,f=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=m[f&v];e:for(;;){if(f>>>=x=b>>>24,p-=x,0===(x=b>>>16&255))_[o++]=65535&b;else{if(!(16&x)){if(64&x){if(32&x){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}b=m[(65535&b)+(f&(1<<x)-1)];continue e}for(w=65535&b,(x&=15)&&(p<x&&(f+=T[n++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=g[f&y];;){if(f>>>=x=b>>>24,p-=x,16&(x=b>>>16&255)){if(k=65535&b,p<(x&=15)&&(f+=T[n++]<<p,(p+=8)<x&&(f+=T[n++]<<p,p+=8)),(k+=f&(1<<x)-1)>l){t.msg="invalid distance too far back",i.mode=30;break t}if(f>>>=x,p-=x,k>(x=o-s)){if((x=k-x)>d&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(E=0,N=u,0===c){if(E+=h-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}else if(c<x){if(E+=h+c-x,(x-=c)<w){w-=x;do{_[o++]=u[E++]}while(--x);if(E=0,c<w){w-=x=c;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}}else if(E+=c-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}for(;w>2;)_[o++]=N[E++],_[o++]=N[E++],_[o++]=N[E++],w-=3;w&&(_[o++]=N[E++],w>1&&(_[o++]=N[E++]))}else{E=o-k;do{_[o++]=_[E++],_[o++]=_[E++],_[o++]=_[E++],w-=3}while(w>2);w&&(_[o++]=_[E++],w>1&&(_[o++]=_[E++]))}break}if(64&x){t.msg="invalid distance code",i.mode=30;break t}b=g[(65535&b)+(f&(1<<x)-1)]}}break}}while(n<r&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<a?a-o+257:257-(o-a),i.hold=f,i.bits=p}},51680(t,e,i){"use strict";var n=i(83110),r=i(66318),o=i(27760),s=i(48194),a=i(74607),l=-2,h=12,d=30;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):l}function m(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,p(t))):l}function g(t,e){var i,n;return t?(n=new u,t.state=n,n.window=null,0!==(i=m(t,e))&&(t.state=null),i):l}var v,y,b=!0;function x(t){if(b){var e;for(v=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,v,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,y,0,t.work,{bits:5}),b=!1}t.lencode=v,t.lenbits=9,t.distcode=y,t.distbits=5}function w(t,e,i,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),r>=s.wsize?(n.arraySet(s.window,e,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>r&&(o=r),n.arraySet(s.window,e,i-r,o,s.wnext),(r-=o)?(n.arraySet(s.window,e,i-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=p,e.inflateReset2=m,e.inflateResetKeep=f,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var i,u,f,p,m,g,v,y,b,k,E,N,T,_,C,S,M,A,z,L,O,F,D,R,I=0,q=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(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(i=t.state).mode===h&&(i.mode=13),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,k=g,E=v,F=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(2&i.wrap&&35615===y){i.check=0,q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0),y=0,b=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",i.mode=d;break}if(8!=(15&y)){t.msg="unknown compression method",i.mode=d;break}if(b-=4,O=8+(15&(y>>>=4)),0===i.wbits)i.wbits=O;else if(O>i.wbits){t.msg="invalid window size",i.mode=d;break}i.dmax=1<<O,t.adler=i.check=1,i.mode=512&y?10:h,y=0,b=0;break;case 2:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.flags=y,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=d;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=d;break}i.head&&(i.head.text=y>>8&1),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.time=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,q[2]=y>>>16&255,q[3]=y>>>24&255,i.check=o(i.check,q,4,0)),y=0,b=0,i.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.xflags=255&y,i.head.os=y>>8),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=5;case 5:if(1024&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length=y,i.head&&(i.head.extra_len=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((N=i.length)>g&&(N=g),N&&(i.head&&(O=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,u,p,N,O)),512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,i.length-=N),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.name+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.comment+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(65535&i.check)){t.msg="header crc mismatch",i.mode=d;break}y=0,b=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=h;break;case 10:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}t.adler=i.check=c(y),y=0,b=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,2;t.adler=i.check=1,i.mode=h;case h:if(5===e||6===e)break t;case 13:if(i.last){y>>>=7&b,b-=7&b,i.mode=27;break}for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}switch(i.last=1&y,b-=1,3&(y>>>=1)){case 0:i.mode=14;break;case 1:if(x(i),i.mode=20,6===e){y>>>=2,b-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=d}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",i.mode=d;break}if(i.length=65535&y,y=0,b=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(N=i.length){if(N>g&&(N=g),N>v&&(N=v),0===N)break t;n.arraySet(f,u,p,N,m),g-=N,p+=N,v-=N,m+=N,i.length-=N;break}i.mode=h;break;case 17:for(;b<14;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.nlen=257+(31&y),y>>>=5,b-=5,i.ndist=1+(31&y),y>>>=5,b-=5,i.ncode=4+(15&y),y>>>=4,b-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=d;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.lens[B[i.have++]]=7&y,y>>>=3,b-=3}for(;i.have<19;)i.lens[B[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,D={bits:i.lenbits},F=a(0,i.lens,0,19,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid code lengths set",i.mode=d;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(M<16)y>>>=C,b-=C,i.lens[i.have++]=M;else{if(16===M){for(R=C+2;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y>>>=C,b-=C,0===i.have){t.msg="invalid bit length repeat",i.mode=d;break}O=i.lens[i.have-1],N=3+(3&y),y>>>=2,b-=2}else if(17===M){for(R=C+3;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=3+(7&(y>>>=C)),y>>>=3,b-=3}else{for(R=C+7;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=11+(127&(y>>>=C)),y>>>=7,b-=7}if(i.have+N>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=d;break}for(;N--;)i.lens[i.have++]=O}}if(i.mode===d)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=d;break}if(i.lenbits=9,D={bits:i.lenbits},F=a(1,i.lens,0,i.nlen,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid literal/lengths set",i.mode=d;break}if(i.distbits=6,i.distcode=i.distdyn,D={bits:i.distbits},F=a(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,D),i.distbits=D.bits,F){t.msg="invalid distances set",i.mode=d;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(g>=6&&v>=258){t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,s(t,E),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,i.mode===h&&(i.back=-1);break}for(i.back=0;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(S&&!(240&S)){for(A=C,z=S,L=M;S=(I=i.lencode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,i.length=M,0===S){i.mode=26;break}if(32&S){i.back=-1,i.mode=h;break}if(64&S){t.msg="invalid literal/length code",i.mode=d;break}i.extra=15&S,i.mode=22;case 22:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;S=(I=i.distcode[y&(1<<i.distbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(!(240&S)){for(A=C,z=S,L=M;S=(I=i.distcode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,64&S){t.msg="invalid distance code",i.mode=d;break}i.offset=M,i.extra=15&S,i.mode=24;case 24:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.offset+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=d;break}i.mode=25;case 25:if(0===v)break t;if(N=E-v,i.offset>N){if((N=i.offset-N)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=d;break}N>i.wnext?(N-=i.wnext,T=i.wsize-N):T=i.wnext-N,N>i.length&&(N=i.length),_=i.window}else _=f,T=m-i.offset,N=i.length;N>v&&(N=v),v-=N,i.length-=N;do{f[m++]=_[T++]}while(--N);0===i.length&&(i.mode=21);break;case 26:if(0===v)break t;f[m++]=i.length,v--,i.mode=21;break;case 27:if(i.wrap){for(;b<32;){if(0===g)break t;g--,y|=u[p++]<<b,b+=8}if(E-=v,t.total_out+=E,i.total+=E,E&&(t.adler=i.check=i.flags?o(i.check,f,E,m-E):r(i.check,f,E,m-E)),E=v,(i.flags?y:c(y))!==i.check){t.msg="incorrect data check",i.mode=d;break}y=0,b=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=d;break}y=0,b=0}i.mode=29;case 29:F=1;break t;case d:F=-3;break t;case 31:return-4;default:return l}return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,(i.wsize||E!==t.avail_out&&i.mode<d&&(i.mode<27||4!==e))&&w(t,t.output,t.next_out,E-t.avail_out)?(i.mode=31,-4):(k-=t.avail_in,E-=t.avail_out,t.total_in+=k,t.total_out+=E,i.total+=E,i.wrap&&E&&(t.adler=i.check=i.flags?o(i.check,f,E,t.next_out-E):r(i.check,f,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(i.mode===h?128:0)+(20===i.mode||15===i.mode?256:0),(0===k&&0===E||4===e)&&0===F&&(F=-5),F)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?(i.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,e,n,0)!==i.check?-3:w(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},74607(t,e,i){"use strict";var n=i(83110),r=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],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,i,h,d,c,u,f){var p,m,g,v,y,b,x,w,k,E=f.bits,N=0,T=0,_=0,C=0,S=0,M=0,A=0,z=0,L=0,O=0,F=null,D=0,R=new n.Buf16(16),I=new n.Buf16(16),q=null,B=0;for(N=0;N<=r;N++)R[N]=0;for(T=0;T<h;T++)R[e[i+T]]++;for(S=E,C=r;C>=1&&0===R[C];C--);if(S>C&&(S=C),0===C)return d[c++]=20971520,d[c++]=20971520,f.bits=1,0;for(_=1;_<C&&0===R[_];_++);for(S<_&&(S=_),z=1,N=1;N<=r;N++)if(z<<=1,(z-=R[N])<0)return-1;if(z>0&&(0===t||1!==C))return-1;for(I[1]=0,N=1;N<r;N++)I[N+1]=I[N]+R[N];for(T=0;T<h;T++)0!==e[i+T]&&(u[I[e[i+T]]++]=T);if(0===t?(F=q=u,b=19):1===t?(F=o,D-=257,q=s,B-=257,b=256):(F=a,q=l,b=-1),O=0,T=0,N=_,y=c,M=S,A=0,g=-1,v=(L=1<<S)-1,1===t&&L>852||2===t&&L>592)return 1;for(;;){x=N-A,u[T]<b?(w=0,k=u[T]):u[T]>b?(w=q[B+u[T]],k=F[D+u[T]]):(w=96,k=0),p=1<<N-A,_=m=1<<M;do{d[y+(O>>A)+(m-=p)]=x<<24|w<<16|k}while(0!==m);for(p=1<<N-1;O&p;)p>>=1;if(0!==p?(O&=p-1,O+=p):O=0,T++,0===--R[N]){if(N===C)break;N=e[i+u[T]]}if(N>S&&(O&v)!==g){for(0===A&&(A=S),y+=_,z=1<<(M=N-A);M+A<C&&!((z-=R[M+A])<=0);)M++,z<<=1;if(L+=1<<M,1===t&&L>852||2===t&&L>592)return 1;d[g=O&v]=S<<24|M<<16|y-c}}return 0!==O&&(d[y+O]=N-A<<24|64<<16),f.bits=S,0}},49007(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},81270(t,e,i){"use strict";var n=i(83110);function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,s=286,a=30,l=15,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);r(f);var p=new Array(60);r(p);var m=new Array(512);r(m);var g=new Array(256);r(g);var v=new Array(29);r(v);var y,b,x,w=new Array(a);function k(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function E(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function N(t){return t<256?m[t]:m[256+(t>>>7)]}function T(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,i){t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,T(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function C(t,e,i){_(t,i[2*e],i[2*e+1])}function S(t,e){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1}function M(t,e,i){var n,r,o=new Array(16),s=0;for(n=1;n<=l;n++)o[n]=s=s+i[n-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function A(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function z(t){t.bi_valid>8?T(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function L(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function O(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function F(t,e,i){var n,r,s,a,l=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?C(t,r,e):(C(t,(s=g[r])+o+1,e),0!==(a=h[s])&&_(t,r-=v[s],a),C(t,s=N(--n),i),0!==(a=d[s])&&_(t,n-=w[s],a))}while(l<t.last_lit);C(t,256,e)}function D(t,e){var i,n,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,h=e.stat_desc.elems,d=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<h;i++)0!==o[2*i]?(t.heap[++t.heap_len]=d=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=d<2?++d:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=d,i=t.heap_len>>1;i>=1;i--)O(t,o,i);r=h;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,O(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,s,a,h=e.dyn_tree,d=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(h[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(o=h[2*h[2*(n=t.heap[i])+1]+1]+1)>m&&(o=m,g++),h[2*n+1]=o,n>d||(t.bl_count[o]++,s=0,n>=p&&(s=f[n-p]),a=h[2*n],t.opt_len+=a*(o+s),u&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,g-=2}while(g>0);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)(r=t.heap[--i])>d||(h[2*r+1]!==o&&(t.opt_len+=(o-h[2*r+1])*h[2*r],h[2*r+1]=o),n--)}}(t,e),M(o,d,t.bl_count)}function R(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=s,s=e[2*(n+1)+1],++a<l&&r===s||(a<h?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4))}function I(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=i;n++)if(r=s,s=e[2*(n+1)+1],!(++a<l&&r===s)){if(a<h)do{C(t,r,t.bl_tree)}while(0!==--a);else 0!==r?(r!==o&&(C(t,r,t.bl_tree),a--),C(t,16,t.bl_tree),_(t,a-3,2)):a<=10?(C(t,17,t.bl_tree),_(t,a-3,3)):(C(t,18,t.bl_tree),_(t,a-11,7));a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4)}}r(w);var q=!1;function B(t,e,i,r){_(t,0+(r?1:0),3),function(t,e,i,r){z(t),r&&(T(t,i),T(t,~i)),n.arraySet(t.pending_buf,t.window,e,i,t.pending),t.pending+=i}(t,e,i,!0)}e._tr_init=function(t){q||(!function(){var t,e,i,n,r,o=new Array(16);for(i=0,n=0;n<28;n++)for(v[n]=i,t=0;t<1<<h[n];t++)g[i++]=n;for(g[i-1]=n,r=0,n=0;n<16;n++)for(w[n]=r,t=0;t<1<<d[n];t++)m[r++]=n;for(r>>=7;n<a;n++)for(w[n]=r<<7,t=0;t<1<<d[n]-7;t++)m[256+r++]=n;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,o[8]++;for(;t<=255;)f[2*t+1]=9,t++,o[9]++;for(;t<=279;)f[2*t+1]=7,t++,o[7]++;for(;t<=287;)f[2*t+1]=8,t++,o[8]++;for(M(f,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=S(t,5);y=new k(f,h,257,s,l),b=new k(p,d,0,a,l),x=new k(new Array(0),c,0,19,7)}(),q=!0),t.l_desc=new E(t.dyn_ltree,y),t.d_desc=new E(t.dyn_dtree,b),t.bl_desc=new E(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,A(t)},e._tr_stored_block=B,e._tr_flush_block=function(t,e,i,n){var r,s,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),a=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=i+5,i+4<=r&&-1!==e?B(t,e,i,n):4===t.strategy||s===r?(_(t,2+(n?1:0),3),F(t,f,p)):(_(t,4+(n?1:0),3),function(t,e,i,n){var r;for(_(t,e-257,5),_(t,i-1,5),_(t,n-4,4),r=0;r<n;r++)_(t,t.bl_tree[2*u[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),F(t,t.dyn_ltree,t.dyn_dtree)),A(t),n&&z(t)},e._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(g[i]+o+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,f),function(t){16===t.bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},11317(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},79737(t,e,i){"use strict";var n={};(0,i(47226).assign)(n,i(13446),i(22),i(98486)),t.exports=n},13446(t,e,i){"use strict";var n=i(92392),r=i(47226),o=i(6249),s=i(93651),a=i(25785),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(s[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=n.deflateSetDictionary(this.strm,d)))throw new Error(s[i]);this._dict_set=!0}}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,a=this.strm,h=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(h),a.next_out=0,a.avail_out=h),1!==(i=n.deflate(a,s))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==i);return 4===s?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==s||(this.onEnd(0),a.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},22(t,e,i){"use strict";var n=i(49636),r=i(47226),o=i(6249),s=i(98486),a=i(93651),l=i(25785),h=i(14103),d=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==s.Z_OK)throw new Error(a[i]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===d.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[i])}function u(t,e){var i=new c(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}c.prototype.push=function(t,e){var i,a,l,h,c,u=this.strm,f=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?u.input=o.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new r.Buf8(f),u.next_out=0,u.avail_out=f),(i=n.inflate(u,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===s.Z_BUF_ERROR&&!0===m&&(i=s.Z_OK,m=!1),i!==s.Z_STREAM_END&&i!==s.Z_OK)return this.onEnd(i),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&i!==s.Z_STREAM_END&&(0!==u.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(u.output,u.next_out),h=u.next_out-l,c=o.buf2string(u.output,l),u.next_out=h,u.avail_out=f-h,h&&r.arraySet(u.output,u.output,l,h,0),this.onData(c)):this.onData(r.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(m=!0)}while((u.avail_in>0||0===u.avail_out)&&i!==s.Z_STREAM_END);return i===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),u.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=c,e.inflate=u,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.ungzip=u},47226(t,e){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(t[r]=i[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,s;for(n=0,e=0,i=t.length;e<i;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,i=t.length;e<i;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(i)},6249(t,e,i){"use strict";var n=i(47226),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",s=0;s<e;s++)i+=String.fromCharCode(t[s]);return i}s[254]=s[254]=1,e.string2buf=function(t){var e,i,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),s=0,o=0;s<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[s++]=i:i<2048?(e[s++]=192|i>>>6,e[s++]=128|63&i):i<65536?(e[s++]=224|i>>>12,e[s++]=128|i>>>6&63,e[s++]=128|63&i):(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63,e[s++]=128|i>>>6&63,e[s++]=128|63&i);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},e.buf2string=function(t,e){var i,n,r,o,a=e||t.length,h=new Array(2*a);for(n=0,i=0;i<a;)if((r=t[i++])<128)h[n++]=r;else if((o=s[r])>4)h[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&i<a;)r=r<<6|63&t[i++],o--;o>1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},e.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}},64594(t){"use strict";t.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,s=0;0!==i;){i-=s=i>2e3?2e3:i;do{o=o+(r=r+e[n++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16}},98486(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},43532(t){"use strict";var e=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();t.exports=function(t,i,n,r){var o=e,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^i[a])];return-1^t}},92392(t,e,i){"use strict";var n,r=i(47226),o=i(96250),s=i(64594),a=i(43532),l=i(93651),h=-2,d=258,c=262,u=103,f=113,p=666;function m(t,e){return t.msg=l[e],e}function g(t){return(t<<1)-(t>4?9:0)}function v(t){for(var e=t.length;--e>=0;)t[e]=0}function y(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function b(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function x(t,e){t.pending_buf[t.pending++]=e}function w(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function k(t,e,i,n){var o=t.avail_in;return o>n&&(o=n),0===o?0:(t.avail_in-=o,r.arraySet(e,t.input,t.next_in,o,i),1===t.state.wrap?t.adler=s(t.adler,e,o,i):2===t.state.wrap&&(t.adler=a(t.adler,e,o,i)),t.next_in+=o,t.total_in+=o,o)}function E(t,e){var i,n,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,h=t.window,u=t.w_mask,f=t.prev,p=t.strstart+d,m=h[o+s-1],g=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(i=e)+s]===g&&h[i+s-1]===m&&h[i]===h[o]&&h[++i]===h[o+1]){o+=2,i++;do{}while(h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&o<p);if(n=d-(p-o),o=p-d,n>s){if(t.match_start=e,s=n,n>=a)break;m=h[o+s-1],g=h[o+s]}}}while((e=f[e&u])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function N(t){var e,i,n,o,s,a=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-c)){r.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=i=t.hash_size;do{n=t.head[--e],t.head[e]=n>=a?n-a:0}while(--i);e=i=a;do{n=t.prev[--e],t.prev[e]=n>=a?n-a:0}while(--i);o+=a}if(0===t.strm.avail_in)break;if(i=k(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=i,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function T(t,e){for(var i,n;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var i,n,r;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&b(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function C(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function S(){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 r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),v(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 M(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:f,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):m(t,h)}function A(t){var e,i=M(t);return 0===i&&((e=t.state).window_size=2*e.w_size,v(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i}function z(t,e,i,n,o,s){if(!t)return h;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==i||n<8||n>15||e<0||e>9||s<0||s>4)return m(t,h);8===n&&(n=9);var l=new S;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=i,A(t)}n=[new C(0,0,0,0,function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)}),new C(4,4,8,4,T),new C(4,5,16,8,T),new C(4,6,32,32,T),new C(4,4,16,16,_),new C(8,16,32,32,_),new C(8,16,128,128,_),new C(8,32,128,256,_),new C(32,128,258,1024,_),new C(32,258,258,4096,_)],e.deflateInit=function(t,e){return z(t,e,8,15,8,0)},e.deflateInit2=z,e.deflateReset=A,e.deflateResetKeep=M,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var i,r,s,l;if(!t||!t.state||e>5||e<0)return t?m(t,h):h;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===p&&4!==e)return m(t,0===t.avail_out?-5:h);if(r.strm=t,i=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,x(r,31),x(r,139),x(r,8),r.gzhead?(x(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),x(r,255&r.gzhead.time),x(r,r.gzhead.time>>8&255),x(r,r.gzhead.time>>16&255),x(r,r.gzhead.time>>24&255),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(x(r,255&r.gzhead.extra.length),x(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(x(r,0),x(r,0),x(r,0),x(r,0),x(r,0),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,3),r.status=f);else{var c=8+(r.w_bits-8<<4)<<8;c|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(c|=32),c+=31-c%31,r.status=f,w(r,c),0!==r.strstart&&(w(r,t.adler>>>16),w(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending!==r.pending_buf_size));)x(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=u)}else r.status=u;if(r.status===u&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&y(t),r.pending+2<=r.pending_buf_size&&(x(r,255&t.adler),x(r,t.adler>>8&255),t.adler=0,r.status=f)):r.status=f),0!==r.pending){if(y(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(i)&&4!==e)return m(t,-5);if(r.status===p&&0!==t.avail_in)return m(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==p){var k=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var i,n,r,s,a=t.window;;){if(t.lookahead<=d){if(N(t),t.lookahead<=d&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[r=t.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){s=t.strstart+d;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<s);t.match_length=d-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==k&&4!==k||(r.status=p),1===k||3===k)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===k&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(v(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),y(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(x(r,255&t.adler),x(r,t.adler>>8&255),x(r,t.adler>>16&255),x(r,t.adler>>24&255),x(r,255&t.total_in),x(r,t.total_in>>8&255),x(r,t.total_in>>16&255),x(r,t.total_in>>24&255)):(w(r,t.adler>>>16),w(r,65535&t.adler)),y(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==f&&e!==p?m(t,h):(t.state=null,e===f?m(t,-3):0):h},e.deflateSetDictionary=function(t,e){var i,n,o,a,l,d,c,u,f=e.length;if(!t||!t.state)return h;if(2===(a=(i=t.state).wrap)||1===a&&42!==i.status||i.lookahead)return h;for(1===a&&(t.adler=s(t.adler,e,f,0)),i.wrap=0,f>=i.w_size&&(0===a&&(v(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new r.Buf8(i.w_size),r.arraySet(u,e,f-i.w_size,i.w_size,0),e=u,f=i.w_size),l=t.avail_in,d=t.next_in,c=t.input,t.avail_in=f,t.next_in=0,t.input=e,N(i);i.lookahead>=3;){n=i.strstart,o=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--o);i.strstart=n,i.lookahead=2,N(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=d,t.input=c,t.avail_in=l,i.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},14103(t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},34174(t){"use strict";t.exports=function(t,e){var i,n,r,o,s,a,l,h,d,c,u,f,p,m,g,v,y,b,x,w,k,E,N,T,_;i=t.state,n=t.next_in,T=t.input,r=n+(t.avail_in-5),o=t.next_out,_=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=i.dmax,h=i.wsize,d=i.whave,c=i.wnext,u=i.window,f=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=m[f&v];e:for(;;){if(f>>>=x=b>>>24,p-=x,0===(x=b>>>16&255))_[o++]=65535&b;else{if(!(16&x)){if(64&x){if(32&x){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}b=m[(65535&b)+(f&(1<<x)-1)];continue e}for(w=65535&b,(x&=15)&&(p<x&&(f+=T[n++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=g[f&y];;){if(f>>>=x=b>>>24,p-=x,16&(x=b>>>16&255)){if(k=65535&b,p<(x&=15)&&(f+=T[n++]<<p,(p+=8)<x&&(f+=T[n++]<<p,p+=8)),(k+=f&(1<<x)-1)>l){t.msg="invalid distance too far back",i.mode=30;break t}if(f>>>=x,p-=x,k>(x=o-s)){if((x=k-x)>d&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(E=0,N=u,0===c){if(E+=h-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}else if(c<x){if(E+=h+c-x,(x-=c)<w){w-=x;do{_[o++]=u[E++]}while(--x);if(E=0,c<w){w-=x=c;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}}else if(E+=c-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}for(;w>2;)_[o++]=N[E++],_[o++]=N[E++],_[o++]=N[E++],w-=3;w&&(_[o++]=N[E++],w>1&&(_[o++]=N[E++]))}else{E=o-k;do{_[o++]=_[E++],_[o++]=_[E++],_[o++]=_[E++],w-=3}while(w>2);w&&(_[o++]=_[E++],w>1&&(_[o++]=_[E++]))}break}if(64&x){t.msg="invalid distance code",i.mode=30;break t}b=g[(65535&b)+(f&(1<<x)-1)]}}break}}while(n<r&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<a?a-o+257:257-(o-a),i.hold=f,i.bits=p}},49636(t,e,i){"use strict";var n=i(47226),r=i(64594),o=i(43532),s=i(34174),a=i(88763),l=-2,h=12,d=30;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):l}function m(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,p(t))):l}function g(t,e){var i,n;return t?(n=new u,t.state=n,n.window=null,0!==(i=m(t,e))&&(t.state=null),i):l}var v,y,b=!0;function x(t){if(b){var e;for(v=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,v,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,y,0,t.work,{bits:5}),b=!1}t.lencode=v,t.lenbits=9,t.distcode=y,t.distbits=5}function w(t,e,i,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),r>=s.wsize?(n.arraySet(s.window,e,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>r&&(o=r),n.arraySet(s.window,e,i-r,o,s.wnext),(r-=o)?(n.arraySet(s.window,e,i-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=p,e.inflateReset2=m,e.inflateResetKeep=f,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var i,u,f,p,m,g,v,y,b,k,E,N,T,_,C,S,M,A,z,L,O,F,D,R,I=0,q=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(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(i=t.state).mode===h&&(i.mode=13),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,k=g,E=v,F=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(2&i.wrap&&35615===y){i.check=0,q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0),y=0,b=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",i.mode=d;break}if(8!=(15&y)){t.msg="unknown compression method",i.mode=d;break}if(b-=4,O=8+(15&(y>>>=4)),0===i.wbits)i.wbits=O;else if(O>i.wbits){t.msg="invalid window size",i.mode=d;break}i.dmax=1<<O,t.adler=i.check=1,i.mode=512&y?10:h,y=0,b=0;break;case 2:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.flags=y,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=d;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=d;break}i.head&&(i.head.text=y>>8&1),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.time=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,q[2]=y>>>16&255,q[3]=y>>>24&255,i.check=o(i.check,q,4,0)),y=0,b=0,i.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.xflags=255&y,i.head.os=y>>8),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=5;case 5:if(1024&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length=y,i.head&&(i.head.extra_len=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((N=i.length)>g&&(N=g),N&&(i.head&&(O=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,u,p,N,O)),512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,i.length-=N),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.name+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.comment+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(65535&i.check)){t.msg="header crc mismatch",i.mode=d;break}y=0,b=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=h;break;case 10:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}t.adler=i.check=c(y),y=0,b=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,2;t.adler=i.check=1,i.mode=h;case h:if(5===e||6===e)break t;case 13:if(i.last){y>>>=7&b,b-=7&b,i.mode=27;break}for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}switch(i.last=1&y,b-=1,3&(y>>>=1)){case 0:i.mode=14;break;case 1:if(x(i),i.mode=20,6===e){y>>>=2,b-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=d}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",i.mode=d;break}if(i.length=65535&y,y=0,b=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(N=i.length){if(N>g&&(N=g),N>v&&(N=v),0===N)break t;n.arraySet(f,u,p,N,m),g-=N,p+=N,v-=N,m+=N,i.length-=N;break}i.mode=h;break;case 17:for(;b<14;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.nlen=257+(31&y),y>>>=5,b-=5,i.ndist=1+(31&y),y>>>=5,b-=5,i.ncode=4+(15&y),y>>>=4,b-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=d;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.lens[B[i.have++]]=7&y,y>>>=3,b-=3}for(;i.have<19;)i.lens[B[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,D={bits:i.lenbits},F=a(0,i.lens,0,19,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid code lengths set",i.mode=d;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(M<16)y>>>=C,b-=C,i.lens[i.have++]=M;else{if(16===M){for(R=C+2;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y>>>=C,b-=C,0===i.have){t.msg="invalid bit length repeat",i.mode=d;break}O=i.lens[i.have-1],N=3+(3&y),y>>>=2,b-=2}else if(17===M){for(R=C+3;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=3+(7&(y>>>=C)),y>>>=3,b-=3}else{for(R=C+7;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=11+(127&(y>>>=C)),y>>>=7,b-=7}if(i.have+N>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=d;break}for(;N--;)i.lens[i.have++]=O}}if(i.mode===d)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=d;break}if(i.lenbits=9,D={bits:i.lenbits},F=a(1,i.lens,0,i.nlen,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid literal/lengths set",i.mode=d;break}if(i.distbits=6,i.distcode=i.distdyn,D={bits:i.distbits},F=a(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,D),i.distbits=D.bits,F){t.msg="invalid distances set",i.mode=d;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(g>=6&&v>=258){t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,s(t,E),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,i.mode===h&&(i.back=-1);break}for(i.back=0;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(S&&!(240&S)){for(A=C,z=S,L=M;S=(I=i.lencode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,i.length=M,0===S){i.mode=26;break}if(32&S){i.back=-1,i.mode=h;break}if(64&S){t.msg="invalid literal/length code",i.mode=d;break}i.extra=15&S,i.mode=22;case 22:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;S=(I=i.distcode[y&(1<<i.distbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(!(240&S)){for(A=C,z=S,L=M;S=(I=i.distcode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,64&S){t.msg="invalid distance code",i.mode=d;break}i.offset=M,i.extra=15&S,i.mode=24;case 24:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.offset+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=d;break}i.mode=25;case 25:if(0===v)break t;if(N=E-v,i.offset>N){if((N=i.offset-N)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=d;break}N>i.wnext?(N-=i.wnext,T=i.wsize-N):T=i.wnext-N,N>i.length&&(N=i.length),_=i.window}else _=f,T=m-i.offset,N=i.length;N>v&&(N=v),v-=N,i.length-=N;do{f[m++]=_[T++]}while(--N);0===i.length&&(i.mode=21);break;case 26:if(0===v)break t;f[m++]=i.length,v--,i.mode=21;break;case 27:if(i.wrap){for(;b<32;){if(0===g)break t;g--,y|=u[p++]<<b,b+=8}if(E-=v,t.total_out+=E,i.total+=E,E&&(t.adler=i.check=i.flags?o(i.check,f,E,m-E):r(i.check,f,E,m-E)),E=v,(i.flags?y:c(y))!==i.check){t.msg="incorrect data check",i.mode=d;break}y=0,b=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=d;break}y=0,b=0}i.mode=29;case 29:F=1;break t;case d:F=-3;break t;case 31:return-4;default:return l}return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,(i.wsize||E!==t.avail_out&&i.mode<d&&(i.mode<27||4!==e))&&w(t,t.output,t.next_out,E-t.avail_out)?(i.mode=31,-4):(k-=t.avail_in,E-=t.avail_out,t.total_in+=k,t.total_out+=E,i.total+=E,i.wrap&&E&&(t.adler=i.check=i.flags?o(i.check,f,E,t.next_out-E):r(i.check,f,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(i.mode===h?128:0)+(20===i.mode||15===i.mode?256:0),(0===k&&0===E||4===e)&&0===F&&(F=-5),F)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?(i.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,e,n,0)!==i.check?-3:w(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},88763(t,e,i){"use strict";var n=i(47226),r=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],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,i,h,d,c,u,f){var p,m,g,v,y,b,x,w,k,E=f.bits,N=0,T=0,_=0,C=0,S=0,M=0,A=0,z=0,L=0,O=0,F=null,D=0,R=new n.Buf16(16),I=new n.Buf16(16),q=null,B=0;for(N=0;N<=r;N++)R[N]=0;for(T=0;T<h;T++)R[e[i+T]]++;for(S=E,C=r;C>=1&&0===R[C];C--);if(S>C&&(S=C),0===C)return d[c++]=20971520,d[c++]=20971520,f.bits=1,0;for(_=1;_<C&&0===R[_];_++);for(S<_&&(S=_),z=1,N=1;N<=r;N++)if(z<<=1,(z-=R[N])<0)return-1;if(z>0&&(0===t||1!==C))return-1;for(I[1]=0,N=1;N<r;N++)I[N+1]=I[N]+R[N];for(T=0;T<h;T++)0!==e[i+T]&&(u[I[e[i+T]]++]=T);if(0===t?(F=q=u,b=19):1===t?(F=o,D-=257,q=s,B-=257,b=256):(F=a,q=l,b=-1),O=0,T=0,N=_,y=c,M=S,A=0,g=-1,v=(L=1<<S)-1,1===t&&L>852||2===t&&L>592)return 1;for(;;){x=N-A,u[T]<b?(w=0,k=u[T]):u[T]>b?(w=q[B+u[T]],k=F[D+u[T]]):(w=96,k=0),p=1<<N-A,_=m=1<<M;do{d[y+(O>>A)+(m-=p)]=x<<24|w<<16|k}while(0!==m);for(p=1<<N-1;O&p;)p>>=1;if(0!==p?(O&=p-1,O+=p):O=0,T++,0===--R[N]){if(N===C)break;N=e[i+u[T]]}if(N>S&&(O&v)!==g){for(0===A&&(A=S),y+=_,z=1<<(M=N-A);M+A<C&&!((z-=R[M+A])<=0);)M++,z<<=1;if(L+=1<<M,1===t&&L>852||2===t&&L>592)return 1;d[g=O&v]=S<<24|M<<16|y-c}}return 0!==O&&(d[y+O]=N-A<<24|64<<16),f.bits=S,0}},93651(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},96250(t,e,i){"use strict";var n=i(47226);function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,s=286,a=30,l=15,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);r(f);var p=new Array(60);r(p);var m=new Array(512);r(m);var g=new Array(256);r(g);var v=new Array(29);r(v);var y,b,x,w=new Array(a);function k(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function E(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function N(t){return t<256?m[t]:m[256+(t>>>7)]}function T(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,i){t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,T(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function C(t,e,i){_(t,i[2*e],i[2*e+1])}function S(t,e){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1}function M(t,e,i){var n,r,o=new Array(16),s=0;for(n=1;n<=l;n++)o[n]=s=s+i[n-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function A(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function z(t){t.bi_valid>8?T(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function L(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function O(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function F(t,e,i){var n,r,s,a,l=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?C(t,r,e):(C(t,(s=g[r])+o+1,e),0!==(a=h[s])&&_(t,r-=v[s],a),C(t,s=N(--n),i),0!==(a=d[s])&&_(t,n-=w[s],a))}while(l<t.last_lit);C(t,256,e)}function D(t,e){var i,n,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,h=e.stat_desc.elems,d=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<h;i++)0!==o[2*i]?(t.heap[++t.heap_len]=d=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=d<2?++d:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=d,i=t.heap_len>>1;i>=1;i--)O(t,o,i);r=h;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,O(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,s,a,h=e.dyn_tree,d=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(h[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(o=h[2*h[2*(n=t.heap[i])+1]+1]+1)>m&&(o=m,g++),h[2*n+1]=o,n>d||(t.bl_count[o]++,s=0,n>=p&&(s=f[n-p]),a=h[2*n],t.opt_len+=a*(o+s),u&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,g-=2}while(g>0);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)(r=t.heap[--i])>d||(h[2*r+1]!==o&&(t.opt_len+=(o-h[2*r+1])*h[2*r],h[2*r+1]=o),n--)}}(t,e),M(o,d,t.bl_count)}function R(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=s,s=e[2*(n+1)+1],++a<l&&r===s||(a<h?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4))}function I(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=i;n++)if(r=s,s=e[2*(n+1)+1],!(++a<l&&r===s)){if(a<h)do{C(t,r,t.bl_tree)}while(0!==--a);else 0!==r?(r!==o&&(C(t,r,t.bl_tree),a--),C(t,16,t.bl_tree),_(t,a-3,2)):a<=10?(C(t,17,t.bl_tree),_(t,a-3,3)):(C(t,18,t.bl_tree),_(t,a-11,7));a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4)}}r(w);var q=!1;function B(t,e,i,r){_(t,0+(r?1:0),3),function(t,e,i,r){z(t),r&&(T(t,i),T(t,~i)),n.arraySet(t.pending_buf,t.window,e,i,t.pending),t.pending+=i}(t,e,i,!0)}e._tr_init=function(t){q||(!function(){var t,e,i,n,r,o=new Array(16);for(i=0,n=0;n<28;n++)for(v[n]=i,t=0;t<1<<h[n];t++)g[i++]=n;for(g[i-1]=n,r=0,n=0;n<16;n++)for(w[n]=r,t=0;t<1<<d[n];t++)m[r++]=n;for(r>>=7;n<a;n++)for(w[n]=r<<7,t=0;t<1<<d[n]-7;t++)m[256+r++]=n;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,o[8]++;for(;t<=255;)f[2*t+1]=9,t++,o[9]++;for(;t<=279;)f[2*t+1]=7,t++,o[7]++;for(;t<=287;)f[2*t+1]=8,t++,o[8]++;for(M(f,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=S(t,5);y=new k(f,h,257,s,l),b=new k(p,d,0,a,l),x=new k(new Array(0),c,0,19,7)}(),q=!0),t.l_desc=new E(t.dyn_ltree,y),t.d_desc=new E(t.dyn_dtree,b),t.bl_desc=new E(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,A(t)},e._tr_stored_block=B,e._tr_flush_block=function(t,e,i,n){var r,s,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),a=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=i+5,i+4<=r&&-1!==e?B(t,e,i,n):4===t.strategy||s===r?(_(t,2+(n?1:0),3),F(t,f,p)):(_(t,4+(n?1:0),3),function(t,e,i,n){var r;for(_(t,e-257,5),_(t,i-1,5),_(t,n-4,4),r=0;r<n;r++)_(t,t.bl_tree[2*u[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),F(t,t.dyn_ltree,t.dyn_dtree)),A(t),n&&z(t)},e._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(g[i]+o+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,f),function(t){16===t.bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},25785(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},76878(t,e,i){"use strict";var n=i(31601),r=i.n(n),o=i(76314),s=i.n(o)()(r());s.push([t.id,"/*!\n * Quill Editor v2.0.3\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:'';display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue','Helvetica','Arial',sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow + .ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}",""]);const a=s;i.d(e,["A",0,a])},14744(t){"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,i){var n;return i&&!0===i.clone&&e(t)?o((n=t,Array.isArray(n)?[]:{}),t,i):t}function r(t,i,r){var s=t.slice();return i.forEach(function(i,a){void 0===s[a]?s[a]=n(i,r):e(i)?s[a]=o(t[a],i,r):-1===t.indexOf(i)&&s.push(n(i,r))}),s}function o(t,i,s){var a=Array.isArray(i);return a===Array.isArray(t)?a?((s||{arrayMerge:r}).arrayMerge||r)(t,i,s):function(t,i,r){var s={};return e(t)&&Object.keys(t).forEach(function(e){s[e]=n(t[e],r)}),Object.keys(i).forEach(function(a){e(i[a])&&t[a]?s[a]=o(t[a],i[a],r):s[a]=n(i[a],r)}),s}(t,i,s):n(i,s)}o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(t,i){return o(t,i,e)})};var s=o;t.exports=s},30228(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(t,e,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new r(n,o||t,s),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},a.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,r,o,s){var a=i?i+t:t;if(!this._events[a])return!1;var l,h,d=this._events[a],c=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),c){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,n),!0;case 4:return d.fn.call(d.context,e,n,r),!0;case 5:return d.fn.call(d.context,e,n,r,o),!0;case 6:return d.fn.call(d.context,e,n,r,o,s),!0}for(h=1,l=new Array(c-1);h<c;h++)l[h-1]=arguments[h];d.fn.apply(d.context,l)}else{var u,f=d.length;for(h=0;h<f;h++)switch(d[h].once&&this.removeListener(t,d[h].fn,void 0,!0),c){case 1:d[h].fn.call(d[h].context);break;case 2:d[h].fn.call(d[h].context,e);break;case 3:d[h].fn.call(d[h].context,e,n);break;case 4:d[h].fn.call(d[h].context,e,n,r);break;default:if(!l)for(u=1,l=new Array(c-1);u<c;u++)l[u-1]=arguments[u];d[h].fn.apply(d[h].context,l)}}return!0},a.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},a.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},a.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||s(this,o);else{for(var l=0,h=[],d=a.length;l<d;l++)(a[l].fn!==e||r&&!a[l].once||n&&a[l].context!==n)&&h.push(a[l]);h.length?this._events[o]=1===h.length?h[0]:h:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,t.exports=a},85606(t){var e=-1;function i(t,f,p,m,g){if(t===f)return t?[[0,t]]:[];if(null!=p){var y=function(t,e,i){var n="number"==typeof i?{index:i,length:0}:i.oldRange,r="number"==typeof i?null:i.newRange,o=t.length,s=e.length;if(0===n.length&&(null===r||0===r.length)){var a=n.index,l=t.slice(0,a),h=t.slice(a),d=r?r.index:null,c=a+s-o;if((null===d||d===c)&&!(c<0||c>s)){var u=e.slice(0,c);if((m=e.slice(c))===h){var f=Math.min(a,c);if((y=l.slice(0,f))===(x=u.slice(0,f)))return v(y,l.slice(f),u.slice(f),h)}}if(null===d||d===a){var p=a,m=(u=e.slice(0,p),e.slice(p));if(u===l){var g=Math.min(o-p,s-p);if((b=h.slice(h.length-g))===(w=m.slice(m.length-g)))return v(l,h.slice(0,h.length-g),m.slice(0,m.length-g),b)}}}if(n.length>0&&r&&0===r.length){var y=t.slice(0,n.index),b=t.slice(n.index+n.length);if(!(s<(f=y.length)+(g=b.length))){var x=e.slice(0,f),w=e.slice(s-g);if(y===x&&b===w)return v(y,t.slice(f,o-g),e.slice(f,s-g),b)}}return null}(t,f,p);if(y)return y}var b=r(t,f),x=t.substring(0,b);b=s(t=t.substring(b),f=f.substring(b));var w=t.substring(t.length-b),k=function(t,o){var a;if(!t)return[[1,o]];if(!o)return[[e,t]];var l=t.length>o.length?t:o,h=t.length>o.length?o:t,d=l.indexOf(h);if(-1!==d)return a=[[1,l.substring(0,d)],[0,h],[1,l.substring(d+h.length)]],t.length>o.length&&(a[0][0]=a[2][0]=e),a;if(1===h.length)return[[e,t],[1,o]];var c=function(t,e){var i=t.length>e.length?t:e,n=t.length>e.length?e:t;if(i.length<4||2*n.length<i.length)return null;function o(t,e,i){for(var n,o,a,l,h=t.substring(i,i+Math.floor(t.length/4)),d=-1,c="";-1!==(d=e.indexOf(h,d+1));){var u=r(t.substring(i),e.substring(d)),f=s(t.substring(0,i),e.substring(0,d));c.length<f+u&&(c=e.substring(d-f,d)+e.substring(d,d+u),n=t.substring(0,i-f),o=t.substring(i+u),a=e.substring(0,d-f),l=e.substring(d+u))}return 2*c.length>=t.length?[n,o,a,l,c]:null}var a,l,h,d,c,u=o(i,n,Math.ceil(i.length/4)),f=o(i,n,Math.ceil(i.length/2));if(!u&&!f)return null;a=f?u&&u[4].length>f[4].length?u:f:u;t.length>e.length?(l=a[0],h=a[1],d=a[2],c=a[3]):(d=a[0],c=a[1],l=a[2],h=a[3]);var p=a[4];return[l,h,d,c,p]}(t,o);if(c){var u=c[0],f=c[1],p=c[2],m=c[3],g=c[4],v=i(u,p),y=i(f,m);return v.concat([[0,g]],y)}return function(t,i){for(var r=t.length,o=i.length,s=Math.ceil((r+o)/2),a=s,l=2*s,h=new Array(l),d=new Array(l),c=0;c<l;c++)h[c]=-1,d[c]=-1;h[a+1]=0,d[a+1]=0;for(var u=r-o,f=u%2!=0,p=0,m=0,g=0,v=0,y=0;y<s;y++){for(var b=-y+p;b<=y-m;b+=2){for(var x=a+b,w=(_=b===-y||b!==y&&h[x-1]<h[x+1]?h[x+1]:h[x-1]+1)-b;_<r&&w<o&&t.charAt(_)===i.charAt(w);)_++,w++;if(h[x]=_,_>r)m+=2;else if(w>o)p+=2;else if(f){if((N=a+u-b)>=0&&N<l&&-1!==d[N])if(_>=(E=r-d[N]))return n(t,i,_,w)}}for(var k=-y+g;k<=y-v;k+=2){for(var E,N=a+k,T=(E=k===-y||k!==y&&d[N-1]<d[N+1]?d[N+1]:d[N-1]+1)-k;E<r&&T<o&&t.charAt(r-E-1)===i.charAt(o-T-1);)E++,T++;if(d[N]=E,E>r)v+=2;else if(T>o)g+=2;else if(!f){if((x=a+u-k)>=0&&x<l&&-1!==h[x]){var _;w=a+(_=h[x])-x;if(_>=(E=r-E))return n(t,i,_,w)}}}}return[[e,t],[1,i]]}(t,o)}(t=t.substring(0,t.length-b),f=f.substring(0,f.length-b));return x&&k.unshift([0,x]),w&&k.push([0,w]),u(k,g),m&&function(t){var i=!1,n=[],r=0,f=null,p=0,m=0,g=0,v=0,y=0;for(;p<t.length;)0==t[p][0]?(n[r++]=p,m=v,g=y,v=0,y=0,f=t[p][1]):(1==t[p][0]?v+=t[p][1].length:y+=t[p][1].length,f&&f.length<=Math.max(m,g)&&f.length<=Math.max(v,y)&&(t.splice(n[r-1],0,[e,f]),t[n[r-1]+1][0]=1,r--,p=--r>0?n[r-1]:-1,m=0,g=0,v=0,y=0,f=null,i=!0)),p++;i&&u(t);(function(t){function e(t,e){if(!t||!e)return 6;var i=t.charAt(t.length-1),n=e.charAt(0),r=i.match(a),o=n.match(a),s=r&&i.match(l),u=o&&n.match(l),f=s&&i.match(h),p=u&&n.match(h),m=f&&t.match(d),g=p&&e.match(c);return m||g?5:f||p?4:r&&!s&&u?3:s||u?2:r||o?1:0}var i=1;for(;i<t.length-1;){if(0==t[i-1][0]&&0==t[i+1][0]){var n=t[i-1][1],r=t[i][1],o=t[i+1][1],u=s(n,r);if(u){var f=r.substring(r.length-u);n=n.substring(0,n.length-u),r=f+r.substring(0,r.length-u),o=f+o}for(var p=n,m=r,g=o,v=e(n,r)+e(r,o);r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);var y=e(n,r)+e(r,o);y>=v&&(v=y,p=n,m=r,g=o)}t[i-1][1]!=p&&(p?t[i-1][1]=p:(t.splice(i-1,1),i--),t[i][1]=m,g?t[i+1][1]=g:(t.splice(i+1,1),i--))}i++}})(t),p=1;for(;p<t.length;){if(t[p-1][0]==e&&1==t[p][0]){var b=t[p-1][1],x=t[p][1],w=o(b,x),k=o(x,b);w>=k?(w>=b.length/2||w>=x.length/2)&&(t.splice(p,0,[0,x.substring(0,w)]),t[p-1][1]=b.substring(0,b.length-w),t[p+1][1]=x.substring(w),p++):(k>=b.length/2||k>=x.length/2)&&(t.splice(p,0,[0,b.substring(0,k)]),t[p-1][0]=1,t[p-1][1]=x.substring(0,x.length-k),t[p+1][0]=e,t[p+1][1]=b.substring(k),p++),p++}p++}}(k),k}function n(t,e,n,r){var o=t.substring(0,n),s=e.substring(0,r),a=t.substring(n),l=e.substring(r),h=i(o,s),d=i(a,l);return h.concat(d)}function r(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(o,r)==e.substring(o,r)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return f(t.charCodeAt(r-1))&&r--,r}function o(t,e){var i=t.length,n=e.length;if(0==i||0==n)return 0;i>n?t=t.substring(i-n):i<n&&(e=e.substring(0,i));var r=Math.min(i,n);if(t==e)return r;for(var o=0,s=1;;){var a=t.substring(r-s),l=e.indexOf(a);if(-1==l)return o;s+=l,0!=l&&t.substring(r-s)!=e.substring(0,s)||(o=s,s++)}}function s(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var i=0,n=Math.min(t.length,e.length),r=n,o=0;i<r;)t.substring(t.length-r,t.length-o)==e.substring(e.length-r,e.length-o)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return p(t.charCodeAt(t.length-r))&&r--,r}var a=/[^a-zA-Z0-9]/,l=/\s/,h=/[\r\n]/,d=/\n\r?\n$/,c=/^\r?\n\r?\n/;function u(t,i){t.push([0,""]);for(var n,o=0,a=0,l=0,h="",d="";o<t.length;)if(o<t.length-1&&!t[o][1])t.splice(o,1);else switch(t[o][0]){case 1:l++,d+=t[o][1],o++;break;case e:a++,h+=t[o][1],o++;break;case 0:var c=o-l-a-1;if(i){if(c>=0&&g(t[c][1])){var f=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),h=f+h,d=f+d,!t[c][1]){t.splice(c,1),o--;var p=c-1;t[p]&&1===t[p][0]&&(l++,d=t[p][1]+d,p--),t[p]&&t[p][0]===e&&(a++,h=t[p][1]+h,p--),c=p}}if(m(t[o][1])){f=t[o][1].charAt(0);t[o][1]=t[o][1].slice(1),h+=f,d+=f}}if(o<t.length-1&&!t[o][1]){t.splice(o,1);break}if(h.length>0||d.length>0){h.length>0&&d.length>0&&(0!==(n=r(d,h))&&(c>=0?t[c][1]+=d.substring(0,n):(t.splice(0,0,[0,d.substring(0,n)]),o++),d=d.substring(n),h=h.substring(n)),0!==(n=s(d,h))&&(t[o][1]=d.substring(d.length-n)+t[o][1],d=d.substring(0,d.length-n),h=h.substring(0,h.length-n)));var v=l+a;0===h.length&&0===d.length?(t.splice(o-v,v),o-=v):0===h.length?(t.splice(o-v,v,[1,d]),o=o-v+1):0===d.length?(t.splice(o-v,v,[e,h]),o=o-v+1):(t.splice(o-v,v,[e,h],[1,d]),o=o-v+2)}0!==o&&0===t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,l=0,a=0,h="",d=""}""===t[t.length-1][1]&&t.pop();var y=!1;for(o=1;o<t.length-1;)0===t[o-1][0]&&0===t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)===t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),y=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),y=!0)),o++;y&&u(t,i)}function f(t){return t>=55296&&t<=56319}function p(t){return t>=56320&&t<=57343}function m(t){return p(t.charCodeAt(0))}function g(t){return f(t.charCodeAt(t.length-1))}function v(t,i,n,r){return g(t)||m(r)?null:function(t){for(var e=[],i=0;i<t.length;i++)t[i][1].length>0&&e.push(t[i]);return e}([[0,t],[e,i],[1,n],[0,r]])}function y(t,e,n,r){return i(t,e,n,r,!0)}y.INSERT=1,y.DELETE=e,y.EQUAL=0,t.exports=y},71710(t,e,i){t.exports=function t(e,i,n){function r(s,a){if(!i[s]){if(!e[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var h=i[s]={exports:{}};e[s][0].call(h.exports,function(t){return r(e[s][1][t]||t)},h,h.exports,t,e,i,n)}return i[s].exports}for(var o=void 0,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,i){"use strict";var n=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var e,i,r,s,a,l,h,d=[],c=0,u=t.length,f=u,p="string"!==n.getTypeOf(t);c<t.length;)f=u-c,r=p?(e=t[c++],i=c<u?t[c++]:0,c<u?t[c++]:0):(e=t.charCodeAt(c++),i=c<u?t.charCodeAt(c++):0,c<u?t.charCodeAt(c++):0),s=e>>2,a=(3&e)<<4|i>>4,l=1<f?(15&i)<<2|r>>6:64,h=2<f?63&r:64,d.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(h));return d.join("")},i.decode=function(t){var e,i,n,s,a,l,h=0,d=0,c="data:";if(t.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var u,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&f--,t.charAt(t.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=r.uint8array?new Uint8Array(0|f):new Array(0|f);h<t.length;)e=o.indexOf(t.charAt(h++))<<2|(s=o.indexOf(t.charAt(h++)))>>4,i=(15&s)<<4|(a=o.indexOf(t.charAt(h++)))>>2,n=(3&a)<<6|(l=o.indexOf(t.charAt(h++))),u[d++]=e,64!==a&&(u[d++]=i),64!==l&&(u[d++]=n);return u}},{"./support":30,"./utils":32}],2:[function(t,e,i){"use strict";var n=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,i,n,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){"use strict";var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){"use strict";var n=t("./utils"),r=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,i,n){var o=r,s=n+i;t^=-1;for(var a=n;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}(0|e,t,t.length,0):function(t,e,i,n){var o=r,s=n+i;t^=-1;for(var a=n;a<s;a++)t=t>>>8^o[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function l(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},i.compressWorker=function(t){return new l("Deflate",t)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,i){"use strict";function n(t,e){var i,n="";for(i=0;i<e;i++)n+=String.fromCharCode(255&t),t>>>=8;return n}function r(t,e,i,r,s,d){var c,u,f=t.file,p=t.compression,m=d!==a.utf8encode,g=o.transformTo("string",d(f.name)),v=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",d(y)),x=o.transformTo("string",a.utf8encode(y)),w=v.length!==f.name.length,k=x.length!==y.length,E="",N="",T="",_=f.dir,C=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!i||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var M=0;e&&(M|=8),m||!w&&!k||(M|=2048);var A=0,z=0;_&&(A|=16),"UNIX"===s?(z=798,A|=function(t,e){var i=t;return t||(i=e?16893:33204),(65535&i)<<16}(f.unixPermissions,_)):(z=20,A|=function(t){return 63&(t||0)}(f.dosPermissions)),c=C.getUTCHours(),c<<=6,c|=C.getUTCMinutes(),c<<=5,c|=C.getUTCSeconds()/2,u=C.getUTCFullYear()-1980,u<<=4,u|=C.getUTCMonth()+1,u<<=5,u|=C.getUTCDate(),w&&(N=n(1,1)+n(l(g),4)+v,E+="up"+n(N.length,2)+N),k&&(T=n(1,1)+n(l(b),4)+x,E+="uc"+n(T.length,2)+T);var L="";return L+="\n\0",L+=n(M,2),L+=p.magic,L+=n(c,2),L+=n(u,2),L+=n(S.crc32,4),L+=n(S.compressedSize,4),L+=n(S.uncompressedSize,4),L+=n(g.length,2),L+=n(E.length,2),{fileRecord:h.LOCAL_FILE_HEADER+L+g+E,dirRecord:h.CENTRAL_FILE_HEADER+n(z,2)+L+n(b.length,2)+"\0\0\0\0"+n(A,4)+n(r,4)+g+E+b}}var o=t("../utils"),s=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),h=t("../signature");function d(t,e,i,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(d,s),d.prototype.push=function(t){var e=t.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-n-1))/i:100}}))},d.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var i=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,i=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),e)this.push({data:function(t){return h.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var i=this.bytesWritten-t,r=function(t,e,i,r,s){var a=o.transformTo("string",s(r));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(t,2)+n(t,2)+n(e,4)+n(i,4)+n(a.length,2)+a}(this.dirRecords.length,i,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},d.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(t){var e=this._sources;if(!s.prototype.error.call(this,t))return!1;for(var i=0;i<e.length;i++)try{e[i].error(t)}catch(t){}return!0},d.prototype.lock=function(){s.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,i){"use strict";var n=t("../compressions"),r=t("./ZipFileWorker");i.generateWorker=function(t,e,i){var o=new r(e.streamFiles,i,e.platform,e.encodeFileName),s=0;try{t.forEach(function(t,i){s++;var r=function(t,e){var i=t||e,r=n[i];if(!r)throw new Error(i+" is not a valid compression method !");return r}(i.options.compression,e.compression),a=i.options.compressionOptions||e.compressionOptions||{},l=i.dir,h=i.date;i._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:h,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,i){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.2",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,i){"use strict";var n=t("./utils"),r=t("./external"),o=t("./utf8"),s=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function h(t){return new r.Promise(function(e,i){var n=t.decompressed.getContentWorker().pipe(new a);n.on("error",function(t){i(t)}).on("end",function(){n.streamInfo.crc32!==t.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}e.exports=function(t,e){var i=this;return e=n.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(t){var i=new s(e);return i.load(t),i}).then(function(t){var i=[r.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var o=0;o<n.length;o++)i.push(h(n[o]));return r.Promise.all(i)}).then(function(t){for(var r=t.shift(),o=r.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,h=n.resolve(a.fileNameStr);i.file(h,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(i.file(h).unsafeOriginalName=l)}return r.zipComment.length&&(i.comment=r.zipComment),i})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,i){"use strict";var n=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,i){"use strict";var n=t("readable-stream").Readable;function r(t,e,i){n.call(this,e),this._helper=t;var r=this;t.on("data",function(t,e){r.push(t)||r._helper.pause(),i&&i(e)}).on("error",function(t){r.emit("error",t)}).on("end",function(){r.push(null)})}t("../utils").inherits(r,n),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,i){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,i){"use strict";function n(t,e,i){var n,r=o.getTypeOf(e),a=o.extend(i||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=m(t)),a.createFolders&&(n=p(t))&&g.call(this,n,!0);var c="string"===r&&!1===a.binary&&!1===a.base64;i&&void 0!==i.binary||(a.binary=!c),(e instanceof h&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v=null;v=e instanceof h||e instanceof s?e:u.isNode&&u.isStream(e)?new f(t,e):o.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new d(t,v,a);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),s=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),c=t("./generate"),u=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},m=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},g=function(t,e){return e=void 0!==e?e:l.createFolders,t=m(t),this.files[t]||n.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,i,n;for(e in this.files)n=this.files[e],(i=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(i,n)},filter:function(t){var e=[];return this.forEach(function(i,n){t(i,n)&&e.push(n)}),e},file:function(t,e,i){if(1!==arguments.length)return t=this.root+t,n.call(this,t,e,i),this;if(v(t)){var r=t;return this.filter(function(t,e){return!e.dir&&r.test(t)})}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter(function(e,i){return i.dir&&t.test(e)});var e=this.root+t,i=g.call(this,e),n=this.clone();return n.root=i.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var i=this.filter(function(e,i){return i.name.slice(0,t.length)===t}),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,i={};try{if((i=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");o.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var n=i.comment||this.comment||"";e=c.generateWorker(this,i,n)}catch(t){(e=new s("error")).error(t)}return new a(e,i.type||"string",i.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,i){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,i){"use strict";var n=t("./DataReader");function r(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===i&&this.data[o+2]===n&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&i===o[1]&&n===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,i){"use strict";var n=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,i=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)i=(i<<8)+this.byteAt(e);return this.index+=t,i},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,i){"use strict";var n=t("./Uint8ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,i){"use strict";var n=t("./DataReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,i){"use strict";var n=t("./ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,i){"use strict";var n=t("../utils"),r=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,i){"use strict";var n=t("./GenericWorker"),r=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,i){"use strict";var n=t("./GenericWorker"),r=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,i){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),l=t("../external"),h=null;if(a.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function d(t,e){return new l.Promise(function(i,r){var o=[],a=t._internalType,l=t._outputType,h=t._mimeType;t.on("data",function(t,i){o.push(t),e&&e(i)}).on("error",function(t){o=[],r(t)}).on("end",function(){try{var t=function(t,e,i){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",e),i);case"base64":return s.encode(e);default:return n.transformTo(t,e)}}(l,function(t,e){var i,n=0,r=null,o=0;for(i=0;i<e.length;i++)o+=e[i].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(o),i=0;i<e.length;i++)r.set(e[i],n),n+=e[i].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,o),h);i(t)}catch(t){r(t)}o=[]}).resume()})}function c(t,e,i){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=i,n.checkSupport(s),this._worker=t.pipe(new r(s)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}c.prototype={accumulate:function(t){return d(this,t)},on:function(t,e){var i=this;return"data"===t?this._worker.on(t,function(t){e.call(i,t.data,t.meta)}):this._worker.on(t,function(){n.delay(e,arguments,i)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var n=new ArrayBuffer(0);try{i.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(n),i.blob=0===r.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,i){"use strict";for(var n=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function h(){s.call(this,"utf-8 decode"),this.leftOver=null}function d(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,i.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,i,n,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),i<128?e[s++]=i:(i<2048?e[s++]=192|i>>>6:(i<65536?e[s++]=224|i>>>12:(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63),e[s++]=128|i>>>6&63),e[s++]=128|63&i);return e}(t)},i.utf8decode=function(t){return r.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,i,r,o,s=t.length,l=new Array(2*s);for(e=i=0;e<s;)if((r=t[e++])<128)l[i++]=r;else if(4<(o=a[r]))l[i++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<s;)r=r<<6|63&t[e++],o--;1<o?l[i++]=65533:r<65536?l[i++]=r:(r-=65536,l[i++]=55296|r>>10&1023,l[i++]=56320|1023&r)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(t=n.transformTo(r.uint8array?"uint8array":"array",t))},n.inherits(h,s),h.prototype.processChunk=function(t){var e=n.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+a[t[i]]>e?i:e}(e),l=e;s!==e.length&&(r.uint8array?(l=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(l=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:i.utf8decode(l),meta:t.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,n.inherits(d,s),d.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,i){"use strict";var n=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function l(t,e){for(var i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e}t("setimmediate"),i.newBlob=function(t,e){i.checkSupport("blob");try{return new Blob([t],{type:e})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(t,e,i){var n=[],r=0,o=t.length;if(o<=i)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+i,o)))):n.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+i,o)))),r+=i;return n.join("")},stringifyByChar:function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function d(t){var e=65536,n=i.getTypeOf(t),r=!0;if("uint8array"===n?r=h.applyCanBeUsed.uint8array:"nodebuffer"===n&&(r=h.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return h.stringifyByChunk(t,n,e)}catch(t){e=Math.floor(e/2)}return h.stringifyByChar(t)}function c(t,e){for(var i=0;i<t.length;i++)e[i]=t[i];return e}i.applyFromCharCode=d;var u={};u.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return u.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},u.array={string:d,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},u.arraybuffer={string:function(t){return d(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},u.uint8array={string:d,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},u.nodebuffer={string:d,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return u.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:a},i.transformTo=function(t,e){if(e=e||"",!t)return e;i.checkSupport(t);var n=i.getTypeOf(e);return u[n][t](e)},i.resolve=function(t){for(var e=t.split("/"),i=[],n=0;n<e.length;n++){var r=e[n];"."===r||""===r&&0!==n&&n!==e.length-1||(".."===r?i.pop():i.push(r))}return i.join("/")},i.getTypeOf=function(t){if("string"==typeof t)return"string";var e=Object.prototype.toString.call(t);return"[object Array]"===e?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===e?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===e?"arraybuffer":void 0},i.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(t){var e,i,n="";for(i=0;i<(t||"").length;i++)n+="\\x"+((e=t.charCodeAt(i))<16?"0":"")+e.toString(16).toUpperCase();return n},i.delay=function(t,e,i){setImmediate(function(){t.apply(i||null,e||[])})},i.inherits=function(t,e){function i(){}i.prototype=e.prototype,t.prototype=new i},i.extend=function(){var t,e,i={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===i[e]&&(i[e]=arguments[t][e]);return i},i.prepareContent=function(t,e,o,a,h){return s.Promise.resolve(e).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))?void 0!==Blob.prototype.arrayBuffer?e.arrayBuffer():"undefined"!=typeof FileReader?new s.Promise(function(t,i){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(t){i(t.target.error)},n.readAsArrayBuffer(e)}):s.Promise.reject(new Error(t+" is a Blob, but we have no way of reading it.")):e}).then(function(e){var d=i.getTypeOf(e);return d?("arraybuffer"===d?e=i.transformTo("uint8array",e):"string"===d&&(h?e=r.decode(e):o&&!0!==a&&(e=function(t){return l(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,i){"use strict";var n=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),s=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var i=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",i=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,i,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),i=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=e-i;if(0<n)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,i){"use strict";var n=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),s=t("./crc32"),a=t("./utf8"),l=t("./compressions"),h=t("./support");function d(t,e){this.options=t,this.loadOptions=e}d.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,i,n,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),i=t.readInt(2),n=t.readData(i),this.extraFields[e]={id:e,length:i,value:n};t.setIndex(r)},handleUTF8:function(){var t=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var i=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=n(t.value);return 1!==e.readInt(1)||s(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=n(t.value);return 1!==e.readInt(1)||s(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,i){"use strict";function n(t,e,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=e,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),s=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var e=null,i="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(i=t.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(e=e.pipe(new s.Utf8EncodeWorker)),!o&&n&&(e=e.pipe(new s.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,i,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(i,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)n.prototype[h[c]]=d;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){"use strict";var i,n,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,s=new r(d),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),i=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){d(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(d,0)};else{var l=new t.MessageChannel;l.port1.onmessage=d,i=function(){l.port2.postMessage(0)}}var h=[];function d(){var t,e;n=!0;for(var i=h.length;i;){for(e=h,h=[],t=-1;++t<i;)e[t]();i=h.length}n=!1}e.exports=function(t){1!==h.push(t)||n||i()}}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,i){"use strict";var n=t("immediate");function r(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&f(this,t)}function d(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function c(t,e,i){n(function(){var n;try{n=e(i)}catch(n){return o.reject(t,n)}n===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,n)})}function u(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var i=!1;function n(e){i||(i=!0,o.reject(t,e))}function r(e){i||(i=!0,o.resolve(t,e))}var s=p(function(){e(r,n)});"error"===s.status&&n(s.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}(e.exports=h).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then(function(i){return e.resolve(t()).then(function(){return i})},function(i){return e.resolve(t()).then(function(){throw i})})},h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var i=new this.constructor(r);return this.state!==l?c(i,this.state===a?t:e,this.outcome):this.queue.push(new d(i,t,e)),i},d.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},d.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},d.prototype.callRejected=function(t){o.reject(this.promise,t)},d.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},o.resolve=function(t,e){var i=p(u,e);if("error"===i.status)return o.reject(t,i.value);var n=i.value;if(n)f(t,n);else{t.state=a,t.outcome=e;for(var r=-1,s=t.queue.length;++r<s;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=s,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},h.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},h.reject=function(t){var e=new this(r);return o.reject(e,t)},h.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);for(var s=new Array(i),a=0,l=-1,h=new this(r);++l<i;)d(t[l],l);return h;function d(t,r){e.resolve(t).then(function(t){s[r]=t,++a!==i||n||(n=!0,o.resolve(h,s))},function(t){n||(n=!0,o.reject(h,t))})}},h.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);for(var s,a=-1,l=new this(r);++a<i;)s=t[a],e.resolve(s).then(function(t){n||(n=!0,o.resolve(l,t))},function(t){n||(n=!0,o.reject(l,t))});return l}},{immediate:36}],38:[function(t,e,i){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,i){"use strict";var n=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString,h=0,d=-1,c=0,u=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:d,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==h)throw new Error(s[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=n.deflateSetDictionary(this.strm,p))!==h)throw new Error(s[i]);this._dict_set=!0}}function p(t,e){var i=new f(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}f.prototype.push=function(t,e){var i,s,a=this.strm,d=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(d),a.next_out=0,a.avail_out=d),1!==(i=n.deflate(a,s))&&i!==h)return this.onEnd(i),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==i);return 4===s?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===h):2!==s||(this.onEnd(h),!(a.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=f,i.deflate=p,i.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},i.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,i){"use strict";var n=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),h=t("./zlib/gzheader"),d=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==s.Z_OK)throw new Error(a[i]);this.header=new h,n.inflateGetHeader(this.strm,this.header)}function u(t,e){var i=new c(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}c.prototype.push=function(t,e){var i,a,l,h,c,u,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?f.input=o.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(i=n.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(u="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===d.call(m)?new Uint8Array(m):m,i=n.inflateSetDictionary(this.strm,u)),i===s.Z_BUF_ERROR&&!0===g&&(i=s.Z_OK,g=!1),i!==s.Z_STREAM_END&&i!==s.Z_OK)return this.onEnd(i),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&i!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),h=f.next_out-l,c=o.buf2string(f.output,l),f.next_out=h,f.avail_out=p-h,h&&r.arraySet(f.output,f.output,l,h,0),this.onData(c)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&i!==s.Z_STREAM_END);return i===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=c,i.inflate=u,i.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},i.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}}return t},i.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,s;for(e=n=0,i=t.length;e<i;e++)n+=t[e].length;for(s=new Uint8Array(n),e=r=0,i=t.length;e<i;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(n)},{}],42:[function(t,e,i){"use strict";var n=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",s=0;s<e;s++)i+=String.fromCharCode(t[s]);return i}s[254]=s[254]=1,i.string2buf=function(t){var e,i,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),o=s=0;s<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[s++]=i:(i<2048?e[s++]=192|i>>>6:(i<65536?e[s++]=224|i>>>12:(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63),e[s++]=128|i>>>6&63),e[s++]=128|63&i);return e},i.buf2binstring=function(t){return l(t,t.length)},i.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},i.buf2string=function(t,e){var i,n,r,o,a=e||t.length,h=new Array(2*a);for(i=n=0;i<a;)if((r=t[i++])<128)h[n++]=r;else if(4<(o=s[r]))h[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&i<a;)r=r<<6|63&t[i++],o--;1<o?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},i.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}},{"./common":41}],43:[function(t,e,i){"use strict";e.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,s=0;0!==i;){for(i-=s=2e3<i?2e3:i;o=o+(r=r+e[n++]|0)|0,--s;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,i){"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}},{}],45:[function(t,e,i){"use strict";var n=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e,i,r){var o=n,s=r+i;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},{}],46:[function(t,e,i){"use strict";var n,r=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),l=t("./messages"),h=0,d=4,c=0,u=-2,f=-1,p=4,m=2,g=8,v=9,y=286,b=30,x=19,w=2*y+1,k=15,E=3,N=258,T=N+E+1,_=42,C=113,S=1,M=2,A=3,z=4;function L(t,e){return t.msg=l[e],e}function O(t){return(t<<1)-(4<t?9:0)}function F(t){for(var e=t.length;0<=--e;)t[e]=0}function D(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function R(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,D(t.strm)}function I(t,e){t.pending_buf[t.pending++]=e}function q(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function B(t,e){var i,n,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-T?t.strstart-(t.w_size-T):0,h=t.window,d=t.w_mask,c=t.prev,u=t.strstart+N,f=h[o+s-1],p=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(i=e)+s]===p&&h[i+s-1]===f&&h[i]===h[o]&&h[++i]===h[o+1]){o+=2,i++;do{}while(h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&o<u);if(n=N-(u-o),o=u-N,s<n){if(t.match_start=e,a<=(s=n))break;f=h[o+s-1],p=h[o+s]}}}while((e=c[e&d])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function P(t){var e,i,n,o,l,h,d,c,u,f,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-T)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=i=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--i;);for(e=i=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--i;);o+=p}if(0===t.strm.avail_in)break;if(h=t.strm,d=t.window,c=t.strstart+t.lookahead,f=void 0,(u=o)<(f=h.avail_in)&&(f=u),i=0===f?0:(h.avail_in-=f,r.arraySet(d,h.input,h.next_in,f,c),1===h.state.wrap?h.adler=s(h.adler,d,f,c):2===h.state.wrap&&(h.adler=a(h.adler,d,f,c)),h.next_in+=f,h.total_in+=f,f),t.lookahead+=i,t.lookahead+t.insert>=E)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+E-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<T&&0!==t.strm.avail_in)}function U(t,e){for(var i,n;;){if(t.lookahead<T){if(P(t),t.lookahead<T&&e===h)return S;if(0===t.lookahead)break}if(i=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-T&&(t.match_length=B(t,i)),t.match_length>=E)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(R(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<E-1?t.strstart:E-1,e===d?(R(t,!0),0===t.strm.avail_out?A:z):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?S:M}function j(t,e){for(var i,n,r;;){if(t.lookahead<T){if(P(t),t.lookahead<T&&e===h)return S;if(0===t.lookahead)break}if(i=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-T&&(t.match_length=B(t,i),t.match_length<=5&&(1===t.strategy||t.match_length===E&&4096<t.strstart-t.match_start)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-E,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=E-1,t.strstart++,n&&(R(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&R(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===d?(R(t,!0),0===t.strm.avail_out?A:z):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?S:M}function H(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function W(){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=g,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 r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(k+1),this.heap=new r.Buf16(2*y+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*y+1),F(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 V(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?_:C,t.adler=2===e.wrap?0:1,e.last_flush=h,o._tr_init(e),c):L(t,u)}function K(t){var e=V(t);return e===c&&function(t){t.window_size=2*t.w_size,F(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=E-1,t.match_available=0,t.ins_h=0}(t.state),e}function G(t,e,i,n,o,s){if(!t)return u;var a=1;if(e===f&&(e=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||v<o||i!==g||n<8||15<n||e<0||9<e||s<0||p<s)return L(t,u);8===n&&(n=9);var l=new W;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+E-1)/E),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=i,K(t)}n=[new H(0,0,0,0,function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(P(t),0===t.lookahead&&e===h)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,R(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-T&&(R(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===d?(R(t,!0),0===t.strm.avail_out?A:z):(t.strstart>t.block_start&&(R(t,!1),t.strm.avail_out),S)}),new H(4,4,8,4,U),new H(4,5,16,8,U),new H(4,6,32,32,U),new H(4,4,16,16,j),new H(8,16,32,32,j),new H(8,16,128,128,j),new H(8,32,128,256,j),new H(32,128,258,1024,j),new H(32,258,258,4096,j)],i.deflateInit=function(t,e){return G(t,e,g,15,8,0)},i.deflateInit2=G,i.deflateReset=K,i.deflateResetKeep=V,i.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,c):u},i.deflate=function(t,e){var i,r,s,l;if(!t||!t.state||5<e||e<0)return t?L(t,u):u;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==d)return L(t,0===t.avail_out?-5:u);if(r.strm=t,i=r.last_flush,r.last_flush=e,r.status===_)if(2===r.wrap)t.adler=0,I(r,31),I(r,139),I(r,8),r.gzhead?(I(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),I(r,255&r.gzhead.time),I(r,r.gzhead.time>>8&255),I(r,r.gzhead.time>>16&255),I(r,r.gzhead.time>>24&255),I(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),I(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(I(r,255&r.gzhead.extra.length),I(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(I(r,0),I(r,0),I(r,0),I(r,0),I(r,0),I(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),I(r,3),r.status=C);else{var f=g+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=C,q(r,f),0!==r.strstart&&(q(r,t.adler>>>16),q(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),D(t),s=r.pending,r.pending!==r.pending_buf_size));)I(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),D(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,I(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),D(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,I(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&D(t),r.pending+2<=r.pending_buf_size&&(I(r,255&t.adler),I(r,t.adler>>8&255),t.adler=0,r.status=C)):r.status=C),0!==r.pending){if(D(t),0===t.avail_out)return r.last_flush=-1,c}else if(0===t.avail_in&&O(e)<=O(i)&&e!==d)return L(t,-5);if(666===r.status&&0!==t.avail_in)return L(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==h&&666!==r.status){var p=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(P(t),0===t.lookahead)){if(e===h)return S;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(R(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===d?(R(t,!0),0===t.strm.avail_out?A:z):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?S:M}(r,e):3===r.strategy?function(t,e){for(var i,n,r,s,a=t.window;;){if(t.lookahead<=N){if(P(t),t.lookahead<=N&&e===h)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&0<t.strstart&&(n=a[r=t.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){s=t.strstart+N;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<s);t.match_length=N-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(i=o._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(R(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===d?(R(t,!0),0===t.strm.avail_out?A:z):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?S:M}(r,e):n[r.level].func(r,e);if(p!==A&&p!==z||(r.status=666),p===S||p===A)return 0===t.avail_out&&(r.last_flush=-1),c;if(p===M&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(F(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),D(t),0===t.avail_out))return r.last_flush=-1,c}return e!==d?c:r.wrap<=0?1:(2===r.wrap?(I(r,255&t.adler),I(r,t.adler>>8&255),I(r,t.adler>>16&255),I(r,t.adler>>24&255),I(r,255&t.total_in),I(r,t.total_in>>8&255),I(r,t.total_in>>16&255),I(r,t.total_in>>24&255)):(q(r,t.adler>>>16),q(r,65535&t.adler)),D(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?c:1)},i.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==_&&69!==e&&73!==e&&91!==e&&103!==e&&e!==C&&666!==e?L(t,u):(t.state=null,e===C?L(t,-3):c):u},i.deflateSetDictionary=function(t,e){var i,n,o,a,l,h,d,f,p=e.length;if(!t||!t.state)return u;if(2===(a=(i=t.state).wrap)||1===a&&i.status!==_||i.lookahead)return u;for(1===a&&(t.adler=s(t.adler,e,p,0)),i.wrap=0,p>=i.w_size&&(0===a&&(F(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new r.Buf8(i.w_size),r.arraySet(f,e,p-i.w_size,i.w_size,0),e=f,p=i.w_size),l=t.avail_in,h=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,P(i);i.lookahead>=E;){for(n=i.strstart,o=i.lookahead-(E-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+E-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--o;);i.strstart=n,i.lookahead=E-1,P(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=E-1,i.match_available=0,t.next_in=h,t.input=d,t.avail_in=l,i.wrap=a,c},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,i){"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}},{}],48:[function(t,e,i){"use strict";e.exports=function(t,e){var i,n,r,o,s,a,l,h,d,c,u,f,p,m,g,v,y,b,x,w,k,E,N,T,_;i=t.state,n=t.next_in,T=t.input,r=n+(t.avail_in-5),o=t.next_out,_=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=i.dmax,h=i.wsize,d=i.whave,c=i.wnext,u=i.window,f=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=m[f&v];e:for(;;){if(f>>>=x=b>>>24,p-=x,0==(x=b>>>16&255))_[o++]=65535&b;else{if(!(16&x)){if(!(64&x)){b=m[(65535&b)+(f&(1<<x)-1)];continue e}if(32&x){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}w=65535&b,(x&=15)&&(p<x&&(f+=T[n++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=g[f&y];i:for(;;){if(f>>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(!(64&x)){b=g[(65535&b)+(f&(1<<x)-1)];continue i}t.msg="invalid distance code",i.mode=30;break t}if(k=65535&b,p<(x&=15)&&(f+=T[n++]<<p,(p+=8)<x&&(f+=T[n++]<<p,p+=8)),l<(k+=f&(1<<x)-1)){t.msg="invalid distance too far back",i.mode=30;break t}if(f>>>=x,p-=x,(x=o-s)<k){if(d<(x=k-x)&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(N=u,(E=0)===c){if(E+=h-x,x<w){for(w-=x;_[o++]=u[E++],--x;);E=o-k,N=_}}else if(c<x){if(E+=h+c-x,(x-=c)<w){for(w-=x;_[o++]=u[E++],--x;);if(E=0,c<w){for(w-=x=c;_[o++]=u[E++],--x;);E=o-k,N=_}}}else if(E+=c-x,x<w){for(w-=x;_[o++]=u[E++],--x;);E=o-k,N=_}for(;2<w;)_[o++]=N[E++],_[o++]=N[E++],_[o++]=N[E++],w-=3;w&&(_[o++]=N[E++],1<w&&(_[o++]=N[E++]))}else{for(E=o-k;_[o++]=_[E++],_[o++]=_[E++],_[o++]=_[E++],2<(w-=3););w&&(_[o++]=_[E++],1<w&&(_[o++]=_[E++]))}break}}break}}while(n<r&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<a?a-o+257:257-(o-a),i.hold=f,i.bits=p}},{}],49:[function(t,e,i){"use strict";var n=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),l=1,h=2,d=0,c=-2,u=1,f=852,p=592;function m(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=u,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(f),e.distcode=e.distdyn=new n.Buf32(p),e.sane=1,e.back=-1,d):c}function y(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):c}function b(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?c:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,y(t))):c}function x(t,e){var i,n;return t?(n=new g,(t.state=n).window=null,(i=b(t,e))!==d&&(t.state=null),i):c}var w,k,E=!0;function N(t){if(E){var e;for(w=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(l,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(h,t.lens,0,32,k,0,t.work,{bits:5}),E=!1}t.lencode=w,t.lenbits=9,t.distcode=k,t.distbits=5}function T(t,e,i,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),r>=s.wsize?(n.arraySet(s.window,e,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r<(o=s.wsize-s.wnext)&&(o=r),n.arraySet(s.window,e,i-r,o,s.wnext),(r-=o)?(n.arraySet(s.window,e,i-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}i.inflateReset=y,i.inflateReset2=b,i.inflateResetKeep=v,i.inflateInit=function(t){return x(t,15)},i.inflateInit2=x,i.inflate=function(t,e){var i,f,p,g,v,y,b,x,w,k,E,_,C,S,M,A,z,L,O,F,D,R,I,q,B=0,P=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return c;12===(i=t.state).mode&&(i.mode=13),v=t.next_out,p=t.output,b=t.avail_out,g=t.next_in,f=t.input,y=t.avail_in,x=i.hold,w=i.bits,k=y,E=b,R=d;t:for(;;)switch(i.mode){case u:if(0===i.wrap){i.mode=13;break}for(;w<16;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(2&i.wrap&&35615===x){P[i.check=0]=255&x,P[1]=x>>>8&255,i.check=o(i.check,P,2,0),w=x=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&x)){t.msg="unknown compression method",i.mode=30;break}if(w-=4,D=8+(15&(x>>>=4)),0===i.wbits)i.wbits=D;else if(D>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<D,t.adler=i.check=1,i.mode=512&x?10:12,w=x=0;break;case 2:for(;w<16;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(i.flags=x,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=x>>8&1),512&i.flags&&(P[0]=255&x,P[1]=x>>>8&255,i.check=o(i.check,P,2,0)),w=x=0,i.mode=3;case 3:for(;w<32;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.head&&(i.head.time=x),512&i.flags&&(P[0]=255&x,P[1]=x>>>8&255,P[2]=x>>>16&255,P[3]=x>>>24&255,i.check=o(i.check,P,4,0)),w=x=0,i.mode=4;case 4:for(;w<16;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.head&&(i.head.xflags=255&x,i.head.os=x>>8),512&i.flags&&(P[0]=255&x,P[1]=x>>>8&255,i.check=o(i.check,P,2,0)),w=x=0,i.mode=5;case 5:if(1024&i.flags){for(;w<16;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.length=x,i.head&&(i.head.extra_len=x),512&i.flags&&(P[0]=255&x,P[1]=x>>>8&255,i.check=o(i.check,P,2,0)),w=x=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(y<(_=i.length)&&(_=y),_&&(i.head&&(D=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,f,g,_,D)),512&i.flags&&(i.check=o(i.check,f,_,g)),y-=_,g+=_,i.length-=_),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===y)break t;for(_=0;D=f[g+_++],i.head&&D&&i.length<65536&&(i.head.name+=String.fromCharCode(D)),D&&_<y;);if(512&i.flags&&(i.check=o(i.check,f,_,g)),y-=_,g+=_,D)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===y)break t;for(_=0;D=f[g+_++],i.head&&D&&i.length<65536&&(i.head.comment+=String.fromCharCode(D)),D&&_<y;);if(512&i.flags&&(i.check=o(i.check,f,_,g)),y-=_,g+=_,D)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;w<16;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(x!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}w=x=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;w<32;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}t.adler=i.check=m(x),w=x=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=v,t.avail_out=b,t.next_in=g,t.avail_in=y,i.hold=x,i.bits=w,2;t.adler=i.check=1,i.mode=12;case 12:if(5===e||6===e)break t;case 13:if(i.last){x>>>=7&w,w-=7&w,i.mode=27;break}for(;w<3;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}switch(i.last=1&x,w-=1,3&(x>>>=1)){case 0:i.mode=14;break;case 1:if(N(i),i.mode=20,6!==e)break;x>>>=2,w-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}x>>>=2,w-=2;break;case 14:for(x>>>=7&w,w-=7&w;w<32;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if((65535&x)!=(x>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&x,w=x=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(_=i.length){if(y<_&&(_=y),b<_&&(_=b),0===_)break t;n.arraySet(p,f,g,_,v),y-=_,g+=_,b-=_,v+=_,i.length-=_;break}i.mode=12;break;case 17:for(;w<14;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(i.nlen=257+(31&x),x>>>=5,w-=5,i.ndist=1+(31&x),x>>>=5,w-=5,i.ncode=4+(15&x),x>>>=4,w-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;w<3;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.lens[U[i.have++]]=7&x,x>>>=3,w-=3}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,I={bits:i.lenbits},R=a(0,i.lens,0,19,i.lencode,0,i.work,I),i.lenbits=I.bits,R){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;A=(B=i.lencode[x&(1<<i.lenbits)-1])>>>16&255,z=65535&B,!((M=B>>>24)<=w);){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(z<16)x>>>=M,w-=M,i.lens[i.have++]=z;else{if(16===z){for(q=M+2;w<q;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(x>>>=M,w-=M,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}D=i.lens[i.have-1],_=3+(3&x),x>>>=2,w-=2}else if(17===z){for(q=M+3;w<q;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}w-=M,D=0,_=3+(7&(x>>>=M)),x>>>=3,w-=3}else{for(q=M+7;w<q;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}w-=M,D=0,_=11+(127&(x>>>=M)),x>>>=7,w-=7}if(i.have+_>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;_--;)i.lens[i.have++]=D}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,I={bits:i.lenbits},R=a(l,i.lens,0,i.nlen,i.lencode,0,i.work,I),i.lenbits=I.bits,R){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,I={bits:i.distbits},R=a(h,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,I),i.distbits=I.bits,R){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(6<=y&&258<=b){t.next_out=v,t.avail_out=b,t.next_in=g,t.avail_in=y,i.hold=x,i.bits=w,s(t,E),v=t.next_out,p=t.output,b=t.avail_out,g=t.next_in,f=t.input,y=t.avail_in,x=i.hold,w=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;A=(B=i.lencode[x&(1<<i.lenbits)-1])>>>16&255,z=65535&B,!((M=B>>>24)<=w);){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(A&&!(240&A)){for(L=M,O=A,F=z;A=(B=i.lencode[F+((x&(1<<L+O)-1)>>L)])>>>16&255,z=65535&B,!(L+(M=B>>>24)<=w);){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}x>>>=L,w-=L,i.back+=L}if(x>>>=M,w-=M,i.back+=M,i.length=z,0===A){i.mode=26;break}if(32&A){i.back=-1,i.mode=12;break}if(64&A){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&A,i.mode=22;case 22:if(i.extra){for(q=i.extra;w<q;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.length+=x&(1<<i.extra)-1,x>>>=i.extra,w-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;A=(B=i.distcode[x&(1<<i.distbits)-1])>>>16&255,z=65535&B,!((M=B>>>24)<=w);){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(!(240&A)){for(L=M,O=A,F=z;A=(B=i.distcode[F+((x&(1<<L+O)-1)>>L)])>>>16&255,z=65535&B,!(L+(M=B>>>24)<=w);){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}x>>>=L,w-=L,i.back+=L}if(x>>>=M,w-=M,i.back+=M,64&A){t.msg="invalid distance code",i.mode=30;break}i.offset=z,i.extra=15&A,i.mode=24;case 24:if(i.extra){for(q=i.extra;w<q;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}i.offset+=x&(1<<i.extra)-1,x>>>=i.extra,w-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===b)break t;if(_=E-b,i.offset>_){if((_=i.offset-_)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}C=_>i.wnext?(_-=i.wnext,i.wsize-_):i.wnext-_,_>i.length&&(_=i.length),S=i.window}else S=p,C=v-i.offset,_=i.length;for(b<_&&(_=b),b-=_,i.length-=_;p[v++]=S[C++],--_;);0===i.length&&(i.mode=21);break;case 26:if(0===b)break t;p[v++]=i.length,b--,i.mode=21;break;case 27:if(i.wrap){for(;w<32;){if(0===y)break t;y--,x|=f[g++]<<w,w+=8}if(E-=b,t.total_out+=E,i.total+=E,E&&(t.adler=i.check=i.flags?o(i.check,p,E,v-E):r(i.check,p,E,v-E)),E=b,(i.flags?x:m(x))!==i.check){t.msg="incorrect data check",i.mode=30;break}w=x=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;w<32;){if(0===y)break t;y--,x+=f[g++]<<w,w+=8}if(x!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}w=x=0}i.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return c}return t.next_out=v,t.avail_out=b,t.next_in=g,t.avail_in=y,i.hold=x,i.bits=w,(i.wsize||E!==t.avail_out&&i.mode<30&&(i.mode<27||4!==e))&&T(t,t.output,t.next_out,E-t.avail_out)?(i.mode=31,-4):(k-=t.avail_in,E-=t.avail_out,t.total_in+=k,t.total_out+=E,i.total+=E,i.wrap&&E&&(t.adler=i.check=i.flags?o(i.check,p,E,t.next_out-E):r(i.check,p,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==k&&0===E||4===e)&&R===d&&(R=-5),R)},i.inflateEnd=function(t){if(!t||!t.state)return c;var e=t.state;return e.window&&(e.window=null),t.state=null,d},i.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?((i.head=e).done=!1,d):c},i.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?c:11===i.mode&&r(1,e,n,0)!==i.check?-3:T(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,d):c},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,i){"use strict";var n=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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],a=[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(t,e,i,l,h,d,c,u){var f,p,m,g,v,y,b,x,w,k=u.bits,E=0,N=0,T=0,_=0,C=0,S=0,M=0,A=0,z=0,L=0,O=null,F=0,D=new n.Buf16(16),R=new n.Buf16(16),I=null,q=0;for(E=0;E<=15;E++)D[E]=0;for(N=0;N<l;N++)D[e[i+N]]++;for(C=k,_=15;1<=_&&0===D[_];_--);if(_<C&&(C=_),0===_)return h[d++]=20971520,h[d++]=20971520,u.bits=1,0;for(T=1;T<_&&0===D[T];T++);for(C<T&&(C=T),E=A=1;E<=15;E++)if(A<<=1,(A-=D[E])<0)return-1;if(0<A&&(0===t||1!==_))return-1;for(R[1]=0,E=1;E<15;E++)R[E+1]=R[E]+D[E];for(N=0;N<l;N++)0!==e[i+N]&&(c[R[e[i+N]]++]=N);if(y=0===t?(O=I=c,19):1===t?(O=r,F-=257,I=o,q-=257,256):(O=s,I=a,-1),E=T,v=d,M=N=L=0,m=-1,g=(z=1<<(S=C))-1,1===t&&852<z||2===t&&592<z)return 1;for(;;){for(b=E-M,w=c[N]<y?(x=0,c[N]):c[N]>y?(x=I[q+c[N]],O[F+c[N]]):(x=96,0),f=1<<E-M,T=p=1<<S;h[v+(L>>M)+(p-=f)]=b<<24|x<<16|w,0!==p;);for(f=1<<E-1;L&f;)f>>=1;if(0!==f?(L&=f-1,L+=f):L=0,N++,0==--D[E]){if(E===_)break;E=e[i+c[N]]}if(C<E&&(L&g)!==m){for(0===M&&(M=C),v+=T,A=1<<(S=E-M);S+M<_&&!((A-=D[S+M])<=0);)S++,A<<=1;if(z+=1<<S,1===t&&852<z||2===t&&592<z)return 1;h[m=L&g]=C<<24|S<<16|v-d}}return 0!==L&&(h[v+L]=E-M<<24|64<<16),u.bits=C,0}},{"../utils/common":41}],51:[function(t,e,i){"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"}},{}],52:[function(t,e,i){"use strict";var n=t("../utils/common"),r=0,o=1;function s(t){for(var e=t.length;0<=--e;)t[e]=0}var a=0,l=29,h=256,d=h+1+l,c=30,u=19,f=2*d+1,p=15,m=16,g=7,v=256,y=16,b=17,x=18,w=[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],k=[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],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(d+2));s(T);var _=new Array(2*c);s(_);var C=new Array(512);s(C);var S=new Array(256);s(S);var M=new Array(l);s(M);var A,z,L,O=new Array(c);function F(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function D(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?C[t]:C[256+(t>>>7)]}function I(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function q(t,e,i){t.bi_valid>m-i?(t.bi_buf|=e<<t.bi_valid&65535,I(t,t.bi_buf),t.bi_buf=e>>m-t.bi_valid,t.bi_valid+=i-m):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function B(t,e,i){q(t,i[2*e],i[2*e+1])}function P(t,e){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--e;);return i>>>1}function U(t,e,i){var n,r,o=new Array(p+1),s=0;for(n=1;n<=p;n++)o[n]=s=s+i[n-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=P(o[a]++,a))}}function j(t){var e;for(e=0;e<d;e++)t.dyn_ltree[2*e]=0;for(e=0;e<c;e++)t.dyn_dtree[2*e]=0;for(e=0;e<u;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){8<t.bi_valid?I(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function W(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function V(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&W(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!W(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function K(t,e,i){var n,r,o,s,a=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*a]<<8|t.pending_buf[t.d_buf+2*a+1],r=t.pending_buf[t.l_buf+a],a++,0===n?B(t,r,e):(B(t,(o=S[r])+h+1,e),0!==(s=w[o])&&q(t,r-=M[o],s),B(t,o=R(--n),i),0!==(s=k[o])&&q(t,n-=O[o],s)),a<t.last_lit;);B(t,v,e)}function G(t,e){var i,n,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=f,i=0;i<l;i++)0!==o[2*i]?(t.heap[++t.heap_len]=h=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=h,i=t.heap_len>>1;1<=i;i--)V(t,o,i);for(r=l;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],V(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,V(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,s,a,l=e.dyn_tree,h=e.max_code,d=e.stat_desc.static_tree,c=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,g=e.stat_desc.max_length,v=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<f;i++)g<(o=l[2*l[2*(n=t.heap[i])+1]+1]+1)&&(o=g,v++),l[2*n+1]=o,h<n||(t.bl_count[o]++,s=0,m<=n&&(s=u[n-m]),a=l[2*n],t.opt_len+=a*(o+s),c&&(t.static_len+=a*(d[2*n+1]+s)));if(0!==v){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,v-=2}while(0<v);for(o=g;0!==o;o--)for(n=t.bl_count[o];0!==n;)h<(r=t.heap[--i])||(l[2*r+1]!==o&&(t.opt_len+=(o-l[2*r+1])*l[2*r],l[2*r+1]=o),n--)}}(t,e),U(o,h,t.bl_count)}function X(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=s,s=e[2*(n+1)+1],++a<l&&r===s||(a<h?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*y]++):a<=10?t.bl_tree[2*b]++:t.bl_tree[2*x]++,o=r,h=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4))}function Y(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=i;n++)if(r=s,s=e[2*(n+1)+1],!(++a<l&&r===s)){if(a<h)for(;B(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==o&&(B(t,r,t.bl_tree),a--),B(t,y,t.bl_tree),q(t,a-3,2)):a<=10?(B(t,b,t.bl_tree),q(t,a-3,3)):(B(t,x,t.bl_tree),q(t,a-11,7));o=r,h=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4)}}s(O);var Z=!1;function Q(t,e,i,r){q(t,(a<<1)+(r?1:0),3),function(t,e,i,r){H(t),r&&(I(t,i),I(t,~i)),n.arraySet(t.pending_buf,t.window,e,i,t.pending),t.pending+=i}(t,e,i,!0)}i._tr_init=function(t){Z||(function(){var t,e,i,n,r,o=new Array(p+1);for(n=i=0;n<l-1;n++)for(M[n]=i,t=0;t<1<<w[n];t++)S[i++]=n;for(S[i-1]=n,n=r=0;n<16;n++)for(O[n]=r,t=0;t<1<<k[n];t++)C[r++]=n;for(r>>=7;n<c;n++)for(O[n]=r<<7,t=0;t<1<<k[n]-7;t++)C[256+r++]=n;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)T[2*t+1]=8,t++,o[8]++;for(;t<=255;)T[2*t+1]=9,t++,o[9]++;for(;t<=279;)T[2*t+1]=7,t++,o[7]++;for(;t<=287;)T[2*t+1]=8,t++,o[8]++;for(U(T,d+1,o),t=0;t<c;t++)_[2*t+1]=5,_[2*t]=P(t,5);A=new F(T,w,h+1,d,p),z=new F(_,k,0,c,p),L=new F(new Array(0),E,0,u,g)}(),Z=!0),t.l_desc=new D(t.dyn_ltree,A),t.d_desc=new D(t.dyn_dtree,z),t.bl_desc=new D(t.bl_tree,L),t.bi_buf=0,t.bi_valid=0,j(t)},i._tr_stored_block=Q,i._tr_flush_block=function(t,e,i,n){var s,a,l=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<h;e++)if(0!==t.dyn_ltree[2*e])return o;return r}(t)),G(t,t.l_desc),G(t,t.d_desc),l=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),G(t,t.bl_desc),e=u-1;3<=e&&0===t.bl_tree[2*N[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),s=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=s&&(s=a)):s=a=i+5,i+4<=s&&-1!==e?Q(t,e,i,n):4===t.strategy||a===s?(q(t,2+(n?1:0),3),K(t,T,_)):(q(t,4+(n?1:0),3),function(t,e,i,n){var r;for(q(t,e-257,5),q(t,i-1,5),q(t,n-4,4),r=0;r<n;r++)q(t,t.bl_tree[2*N[r]+1],3);Y(t,t.dyn_ltree,e-1),Y(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),K(t,t.dyn_ltree,t.dyn_dtree)),j(t),n&&H(t)},i._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(S[i]+h+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){q(t,2,3),B(t,v,T),function(t){16===t.bi_valid?(I(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,i){"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}},{}],54:[function(t,e,n){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var i,n,r,o,s=1,a={},l=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick(function(){u(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){u(t.data)},function(t){r.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){u(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(u,0,t)},d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return a[s]=r,i(s),s++},d.clearImmediate=c}function c(t){delete a[t]}function u(t){if(l)setTimeout(u,0,t);else{var i=a[t];if(i){l=!0;try{!function(t){var i=t.callback,n=t.args;switch(n.length){case 0:i();break;case 1:i(n[0]);break;case 2:i(n[0],n[1]);break;case 3:i(n[0],n[1],n[2]);break;default:i.apply(e,n)}}(i)}finally{c(t),l=!1}}}}function f(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&u(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},67193(t,e,i){t=i.nmd(t);var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",s="[object Boolean]",a="[object Date]",l="[object Function]",h="[object GeneratorFunction]",d="[object Map]",c="[object Number]",u="[object Object]",f="[object Promise]",p="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",k="[object Float64Array]",E="[object Int8Array]",N="[object Int16Array]",T="[object Int32Array]",_="[object Uint8Array]",C="[object Uint8ClampedArray]",S="[object Uint16Array]",M="[object Uint32Array]",A=/\w*$/,z=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,O={};O[o]=O["[object Array]"]=O[b]=O[x]=O[s]=O[a]=O[w]=O[k]=O[E]=O[N]=O[T]=O[d]=O[c]=O[u]=O[p]=O[m]=O[g]=O[v]=O[_]=O[C]=O[S]=O[M]=!0,O["[object Error]"]=O[l]=O[y]=!1;var F="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,D="object"==typeof self&&self&&self.Object===Object&&self,R=F||D||Function("return this")(),I=e&&!e.nodeType&&e,q=I&&t&&!t.nodeType&&t,B=q&&q.exports===I;function P(t,e){return t.set(e[0],e[1]),t}function U(t,e){return t.add(e),t}function j(t,e,i,n){var r=-1,o=t?t.length:0;for(n&&o&&(i=t[++r]);++r<o;)i=e(i,t[r],r,t);return i}function H(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function W(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}function V(t,e){return function(i){return t(e(i))}}function K(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}var G,X=Array.prototype,Y=Function.prototype,Z=Object.prototype,Q=R["__core-js_shared__"],J=(G=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",$=Y.toString,tt=Z.hasOwnProperty,et=Z.toString,it=RegExp("^"+$.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=B?R.Buffer:void 0,rt=R.Symbol,ot=R.Uint8Array,st=V(Object.getPrototypeOf,Object),at=Object.create,lt=Z.propertyIsEnumerable,ht=X.splice,dt=Object.getOwnPropertySymbols,ct=nt?nt.isBuffer:void 0,ut=V(Object.keys,Object),ft=qt(R,"DataView"),pt=qt(R,"Map"),mt=qt(R,"Promise"),gt=qt(R,"Set"),vt=qt(R,"WeakMap"),yt=qt(Object,"create"),bt=Ht(ft),xt=Ht(pt),wt=Ht(mt),kt=Ht(gt),Et=Ht(vt),Nt=rt?rt.prototype:void 0,Tt=Nt?Nt.valueOf:void 0;function _t(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Ct(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Mt(t){this.__data__=new Ct(t)}function At(t,e){var i=Vt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Kt(t)}(t)&&tt.call(t,"callee")&&(!lt.call(t,"callee")||et.call(t)==o)}(t)?function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(t.length,String):[],n=i.length,r=!!n;for(var s in t)!e&&!tt.call(t,s)||r&&("length"==s||Ut(s,n))||i.push(s);return i}function zt(t,e,i){var n=t[e];tt.call(t,e)&&Wt(n,i)&&(void 0!==i||e in t)||(t[e]=i)}function Lt(t,e){for(var i=t.length;i--;)if(Wt(t[i][0],e))return i;return-1}function Ot(t,e,i,n,r,f,y){var z;if(n&&(z=f?n(t,r,f,y):n(t)),void 0!==z)return z;if(!Yt(t))return t;var L=Vt(t);if(L){if(z=function(t){var e=t.length,i=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(i.index=t.index,i.input=t.input);return i}(t),!e)return function(t,e){var i=-1,n=t.length;e||(e=Array(n));for(;++i<n;)e[i]=t[i];return e}(t,z)}else{var F=Pt(t),D=F==l||F==h;if(Gt(t))return function(t,e){if(e)return t.slice();var i=new t.constructor(t.length);return t.copy(i),i}(t,e);if(F==u||F==o||D&&!f){if(H(t))return f?t:{};if(z=function(t){return"function"!=typeof t.constructor||jt(t)?{}:(e=st(t),Yt(e)?at(e):{});var e}(D?{}:t),!e)return function(t,e){return Rt(t,Bt(t),e)}(t,function(t,e){return t&&Rt(e,Zt(e),t)}(z,t))}else{if(!O[F])return f?t:{};z=function(t,e,i,n){var r=t.constructor;switch(e){case b:return Dt(t);case s:case a:return new r(+t);case x:return function(t,e){var i=e?Dt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,n);case w:case k:case E:case N:case T:case _:case C:case S:case M:return function(t,e){var i=e?Dt(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}(t,n);case d:return function(t,e,i){var n=e?i(W(t),!0):W(t);return j(n,P,new t.constructor)}(t,n,i);case c:case g:return new r(t);case p:return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case m:return function(t,e,i){var n=e?i(K(t),!0):K(t);return j(n,U,new t.constructor)}(t,n,i);case v:return o=t,Tt?Object(Tt.call(o)):{}}var o}(t,F,Ot,e)}}y||(y=new Mt);var R=y.get(t);if(R)return R;if(y.set(t,z),!L)var I=i?function(t){return function(t,e,i){var n=e(t);return Vt(t)?n:function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t}(n,i(t))}(t,Zt,Bt)}(t):Zt(t);return function(t,e){for(var i=-1,n=t?t.length:0;++i<n&&!1!==e(t[i],i,t););}(I||t,function(r,o){I&&(r=t[o=r]),zt(z,o,Ot(r,e,i,n,o,t,y))}),z}function Ft(t){return!(!Yt(t)||(e=t,J&&J in e))&&(Xt(t)||H(t)?it:z).test(Ht(t));var e}function Dt(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Rt(t,e,i,n){i||(i={});for(var r=-1,o=e.length;++r<o;){var s=e[r],a=n?n(i[s],t[s],s,i,t):void 0;zt(i,s,void 0===a?t[s]:a)}return i}function It(t,e){var i,n,r=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof e?"string":"hash"]:r.map}function qt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Ft(i)?i:void 0}_t.prototype.clear=function(){this.__data__=yt?yt(null):{}},_t.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},_t.prototype.get=function(t){var e=this.__data__;if(yt){var i=e[t];return i===n?void 0:i}return tt.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:tt.call(e,t)},_t.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},Ct.prototype.clear=function(){this.__data__=[]},Ct.prototype.delete=function(t){var e=this.__data__,i=Lt(e,t);return!(i<0)&&(i==e.length-1?e.pop():ht.call(e,i,1),!0)},Ct.prototype.get=function(t){var e=this.__data__,i=Lt(e,t);return i<0?void 0:e[i][1]},Ct.prototype.has=function(t){return Lt(this.__data__,t)>-1},Ct.prototype.set=function(t,e){var i=this.__data__,n=Lt(i,t);return n<0?i.push([t,e]):i[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new _t,map:new(pt||Ct),string:new _t}},St.prototype.delete=function(t){return It(this,t).delete(t)},St.prototype.get=function(t){return It(this,t).get(t)},St.prototype.has=function(t){return It(this,t).has(t)},St.prototype.set=function(t,e){return It(this,t).set(t,e),this},Mt.prototype.clear=function(){this.__data__=new Ct},Mt.prototype.delete=function(t){return this.__data__.delete(t)},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Ct){var n=i.__data__;if(!pt||n.length<199)return n.push([t,e]),this;i=this.__data__=new St(n)}return i.set(t,e),this};var Bt=dt?V(dt,Object):function(){return[]},Pt=function(t){return et.call(t)};function Ut(t,e){return!!(e=e??r)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function jt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Ht(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Wt(t,e){return t===e||t!=t&&e!=e}(ft&&Pt(new ft(new ArrayBuffer(1)))!=x||pt&&Pt(new pt)!=d||mt&&Pt(mt.resolve())!=f||gt&&Pt(new gt)!=m||vt&&Pt(new vt)!=y)&&(Pt=function(t){var e=et.call(t),i=e==u?t.constructor:void 0,n=i?Ht(i):void 0;if(n)switch(n){case bt:return x;case xt:return d;case wt:return f;case kt:return m;case Et:return y}return e});var Vt=Array.isArray;function Kt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Xt(t)}var Gt=ct||function(){return!1};function Xt(t){var e=Yt(t)?et.call(t):"";return e==l||e==h}function Yt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Zt(t){return Kt(t)?At(t):function(t){if(!jt(t))return ut(t);var e=[];for(var i in Object(t))tt.call(t,i)&&"constructor"!=i&&e.push(i);return e}(t)}t.exports=function(t){return Ot(t,!0,!0)}},8142(t,e,i){t=i.nmd(t);var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",h="[object Error]",d="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",k=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[o]=N[s]=N[x]=N[a]=N[w]=N[l]=N[h]=N[d]=N[c]=N[u]=N[f]=N[m]=N[g]=N[v]=N[b]=!1;var T="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,_="object"==typeof self&&self&&self.Object===Object&&self,C=T||_||Function("return this")(),S=e&&!e.nodeType&&e,M=S&&t&&!t.nodeType&&t,A=M&&M.exports===S,z=A&&T.process,L=function(){try{return z&&z.binding&&z.binding("util")}catch(t){}}(),O=L&&L.isTypedArray;function F(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}function D(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}function R(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}var I,q,B,P=Array.prototype,U=Function.prototype,j=Object.prototype,H=C["__core-js_shared__"],W=U.toString,V=j.hasOwnProperty,K=(I=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",G=j.toString,X=RegExp("^"+W.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=A?C.Buffer:void 0,Z=C.Symbol,Q=C.Uint8Array,J=j.propertyIsEnumerable,$=P.splice,tt=Z?Z.toStringTag:void 0,et=Object.getOwnPropertySymbols,it=Y?Y.isBuffer:void 0,nt=(q=Object.keys,B=Object,function(t){return q(B(t))}),rt=Lt(C,"DataView"),ot=Lt(C,"Map"),st=Lt(C,"Promise"),at=Lt(C,"Set"),lt=Lt(C,"WeakMap"),ht=Lt(Object,"create"),dt=Rt(rt),ct=Rt(ot),ut=Rt(st),ft=Rt(at),pt=Rt(lt),mt=Z?Z.prototype:void 0,gt=mt?mt.valueOf:void 0;function vt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function yt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function bt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new bt;++e<i;)this.add(t[e])}function wt(t){var e=this.__data__=new yt(t);this.size=e.size}function kt(t,e){var i=Bt(t),n=!i&&qt(t),r=!i&&!n&&Pt(t),o=!i&&!n&&!r&&Vt(t),s=i||n||r||o,a=s?function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(t.length,String):[],l=a.length;for(var h in t)!e&&!V.call(t,h)||s&&("length"==h||r&&("offset"==h||"parent"==h)||o&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||Dt(h,l))||a.push(h);return a}function Et(t,e){for(var i=t.length;i--;)if(It(t[i][0],e))return i;return-1}function Nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":tt&&tt in Object(t)?function(t){var e=V.call(t,tt),i=t[tt];try{t[tt]=void 0;var n=!0}catch(t){}var r=G.call(t);n&&(e?t[tt]=i:delete t[tt]);return r}(t):function(t){return G.call(t)}(t)}function Tt(t){return Wt(t)&&Nt(t)==o}function _t(t,e,i,n,r){return t===e||(null==t||null==e||!Wt(t)&&!Wt(e)?t!=t&&e!=e:function(t,e,i,n,r,d){var p=Bt(t),b=Bt(e),k=p?s:Ft(t),E=b?s:Ft(e),N=(k=k==o?f:k)==f,T=(E=E==o?f:E)==f,_=k==E;if(_&&Pt(t)){if(!Pt(e))return!1;p=!0,N=!1}if(_&&!N)return d||(d=new wt),p||Vt(t)?Mt(t,e,i,n,r,d):function(t,e,i,n,r,o,s){switch(i){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!o(new Q(t),new Q(e)));case a:case l:case u:return It(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case v:return t==e+"";case c:var d=D;case g:var f=1&n;if(d||(d=R),t.size!=e.size&&!f)return!1;var p=s.get(t);if(p)return p==e;n|=2,s.set(t,e);var b=Mt(d(t),d(e),n,r,o,s);return s.delete(t),b;case y:if(gt)return gt.call(t)==gt.call(e)}return!1}(t,e,k,i,n,r,d);if(!(1&i)){var C=N&&V.call(t,"__wrapped__"),S=T&&V.call(e,"__wrapped__");if(C||S){var M=C?t.value():t,A=S?e.value():e;return d||(d=new wt),r(M,A,i,n,d)}}if(!_)return!1;return d||(d=new wt),function(t,e,i,n,r,o){var s=1&i,a=At(t),l=a.length,h=At(e),d=h.length;if(l!=d&&!s)return!1;var c=l;for(;c--;){var u=a[c];if(!(s?u in e:V.call(e,u)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var p=!0;o.set(t,e),o.set(e,t);var m=s;for(;++c<l;){var g=t[u=a[c]],v=e[u];if(n)var y=s?n(v,g,u,e,t,o):n(g,v,u,t,e,o);if(!(void 0===y?g===v||r(g,v,i,n,o):y)){p=!1;break}m||(m="constructor"==u)}if(p&&!m){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,i,n,r,d)}(t,e,i,n,_t,r))}function Ct(t){return!(!Ht(t)||function(t){return!!K&&K in t}(t))&&(Ut(t)?X:k).test(Rt(t))}function St(t){if(i=(e=t)&&e.constructor,n="function"==typeof i&&i.prototype||j,e!==n)return nt(t);var e,i,n,r=[];for(var o in Object(t))V.call(t,o)&&"constructor"!=o&&r.push(o);return r}function Mt(t,e,i,n,r,o){var s=1&i,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var h=o.get(t);if(h&&o.get(e))return h==e;var d=-1,c=!0,u=2&i?new xt:void 0;for(o.set(t,e),o.set(e,t);++d<a;){var f=t[d],p=e[d];if(n)var m=s?n(p,f,d,e,t,o):n(f,p,d,t,e,o);if(void 0!==m){if(m)continue;c=!1;break}if(u){if(!F(e,function(t,e){if(s=e,!u.has(s)&&(f===t||r(f,t,i,n,o)))return u.push(e);var s})){c=!1;break}}else if(f!==p&&!r(f,p,i,n,o)){c=!1;break}}return o.delete(t),o.delete(e),c}function At(t){return function(t,e,i){var n=e(t);return Bt(t)?n:function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t}(n,i(t))}(t,Kt,Ot)}function zt(t,e){var i,n,r=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof e?"string":"hash"]:r.map}function Lt(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Ct(i)?i:void 0}vt.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},vt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},vt.prototype.get=function(t){var e=this.__data__;if(ht){var i=e[t];return i===n?void 0:i}return V.call(e,t)?e[t]:void 0},vt.prototype.has=function(t){var e=this.__data__;return ht?void 0!==e[t]:V.call(e,t)},vt.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=ht&&void 0===e?n:e,this},yt.prototype.clear=function(){this.__data__=[],this.size=0},yt.prototype.delete=function(t){var e=this.__data__,i=Et(e,t);return!(i<0)&&(i==e.length-1?e.pop():$.call(e,i,1),--this.size,!0)},yt.prototype.get=function(t){var e=this.__data__,i=Et(e,t);return i<0?void 0:e[i][1]},yt.prototype.has=function(t){return Et(this.__data__,t)>-1},yt.prototype.set=function(t,e){var i=this.__data__,n=Et(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new vt,map:new(ot||yt),string:new vt}},bt.prototype.delete=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return zt(this,t).get(t)},bt.prototype.has=function(t){return zt(this,t).has(t)},bt.prototype.set=function(t,e){var i=zt(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},xt.prototype.add=xt.prototype.push=function(t){return this.__data__.set(t,n),this},xt.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.clear=function(){this.__data__=new yt,this.size=0},wt.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},wt.prototype.get=function(t){return this.__data__.get(t)},wt.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.set=function(t,e){var i=this.__data__;if(i instanceof yt){var n=i.__data__;if(!ot||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new bt(n)}return i.set(t,e),this.size=i.size,this};var Ot=et?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var i=-1,n=null==t?0:t.length,r=0,o=[];++i<n;){var s=t[i];e(s,i,t)&&(o[r++]=s)}return o}(et(t),function(e){return J.call(t,e)}))}:function(){return[]},Ft=Nt;function Dt(t,e){return!!(e=e??r)&&("number"==typeof t||E.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function It(t,e){return t===e||t!=t&&e!=e}(rt&&Ft(new rt(new ArrayBuffer(1)))!=w||ot&&Ft(new ot)!=c||st&&Ft(st.resolve())!=p||at&&Ft(new at)!=g||lt&&Ft(new lt)!=b)&&(Ft=function(t){var e=Nt(t),i=e==f?t.constructor:void 0,n=i?Rt(i):"";if(n)switch(n){case dt:return w;case ct:return c;case ut:return p;case ft:return g;case pt:return b}return e});var qt=Tt(function(){return arguments}())?Tt:function(t){return Wt(t)&&V.call(t,"callee")&&!J.call(t,"callee")},Bt=Array.isArray;var Pt=it||function(){return!1};function Ut(t){if(!Ht(t))return!1;var e=Nt(t);return e==d||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function jt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function Ht(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Wt(t){return null!=t&&"object"==typeof t}var Vt=O?function(t){return function(e){return t(e)}}(O):function(t){return Wt(t)&&jt(t.length)&&!!N[Nt(t)]};function Kt(t){return null!=(e=t)&&jt(e.length)&&!Ut(e)?kt(t):St(t);var e}t.exports=function(t,e){return _t(t,e)}},59534(t,e,i){"use strict";var n={};(0,i(97751).assign)(n,i(49329),i(13193),i(92087)),t.exports=n},49329(t,e,i){"use strict";var n=i(10173),r=i(97751),o=i(74822),s=i(59764),a=i(24748),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(s[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=n.deflateSetDictionary(this.strm,d)))throw new Error(s[i]);this._dict_set=!0}}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,a=this.strm,h=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(h),a.next_out=0,a.avail_out=h),1!==(i=n.deflate(a,s))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==i);return 4===s?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==s||(this.onEnd(0),a.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},13193(t,e,i){"use strict";var n=i(3981),r=i(97751),o=i(74822),s=i(92087),a=i(59764),l=i(24748),h=i(21668),d=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==s.Z_OK)throw new Error(a[i]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===d.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[i])}function u(t,e){var i=new c(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}c.prototype.push=function(t,e){var i,a,l,h,c,u=this.strm,f=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?u.input=o.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new r.Buf8(f),u.next_out=0,u.avail_out=f),(i=n.inflate(u,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===s.Z_BUF_ERROR&&!0===m&&(i=s.Z_OK,m=!1),i!==s.Z_STREAM_END&&i!==s.Z_OK)return this.onEnd(i),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&i!==s.Z_STREAM_END&&(0!==u.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(u.output,u.next_out),h=u.next_out-l,c=o.buf2string(u.output,l),u.next_out=h,u.avail_out=f-h,h&&r.arraySet(u.output,u.output,l,h,0),this.onData(c)):this.onData(r.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(m=!0)}while((u.avail_in>0||0===u.avail_out)&&i!==s.Z_STREAM_END);return i===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),u.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=c,e.inflate=u,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.ungzip=u},97751(t,e){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(t[r]=i[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,s;for(n=0,e=0,i=t.length;e<i;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,i=t.length;e<i;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(i)},74822(t,e,i){"use strict";var n=i(97751),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",s=0;s<e;s++)i+=String.fromCharCode(t[s]);return i}s[254]=s[254]=1,e.string2buf=function(t){var e,i,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),s=0,o=0;s<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[s++]=i:i<2048?(e[s++]=192|i>>>6,e[s++]=128|63&i):i<65536?(e[s++]=224|i>>>12,e[s++]=128|i>>>6&63,e[s++]=128|63&i):(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63,e[s++]=128|i>>>6&63,e[s++]=128|63&i);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},e.buf2string=function(t,e){var i,n,r,o,a=e||t.length,h=new Array(2*a);for(n=0,i=0;i<a;)if((r=t[i++])<128)h[n++]=r;else if((o=s[r])>4)h[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&i<a;)r=r<<6|63&t[i++],o--;o>1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},e.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}},39919(t){"use strict";t.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,s=0;0!==i;){i-=s=i>2e3?2e3:i;do{o=o+(r=r+e[n++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16}},92087(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},15161(t){"use strict";var e=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();t.exports=function(t,i,n,r){var o=e,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^i[a])];return-1^t}},10173(t,e,i){"use strict";var n,r=i(97751),o=i(89007),s=i(39919),a=i(15161),l=i(59764),h=-2,d=258,c=262,u=103,f=113,p=666;function m(t,e){return t.msg=l[e],e}function g(t){return(t<<1)-(t>4?9:0)}function v(t){for(var e=t.length;--e>=0;)t[e]=0}function y(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function b(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function x(t,e){t.pending_buf[t.pending++]=e}function w(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function k(t,e,i,n){var o=t.avail_in;return o>n&&(o=n),0===o?0:(t.avail_in-=o,r.arraySet(e,t.input,t.next_in,o,i),1===t.state.wrap?t.adler=s(t.adler,e,o,i):2===t.state.wrap&&(t.adler=a(t.adler,e,o,i)),t.next_in+=o,t.total_in+=o,o)}function E(t,e){var i,n,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,h=t.window,u=t.w_mask,f=t.prev,p=t.strstart+d,m=h[o+s-1],g=h[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(h[(i=e)+s]===g&&h[i+s-1]===m&&h[i]===h[o]&&h[++i]===h[o+1]){o+=2,i++;do{}while(h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&h[++o]===h[++i]&&o<p);if(n=d-(p-o),o=p-d,n>s){if(t.match_start=e,s=n,n>=a)break;m=h[o+s-1],g=h[o+s]}}}while((e=f[e&u])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function N(t){var e,i,n,o,s,a=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-c)){r.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=i=t.hash_size;do{n=t.head[--e],t.head[e]=n>=a?n-a:0}while(--i);e=i=a;do{n=t.prev[--e],t.prev[e]=n>=a?n-a:0}while(--i);o+=a}if(0===t.strm.avail_in)break;if(i=k(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=i,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function T(t,e){for(var i,n;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var i,n,r;;){if(t.lookahead<c){if(N(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-c&&(t.match_length=E(t,i),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&b(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function C(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function S(){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 r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),v(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 M(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:f,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):m(t,h)}function A(t){var e,i=M(t);return 0===i&&((e=t.state).window_size=2*e.w_size,v(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i}function z(t,e,i,n,o,s){if(!t)return h;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==i||n<8||n>15||e<0||e>9||s<0||s>4)return m(t,h);8===n&&(n=9);var l=new S;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=i,A(t)}n=[new C(0,0,0,0,function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)}),new C(4,4,8,4,T),new C(4,5,16,8,T),new C(4,6,32,32,T),new C(4,4,16,16,_),new C(8,16,32,32,_),new C(8,16,128,128,_),new C(8,32,128,256,_),new C(32,128,258,1024,_),new C(32,258,258,4096,_)],e.deflateInit=function(t,e){return z(t,e,8,15,8,0)},e.deflateInit2=z,e.deflateReset=A,e.deflateResetKeep=M,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var i,r,s,l;if(!t||!t.state||e>5||e<0)return t?m(t,h):h;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===p&&4!==e)return m(t,0===t.avail_out?-5:h);if(r.strm=t,i=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,x(r,31),x(r,139),x(r,8),r.gzhead?(x(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),x(r,255&r.gzhead.time),x(r,r.gzhead.time>>8&255),x(r,r.gzhead.time>>16&255),x(r,r.gzhead.time>>24&255),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(x(r,255&r.gzhead.extra.length),x(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(x(r,0),x(r,0),x(r,0),x(r,0),x(r,0),x(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),x(r,3),r.status=f);else{var c=8+(r.w_bits-8<<4)<<8;c|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(c|=32),c+=31-c%31,r.status=f,w(r,c),0!==r.strstart&&(w(r,t.adler>>>16),w(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending!==r.pending_buf_size));)x(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),y(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,x(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=u)}else r.status=u;if(r.status===u&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&y(t),r.pending+2<=r.pending_buf_size&&(x(r,255&t.adler),x(r,t.adler>>8&255),t.adler=0,r.status=f)):r.status=f),0!==r.pending){if(y(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(i)&&4!==e)return m(t,-5);if(r.status===p&&0!==t.avail_in)return m(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==p){var k=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var i,n,r,s,a=t.window;;){if(t.lookahead<=d){if(N(t),t.lookahead<=d&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[r=t.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){s=t.strstart+d;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<s);t.match_length=d-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==k&&4!==k||(r.status=p),1===k||3===k)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===k&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(v(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),y(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(x(r,255&t.adler),x(r,t.adler>>8&255),x(r,t.adler>>16&255),x(r,t.adler>>24&255),x(r,255&t.total_in),x(r,t.total_in>>8&255),x(r,t.total_in>>16&255),x(r,t.total_in>>24&255)):(w(r,t.adler>>>16),w(r,65535&t.adler)),y(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==f&&e!==p?m(t,h):(t.state=null,e===f?m(t,-3):0):h},e.deflateSetDictionary=function(t,e){var i,n,o,a,l,d,c,u,f=e.length;if(!t||!t.state)return h;if(2===(a=(i=t.state).wrap)||1===a&&42!==i.status||i.lookahead)return h;for(1===a&&(t.adler=s(t.adler,e,f,0)),i.wrap=0,f>=i.w_size&&(0===a&&(v(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new r.Buf8(i.w_size),r.arraySet(u,e,f-i.w_size,i.w_size,0),e=u,f=i.w_size),l=t.avail_in,d=t.next_in,c=t.input,t.avail_in=f,t.next_in=0,t.input=e,N(i);i.lookahead>=3;){n=i.strstart,o=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--o);i.strstart=n,i.lookahead=2,N(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=d,t.input=c,t.avail_in=l,i.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},21668(t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},36955(t){"use strict";t.exports=function(t,e){var i,n,r,o,s,a,l,h,d,c,u,f,p,m,g,v,y,b,x,w,k,E,N,T,_;i=t.state,n=t.next_in,T=t.input,r=n+(t.avail_in-5),o=t.next_out,_=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=i.dmax,h=i.wsize,d=i.whave,c=i.wnext,u=i.window,f=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=m[f&v];e:for(;;){if(f>>>=x=b>>>24,p-=x,0===(x=b>>>16&255))_[o++]=65535&b;else{if(!(16&x)){if(64&x){if(32&x){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}b=m[(65535&b)+(f&(1<<x)-1)];continue e}for(w=65535&b,(x&=15)&&(p<x&&(f+=T[n++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=T[n++]<<p,p+=8,f+=T[n++]<<p,p+=8),b=g[f&y];;){if(f>>>=x=b>>>24,p-=x,16&(x=b>>>16&255)){if(k=65535&b,p<(x&=15)&&(f+=T[n++]<<p,(p+=8)<x&&(f+=T[n++]<<p,p+=8)),(k+=f&(1<<x)-1)>l){t.msg="invalid distance too far back",i.mode=30;break t}if(f>>>=x,p-=x,k>(x=o-s)){if((x=k-x)>d&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(E=0,N=u,0===c){if(E+=h-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}else if(c<x){if(E+=h+c-x,(x-=c)<w){w-=x;do{_[o++]=u[E++]}while(--x);if(E=0,c<w){w-=x=c;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}}}else if(E+=c-x,x<w){w-=x;do{_[o++]=u[E++]}while(--x);E=o-k,N=_}for(;w>2;)_[o++]=N[E++],_[o++]=N[E++],_[o++]=N[E++],w-=3;w&&(_[o++]=N[E++],w>1&&(_[o++]=N[E++]))}else{E=o-k;do{_[o++]=_[E++],_[o++]=_[E++],_[o++]=_[E++],w-=3}while(w>2);w&&(_[o++]=_[E++],w>1&&(_[o++]=_[E++]))}break}if(64&x){t.msg="invalid distance code",i.mode=30;break t}b=g[(65535&b)+(f&(1<<x)-1)]}}break}}while(n<r&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<a?a-o+257:257-(o-a),i.hold=f,i.bits=p}},3981(t,e,i){"use strict";var n=i(97751),r=i(39919),o=i(15161),s=i(36955),a=i(424),l=-2,h=12,d=30;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):l}function m(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,p(t))):l}function g(t,e){var i,n;return t?(n=new u,t.state=n,n.window=null,0!==(i=m(t,e))&&(t.state=null),i):l}var v,y,b=!0;function x(t){if(b){var e;for(v=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,v,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,y,0,t.work,{bits:5}),b=!1}t.lencode=v,t.lenbits=9,t.distcode=y,t.distbits=5}function w(t,e,i,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),r>=s.wsize?(n.arraySet(s.window,e,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>r&&(o=r),n.arraySet(s.window,e,i-r,o,s.wnext),(r-=o)?(n.arraySet(s.window,e,i-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=p,e.inflateReset2=m,e.inflateResetKeep=f,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var i,u,f,p,m,g,v,y,b,k,E,N,T,_,C,S,M,A,z,L,O,F,D,R,I=0,q=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(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(i=t.state).mode===h&&(i.mode=13),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,k=g,E=v,F=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(2&i.wrap&&35615===y){i.check=0,q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0),y=0,b=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",i.mode=d;break}if(8!=(15&y)){t.msg="unknown compression method",i.mode=d;break}if(b-=4,O=8+(15&(y>>>=4)),0===i.wbits)i.wbits=O;else if(O>i.wbits){t.msg="invalid window size",i.mode=d;break}i.dmax=1<<O,t.adler=i.check=1,i.mode=512&y?10:h,y=0,b=0;break;case 2:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.flags=y,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=d;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=d;break}i.head&&(i.head.text=y>>8&1),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.time=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,q[2]=y>>>16&255,q[3]=y>>>24&255,i.check=o(i.check,q,4,0)),y=0,b=0,i.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.head&&(i.head.xflags=255&y,i.head.os=y>>8),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0,i.mode=5;case 5:if(1024&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length=y,i.head&&(i.head.extra_len=y),512&i.flags&&(q[0]=255&y,q[1]=y>>>8&255,i.check=o(i.check,q,2,0)),y=0,b=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((N=i.length)>g&&(N=g),N&&(i.head&&(O=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,u,p,N,O)),512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,i.length-=N),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.name+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===g)break t;N=0;do{O=u[p+N++],i.head&&O&&i.length<65536&&(i.head.comment+=String.fromCharCode(O))}while(O&&N<g);if(512&i.flags&&(i.check=o(i.check,u,N,p)),g-=N,p+=N,O)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;b<16;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(65535&i.check)){t.msg="header crc mismatch",i.mode=d;break}y=0,b=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=h;break;case 10:for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}t.adler=i.check=c(y),y=0,b=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,2;t.adler=i.check=1,i.mode=h;case h:if(5===e||6===e)break t;case 13:if(i.last){y>>>=7&b,b-=7&b,i.mode=27;break}for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}switch(i.last=1&y,b-=1,3&(y>>>=1)){case 0:i.mode=14;break;case 1:if(x(i),i.mode=20,6===e){y>>>=2,b-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=d}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",i.mode=d;break}if(i.length=65535&y,y=0,b=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(N=i.length){if(N>g&&(N=g),N>v&&(N=v),0===N)break t;n.arraySet(f,u,p,N,m),g-=N,p+=N,v-=N,m+=N,i.length-=N;break}i.mode=h;break;case 17:for(;b<14;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(i.nlen=257+(31&y),y>>>=5,b-=5,i.ndist=1+(31&y),y>>>=5,b-=5,i.ncode=4+(15&y),y>>>=4,b-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=d;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;b<3;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.lens[B[i.have++]]=7&y,y>>>=3,b-=3}for(;i.have<19;)i.lens[B[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,D={bits:i.lenbits},F=a(0,i.lens,0,19,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid code lengths set",i.mode=d;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(M<16)y>>>=C,b-=C,i.lens[i.have++]=M;else{if(16===M){for(R=C+2;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y>>>=C,b-=C,0===i.have){t.msg="invalid bit length repeat",i.mode=d;break}O=i.lens[i.have-1],N=3+(3&y),y>>>=2,b-=2}else if(17===M){for(R=C+3;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=3+(7&(y>>>=C)),y>>>=3,b-=3}else{for(R=C+7;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}b-=C,O=0,N=11+(127&(y>>>=C)),y>>>=7,b-=7}if(i.have+N>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=d;break}for(;N--;)i.lens[i.have++]=O}}if(i.mode===d)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=d;break}if(i.lenbits=9,D={bits:i.lenbits},F=a(1,i.lens,0,i.nlen,i.lencode,0,i.work,D),i.lenbits=D.bits,F){t.msg="invalid literal/lengths set",i.mode=d;break}if(i.distbits=6,i.distcode=i.distdyn,D={bits:i.distbits},F=a(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,D),i.distbits=D.bits,F){t.msg="invalid distances set",i.mode=d;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(g>=6&&v>=258){t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,s(t,E),m=t.next_out,f=t.output,v=t.avail_out,p=t.next_in,u=t.input,g=t.avail_in,y=i.hold,b=i.bits,i.mode===h&&(i.back=-1);break}for(i.back=0;S=(I=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(S&&!(240&S)){for(A=C,z=S,L=M;S=(I=i.lencode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,i.length=M,0===S){i.mode=26;break}if(32&S){i.back=-1,i.mode=h;break}if(64&S){t.msg="invalid literal/length code",i.mode=d;break}i.extra=15&S,i.mode=22;case 22:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.length+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;S=(I=i.distcode[y&(1<<i.distbits)-1])>>>16&255,M=65535&I,!((C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(!(240&S)){for(A=C,z=S,L=M;S=(I=i.distcode[L+((y&(1<<A+z)-1)>>A)])>>>16&255,M=65535&I,!(A+(C=I>>>24)<=b);){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}y>>>=A,b-=A,i.back+=A}if(y>>>=C,b-=C,i.back+=C,64&S){t.msg="invalid distance code",i.mode=d;break}i.offset=M,i.extra=15&S,i.mode=24;case 24:if(i.extra){for(R=i.extra;b<R;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}i.offset+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=d;break}i.mode=25;case 25:if(0===v)break t;if(N=E-v,i.offset>N){if((N=i.offset-N)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=d;break}N>i.wnext?(N-=i.wnext,T=i.wsize-N):T=i.wnext-N,N>i.length&&(N=i.length),_=i.window}else _=f,T=m-i.offset,N=i.length;N>v&&(N=v),v-=N,i.length-=N;do{f[m++]=_[T++]}while(--N);0===i.length&&(i.mode=21);break;case 26:if(0===v)break t;f[m++]=i.length,v--,i.mode=21;break;case 27:if(i.wrap){for(;b<32;){if(0===g)break t;g--,y|=u[p++]<<b,b+=8}if(E-=v,t.total_out+=E,i.total+=E,E&&(t.adler=i.check=i.flags?o(i.check,f,E,m-E):r(i.check,f,E,m-E)),E=v,(i.flags?y:c(y))!==i.check){t.msg="incorrect data check",i.mode=d;break}y=0,b=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;b<32;){if(0===g)break t;g--,y+=u[p++]<<b,b+=8}if(y!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=d;break}y=0,b=0}i.mode=29;case 29:F=1;break t;case d:F=-3;break t;case 31:return-4;default:return l}return t.next_out=m,t.avail_out=v,t.next_in=p,t.avail_in=g,i.hold=y,i.bits=b,(i.wsize||E!==t.avail_out&&i.mode<d&&(i.mode<27||4!==e))&&w(t,t.output,t.next_out,E-t.avail_out)?(i.mode=31,-4):(k-=t.avail_in,E-=t.avail_out,t.total_in+=k,t.total_out+=E,i.total+=E,i.wrap&&E&&(t.adler=i.check=i.flags?o(i.check,f,E,t.next_out-E):r(i.check,f,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(i.mode===h?128:0)+(20===i.mode||15===i.mode?256:0),(0===k&&0===E||4===e)&&0===F&&(F=-5),F)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?(i.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,e,n,0)!==i.check?-3:w(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},424(t,e,i){"use strict";var n=i(97751),r=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],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,i,h,d,c,u,f){var p,m,g,v,y,b,x,w,k,E=f.bits,N=0,T=0,_=0,C=0,S=0,M=0,A=0,z=0,L=0,O=0,F=null,D=0,R=new n.Buf16(16),I=new n.Buf16(16),q=null,B=0;for(N=0;N<=r;N++)R[N]=0;for(T=0;T<h;T++)R[e[i+T]]++;for(S=E,C=r;C>=1&&0===R[C];C--);if(S>C&&(S=C),0===C)return d[c++]=20971520,d[c++]=20971520,f.bits=1,0;for(_=1;_<C&&0===R[_];_++);for(S<_&&(S=_),z=1,N=1;N<=r;N++)if(z<<=1,(z-=R[N])<0)return-1;if(z>0&&(0===t||1!==C))return-1;for(I[1]=0,N=1;N<r;N++)I[N+1]=I[N]+R[N];for(T=0;T<h;T++)0!==e[i+T]&&(u[I[e[i+T]]++]=T);if(0===t?(F=q=u,b=19):1===t?(F=o,D-=257,q=s,B-=257,b=256):(F=a,q=l,b=-1),O=0,T=0,N=_,y=c,M=S,A=0,g=-1,v=(L=1<<S)-1,1===t&&L>852||2===t&&L>592)return 1;for(;;){x=N-A,u[T]<b?(w=0,k=u[T]):u[T]>b?(w=q[B+u[T]],k=F[D+u[T]]):(w=96,k=0),p=1<<N-A,_=m=1<<M;do{d[y+(O>>A)+(m-=p)]=x<<24|w<<16|k}while(0!==m);for(p=1<<N-1;O&p;)p>>=1;if(0!==p?(O&=p-1,O+=p):O=0,T++,0===--R[N]){if(N===C)break;N=e[i+u[T]]}if(N>S&&(O&v)!==g){for(0===A&&(A=S),y+=_,z=1<<(M=N-A);M+A<C&&!((z-=R[M+A])<=0);)M++,z<<=1;if(L+=1<<M,1===t&&L>852||2===t&&L>592)return 1;d[g=O&v]=S<<24|M<<16|y-c}}return 0!==O&&(d[y+O]=N-A<<24|64<<16),f.bits=S,0}},59764(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},89007(t,e,i){"use strict";var n=i(97751);function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,s=286,a=30,l=15,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);r(f);var p=new Array(60);r(p);var m=new Array(512);r(m);var g=new Array(256);r(g);var v=new Array(29);r(v);var y,b,x,w=new Array(a);function k(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function E(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function N(t){return t<256?m[t]:m[256+(t>>>7)]}function T(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,i){t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,T(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function C(t,e,i){_(t,i[2*e],i[2*e+1])}function S(t,e){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1}function M(t,e,i){var n,r,o=new Array(16),s=0;for(n=1;n<=l;n++)o[n]=s=s+i[n-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function A(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function z(t){t.bi_valid>8?T(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function L(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function O(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function F(t,e,i){var n,r,s,a,l=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?C(t,r,e):(C(t,(s=g[r])+o+1,e),0!==(a=h[s])&&_(t,r-=v[s],a),C(t,s=N(--n),i),0!==(a=d[s])&&_(t,n-=w[s],a))}while(l<t.last_lit);C(t,256,e)}function D(t,e){var i,n,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,h=e.stat_desc.elems,d=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<h;i++)0!==o[2*i]?(t.heap[++t.heap_len]=d=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=d<2?++d:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=d,i=t.heap_len>>1;i>=1;i--)O(t,o,i);r=h;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,O(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,s,a,h=e.dyn_tree,d=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(h[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(o=h[2*h[2*(n=t.heap[i])+1]+1]+1)>m&&(o=m,g++),h[2*n+1]=o,n>d||(t.bl_count[o]++,s=0,n>=p&&(s=f[n-p]),a=h[2*n],t.opt_len+=a*(o+s),u&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,g-=2}while(g>0);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)(r=t.heap[--i])>d||(h[2*r+1]!==o&&(t.opt_len+=(o-h[2*r+1])*h[2*r],h[2*r+1]=o),n--)}}(t,e),M(o,d,t.bl_count)}function R(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=s,s=e[2*(n+1)+1],++a<l&&r===s||(a<h?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4))}function I(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=i;n++)if(r=s,s=e[2*(n+1)+1],!(++a<l&&r===s)){if(a<h)do{C(t,r,t.bl_tree)}while(0!==--a);else 0!==r?(r!==o&&(C(t,r,t.bl_tree),a--),C(t,16,t.bl_tree),_(t,a-3,2)):a<=10?(C(t,17,t.bl_tree),_(t,a-3,3)):(C(t,18,t.bl_tree),_(t,a-11,7));a=0,o=r,0===s?(l=138,h=3):r===s?(l=6,h=3):(l=7,h=4)}}r(w);var q=!1;function B(t,e,i,r){_(t,0+(r?1:0),3),function(t,e,i,r){z(t),r&&(T(t,i),T(t,~i)),n.arraySet(t.pending_buf,t.window,e,i,t.pending),t.pending+=i}(t,e,i,!0)}e._tr_init=function(t){q||(!function(){var t,e,i,n,r,o=new Array(16);for(i=0,n=0;n<28;n++)for(v[n]=i,t=0;t<1<<h[n];t++)g[i++]=n;for(g[i-1]=n,r=0,n=0;n<16;n++)for(w[n]=r,t=0;t<1<<d[n];t++)m[r++]=n;for(r>>=7;n<a;n++)for(w[n]=r<<7,t=0;t<1<<d[n]-7;t++)m[256+r++]=n;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,o[8]++;for(;t<=255;)f[2*t+1]=9,t++,o[9]++;for(;t<=279;)f[2*t+1]=7,t++,o[7]++;for(;t<=287;)f[2*t+1]=8,t++,o[8]++;for(M(f,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=S(t,5);y=new k(f,h,257,s,l),b=new k(p,d,0,a,l),x=new k(new Array(0),c,0,19,7)}(),q=!0),t.l_desc=new E(t.dyn_ltree,y),t.d_desc=new E(t.dyn_dtree,b),t.bl_desc=new E(t.bl_tree,x),t.bi_buf=0,t.bi_valid=0,A(t)},e._tr_stored_block=B,e._tr_flush_block=function(t,e,i,n){var r,s,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),a=function(t){var e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=i+5,i+4<=r&&-1!==e?B(t,e,i,n):4===t.strategy||s===r?(_(t,2+(n?1:0),3),F(t,f,p)):(_(t,4+(n?1:0),3),function(t,e,i,n){var r;for(_(t,e-257,5),_(t,i-1,5),_(t,n-4,4),r=0;r<n;r++)_(t,t.bl_tree[2*u[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),F(t,t.dyn_ltree,t.dyn_dtree)),A(t),n&&z(t)},e._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(g[i]+o+1)]++,t.dyn_dtree[2*N(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){_(t,2,3),C(t,256,f),function(t){16===t.bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},24748(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},99106(t,e,i){"use strict";const n=i(67193),r=i(8142);var o;!function(t){t.compose=function(t={},e={},i=!1){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});let r=n(e);i||(r=Object.keys(r).reduce((t,e)=>(null!=r[e]&&(t[e]=r[e]),t),{}));for(const i in t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},t.diff=function(t={},e={}){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});const i=Object.keys(t).concat(Object.keys(e)).reduce((i,n)=>(r(t[n],e[n])||(i[n]=void 0===e[n]?null:e[n]),i),{});return Object.keys(i).length>0?i:void 0},t.invert=function(t={},e={}){t=t||{};const i=Object.keys(e).reduce((i,n)=>(e[n]!==t[n]&&void 0!==t[n]&&(i[n]=e[n]),i),{});return Object.keys(t).reduce((i,n)=>(t[n]!==e[n]&&void 0===e[n]&&(i[n]=null),i),i)},t.transform=function(t,e,i=!1){if("object"!=typeof t)return e;if("object"!=typeof e)return;if(!i)return e;const n=Object.keys(e).reduce((i,n)=>(void 0===t[n]&&(i[n]=e[n]),i),{});return Object.keys(n).length>0?n:void 0}}(o||(o={})),e.default=o},12660(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=i(85606),r=i(67193),o=i(8142),s=i(99106);e.AttributeMap=s.default;const a=i(5759);e.Op=a.default;const l=i(28317);e.OpIterator=l.default;const h=String.fromCharCode(0),d=(t,e)=>{if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);const i=Object.keys(t)[0];if(!i||i!==Object.keys(e)[0])throw new Error(`embed types not matched: ${i} != ${Object.keys(e)[0]}`);return[i,t[i],e[i]]};class c{constructor(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){const i={};return"string"==typeof t&&0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if("number"==typeof t&&t<=0)return this;const i={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i)}push(t){let e=this.ops.length,i=this.ops[e-1];if(t=r(t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this;if("number"==typeof i.delete&&null!=t.insert&&(e-=1,i=this.ops[e-1],"object"!=typeof i))return this.ops.unshift(t),this;if(o(t.attributes,i.attributes)){if("string"==typeof t.insert&&"string"==typeof i.insert)return this.ops[e-1]={insert:i.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof i.retain)return this.ops[e-1]={retain:i.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this}chop(){const t=this.ops[this.ops.length-1];return t&&"number"==typeof t.retain&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const e=[],i=[];return this.forEach(n=>{(t(n)?e:i).push(n)}),[e,i]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce((t,e)=>e.insert?t+a.default.length(e):e.delete?t-e.delete:t,0)}length(){return this.reduce((t,e)=>t+a.default.length(e),0)}slice(t=0,e=1/0){const i=[],n=new l.default(this.ops);let r=0;for(;r<e&&n.hasNext();){let o;r<t?o=n.next(t-r):(o=n.next(e-r),i.push(o)),r+=a.default.length(o)}return new c(i)}compose(t){const e=new l.default(this.ops),i=new l.default(t.ops),n=[],r=i.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){let t=r.retain;for(;"insert"===e.peekType()&&e.peekLength()<=t;)t-=e.peekLength(),n.push(e.next());r.retain-t>0&&i.next(r.retain-t)}const a=new c(n);for(;e.hasNext()||i.hasNext();)if("insert"===i.peekType())a.push(i.next());else if("delete"===e.peekType())a.push(e.next());else{const t=Math.min(e.peekLength(),i.peekLength()),n=e.next(t),r=i.next(t);if(r.retain){const l={};if("number"==typeof n.retain)l.retain="number"==typeof r.retain?t:r.retain;else if("number"==typeof r.retain)null==n.retain?l.insert=n.insert:l.retain=n.retain;else{const t=null==n.retain?"insert":"retain",[e,i,o]=d(n[t],r.retain),s=c.getHandler(e);l[t]={[e]:s.compose(i,o,"retain"===t)}}const h=s.default.compose(n.attributes,r.attributes,"number"==typeof n.retain);if(h&&(l.attributes=h),a.push(l),!i.hasNext()&&o(a.ops[a.ops.length-1],l)){const t=new c(e.rest());return a.concat(t).chop()}}else"number"==typeof r.delete&&("number"==typeof n.retain||"object"==typeof n.retain&&null!==n.retain)&&a.push(r)}return a.chop()}concat(t){const e=new c(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e}diff(t,e){if(this.ops===t.ops)return new c;const i=[this,t].map(e=>e.map(i=>{if(null!=i.insert)return"string"==typeof i.insert?i.insert:h;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")}).join("")),r=new c,a=n(i[0],i[1],e,!0),d=new l.default(this.ops),u=new l.default(t.ops);return a.forEach(t=>{let e=t[1].length;for(;e>0;){let i=0;switch(t[0]){case n.INSERT:i=Math.min(u.peekLength(),e),r.push(u.next(i));break;case n.DELETE:i=Math.min(e,d.peekLength()),d.next(i),r.delete(i);break;case n.EQUAL:i=Math.min(d.peekLength(),u.peekLength(),e);const t=d.next(i),a=u.next(i);o(t.insert,a.insert)?r.retain(i,s.default.diff(t.attributes,a.attributes)):r.push(a).delete(i)}e-=i}}),r.chop()}eachLine(t,e="\n"){const i=new l.default(this.ops);let n=new c,r=0;for(;i.hasNext();){if("insert"!==i.peekType())return;const o=i.peek(),s=a.default.length(o)-i.peekLength(),l="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)n.push(i.next());else if(l>0)n.push(i.next(l));else{if(!1===t(n,i.next(1).attributes||{},r))return;r+=1,n=new c}}n.length()>0&&t(n,{},r)}invert(t){const e=new c;return this.reduce((i,n)=>{if(n.insert)e.delete(a.default.length(n));else{if("number"==typeof n.retain&&null==n.attributes)return e.retain(n.retain),i+n.retain;if(n.delete||"number"==typeof n.retain){const r=n.delete||n.retain;return t.slice(i,i+r).forEach(t=>{n.delete?e.push(t):n.retain&&n.attributes&&e.retain(a.default.length(t),s.default.invert(n.attributes,t.attributes))}),i+r}if("object"==typeof n.retain&&null!==n.retain){const r=t.slice(i,i+1),o=new l.default(r.ops).next(),[a,h,u]=d(n.retain,o.insert),f=c.getHandler(a);return e.retain({[a]:f.invert(h,u)},s.default.invert(n.attributes,o.attributes)),i+1}}return i},0),e.chop()}transform(t,e=!1){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);const i=t,n=new l.default(this.ops),r=new l.default(i.ops),o=new c;for(;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{const t=Math.min(n.peekLength(),r.peekLength()),i=n.next(t),a=r.next(t);if(i.delete)continue;if(a.delete)o.push(a);else{const n=i.retain,r=a.retain;let l="object"==typeof r&&null!==r?r:t;if("object"==typeof n&&null!==n&&"object"==typeof r&&null!==r){const t=Object.keys(n)[0];if(t===Object.keys(r)[0]){const i=c.getHandler(t);i&&(l={[t]:i.transform(n[t],r[t],e)})}}o.retain(l,s.default.transform(i.attributes,a.attributes,e))}}else o.retain(a.default.length(n.next()));return o.chop()}transformPosition(t,e=!1){e=!!e;const i=new l.default(this.ops);let n=0;for(;i.hasNext()&&n<=t;){const r=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(n<t||!e)&&(t+=r),n+=r):t-=Math.min(r,t-n)}return t}}c.Op=a.default,c.OpIterator=l.default,c.AttributeMap=s.default,c.handlers={},e.default=c,t.exports=c,t.exports.default=c},5759(t,e){"use strict";var i;(function(t){t.length=function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"object"==typeof t.retain&&null!==t.retain?1:"string"==typeof t.insert?t.insert.length:1}})(i||(i={})),e.default=i},28317(t,e,i){"use strict";const n=i(5759);e.default=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const e=this.ops[this.index];if(e){const i=this.offset,r=n.default.length(e);if(t>=r-i?(t=r-i,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};{const n={};return e.attributes&&(n.attributes=e.attributes),"number"==typeof e.retain?n.retain=t:"object"==typeof e.retain&&null!==e.retain?n.retain=e.retain:"string"==typeof e.insert?n.insert=e.insert.substr(i,t):n.insert=e.insert,n}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?"number"==typeof t.delete?"delete":"number"==typeof t.retain||"object"==typeof t.retain&&null!==t.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const t=this.offset,e=this.index,i=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[i].concat(n)}}return[]}}},23697(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(t,e,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new r(n,o||t,s),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},a.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,r,o,s){var a=i?i+t:t;if(!this._events[a])return!1;var l,h,d=this._events[a],c=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),c){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,n),!0;case 4:return d.fn.call(d.context,e,n,r),!0;case 5:return d.fn.call(d.context,e,n,r,o),!0;case 6:return d.fn.call(d.context,e,n,r,o,s),!0}for(h=1,l=new Array(c-1);h<c;h++)l[h-1]=arguments[h];d.fn.apply(d.context,l)}else{var u,f=d.length;for(h=0;h<f;h++)switch(d[h].once&&this.removeListener(t,d[h].fn,void 0,!0),c){case 1:d[h].fn.call(d[h].context);break;case 2:d[h].fn.call(d[h].context,e);break;case 3:d[h].fn.call(d[h].context,e,n);break;case 4:d[h].fn.call(d[h].context,e,n,r);break;default:if(!l)for(u=1,l=new Array(c-1);u<c;u++)l[u-1]=arguments[u];d[h].fn.apply(d[h].context,l)}}return!0},a.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},a.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},a.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||s(this,o);else{for(var l=0,h=[],d=a.length;l<d;l++)(a[l].fn!==e||r&&!a[l].once||n&&a[l].context!==n)&&h.push(a[l]);h.length?this._events[o]=1===h.length?h[0]:h:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,t.exports=a},64043(t,e,i){!function(t){t.parser=function(t,e){return new r(t,e)},t.SAXParser=r,t.SAXStream=s,t.createStream=function(t,e){return new s(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(e,i){if(!(this instanceof r))return new r(e,i);var o=this;!function(t){for(var e=0,i=n.length;e<i;e++)t[n[e]]=""}(o),o.q=o.c="",o.bufferCheckPosition=t.MAX_BUFFER_LENGTH,o.encoding=null,o.opt=i||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?"toLowerCase":"toUpperCase",o.opt.maxEntityCount=o.opt.maxEntityCount||512,o.opt.maxEntityDepth=o.opt.maxEntityDepth||4,o.entityCount=o.entityDepth=0,o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!e,o.noscript=!(!e&&!o.opt.noscript),o.state=N.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(c)),void 0===o.opt.unquotedAttributeValues&&(o.opt.unquotedAttributeValues=!e),o.trackPosition=!1!==o.opt.position,o.trackPosition&&(o.position=o.line=o.column=0),_(o,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}),r.prototype={end:function(){O(this)},write:function(e){var i=this;if(this.error)throw this.error;if(i.closed)return L(i,"Cannot write after close. Assign an onready handler.");if(null===e)return O(i);"object"==typeof e&&(e=e.toString());var r=0,o="";for(;o=j(e,r++),i.c=o,o;)switch(i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++),i.state){case N.BEGIN:if(i.state=N.BEGIN_WHITESPACE,"\ufeff"===o)continue;U(i,o);continue;case N.BEGIN_WHITESPACE:U(i,o);continue;case N.TEXT:if(i.sawRoot&&!i.closedRoot){for(var s=r-1;o&&"<"!==o&&"&"!==o;)(o=j(e,r++))&&i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++);i.textNode+=e.substring(s,r-1)}"<"!==o||i.sawRoot&&i.closedRoot&&!i.strict?(g(o)||i.sawRoot&&!i.closedRoot||F(i,"Text data outside of root node."),"&"===o?i.state=N.TEXT_ENTITY:i.textNode+=o):(i.state=N.OPEN_WAKA,i.startTagPosition=i.position);continue;case N.SCRIPT:"<"===o?i.state=N.SCRIPT_ENDING:i.script+=o;continue;case N.SCRIPT_ENDING:"/"===o?i.state=N.CLOSE_TAG:(i.script+="<"+o,i.state=N.SCRIPT);continue;case N.OPEN_WAKA:if("!"===o)i.state=N.SGML_DECL,i.sgmlDecl="";else if(g(o));else if(b(u,o))i.state=N.OPEN_TAG,i.tagName=o;else if("/"===o)i.state=N.CLOSE_TAG,i.tagName="";else if("?"===o)i.state=N.PROC_INST,i.procInstName=i.procInstBody="";else{if(F(i,"Unencoded <"),i.startTagPosition+1<i.position){var h=i.position-i.startTagPosition;o=new Array(h).join(" ")+o}i.textNode+="<"+o,i.state=N.TEXT}continue;case N.SGML_DECL:if(i.sgmlDecl+o==="--"){i.state=N.COMMENT,i.comment="",i.sgmlDecl="";continue}i.doctype&&!0!==i.doctype&&i.sgmlDecl?(i.state=N.DOCTYPE_DTD,i.doctype+="<!"+i.sgmlDecl+o,i.sgmlDecl=""):(i.sgmlDecl+o).toUpperCase()===a?(M(i,"onopencdata"),i.state=N.CDATA,i.sgmlDecl="",i.cdata=""):(i.sgmlDecl+o).toUpperCase()===l?(i.state=N.DOCTYPE,(i.doctype||i.sawRoot)&&F(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):">"===o?(M(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=N.TEXT):v(o)?(i.state=N.SGML_DECL_QUOTED,i.sgmlDecl+=o):i.sgmlDecl+=o;continue;case N.SGML_DECL_QUOTED:o===i.q&&(i.state=N.SGML_DECL,i.q=""),i.sgmlDecl+=o;continue;case N.DOCTYPE:">"===o?(i.state=N.TEXT,M(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=o,"["===o?i.state=N.DOCTYPE_DTD:v(o)&&(i.state=N.DOCTYPE_QUOTED,i.q=o));continue;case N.DOCTYPE_QUOTED:i.doctype+=o,o===i.q&&(i.q="",i.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:"]"===o?(i.doctype+=o,i.state=N.DOCTYPE):"<"===o?(i.state=N.OPEN_WAKA,i.startTagPosition=i.position):v(o)?(i.doctype+=o,i.state=N.DOCTYPE_DTD_QUOTED,i.q=o):i.doctype+=o;continue;case N.DOCTYPE_DTD_QUOTED:i.doctype+=o,o===i.q&&(i.state=N.DOCTYPE_DTD,i.q="");continue;case N.COMMENT:"-"===o?i.state=N.COMMENT_ENDING:i.comment+=o;continue;case N.COMMENT_ENDING:"-"===o?(i.state=N.COMMENT_ENDED,i.comment=z(i.opt,i.comment),i.comment&&M(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+o,i.state=N.COMMENT);continue;case N.COMMENT_ENDED:">"!==o?(F(i,"Malformed comment"),i.comment+="--"+o,i.state=N.COMMENT):i.doctype&&!0!==i.doctype?i.state=N.DOCTYPE_DTD:i.state=N.TEXT;continue;case N.CDATA:for(s=r-1;o&&"]"!==o;)(o=j(e,r++))&&i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++);i.cdata+=e.substring(s,r-1),"]"===o&&(i.state=N.CDATA_ENDING);continue;case N.CDATA_ENDING:"]"===o?i.state=N.CDATA_ENDING_2:(i.cdata+="]"+o,i.state=N.CDATA);continue;case N.CDATA_ENDING_2:">"===o?(i.cdata&&M(i,"oncdata",i.cdata),M(i,"onclosecdata"),i.cdata="",i.state=N.TEXT):"]"===o?i.cdata+="]":(i.cdata+="]]"+o,i.state=N.CDATA);continue;case N.PROC_INST:"?"===o?i.state=N.PROC_INST_ENDING:g(o)?i.state=N.PROC_INST_BODY:i.procInstName+=o;continue;case N.PROC_INST_BODY:if(!i.procInstBody&&g(o))continue;"?"===o?i.state=N.PROC_INST_ENDING:i.procInstBody+=o;continue;case N.PROC_INST_ENDING:if(">"===o){const t={name:i.procInstName,body:i.procInstBody};S(i,t),M(i,"onprocessinginstruction",t),i.procInstName=i.procInstBody="",i.state=N.TEXT}else i.procInstBody+="?"+o,i.state=N.PROC_INST_BODY;continue;case N.OPEN_TAG:b(f,o)?i.tagName+=o:(D(i),">"===o?q(i):"/"===o?i.state=N.OPEN_TAG_SLASH:(g(o)||F(i,"Invalid character in tag name"),i.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:">"===o?(q(i,!0),B(i)):(F(i,"Forward-slash in opening tag not followed by >"),i.state=N.ATTRIB);continue;case N.ATTRIB:if(g(o))continue;">"===o?q(i):"/"===o?i.state=N.OPEN_TAG_SLASH:b(u,o)?(i.attribName=o,i.attribValue="",i.state=N.ATTRIB_NAME):F(i,"Invalid attribute name");continue;case N.ATTRIB_NAME:"="===o?i.state=N.ATTRIB_VALUE:">"===o?(F(i,"Attribute without value"),i.attribValue=i.attribName,I(i),q(i)):g(o)?i.state=N.ATTRIB_NAME_SAW_WHITE:b(f,o)?i.attribName+=o:F(i,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if("="===o)i.state=N.ATTRIB_VALUE;else{if(g(o))continue;F(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",M(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",">"===o?q(i):b(u,o)?(i.attribName=o,i.state=N.ATTRIB_NAME):(F(i,"Invalid attribute name"),i.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(g(o))continue;v(o)?(i.q=o,i.state=N.ATTRIB_VALUE_QUOTED):(i.opt.unquotedAttributeValues||L(i,"Unquoted attribute value"),i.state=N.ATTRIB_VALUE_UNQUOTED,i.attribValue=o);continue;case N.ATTRIB_VALUE_QUOTED:if(o!==i.q){"&"===o?i.state=N.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=o;continue}I(i),i.q="",i.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:g(o)?i.state=N.ATTRIB:">"===o?q(i):"/"===o?i.state=N.OPEN_TAG_SLASH:b(u,o)?(F(i,"No whitespace between attributes"),i.attribName=o,i.attribValue="",i.state=N.ATTRIB_NAME):F(i,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!y(o)){"&"===o?i.state=N.ATTRIB_VALUE_ENTITY_U:i.attribValue+=o;continue}I(i),">"===o?q(i):i.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(i.tagName)">"===o?B(i):b(f,o)?i.tagName+=o:i.script?(i.script+="</"+i.tagName+o,i.tagName="",i.state=N.SCRIPT):(g(o)||F(i,"Invalid tagname in closing tag"),i.state=N.CLOSE_TAG_SAW_WHITE);else{if(g(o))continue;x(u,o)?i.script?(i.script+="</"+o,i.state=N.SCRIPT):F(i,"Invalid tagname in closing tag."):i.tagName=o}continue;case N.CLOSE_TAG_SAW_WHITE:if(g(o))continue;">"===o?B(i):F(i,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var d,c;switch(i.state){case N.TEXT_ENTITY:d=N.TEXT,c="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:d=N.ATTRIB_VALUE_QUOTED,c="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:d=N.ATTRIB_VALUE_UNQUOTED,c="attribValue"}if(";"===o){var w=P(i);i.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(w)?((i.entityCount+=1)>i.opt.maxEntityCount&&L(i,"Parsed entity count exceeds max entity count"),(i.entityDepth+=1)>i.opt.maxEntityDepth&&L(i,"Parsed entity depth exceeds max entity depth"),i.entity="",i.state=d,i.write(w),i.entityDepth-=1):(i[c]+=w,i.entity="",i.state=d)}else b(i.entity.length?m:p,o)?i.entity+=o:(F(i,"Invalid character in entity name"),i[c]+="&"+i.entity+o,i.entity="",i.state=d);continue;default:throw new Error(i,"Unknown state: "+i.state)}i.position>=i.bufferCheckPosition&&function(e){for(var i=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,o=0,s=n.length;o<s;o++){var a=e[n[o]].length;if(a>i)switch(n[o]){case"textNode":A(e);break;case"cdata":M(e,"oncdata",e.cdata),e.cdata="";break;case"script":M(e,"onscript",e.script),e.script="";break;default:L(e,"Max buffer length exceeded: "+n[o])}r=Math.max(r,a)}var l=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}(i);return i},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;A(t=this),""!==t.cdata&&(M(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(M(t,"onscript",t.script),t.script="")}};try{e=i(28277).Stream}catch(t){e=function(){}}e||(e=function(){});var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function s(t,i){if(!(this instanceof s))return new s(t,i);e.apply(this),this._parser=new r(t,i),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,this._decoderBuffer=null,o.forEach(function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(e.prototype,{constructor:{value:s}}),s.prototype._decodeBuffer=function(t,e){if(this._decoderBuffer&&(t=Buffer.concat([this._decoderBuffer,t]),this._decoderBuffer=null),!this._decoder){var i=function(t,e){if(t.length>=2){if(255===t[0]&&254===t[1])return"utf-16le";if(254===t[0]&&255===t[1])return"utf-16be"}return t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]?"utf8":t.length>=4?60===t[0]&&0===t[1]&&63===t[2]&&0===t[3]?"utf-16le":0===t[0]&&60===t[1]&&0===t[2]&&63===t[3]?"utf-16be":"utf8":e?"utf8":null}(t,e);if(!i)return this._decoderBuffer=t,"";this._parser.encoding=i,this._decoder=new TextDecoder(i)}return this._decoder.decode(t,{stream:!e})},s.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t))t=this._decodeBuffer(t,!1);else if(this._decoderBuffer){var e=this._decodeBuffer(Buffer.alloc(0),!0);e&&(this._parser.write(e),this.emit("data",e))}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){if(t&&t.length&&this.write(t),this._decoderBuffer){var e=this._decodeBuffer(Buffer.alloc(0),!0);e&&(this._parser.write(e),this.emit("data",e))}else if(this._decoder){var i=this._decoder.decode();i&&(this._parser.write(i),this.emit("data",i))}return this._parser.end(),!0},s.prototype.on=function(t,i){var n=this;return n._parser["on"+t]||-1===o.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,i)};var a="[CDATA[",l="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",c={xml:h,xmlns:d},u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function v(t){return'"'===t||"'"===t}function y(t){return">"===t||g(t)}function b(t,e){return t.test(e)}function x(t,e){return!b(t,e)}var w,k,E,N=0;for(var T in t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var i=t.ENTITIES[e],n="number"==typeof i?String.fromCharCode(i):i;t.ENTITIES[e]=n}),t.STATE)t.STATE[t.STATE[T]]=T;function _(t,e,i){t[e]&&t[e](i)}function C(t){return t?t.toLowerCase().replace(/[^a-z0-9]/g,""):null}function S(t,e){if(t.strict&&t.encoding&&e&&"xml"===e.name){var i,n,r=(i=e.body,(n=i&&i.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?n[2]:null);r&&!function(t,e){const i=C(t),n=C(e);return!i||!n||("utf16"===n?"utf16le"===i||"utf16be"===i:i===n)}(t.encoding,r)&&F(t,"XML declaration encoding "+r+" does not match detected stream encoding "+t.encoding.toUpperCase())}}function M(t,e,i){t.textNode&&A(t),_(t,e,i)}function A(t){t.textNode=z(t.opt,t.textNode),t.textNode&&_(t,"ontext",t.textNode),t.textNode=""}function z(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function L(t,e){return A(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,_(t,"onerror",e),t}function O(t){return t.sawRoot&&!t.closedRoot&&F(t,"Unclosed root tag"),t.state!==N.BEGIN&&t.state!==N.BEGIN_WHITESPACE&&t.state!==N.TEXT&&L(t,"Unexpected end"),A(t),t.c="",t.closed=!0,_(t,"onend"),r.call(t,t.strict,t.opt),t}function F(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&L(t,e)}function D(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,i=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(i.ns=e.ns),t.attribList.length=0,M(t,"onopentagstart",i)}function R(t,e){var i=t.indexOf(":")<0?["",t]:t.split(":"),n=i[0],r=i[1];return e&&"xmlns"===t&&(n="xmlns",r=""),{prefix:n,local:r}}function I(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=R(t.attribName,!0),i=e.prefix,n=e.local;if("xmlns"===i)if("xml"===n&&t.attribValue!==h)F(t,"xml: prefix must be bound to "+h+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==d)F(t,"xmlns: prefix must be bound to "+d+"\nActual: "+t.attribValue);else{var r=t.tag,o=t.tags[t.tags.length-1]||t;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,M(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function q(t,e){if(t.opt.xmlns){var i=t.tag,n=R(t.tagName);i.prefix=n.prefix,i.local=n.local,i.uri=i.ns[n.prefix]||"",i.prefix&&!i.uri&&(F(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=n.prefix);var r=t.tags[t.tags.length-1]||t;i.ns&&r.ns!==i.ns&&Object.keys(i.ns).forEach(function(e){M(t,"onopennamespace",{prefix:e,uri:i.ns[e]})});for(var o=0,s=t.attribList.length;o<s;o++){var a=t.attribList[o],l=a[0],h=a[1],d=R(l,!0),c=d.prefix,u=d.local,f=""===c?"":i.ns[c]||"",p={name:l,value:h,prefix:c,local:u,uri:f};c&&"xmlns"!==c&&!f&&(F(t,"Unbound namespace prefix: "+JSON.stringify(c)),p.uri=c),t.tag.attributes[l]=p,M(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),M(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=N.TEXT:t.state=N.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function B(t){if(!t.tagName)return F(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=N.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=N.SCRIPT);M(t,"onscript",t.script),t.script=""}var e=t.tags.length,i=t.tagName;t.strict||(i=i[t.looseCase]());for(var n=i;e--;){if(t.tags[e].name===n)break;F(t,"Unexpected close tag")}if(e<0)return F(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=N.TEXT);t.tagName=i;for(var r=t.tags.length;r-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,M(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var l=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==l.ns&&Object.keys(o.ns).forEach(function(e){var i=o.ns[e];M(t,"onclosenamespace",{prefix:e,uri:i})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=N.TEXT}function P(t){var e,i=t.entity,n=i.toLowerCase(),r="";return t.ENTITIES[i]?t.ENTITIES[i]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(i=n).charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),r=(e=parseInt(i,16)).toString(16)):(i=i.slice(1),r=(e=parseInt(i,10)).toString(10))),i=i.replace(/^0+/,""),isNaN(e)||r.toLowerCase()!==i||e<0||e>1114111?(F(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function U(t,e){"<"===e?(t.state=N.OPEN_WAKA,t.startTagPosition=t.position):g(e)||(F(t,"Non-whitespace before first tag."),t.textNode=e,t.state=N.TEXT)}function j(t,e){var i="";return e<t.length&&(i=t.charAt(e)),i}N=t.STATE,String.fromCodePoint||(w=String.fromCharCode,k=Math.floor,E=function(){var t,e,i=[],n=-1,r=arguments.length;if(!r)return"";for(var o="";++n<r;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||k(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?i.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,i.push(t,e)),(n+1===r||i.length>16384)&&(o+=w.apply(null,i),i.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E)}(e)},45602(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>ew});var n={};i.r(n),i.d(n,{CONSTANTS:()=>a,ERROR_TYPES:()=>u,cssContent:()=>f,initRootNodePositionMap:()=>l,layoutList:()=>h,layoutValueList:()=>d,nodeDataNoStylePropList:()=>c,noneRichTextNodeLineHeight:()=>m,richTextSupportStyleList:()=>g,selfCloseTagList:()=>p});var r={};i.r(r),i.d(r,{checkIsNodeSizeIndependenceConfig:()=>Ai,default:()=>Si,lineStyleProps:()=>zi});var o={};i.r(o),i.d(o,{Attributor:()=>cp,AttributorStore:()=>bp,BlockBlot:()=>zp,ClassAttributor:()=>gp,ContainerBlot:()=>Op,EmbedBlot:()=>Fp,InlineBlot:()=>Mp,LeafBlot:()=>Ep,ParentBlot:()=>Cp,Registry:()=>pp,Scope:()=>dp,ScrollBlot:()=>Ip,StyleAttributor:()=>yp,TextBlot:()=>Bp});var s={};i.r(s),i.d(s,{attentionMarkers:()=>Dx,contentInitial:()=>Mx,disable:()=>Rx,document:()=>Sx,flow:()=>zx,flowInitial:()=>Ax,insideSpan:()=>Fx,string:()=>Lx,text:()=>Ox});const a={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",LOGICAL_STRUCTURE_LEFT:"logicalStructureLeft",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",FISHBONE2:"fishbone2",RIGHT_FISHBONE:"rightFishbone",RIGHT_FISHBONE2:"rightFishbone2",VERTICAL_TIMELINE:"verticalTimeline",VERTICAL_TIMELINE2:"verticalTimeline2",VERTICAL_TIMELINE3:"verticalTimeline3"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"},TAG_PLACEMENT:{RIGHT:"right",BOTTOM:"bottom"},IMG_PLACEMENT:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"}},l={[a.INIT_ROOT_NODE_POSITION.LEFT]:0,[a.INIT_ROOT_NODE_POSITION.TOP]:0,[a.INIT_ROOT_NODE_POSITION.RIGHT]:1,[a.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[a.INIT_ROOT_NODE_POSITION.CENTER]:.5},h=[{name:"逻辑结构图",value:a.LAYOUT.LOGICAL_STRUCTURE},{name:"向左逻辑结构图",value:a.LAYOUT.LOGICAL_STRUCTURE_LEFT},{name:"思维导图",value:a.LAYOUT.MIND_MAP},{name:"组织结构图",value:a.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:a.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:a.LAYOUT.TIMELINE},{name:"时间轴2",value:a.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:a.LAYOUT.VERTICAL_TIMELINE},{name:"竖向时间轴2",value:a.LAYOUT.VERTICAL_TIMELINE2},{name:"竖向时间轴3",value:a.LAYOUT.VERTICAL_TIMELINE3},{name:"鱼骨图",value:a.LAYOUT.FISHBONE},{name:"鱼骨图2",value:a.LAYOUT.FISHBONE2},{name:"向右鱼骨图",value:a.LAYOUT.RIGHT_FISHBONE},{name:"向右鱼骨图2",value:a.LAYOUT.RIGHT_FISHBONE2}],d=[a.LAYOUT.LOGICAL_STRUCTURE,a.LAYOUT.LOGICAL_STRUCTURE_LEFT,a.LAYOUT.MIND_MAP,a.LAYOUT.CATALOG_ORGANIZATION,a.LAYOUT.ORGANIZATION_STRUCTURE,a.LAYOUT.TIMELINE,a.LAYOUT.TIMELINE2,a.LAYOUT.VERTICAL_TIMELINE,a.LAYOUT.VERTICAL_TIMELINE2,a.LAYOUT.VERTICAL_TIMELINE3,a.LAYOUT.FISHBONE,a.LAYOUT.FISHBONE2,a.LAYOUT.RIGHT_FISHBONE,a.LAYOUT.RIGHT_FISHBONE2],c=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText","attachmentUrl","attachmentName","notation","outerFrame","number","range","customLeft","customTop","customTextWidth","checkbox","dir","needUpdate","imgMap","nodeLink"],u={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error",DATA_CHANGE_DETAIL_EVENT_ERROR:"data_change_detail_event_error"},f="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node, .smm-node-highlight .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n\n .smm-text-node-wrap, .smm-expand-btn-text {\n user-select: none;\n }\n",p=["img","br","hr","input","link","meta","area"],m=1.2,g=["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color","textAlign"];const v=class{constructor(t={}){this.opt=t,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.firstDrag=!0,this.setTransformData(this.mindMap.opt.viewData),this.bind()}bind(){this.mindMap.keyCommand.addShortcut("Control+=",()=>{this.enlarge()}),this.mindMap.keyCommand.addShortcut("Control+-",()=>{this.narrow()}),this.mindMap.keyCommand.addShortcut("Control+i",()=>{this.fit()}),this.mindMap.event.on("mousedown",t=>{const{isDisableDrag:e,mousedownEventPreventDefault:i}=this.mindMap.opt;e||(i&&t.preventDefault(),this.sx=this.x,this.sy=this.y)}),this.mindMap.event.on("drag",(t,e)=>{t.ctrlKey||t.metaKey||this.mindMap.opt.isDisableDrag||(this.firstDrag&&(this.firstDrag=!1,this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")),this.x=this.sx+e.mousemoveOffset.x,this.y=this.sy+e.mousemoveOffset.y,this.transform())}),this.mindMap.event.on("mouseup",()=>{this.firstDrag=!0}),this.mindMap.event.on("mousewheel",(t,e,i,n)=>{const{customHandleMousewheel:r,mousewheelAction:o,mouseScaleCenterUseMousePosition:s,mousewheelMoveStep:l,mousewheelZoomActionReverse:h,disableMouseWheelZoom:d,translateRatio:c}=this.mindMap.opt;if(r&&"function"==typeof r)return r(t);if(o===a.MOUSE_WHEEL_ACTION.ZOOM||t.ctrlKey||t.metaKey){if(d)return;const{x:i,y:r}=this.mindMap.toPos(t.clientX,t.clientY),o=s?i:void 0,l=s?r:void 0;switch(n&&(e.includes(a.DIR.LEFT)||e.includes(a.DIR.RIGHT))&&(e=e.filter(t=>![a.DIR.LEFT,a.DIR.RIGHT].includes(t))),!0){case e.includes(a.DIR.UP||a.DIR.LEFT):h?this.enlarge(o,l,n):this.narrow(o,l,n);break;case e.includes(a.DIR.DOWN||a.DIR.RIGHT):h?this.narrow(o,l,n):this.enlarge(o,l,n)}}else{let i=0,r=0;n?(i=Math.abs(t.wheelDeltaX),r=Math.abs(t.wheelDeltaY)):i=r=l;let o=0,s=0;e.includes(a.DIR.DOWN)&&(s=-r),e.includes(a.DIR.UP)&&(s=r),e.includes(a.DIR.LEFT)&&(o=i),e.includes(a.DIR.RIGHT)&&(o=-i),this.translateXY(o*c,s*c)}}),this.mindMap.on("resize",()=>{this.checkNeedMindMapInCanvas()&&this.transform()})}getTransformData(){return{transform:this.mindMap.draw.transform(),state:{scale:this.scale,x:this.x,y:this.y,sx:this.sx,sy:this.sy}}}setTransformData(t){t&&(Object.keys(t.state).forEach(e=>{this[e]=t.state[e]}),this.mindMap.draw.transform({...t.transform}),this.mindMap.emit("view_data_change",this.getTransformData()),this.emitEvent("scale"),this.emitEvent("translate"))}translateXY(t,e){0===t&&0===e||(this.x+=t,this.y+=e,this.transform(),this.emitEvent("translate"))}translateX(t){0!==t&&(this.x+=t,this.transform(),this.emitEvent("translate"))}translateXTo(t){this.x=t,this.transform(),this.emitEvent("translate")}translateY(t){0!==t&&(this.y+=t,this.transform(),this.emitEvent("translate"))}translateYTo(t){this.y=t,this.transform(),this.emitEvent("translate")}transform(){try{this.limitMindMapInCanvas()}catch(t){}this.mindMap.draw.transform({origin:[0,0],scale:this.scale,translate:[this.x,this.y]}),this.mindMap.emit("view_data_change",this.getTransformData())}reset(){const t=1!==this.scale,e=0!==this.x||0!==this.y;this.scale=1,this.x=0,this.y=0,this.transform(),t&&this.emitEvent("scale"),e&&this.emitEvent("translate")}narrow(t,e,i){let{scaleRatio:n,minZoomRatio:r}=this.mindMap.opt;n/=i?5:1;const o=Math.max(this.scale-n,r/100);this.scaleInCenter(o,t,e),this.transform(),this.emitEvent("scale")}enlarge(t,e,i){let{scaleRatio:n,maxZoomRatio:r}=this.mindMap.opt;n/=i?5:1;let o=0;o=-1===r?this.scale+n:Math.min(this.scale+n,r/100),this.scaleInCenter(o,t,e),this.transform(),this.emitEvent("scale")}scaleInCenter(t,e,i){void 0!==e&&void 0!==i||(e=this.mindMap.width/2,i=this.mindMap.height/2);const n=1-t/this.scale,r=(e-this.x)*n,o=(i-this.y)*n;this.x+=r,this.y+=o,this.scale=t}setScale(t,e,i){void 0!==e&&void 0!==i?this.scaleInCenter(t,e,i):this.scale=t,this.transform(),this.emitEvent("scale")}fit(t=()=>{},e=!1,i){i=void 0===i?this.mindMap.opt.fitPadding:i;const n=this.mindMap.draw,r=n.transform(),o=t()||n.rbox(),s=o.width/r.scaleX,a=o.height/r.scaleY,l=s/a;let{width:h,height:d}=this.mindMap.elRect;h-=2*i,d-=2*i;let c=0,u="";if(s<=h&&a<=d&&!e)c=1,u=1;else{let t=0,e=0;l>h/d?(t=h,e=h/l,u=2):(e=d,t=d*l,u=3),c=t/s}this.setScale(c);const f=t()||n.rbox();f.x-=this.mindMap.elRect.left,f.y-=this.mindMap.elRect.top;let p=0,m=0;1===u?(p=-f.x+i+(h-f.width)/2,m=-f.y+i+(d-f.height)/2):2===u?(p=-f.x+i,m=-f.y+i+(d-f.height)/2):3===u&&(p=-f.x+i+(h-f.width)/2,m=-f.y+i),this.translateXY(p,m)}checkNeedMindMapInCanvas(){if(this.mindMap.demonstrate&&this.mindMap.demonstrate.isInDemonstrate)return!1;const{isLimitMindMapInCanvasWhenHasScrollbar:t,isLimitMindMapInCanvas:e}=this.mindMap.opt;return this.mindMap.scrollbar?t:e}limitMindMapInCanvas(){if(!this.checkNeedMindMapInCanvas())return;let{scale:t,left:e,top:i,right:n,bottom:r}=this.getPositionLimit();const o=(this.mindMap.width-this.mindMap.initWidth)/2*t,s=(this.mindMap.height-this.mindMap.initHeight)/2*t,a=this.scale/t;e*=a,n*=a,i*=a,r*=a;const l=this.mindMap.width/2,h=this.mindMap.height/2,d=this.scale-1;e-=d*l-o,n-=d*l-o,i-=d*h-s,r-=d*h-s,this.x>e&&(this.x=e),this.x<n&&(this.x=n),this.y>i&&(this.y=i),this.y<r&&(this.y=r)}getPositionLimit(){const{scaleX:t,scaleY:e}=this.mindMap.draw.transform(),i=this.mindMap.draw.rbox(),n=this.mindMap.renderer.root.group.rbox(),r=this.mindMap.renderer.layout.getRootCenterOffset(n.width,n.height);return{scale:t,left:n.x-i.x-r.x*t,right:n.x-i.x2-r.x*t,top:n.y-i.y-r.y*e,bottom:n.y-i.y2-r.y*e}}emitEvent(t){switch(t){case"scale":this.mindMap.emit("scale",this.scale);case"translate":this.mindMap.emit("translate",this.x,this.y)}}};var y=i(30228),b=i.n(y);class x extends(b()){constructor(t={}){super(),this.opt=t,this.mindMap=t.mindMap,this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1,this.mousedownPos={x:0,y:0},this.mousemovePos={x:0,y:0},this.mousemoveOffset={x:0,y:0},this.bindFn(),this.bind()}bindFn(){this.onBodyMousedown=this.onBodyMousedown.bind(this),this.onBodyClick=this.onBodyClick.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onNodeMouseup=this.onNodeMouseup.bind(this),this.onMousewheel=this.onMousewheel.bind(this),this.onContextmenu=this.onContextmenu.bind(this),this.onSvgMousedown=this.onSvgMousedown.bind(this),this.onKeyup=this.onKeyup.bind(this),this.onMouseenter=this.onMouseenter.bind(this),this.onMouseleave=this.onMouseleave.bind(this)}bind(){document.body.addEventListener("mousedown",this.onBodyMousedown),document.body.addEventListener("click",this.onBodyClick),this.mindMap.svg.on("click",this.onDrawClick),this.mindMap.el.addEventListener("mousedown",this.onMousedown),this.mindMap.svg.on("mousedown",this.onSvgMousedown),window.addEventListener("mousemove",this.onMousemove),window.addEventListener("mouseup",this.onMouseup),this.on("node_mouseup",this.onNodeMouseup),this.mindMap.el.addEventListener("wheel",this.onMousewheel),this.mindMap.svg.on("contextmenu",this.onContextmenu),this.mindMap.svg.on("mouseenter",this.onMouseenter),this.mindMap.svg.on("mouseleave",this.onMouseleave),window.addEventListener("keyup",this.onKeyup)}unbind(){document.body.removeEventListener("mousedown",this.onBodyMousedown),document.body.removeEventListener("click",this.onBodyClick),this.mindMap.svg.off("click",this.onDrawClick),this.mindMap.el.removeEventListener("mousedown",this.onMousedown),window.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("mouseup",this.onMouseup),this.off("node_mouseup",this.onNodeMouseup),this.mindMap.el.removeEventListener("wheel",this.onMousewheel),this.mindMap.svg.off("contextmenu",this.onContextmenu),this.mindMap.svg.off("mouseenter",this.onMouseenter),this.mindMap.svg.off("mouseleave",this.onMouseleave),window.removeEventListener("keyup",this.onKeyup)}onDrawClick(t){this.emit("draw_click",t)}onBodyMousedown(t){this.emit("body_mousedown",t)}onBodyClick(t){this.emit("body_click",t)}onSvgMousedown(t){this.emit("svg_mousedown",t)}onMousedown(t){1===t.which?this.isLeftMousedown=!0:3===t.which?this.isRightMousedown=!0:2===t.which&&(this.isMiddleMousedown=!0),this.mousedownPos.x=t.clientX,this.mousedownPos.y=t.clientY,this.emit("mousedown",t,this)}onMousemove(t){let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;this.mousemovePos.x=t.clientX,this.mousemovePos.y=t.clientY,this.mousemoveOffset.x=t.clientX-this.mousedownPos.x,this.mousemoveOffset.y=t.clientY-this.mousedownPos.y,this.emit("mousemove",t,this),(this.isMiddleMousedown||(e?this.isRightMousedown:this.isLeftMousedown))&&(t.preventDefault(),this.emit("drag",t,this))}onMouseup(t){this.onNodeMouseup(),this.emit("mouseup",t,this)}onNodeMouseup(){this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1}onMousewheel(t){t.stopPropagation(),t.preventDefault();const e=[];t.deltaY<0&&e.push(a.DIR.UP),t.deltaY>0&&e.push(a.DIR.DOWN),t.deltaX<0&&e.push(a.DIR.LEFT),t.deltaX>0&&e.push(a.DIR.RIGHT);let i=!1;const{customCheckIsTouchPad:n}=this.mindMap.opt;i="function"==typeof n?n(t):Math.abs(t.deltaY)<=10,this.emit("mousewheel",t,e,this,i)}onContextmenu(t){t.preventDefault(),t.ctrlKey||this.emit("contextmenu",t)}onKeyup(t){this.emit("keyup",t)}onMouseenter(t){this.emit("svg_mouseenter",t)}onMouseleave(t){this.emit("svg_mouseleave",t)}}const w=x;var k=i(14744),E=i.n(k);const N={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let T;const _=new Uint8Array(16);function C(){if(!T&&(T="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!T))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return T(_)}const S=[];for(let t=0;t<256;++t)S.push((t+256).toString(16).slice(1));function M(t,e=0){return S[t[e+0]]+S[t[e+1]]+S[t[e+2]]+S[t[e+3]]+"-"+S[t[e+4]]+S[t[e+5]]+"-"+S[t[e+6]]+S[t[e+7]]+"-"+S[t[e+8]]+S[t[e+9]]+"-"+S[t[e+10]]+S[t[e+11]]+S[t[e+12]]+S[t[e+13]]+S[t[e+14]]+S[t[e+15]]}const A=function(t,e,i){if(N.randomUUID&&!e&&!t)return N.randomUUID();const n=(t=t||{}).random||(t.rng||C)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=n[t];return e}return M(n)};function z(t){this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(t)}z.prototype.init_genrand=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++)t=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&t)>>>16)<<16)+1812433253*(65535&t)+this.mti,this.mt[this.mti]>>>=0},z.prototype.genrand_int32=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_genrand(5489),i=0;i<this.N-this.M;i++)t=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^t>>>1^e[1&t];for(;i<this.N-1;i++)t=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^t>>>1^e[1&t];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[1&t],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,(t^=t>>>18)>>>0};const L={},O=[];function F(t,e){if(Array.isArray(t))for(const i of t)F(i,e);else if("object"!=typeof t)R(Object.getOwnPropertyNames(e)),L[t]=Object.assign(L[t]||{},e);else for(const e in t)F(e,t[e])}function D(t){return L[t]||{}}function R(t){O.push(...t)}function I(t,e){let i;const n=t.length,r=[];for(i=0;i<n;i++)r.push(e(t[i]));return r}function q(t,e){let i;const n=t.length,r=[];for(i=0;i<n;i++)e(t[i])&&r.push(t[i]);return r}function B(t){return t%360*Math.PI/180}function P(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function U(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function j(t){return t.charAt(0).toUpperCase()+t.slice(1)}function H(t,e,i,n){return null!=e&&null!=i||(n=n||t.bbox(),null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)),{width:e,height:i}}function W(t,e){const i=t.origin;let n=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=i&&([n,r]=Array.isArray(i)?i:"object"==typeof i?[i.x,i.y]:[i,i]);const o="string"==typeof n,s="string"==typeof r;if(o||s){const{height:t,width:i,x:a,y:l}=e.bbox();o&&(n=n.includes("left")?a:n.includes("right")?a+i:a+i/2),s&&(r=r.includes("top")?l:r.includes("bottom")?l+t:l+t/2)}return[n,r]}const V="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml",G="http://www.w3.org/2000/xmlns/",X="http://www.w3.org/1999/xlink",Y="http://svgjs.dev/svgjs";const Z={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Q{}const J={},$="___SYMBOL___ROOT___";function tt(t,e=V){return Z.document.createElementNS(e,t)}function et(t,e=!1){if(t instanceof Q)return t;if("object"==typeof t)return rt(t);if(null==t)return new J[$];if("string"==typeof t&&"<"!==t.charAt(0))return rt(Z.document.querySelector(t));const i=e?Z.document.createElement("div"):tt("svg");return i.innerHTML=t,t=rt(i.firstChild),i.removeChild(i.firstChild),t}function it(t,e){return e&&e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node?e:tt(t)}function nt(t){if(!t)return null;if(t.instance instanceof Q)return t.instance;if("#document-fragment"===t.nodeName)return new J.Fragment(t);let e=j(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":J[e]||(e="Dom"),new J[e](t)}let rt=nt;function ot(t,e=t.name,i=!1){return J[e]=t,i&&(J[$]=t),R(Object.getOwnPropertyNames(t.prototype)),t}let st=1e3;function at(t){return"Svgjs"+j(t)+st++}function lt(t){for(let e=t.children.length-1;e>=0;e--)lt(t.children[e]);return t.id?(t.id=at(t.nodeName),t):t}function ht(t,e){let i,n;for(n=(t=Array.isArray(t)?t:[t]).length-1;n>=0;n--)for(i in e)t[n].prototype[i]=e[i]}function dt(t){return function(...e){const i=e[e.length-1];return!i||i.constructor!==Object||i instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(i)}}F("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=et(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=et(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=et(t)).before(this),this},insertAfter:function(t){return(t=et(t)).after(this),this}});const ct=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,ut=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ft=/rgb\((\d+),(\d+),(\d+)\)/,pt=/(#[a-z_][a-z0-9\-_]*)/i,mt=/\)\s*,?\s*/,gt=/\s/g,vt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,yt=/^rgb\(/,bt=/^(\s+)?$/,xt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,wt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,kt=/[\s,]+/,Et=/[MLHVCSQTAZ]/i;function Nt(t){const e=Math.round(t),i=Math.max(0,Math.min(255,e)).toString(16);return 1===i.length?"0"+i:i}function Tt(t,e){for(let i=e.length;i--;)if(null==t[e[i]])return!1;return!0}function _t(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}F("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(kt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),F("Dom",{css:function(t,e){const i={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);i[e[0]]=e[1]}),i;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=P(e);i[e]=this.node.style[t]}return i}if("string"==typeof t)return this.node.style[P(t)];if("object"==typeof t)for(const e in t)this.node.style[P(e)]=null==t[e]||bt.test(t[e])?"":t[e]}return 2===arguments.length&&(this.node.style[P(t)]=null==e||bt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),F("Dom",{data:function(t,e,i){if(null==t)return this.data(I(q(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const i of t)e[i]=this.data(i);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===i||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),F("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class Ct{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Ct||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e,i){const{random:n,round:r,sin:o,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,i=360*n();return new Ct(t,e,i,"lch")}if("sine"===t){const t=r(80*o(2*s*(e=e??n())/.5+.01)+150),i=r(50*o(2*s*e/.5+4.6)+200),a=r(100*o(2*s*e/.5+2.3)+150);return new Ct(t,i,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,i=360*n();return new Ct(t,e,i,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,i=360*n();return new Ct(t,e,i,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),i=255*n();return new Ct(t,e,i)}if("lab"===t){const t=100*n(),e=256*n()-128,i=256*n()-128;return new Ct(t,e,i,"lab")}if("grey"===t){const t=255*n();return new Ct(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(vt.test(t)||yt.test(t))}cmyk(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(t=>t/255),s=Math.min(1-n,1-r,1-o);if(1===s)return new Ct(0,0,0,1,"cmyk");return new Ct((1-n-s)/(1-s),(1-r-s)/(1-s),(1-o-s)/(1-s),s,"cmyk")}hsl(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(t=>t/255),s=Math.max(n,r,o),a=Math.min(n,r,o),l=(s+a)/2,h=s===a,d=s-a;return new Ct(360*(h?0:s===n?((r-o)/d+(r<o?6:0))/6:s===r?((o-n)/d+2)/6:s===o?((n-r)/d+4)/6:0),100*(h?0:l>.5?d/(2-s-a):d/(s+a)),100*l,"hsl")}init(t=0,e=0,i=0,n=0,r="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)r="string"==typeof n?n:r,n="string"==typeof n?0:n,Object.assign(this,{_a:t,_b:e,_c:i,_d:n,space:r});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const i=function(t,e){const i=Tt(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Tt(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Tt(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Tt(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Tt(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Tt(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return i.space=e||i.space,i}(t,e);Object.assign(this,i)}else if("string"==typeof t)if(yt.test(t)){const e=t.replace(gt,""),[i,n,r]=ft.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:i,_b:n,_c:r,_d:0,space:"rgb"})}else{if(!vt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,i,n,r]=ut.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:i,_b:n,_c:r,_d:0,space:"rgb"})}}const{_a:o,_b:s,_c:a,_d:l}=this,h="rgb"===this.space?{r:o,g:s,b:a}:"xyz"===this.space?{x:o,y:s,z:a}:"hsl"===this.space?{h:o,s,l:a}:"lab"===this.space?{l:o,a:s,b:a}:"lch"===this.space?{l:o,c:s,h:a}:"cmyk"===this.space?{c:o,m:s,y:a,k:l}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:i}=this.xyz();return new Ct(116*e-16,500*(t-e),200*(e-i),"lab")}lch(){const{l:t,a:e,b:i}=this.lab(),n=Math.sqrt(e**2+i**2);let r=180*Math.atan2(i,e)/Math.PI;r<0&&(r*=-1,r=360-r);return new Ct(t,n,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:i}=this;if("lab"===this.space||"lch"===this.space){let{l:n,a:r,b:o}=this;if("lch"===this.space){const{c:t,h:e}=this,i=Math.PI/180;r=t*Math.cos(i*e),o=t*Math.sin(i*e)}const s=(n+16)/116,a=r/500+s,l=s-o/200,h=16/116,d=.008856,c=7.787;t=.95047*(a**3>d?a**3:(a-h)/c),e=1*(s**3>d?s**3:(s-h)/c),i=1.08883*(l**3>d?l**3:(l-h)/c)}const n=3.2406*t+-1.5372*e+-.4986*i,r=-.9689*t+1.8758*e+.0415*i,o=.0557*t+-.204*e+1.057*i,s=Math.pow,a=.0031308,l=n>a?1.055*s(n,1/2.4)-.055:12.92*n,h=r>a?1.055*s(r,1/2.4)-.055:12.92*r,d=o>a?1.055*s(o,1/2.4)-.055:12.92*o;return new Ct(255*l,255*h,255*d)}if("hsl"===this.space){let{h:t,s:e,l:i}=this;if(t/=360,e/=100,i/=100,0===e){i*=255;return new Ct(i,i,i)}const n=i<.5?i*(1+e):i+e-i*e,r=2*i-n,o=255*_t(r,n,t+1/3),s=255*_t(r,n,t),a=255*_t(r,n,t-1/3);return new Ct(o,s,a)}if("cmyk"===this.space){const{c:t,m:e,y:i,k:n}=this,r=255*(1-Math.min(1,t*(1-n)+n)),o=255*(1-Math.min(1,e*(1-n)+n)),s=255*(1-Math.min(1,i*(1-n)+n));return new Ct(r,o,s)}return this;var t}toArray(){const{_a:t,_b:e,_c:i,_d:n,space:r}=this;return[t,e,i,n,r]}toHex(){const[t,e,i]=this._clamped().map(Nt);return`#${t}${e}${i}`}toRgb(){const[t,e,i]=this._clamped();return`rgb(${t},${e},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(t=>t/255),s=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,l=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,h=(.4124*s+.3576*a+.1805*l)/.95047,d=(.2126*s+.7152*a+.0722*l)/1,c=(.0193*s+.1192*a+.9505*l)/1.08883,u=h>.008856?Math.pow(h,1/3):7.787*h+16/116,f=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new Ct(u,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:i}=this.rgb(),{max:n,min:r,round:o}=Math;return[t,e,i].map(t=>n(0,r(o(t),255)))}}class St{constructor(...t){this.init(...t)}clone(){return new St(this)}init(t,e){const i=0,n=0,r=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=r.x??i,this.y=r.y??n,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){At.isMatrixLike(t)||(t=new At(t));const{x:e,y:i}=this;return this.x=t.a*e+t.c*i+t.e,this.y=t.b*e+t.d*i+t.f,this}}function Mt(t,e,i){return Math.abs(e-t)<(i||1e-6)}class At{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,i=t.flip&&(e||"x"===t.flip)?-1:1,n=t.flip&&(e||"y"===t.flip)?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,o=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,s=t.scale&&t.scale.length?t.scale[0]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,a=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n,l=t.shear||0,h=t.rotate||t.theta||0,d=new St(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=d.x,u=d.y,f=new St(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new St(t.translate||t.tx||t.translateX,t.ty||t.translateY),v=g.x,y=g.y,b=new St(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:s,scaleY:a,skewX:r,skewY:o,shear:l,theta:h,rx:b.x,ry:b.y,tx:v,ty:y,ox:c,oy:u,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,i){const n=t.a*e.a+t.c*e.b,r=t.b*e.a+t.d*e.b,o=t.a*e.c+t.c*e.d,s=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,l=t.f+t.b*e.e+t.d*e.f;return i.a=n,i.b=r,i.c=o,i.d=s,i.e=a,i.f=l,i}around(t,e,i){return this.clone().aroundO(t,e,i)}aroundO(t,e,i){const n=t||0,r=e||0;return this.translateO(-n,-r).lmultiplyO(i).translateO(n,r)}clone(){return new At(this)}decompose(t=0,e=0){const i=this.a,n=this.b,r=this.c,o=this.d,s=this.e,a=this.f,l=i*o-n*r,h=l>0?1:-1,d=h*Math.sqrt(i*i+n*n),c=Math.atan2(h*n,h*i),u=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(i*r+n*o)/l,g=r*d/(m*i-n)||o*d/(m*n+i);return{scaleX:d,scaleY:g,shear:m,rotate:u,translateX:s-t+t*f*d+e*(m*f*d-p*g),translateY:a-e+t*p*d+e*(m*p*d+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new At(t);return Mt(this.a,e.a)&&Mt(this.b,e.b)&&Mt(this.c,e.c)&&Mt(this.d,e.d)&&Mt(this.e,e.e)&&Mt(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=At.fromArray([1,0,0,1,0,0]);return t=t instanceof Jt?t.matrixify():"string"==typeof t?At.fromArray(t.split(kt).map(parseFloat)):Array.isArray(t)?At.fromArray(t):"object"==typeof t&&At.isMatrixLike(t)?t:"object"==typeof t?(new At).transform(t):6===arguments.length?At.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,o=this.f,s=t*n-e*i;if(!s)throw new Error("Cannot invert "+this);const a=n/s,l=-e/s,h=-i/s,d=t/s,c=-(a*r+h*o),u=-(l*r+d*o);return this.a=a,this.b=l,this.c=h,this.d=d,this.e=c,this.f=u,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof At?t:new At(t);return At.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof At?t:new At(t);return At.matrixMultiply(this,e,this)}rotate(t,e,i){return this.clone().rotateO(t,e,i)}rotateO(t,e=0,i=0){t=B(t);const n=Math.cos(t),r=Math.sin(t),{a:o,b:s,c:a,d:l,e:h,f:d}=this;return this.a=o*n-s*r,this.b=s*n+o*r,this.c=a*n-l*r,this.d=l*n+a*r,this.e=h*n-d*r+i*r-e*n+e,this.f=d*n+h*r-e*r-i*n+i,this}scale(t,e,i,n){return this.clone().scaleO(...arguments)}scaleO(t,e=t,i=0,n=0){3===arguments.length&&(n=i,i=e,e=t);const{a:r,b:o,c:s,d:a,e:l,f:h}=this;return this.a=r*t,this.b=o*e,this.c=s*t,this.d=a*e,this.e=l*t-i*t+i,this.f=h*e-n*e+n,this}shear(t,e,i){return this.clone().shearO(t,e,i)}shearO(t,e=0,i=0){const{a:n,b:r,c:o,d:s,e:a,f:l}=this;return this.a=n+r*t,this.c=o+s*t,this.e=a+l*t-i*t,this}skew(t,e,i,n){return this.clone().skewO(...arguments)}skewO(t,e=t,i=0,n=0){3===arguments.length&&(n=i,i=e,e=t),t=B(t),e=B(e);const r=Math.tan(t),o=Math.tan(e),{a:s,b:a,c:l,d:h,e:d,f:c}=this;return this.a=s+a*r,this.b=a+s*o,this.c=l+h*r,this.d=h+l*o,this.e=d+c*r-n*r,this.f=c+d*o-i*o,this}skewX(t,e,i){return this.skew(t,0,e,i)}skewY(t,e,i){return this.skew(0,t,e,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(At.isMatrixLike(t)){return new At(t).multiplyO(this)}const e=At.formatTransforms(t),{x:i,y:n}=new St(e.ox,e.oy).transform(this),r=(new At).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-i,-n).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(i,n);if(isFinite(e.px)||isFinite(e.py)){const t=new St(i,n).transform(r),o=isFinite(e.px)?e.px-t.x:0,s=isFinite(e.py)?e.py-t.y:0;r.translateO(o,s)}return r.translateO(e.tx,e.ty),r}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function zt(){if(!zt.nodes){const t=et().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;zt.nodes={svg:t,path:e}}if(!zt.nodes.svg.node.parentNode){const t=Z.document.body||Z.document.documentElement;zt.nodes.svg.addTo(t)}return zt.nodes}function Lt(t){return!(t.width||t.height||t.x||t.y)}ot(At,"Matrix");class Ot{constructor(...t){this.init(...t)}addOffset(){return this.x+=Z.window.pageXOffset,this.y+=Z.window.pageYOffset,new Ot(this)}init(t){return t="string"==typeof t?t.split(kt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Lt(this)}merge(t){const e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.x+this.width,t.x+t.width)-e,r=Math.max(this.y+this.height,t.y+t.height)-i;return new Ot(e,i,n,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof At||(t=new At(t));let e=1/0,i=-1/0,n=1/0,r=-1/0;return[new St(this.x,this.y),new St(this.x2,this.y),new St(this.x,this.y2),new St(this.x2,this.y2)].forEach(function(o){o=o.transform(t),e=Math.min(e,o.x),i=Math.max(i,o.x),n=Math.min(n,o.y),r=Math.max(r,o.y)}),new Ot(e,n,i-e,r-n)}}function Ft(t,e,i){let n;try{if(n=e(t.node),Lt(n)&&!function(t){return t===Z.document||(Z.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Z.document}).call(Z.document.documentElement,t)}(t.node))throw new Error("Element not in the dom")}catch(e){n=i(t)}return n}F({viewbox:{viewbox(t,e,i,n){return null==t?new Ot(this.attr("viewBox")):this.attr("viewBox",new Ot(t,e,i,n))},zoom(t,e){let{width:i,height:n}=this.attr(["width","height"]);if((i||n)&&"string"!=typeof i&&"string"!=typeof n||(i=this.node.clientWidth,n=this.node.clientHeight),!i||!n)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),o=i/r.width,s=n/r.height,a=Math.min(o,s);if(null==t)return a;let l=a/t;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),e=e||new St(i/2/o+r.x,n/2/s+r.y);const h=new Ot(r).transform(new At({scale:l,origin:e}));return this.viewbox(h)}}}),ot(Ot,"Box");class Dt extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}ht([Dt],{each(t,...e){return"function"==typeof t?this.map((e,i,n)=>t.call(e,e,i,n)):this.map(i=>i[t](...e))},toArray(){return Array.prototype.concat.apply([],this)}});const Rt=["toArray","constructor","each"];function It(t,e){return new Dt(I((e||Z.document).querySelectorAll(t),function(t){return nt(t)}))}Dt.extend=function(t){t=t.reduce((t,e)=>(Rt.includes(e)||"_"===e[0]||(t[e]=function(...t){return this.each(e,...t)}),t),{}),ht([Dt],t)};let qt=0;const Bt={};function Pt(t){let e=t.getEventHolder();return e===Z.window&&(e=Bt),e.events||(e.events={}),e.events}function Ut(t){return t.getEventTarget()}function jt(t,e,i,n,r){const o=i.bind(n||t),s=et(t),a=Pt(s),l=Ut(s);e=Array.isArray(e)?e:e.split(kt),i._svgjsListenerId||(i._svgjsListenerId=++qt),e.forEach(function(t){const e=t.split(".")[0],n=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][n]=a[e][n]||{},a[e][n][i._svgjsListenerId]=o,l.addEventListener(e,o,r||!1)})}function Ht(t,e,i,n){const r=et(t),o=Pt(r),s=Ut(r);("function"!=typeof i||(i=i._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(kt)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let l,h;if(i)o[e]&&o[e][a||"*"]&&(s.removeEventListener(e,o[e][a||"*"][i],n||!1),delete o[e][a||"*"][i]);else if(e&&a){if(o[e]&&o[e][a]){for(h in o[e][a])Ht(s,[e,a].join("."),h);delete o[e][a]}}else if(a)for(t in o)for(l in o[t])a===l&&Ht(s,[t,a].join("."));else if(e){if(o[e]){for(l in o[e])Ht(s,[e,l].join("."));delete o[e]}}else{for(t in o)Ht(s,t);!function(t){let e=t.getEventHolder();e===Z.window&&(e=Bt),e.events&&(e.events={})}(r)}})}class Wt extends Q{addEventListener(){}dispatch(t,e,i){return function(t,e,i,n){const r=Ut(t);return e instanceof Z.window.Event||(e=new Z.window.CustomEvent(e,{detail:i,cancelable:!0,...n})),r.dispatchEvent(e),e}(this,t,e,i)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const i=e[t.type];for(const e in i)for(const n in i[e])i[e][n](t);return!t.defaultPrevented}fire(t,e,i){return this.dispatch(t,e,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,i){return Ht(this,t,e,i),this}on(t,e,i,n){return jt(this,t,e,i,n),this}removeEventListener(){}}function Vt(){}ot(Wt,"EventTarget");const Kt={duration:400,ease:">",delay:0},Gt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Xt extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(kt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Yt{constructor(...t){this.init(...t)}convert(t){return new Yt(this.value,t)}divide(t){return t=new Yt(t),new Yt(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(ct))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Yt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Yt(t),new Yt(this-t,this.unit||t.unit)}plus(t){return t=new Yt(t),new Yt(this+t,this.unit||t.unit)}times(t){return t=new Yt(t),new Yt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Zt=[];class Qt extends Wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=et(t)).removeNamespace&&this.node instanceof Z.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return et(t).put(this,e)}children(){return new Dt(I(this.node.children,function(t){return nt(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let i=this.node.cloneNode(t);return e&&(i=lt(i)),new this.constructor(i)}each(t,e){const i=this.children();let n,r;for(n=0,r=i.length;n<r;n++)t.apply(i[n],[n,i]),e&&i[n].each(t,e);return this}element(t,e){return this.put(new Qt(tt(t),e))}first(){return nt(this.node.firstChild)}get(t){return nt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,K)}id(t){return void 0!==t||this.node.id||(this.node.id=at(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return nt(this.node.lastChild)}matches(t){const e=this.node,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return i&&i.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=nt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=nt(e.node.parentNode));return e}put(t,e){return t=et(t),this.add(t,e),t}putIn(t,e){return et(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=et(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const i=10**t,n=this.attr(e);for(const t in n)"number"==typeof n[t]&&(n[t]=Math.round(n[t]*i)/i);return this.attr(n),this}svg(t,e){return this.xml(t,e,V)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const i=e.index(this);return e.put(t,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){e=e??!0,this.writeDataToDom();let i=this;if(null!=t){if(i=nt(i.node.cloneNode(!0)),e){const e=t(i);if(i=e||i,!1===e)return""}i.each(function(){const e=t(this),i=e||this;!1===e?this.remove():e&&this!==i&&this.replace(i)},!0)}return e?i.node.outerHTML:i.node.innerHTML}e=e??!1;const n=tt("wrapper",i),r=Z.document.createDocumentFragment();n.innerHTML=t;for(let t=n.children.length;t--;)r.appendChild(n.firstElementChild);const o=this.parent();return e?this.replace(r)&&o:this.add(r)}}ht(Qt,{attr:function(t,e,i){if(null==t){t={},e=this.node.attributes;for(const i of e)t[i.nodeName]=xt.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Gt[t]:xt.test(e)?parseFloat(e):e;"number"==typeof(e=Zt.reduce((e,i)=>i(t,e,this),e))?e=new Yt(e):Ct.isColor(e)?e=new Ct(e):e.constructor===Array&&(e=new Xt(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return It(t,this.node)},findOne:function(t){return nt(this.node.querySelector(t))}}),ot(Qt,"Dom");class Jt extends Qt{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Yt(t).plus(this.x()))}dy(t=0){return this.y(new Yt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=et(t));const i=new Dt;let n=this;for(;(n=n.parent())&&n.node!==Z.document&&"#document-fragment"!==n.nodeName&&(i.push(n),e||n.node!==t.node)&&(!e||!n.matches(t));)if(n.node===this.root().node)return null;return i}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(pt);return e?et(e[1]):null}root(){const t=this.parent(J[$]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const i=H(this,t,e);return this.width(new Yt(i.width)).height(new Yt(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}ht(Jt,{bbox:function(){const t=Ft(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(zt().svg).show(),i=e.node.getBBox();return e.remove(),i}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}});return new Ot(t)},rbox:function(t){const e=Ft(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),i=new Ot(e);return t?i.transform(t.screenCTM().inverseO()):i.addOffset()},inside:function(t,e){const i=this.bbox();return t>i.x&&e>i.y&&t<i.x+i.width&&e<i.y+i.height},point:function(t,e){return new St(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new At(this.node.getCTM())},screenCTM:function(){if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new At(e)}return new At(this.node.getScreenCTM())}}),ot(Jt,"Element");const $t={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach(function(t){const e={};let i;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof Ct||Ct.isRgb(e)||e instanceof Jt)this.attr(t,e);else for(i=$t[t].length-1;i>=0;i--)null!=e[$t[t][i]]&&this.attr($t.prefix(t,$t[t][i]),e[$t[t][i]]);return this},F(["Element","Runner"],e)}),F(["Element","Runner"],{matrix:function(t,e,i,n,r,o){return null==t?new At(this):this.attr("transform",new At(t,e,i,n,r,o))},rotate:function(t,e,i){return this.transform({rotate:t,ox:e,oy:i},!0)},skew:function(t,e,i,n){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:i},!0):this.transform({skew:[t,e],ox:i,oy:n},!0)},shear:function(t,e,i){return this.transform({shear:t,ox:e,oy:i},!0)},scale:function(t,e,i,n){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:i},!0):this.transform({scale:[t,e],ox:i,oy:n},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),F("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Yt(t)):this.rx(t).ry(e)}}),F("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new St(this.node.getPointAtLength(t))}}),F(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}});const te=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{});F("Element",te),F("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const t=(this.attr("transform")||"").split(mt).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(kt).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(At.fromArray(e[1])):t[e[0]].apply(t,e[1])},new At);return t},toParent:function(t,e){if(this===t)return this;const i=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(n.multiply(i)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new At(this).decompose();return null==t?e:e[t]}At.isMatrixLike(t)||(t={...t,origin:W(t,this)});const i=new At(!0===e?this:e||!1).transform(t);return this.attr("transform",i)}});class ee extends Jt{flatten(t=this,e){return this.each(function(){if(this instanceof ee)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each(function(i,n){return n[n.length-i-1].toParent(t,e)}),this.remove()}}ot(ee,"Container");class ie extends ee{constructor(t,e=t){super(it("defs",t),e)}flatten(){return this}ungroup(){return this}}ot(ie,"Defs");class ne extends Jt{}function re(t){return this.attr("rx",t)}function oe(t){return this.attr("ry",t)}function se(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function ae(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function le(t){return this.attr("cx",t)}function he(t){return this.attr("cy",t)}function de(t){return null==t?2*this.rx():this.rx(new Yt(t).divide(2))}function ce(t){return null==t?2*this.ry():this.ry(new Yt(t).divide(2))}ot(ne,"Shape");var ue={__proto__:null,rx:re,ry:oe,x:se,y:ae,cx:le,cy:he,width:de,height:ce};class fe extends ne{constructor(t,e=t){super(it("ellipse",t),e)}size(t,e){const i=H(this,t,e);return this.rx(new Yt(i.width).divide(2)).ry(new Yt(i.height).divide(2))}}ht(fe,ue),F("Container",{ellipse:dt(function(t=0,e=t){return this.put(new fe).size(t,e).move(0,0)})}),ot(fe,"Ellipse");class pe extends Qt{constructor(t=Z.document.createDocumentFragment()){super(t)}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){const t=new Qt(tt("wrapper",i));return t.add(this.node.cloneNode(!0)),t.xml(!1,i)}return super.xml(t,!1,i)}}function me(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Yt(t),fy:new Yt(e)}):this.attr({x1:new Yt(t),y1:new Yt(e)})}function ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Yt(t),cy:new Yt(e)}):this.attr({x2:new Yt(t),y2:new Yt(e)})}ot(pe,"Fragment");var ve,ye={__proto__:null,from:me,to:ge};class be extends ee{constructor(t,e){super(it(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,i){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,i)}bbox(){return new Ot}targets(){return It("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ht(be,ye),F({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:dt(function(t,e){return this.put(new be(t)).update(e)})}}),ot(be,"Gradient");class xe extends ee{constructor(t,e=t){super(it("pattern",t),e)}attr(t,e,i){return"transform"===t&&(t="patternTransform"),super.attr(t,e,i)}bbox(){return new Ot}targets(){return It("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}F({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:dt(function(t,e,i){return this.put(new xe).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),ot(xe,"Pattern");class we extends ne{constructor(t,e=t){super(it("image",t),e)}load(t,e){if(!t)return this;const i=new Z.window.Image;return jt(i,"load",function(t){const n=this.parent(xe);0===this.width()&&0===this.height()&&this.size(i.width,i.height),n instanceof xe&&0===n.width()&&0===n.height()&&n.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),jt(i,"load error",function(){Ht(i)}),this.attr("href",i.src=t,X)}}ve=function(t,e,i){return"fill"!==t&&"stroke"!==t||wt.test(e)&&(e=i.root().defs().image(e)),e instanceof we&&(e=i.root().defs().pattern(0,0,t=>{t.add(e)})),e},Zt.push(ve),F({Container:{image:dt(function(t,e){return this.put(new we).size(0,0).load(t,e)})}}),ot(we,"Image");class ke extends Xt{bbox(){let t=-1/0,e=-1/0,i=1/0,n=1/0;return this.forEach(function(r){t=Math.max(r[0],t),e=Math.max(r[1],e),i=Math.min(r[0],i),n=Math.min(r[1],n)}),new Ot(i,n,t-i,e-n)}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+t,this[i][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(kt).map(parseFloat)).length%2!=0&&t.pop();for(let i=0,n=t.length;i<n;i+=2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const n=this.bbox();for(i=this.length-1;i>=0;i--)n.width&&(this[i][0]=(this[i][0]-n.x)*t/n.width+n.x),n.height&&(this[i][1]=(this[i][1]-n.y)*e/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,i=this.length;e<i;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){At.isMatrixLike(t)||(t=new At(t));for(let e=this.length;e--;){const[i,n]=this[e];this[e][0]=t.a*i+t.c*n+t.e,this[e][1]=t.b*i+t.d*n+t.f}return this}}var Ee={__proto__:null,MorphArray:ke,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}};class Ne extends ne{constructor(t,e=t){super(it("line",t),e)}array(){return new ke([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,i,n){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:n}:new ke(t).toLine(),this.attr(t))}size(t,e){const i=H(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}}ht(Ne,Ee),F({Container:{line:dt(function(...t){return Ne.prototype.plot.apply(this.put(new Ne),null!=t[0]?t:[0,0,0,0])})}}),ot(Ne,"Line");class Te extends ee{constructor(t,e=t){super(it("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function _e(t,e){return function(i){return null==i?this[t]:(this[t]=i,e&&e.call(this),this)}}F({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:dt(function(t,e,i){return this.put(new Te).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(i)})},marker:{marker(t,e,i,n){let r=["marker"];return"all"!==t&&r.push(t),r=r.join("-"),t=arguments[1]instanceof Te?arguments[1]:this.defs().marker(e,i,n),this.attr(r,t)}}}),ot(Te,"Marker");const Ce={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,i,n){return function(r){return r<0?t>0?e/t*r:i>0?n/i*r:0:r>1?i<1?(1-n)/(1-i)*r+(n-i)/(1-i):t<1?(1-e)/(1-t)*r+(e-t)/(1-t):1:3*r*(1-r)**2*e+3*r**2*(1-r)*n+r**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let i=t;return"none"===e?--i:"both"===e&&++i,(n,r=!1)=>{let o=Math.floor(n*t);const s=n*o%1==0;return"start"!==e&&"both"!==e||++o,r&&s&&--o,n>=0&&o<0&&(o=0),n<=1&&o>i&&(o=i),o/i}}};class Se{done(){return!1}}class Me extends Se{constructor(t=Kt.ease){super(),this.ease=Ce[t]||t}step(t,e,i){return"number"!=typeof t?i<1?t:e:t+(e-t)*this.ease(i)}}class Ae extends Se{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,i,n){return this.stepper(t,e,i,n)}}function ze(){const t=(this._duration||500)/1e3,e=this._overshoot||0,i=Math.PI,n=Math.log(e/100+1e-10),r=-n/Math.sqrt(i*i+n*n),o=3.9/(r*t);this.d=2*r*o,this.k=o*o}ht(class extends Ae{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,i,n){if("string"==typeof t)return t;if(n.done=i===1/0,i===1/0)return e;if(0===i)return t;i>100&&(i=16),i/=1e3;const r=n.velocity||0,o=-this.d*r-this.k*(t-e),s=t+r*i+o*i*i/2;return n.velocity=r+o*i,n.done=Math.abs(e-s)+Math.abs(r)<.002,n.done?e:s}},{duration:_e("_duration",ze),overshoot:_e("_overshoot",ze)});ht(class extends Ae{constructor(t=.1,e=.01,i=0,n=1e3){super(),this.p(t).i(e).d(i).windup(n)}step(t,e,i,n){if("string"==typeof t)return t;if(n.done=i===1/0,i===1/0)return e;if(0===i)return t;const r=e-t;let o=(n.integral||0)+r*i;const s=(r-(n.error||0))/i,a=this._windup;return!1!==a&&(o=Math.max(-a,Math.min(o,a))),n.error=r,n.integral=o,n.done=Math.abs(r)<.001,n.done?e:t+(this.P*r+this.I*o+this.D*s)}},{windup:_e("_windup"),p:_e("P"),i:_e("I"),d:_e("D")});const Le={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Oe={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},Fe="mlhvqtcsaz".split("");for(let t=0,e=Fe.length;t<e;++t)Oe[Fe[t]]=function(t){return function(e,i,n){if("H"===t)e[0]=e[0]+i.x;else if("V"===t)e[0]=e[0]+i.y;else if("A"===t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(let t=0,n=e.length;t<n;++t)e[t]=e[t]+(t%2?i.y:i.x);return Oe[t](e,i,n)}}(Fe[t].toUpperCase());function De(t){return t.segment.length&&t.segment.length-1===Le[t.segment[0].toUpperCase()]}function Re(t,e){t.inNumber&&Ie(t,!1);const i=Et.test(e);if(i)t.segment=[e];else{const e=t.lastCommand,i=e.toLowerCase(),n=e===i;t.segment=["m"===i?n?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],i}function Ie(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,De(t)&&qe(t)}function qe(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Oe[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function Be(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),i=t.segment.length;return e&&(4===i||5===i)}function Pe(t){return"E"===t.lastToken.toUpperCase()}class Ue extends Xt{bbox(){return zt().path.setAttribute("d",this.toString()),new Ot(zt.nodes.path.getBBox())}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let i,n=this.length-1;n>=0;n--)i=this[n][0],"M"===i||"L"===i||"T"===i?(this[n][1]+=t,this[n][2]+=e):"H"===i?this[n][1]+=t:"V"===i?this[n][1]+=e:"C"===i||"S"===i||"Q"===i?(this[n][1]+=t,this[n][2]+=e,this[n][3]+=t,this[n][4]+=e,"C"===i&&(this[n][5]+=t,this[n][6]+=e)):"A"===i&&(this[n][6]+=t,this[n][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let i=0,n="";const r={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new St,p:new St};for(;r.lastToken=n,n=t.charAt(i++);)if(r.inSegment||!Re(r,n))if("."!==n)if(isNaN(parseInt(n)))if(" "!==n&&","!==n)if("-"!==n)if("E"!==n.toUpperCase()){if(Et.test(n)){if(r.inNumber)Ie(r,!1);else{if(!De(r))throw new Error("parser Error");qe(r)}--i}}else r.number+=n,r.hasExponent=!0;else{if(r.inNumber&&!Pe(r)){Ie(r,!1),--i;continue}r.number+=n,r.inNumber=!0}else r.inNumber&&Ie(r,!1);else{if("0"===r.number||Be(r)){r.inNumber=!0,r.number=n,Ie(r,!0);continue}r.inNumber=!0,r.number+=n}else{if(r.pointSeen||r.hasExponent){Ie(r,!1),--i;continue}r.inNumber=!0,r.pointSeen=!0,r.number+=n}return r.inNumber&&Ie(r,!1),r.inSegment&&De(r)&&qe(r),r.segments}(t)}size(t,e){const i=this.bbox();let n,r;for(i.width=0===i.width?1:i.width,i.height=0===i.height?1:i.height,n=this.length-1;n>=0;n--)r=this[n][0],"M"===r||"L"===r||"T"===r?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y):"H"===r?this[n][1]=(this[n][1]-i.x)*t/i.width+i.x:"V"===r?this[n][1]=(this[n][1]-i.y)*e/i.height+i.y:"C"===r||"S"===r||"Q"===r?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y,this[n][3]=(this[n][3]-i.x)*t/i.width+i.x,this[n][4]=(this[n][4]-i.y)*e/i.height+i.y,"C"===r&&(this[n][5]=(this[n][5]-i.x)*t/i.width+i.x,this[n][6]=(this[n][6]-i.y)*e/i.height+i.y)):"A"===r&&(this[n][1]=this[n][1]*t/i.width,this[n][2]=this[n][2]*e/i.height,this[n][6]=(this[n][6]-i.x)*t/i.width+i.x,this[n][7]=(this[n][7]-i.y)*e/i.height+i.y);return this}toString(){return function(t){let e="";for(let i=0,n=t.length;i<n;i++)e+=t[i][0],null!=t[i][1]&&(e+=t[i][1],null!=t[i][2]&&(e+=" ",e+=t[i][2],null!=t[i][3]&&(e+=" ",e+=t[i][3],e+=" ",e+=t[i][4],null!=t[i][5]&&(e+=" ",e+=t[i][5],e+=" ",e+=t[i][6],null!=t[i][7]&&(e+=" ",e+=t[i][7])))));return e+" "}(this)}}const je=t=>{const e=typeof t;return"number"===e?Yt:"string"===e?Ct.isColor(t)?Ct:kt.test(t)?Et.test(t)?Ue:Xt:ct.test(t)?Yt:We:Xe.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Xt:"object"===e?Ge:We};class He{constructor(t){this._stepper=t||new Me("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){const t=this._context.map(this._stepper.done).reduce(function(t,e){return t&&e},!0);return t}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(je(t));let e=new this._type(t);return this._type===Ct&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Ge&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class We{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Ve{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Ve.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ve.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Ge{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,n=e.length;i<n;++i){if(e[i+1]===t[i+1]){if(e[i+1]===Ct&&t[i+7]!==e[i+7]){const e=t[i+7],n=new Ct(this.values.splice(i+3,5))[e]().toArray();this.values.splice(i+3,0,...n)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const n=(new t[i+1]).toArray(),r=e[i+2]+3;e.splice(i,r,t[i],t[i+1],t[i+2],...n),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const i in t){const n=je(t[i]),r=new n(t[i]).toArray();e.push([i,n,r.length,...r])}return e.sort(Ke),this.values=e.reduce((t,e)=>t.concat(e),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const i=e.shift(),n=e.shift(),r=e.shift(),o=e.splice(0,r);t[i]=new n(o)}return t}}const Xe=[We,Ve,Ge];class Ye extends ne{constructor(t,e=t){super(it("path",t),e)}array(){return this._array||(this._array=new Ue(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new Ue(t))}size(t,e){const i=H(this,t,e);return this.attr("d",this.array().size(i.width,i.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}Ye.prototype.MorphArray=Ue,F({Container:{path:dt(function(t){return this.put(new Ye).plot(t||new Ue)})}}),ot(Ye,"Path");var Ze={__proto__:null,array:function(){return this._array||(this._array=new ke(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new ke(t))},size:function(t,e){const i=H(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}};class Qe extends ne{constructor(t,e=t){super(it("polygon",t),e)}}F({Container:{polygon:dt(function(t){return this.put(new Qe).plot(t||new ke)})}}),ht(Qe,Ee),ht(Qe,Ze),ot(Qe,"Polygon");class Je extends ne{constructor(t,e=t){super(it("polyline",t),e)}}F({Container:{polyline:dt(function(t){return this.put(new Je).plot(t||new ke)})}}),ht(Je,Ee),ht(Je,Ze),ot(Je,"Polyline");class $e extends ne{constructor(t,e=t){super(it("rect",t),e)}}ht($e,{rx:re,ry:oe}),F({Container:{rect:dt(function(t,e){return this.put(new $e).size(t,e)})}}),ot($e,"Rect");class ti{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const ei={nextDraw:null,frames:new ti,timeouts:new ti,immediates:new ti,timer:()=>Z.window.performance||Z.window.Date,transforms:[],frame(t){const e=ei.frames.push({run:t});return null===ei.nextDraw&&(ei.nextDraw=Z.window.requestAnimationFrame(ei._draw)),e},timeout(t,e){e=e||0;const i=ei.timer().now()+e,n=ei.timeouts.push({run:t,time:i});return null===ei.nextDraw&&(ei.nextDraw=Z.window.requestAnimationFrame(ei._draw)),n},immediate(t){const e=ei.immediates.push(t);return null===ei.nextDraw&&(ei.nextDraw=Z.window.requestAnimationFrame(ei._draw)),e},cancelFrame(t){null!=t&&ei.frames.remove(t)},clearTimeout(t){null!=t&&ei.timeouts.remove(t)},cancelImmediate(t){null!=t&&ei.immediates.remove(t)},_draw(t){let e=null;const i=ei.timeouts.last();for(;(e=ei.timeouts.shift())&&(t>=e.time?e.run():ei.timeouts.push(e),e!==i););let n=null;const r=ei.frames.last();for(;n!==r&&(n=ei.frames.shift());)n.run(t);let o=null;for(;o=ei.immediates.shift();)o();ei.nextDraw=ei.timeouts.first()||ei.frames.first()?Z.window.requestAnimationFrame(ei._draw):null}},ii=function(t){const e=t.start,i=t.runner.duration();return{start:e,duration:i,end:e+i,runner:t.runner}},ni=function(){const t=Z.window;return(t.performance||t.Date).now()};class ri extends Wt{constructor(t=ni){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const i=Math.abs(e);return this.speed(t?-i:i)}schedule(t,e,i){if(null==t)return this._runners.map(ii);let n=0;const r=this.getEndTime();if(e=e||0,null==i||"last"===i||"after"===i)n=r;else if("absolute"===i||"start"===i)n=e,e=0;else if("now"===i)n=this._time;else if("relative"===i){const i=this.getRunnerInfoById(t.id);i&&(n=i.start+e,e=0)}else{if("with-last"!==i)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();n=t?t.start:this._time}}t.unschedule(),t.timeline(this);const o=t.persist(),s={persist:null===o?this._persist:o,start:n+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(s),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return ei.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=ei.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let i=e-this._lastSourceTime;t&&(i=0);const n=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],i=e.runner;this._time-e.start<=0&&i.reset()}let r=!1;for(let t=0,e=this._runners.length;t<e;t++){const i=this._runners[t],o=i.runner;let s=n;const a=this._time-i.start;if(a<=0){r=!0;continue}if(a<s&&(s=a),!o.active())continue;if(o.step(s).done){if(!0!==i.persist){o.duration()-o.time()+this._time+i.persist<this._time&&(o.unschedule(),--t,--e)}}else r=!0}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}}F({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new ri,this._timeline):(this._timeline=t,this)}}});class oi extends Wt{constructor(t){super(),this.id=oi.id++,t="function"==typeof(t=t??Kt.duration)?new Ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Ae,this._stepper=this._isDeclarative?t:new Me,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new At,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,i){let n=1,r=!1,o=0;return e=e||Kt.delay,i=i||"last","object"!=typeof(t=t||Kt.duration)||t instanceof Se||(e=t.delay||e,i=t.when||i,r=t.swing||r,n=t.times||n,o=t.wait||o,t=t.duration||Kt.duration),{duration:t,delay:e,swing:r,times:n,wait:o,when:i}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,e){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,i){const n=oi.sanitise(t,e,i),r=new oi(n.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(n).schedule(n.delay,n.when)}clearTransform(){return this.transforms=new At,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Me(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,i){return"object"==typeof t&&(e=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=i||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),i=(this._time-t*e)/this._duration;return Math.min(t+i,this._times)}const i=t%1,n=e*Math.floor(t)+this._duration*i;return this.time(n)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,i=this._duration,n=this._wait,r=this._times,o=this._swing,s=this._reverse;let a;if(null==t){const t=function(t){const e=o*Math.floor(t%(2*(n+i))/(n+i)),r=e&&!s||!e&&s,a=Math.pow(-1,r)*(t%(n+i))/i+r;return Math.max(Math.min(a,1),0)},l=r*(n+i)-n;return a=e<=0?Math.round(t(1e-5)):e<l?t(e):Math.round(t(l-1e-5)),a}const l=Math.floor(this.loops()),h=o&&l%2==0;return a=l+(h&&!s||s&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,i,n){this._queue.push({initialiser:t||Vt,runner:e||Vt,retarget:i,isTransform:n,initialised:!1,finished:!1});return this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=t??!this._reverse,this}schedule(t,e,i){if(t instanceof ri||(i=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,i),this}step(t){if(!this.enabled)return this;t=t??16,this._time+=t;const e=this.position(),i=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const n=this.duration(),r=this._lastTime<=0&&this._time>0,o=this._lastTime<n&&this._time>=n;this._lastTime=this._time,r&&this.fire("start",this);const s=this._isDeclarative;this.done=!s&&!o&&this._time>=n,this._reseted=!1;let a=!1;return(i||s)&&(this._initialise(i),this.transforms=new At,a=this._run(s?t:e),this.fire("step",this)),this.done=this.done||a&&s,o&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,i=this._queue.length;e<i;++e){const i=this._queue[e],n=this._isDeclarative||!i.initialised&&t;t=!i.finished,n&&t&&(i.initialiser.call(this),i.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let i=0,n=this._queue.length;i<n;++i){const n=this._queue[i],r=n.runner.call(this,t);n.finished=n.finished||!0===r,e=e&&n.finished}return e}_tryRetarget(t,e,i){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,i):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const n=this.timeline();return n&&n.play(),!0}return!1}}oi.id=0;class si{constructor(t=new At,e=-1,i=!0){this.transforms=t,this.id=e,this.done=i}clearTransformsFromQueue(){}}ht([oi,si],{mergeWith(t){return new si(t.transforms.lmultiply(this.transforms),t.id)}});const ai=(t,e)=>t.lmultiplyO(e),li=t=>t.transforms;function hi(){const t=this._transformationRunners.runners.map(li).reduce(ai,new At);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class di{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new si).forEach(t=>t.clearTransformsFromQueue()),this}edit(t,e){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const i=this.runners[e];if(t&&i.done&&t.done&&(!i._timeline||!i._timeline._runnerIds.includes(i.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(i.id);const n=i.mergeWith(t);this.edit(t.id,n),t=n,--e}else t=i}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}F({Element:{animate(t,e,i){const n=oi.sanitise(t,e,i),r=this.timeline();return new oi(n.duration).loop(n).element(this).timeline(r.play()).schedule(n.delay,n.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(li).reduce(ai,new At)},_addRunner(t){this._transformationRunners.add(t),ei.cancelImmediate(this._frameId),this._frameId=ei.immediate(hi.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new di).add(new si(new At(this))))}}});ht(oi,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,i){if("string"==typeof e)return this.styleAttr(t,{[e]:i});let n=e;if(this._tryRetarget(t,n))return this;let r=new He(this._stepper).to(n),o=Object.keys(n);return this.queue(function(){r=r.from(this.element()[t](o))},function(e){return this.element()[t](r.at(e).valueOf()),r.done()},function(e){const i=Object.keys(e),s=(a=o,i.filter(t=>!a.includes(t)));var a;if(s.length){const e=this.element()[t](s),i=new Ge(r.from()).valueOf();Object.assign(i,e),r.from(i)}const l=new Ge(r.to()).valueOf();Object.assign(l,e),r.to(l),o=i,n=e}),this._rememberMorpher(t,r),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let i=new He(this._stepper).to(new Yt(t));return this.queue(function(){i=i.from(this.element().zoom())},function(t){return this.element().zoom(i.at(t),e),i.done()},function(t,n){e=n,i.to(t)}),this._rememberMorpher("zoom",i),this},transform(t,e,i){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const n=At.isMatrixLike(t);i=null!=t.affine?t.affine:null!=i?i:!n;const r=new He(this._stepper).type(i?Ve:At);let o,s,a,l,h;return this.queue(function(){s=s||this.element(),o=o||W(t,s),h=new At(e?void 0:s),s._addRunner(this),e||s._clearTransformRunnersBefore(this)},function(d){e||this.clearTransform();const{x:c,y:u}=new St(o).transform(s._currentTransform(this));let f=new At({...t,origin:[c,u]}),p=this._isDeclarative&&a?a:h;if(i){f=f.decompose(c,u),p=p.decompose(c,u);const t=f.rotate,e=p.rotate,i=[t-360,t,t+360],n=i.map(t=>Math.abs(t-e)),r=Math.min(...n),o=n.indexOf(r);f.rotate=i[o]}e&&(n||(f.rotate=t.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),r.from(p),r.to(f);const m=r.at(d);return l=m.rotate,a=new At(m),this.addTransform(a),s._addRunner(this),r.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(o=W(e,s)),t={...e,origin:o}},!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(t,e){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Yt(e),this._tryRetarget(t,e))return this;const i=new He(this._stepper).to(e);let n=null;return this.queue(function(){n=this.element()[t](),i.from(n),i.to(n+e)},function(e){return this.element()[t](i.at(e)),i.done()},function(t){i.to(n+new Yt(t))}),this._rememberMorpher(t,i),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const i=new He(this._stepper).to(e);return this.queue(function(){i.from(this.element()[t]())},function(e){return this.element()[t](i.at(e)),i.done()}),this._rememberMorpher(t,i),this},_queueNumber(t,e){return this._queueObject(t,new Yt(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let i;return t&&e||(i=this._element.bbox()),t||(t=i.width/i.height*e),e||(e=i.height/i.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,i,n){if(4===arguments.length)return this.plot([t,e,i,n]);if(this._tryRetarget("plot",t))return this;const r=new He(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){r.from(this._element.array())},function(t){return this._element.plot(r.at(t)),r.done()}),this._rememberMorpher("plot",r),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,i,n){return this._queueObject("viewbox",new Ot(t,e,i,n))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),ht(oi,{rx:re,ry:oe,from:me,to:ge}),ot(oi,"Runner");class ci extends ee{constructor(t,e=t){super(it("svg",t),e),this.namespace()}defs(){return this.isRoot()?nt(this.node.querySelector("defs"))||this.put(new ie):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Z.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:V,version:"1.1"}).attr("xmlns:xlink",X,G).attr("xmlns:svgjs",Y,G):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,G).attr("xmlns:svgjs",null,G)}root(){return this.isRoot()?this:super.root()}}F({Container:{nested:dt(function(){return this.put(new ci)})}}),ot(ci,"Svg",!0);class ui extends ee{constructor(t,e=t){super(it("symbol",t),e)}}F({Container:{symbol:dt(function(){return this.put(new ui)})}}),ot(ui,"Symbol");var fi={__proto__:null,plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(Z.document.createTextNode(t)),this},length:function(){return this.node.getComputedTextLength()},x:function(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)},y:function(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)},move:function(t,e,i=this.bbox()){return this.x(t,i).y(e,i)},cx:function(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)},cy:function(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)},center:function(t,e,i=this.bbox()){return this.cx(t,i).cy(e,i)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},amove:function(t,e){return this.ax(t).ay(e)},build:function(t){return this._build=!!t,this}};class pi extends ne{constructor(t,e=t){super(it("text",t),e),this.dom.leading=new Yt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Yt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const i=this.dom.leading;this.each(function(n){const r=Z.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=i*new Yt(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=o:(this.attr("dy",n?o+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Yt(t.leading||1.3),this}text(t){if(void 0===t){const e=this.node.childNodes;let i=0;t="";for(let n=0,r=e.length;n<r;++n)"textPath"!==e[n].nodeName?(n!==i&&3!==e[n].nodeType&&!0===nt(e[n]).dom.newLined&&(t+="\n"),t+=e[n].textContent):0===n&&(i=1);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,i=(t=(t+"").split("\n")).length;e<i;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}ht(pi,fi),F({Container:{text:dt(function(t=""){return this.put(new pi).text(t)}),plain:dt(function(t=""){return this.put(new pi).plain(t)})}}),ot(pi,"Text");class mi extends ne{constructor(t,e=t){super(it("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof pi))return this;const e=t.index(this),i=Z.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=t.dom.leading*new Yt(i);return this.dy(e?n:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}ht(mi,fi),F({Tspan:{tspan:dt(function(t=""){const e=new mi;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),ot(mi,"Tspan");class gi extends ne{constructor(t,e=t){super(it("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Yt(t).divide(2))}}ht(gi,{x:se,y:ae,cx:le,cy:he,width:de,height:ce}),F({Container:{circle:dt(function(t=0){return this.put(new gi).size(t).move(0,0)})}}),ot(gi,"Circle");class vi extends ee{constructor(t,e=t){super(it("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return It("svg [clip-path*="+this.id()+"]")}}F({Container:{clip:dt(function(){return this.defs().put(new vi)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof vi?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),ot(vi,"ClipPath");class yi extends Jt{constructor(t,e=t){super(it("foreignObject",t),e)}}F({Container:{foreignObject:dt(function(t,e){return this.put(new yi).size(t,e)})}}),ot(yi,"ForeignObject");var bi={__proto__:null,dmove:function(t,e){return this.children().forEach((i,n)=>{let r;try{r=i.bbox()}catch(t){return}const o=new At(i),s=o.translate(t,e).transform(o.inverse()),a=new St(r.x,r.y).transform(s);i.move(a.x,a.y)}),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)},move:function(t=0,e=0,i=this.bbox()){const n=t-i.x,r=e-i.y;return this.dmove(n,r)},size:function(t,e,i=this.bbox()){const n=H(this,t,e,i),r=n.width/i.width,o=n.height/i.height;return this.children().forEach((t,e)=>{const n=new St(i).transform(new At(t).inverse());t.scale(r,o,n.x,n.y)}),this},width:function(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)},x:function(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)},y:function(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}};class xi extends ee{constructor(t,e=t){super(it("g",t),e)}}ht(xi,bi),F({Container:{group:dt(function(){return this.put(new xi)})}}),ot(xi,"G");class wi extends ee{constructor(t,e=t){super(it("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,X)}}ht(wi,bi),F({Container:{link:dt(function(t){return this.put(new wi).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const i=e.index(t);return e.add(this,i),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new wi,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),ot(wi,"A");class ki extends ee{constructor(t,e=t){super(it("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return It("svg [mask*="+this.id()+"]")}}F({Container:{mask:dt(function(){return this.defs().put(new ki)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof ki?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),ot(ki,"Mask");class Ei extends Jt{constructor(t,e=t){super(it("stop",t),e)}update(t){return("number"==typeof t||t instanceof Yt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Yt(t.offset)),this}}F({Gradient:{stop:function(t,e,i){return this.put(new Ei).update(t,e,i)}}}),ot(Ei,"Stop");class Ni extends Jt{constructor(t,e=t){super(it("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,i={}){return this.rule("@font-face",{fontFamily:t,src:e,...i})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let i=t+"{";for(const t in e)i+=U(t)+":"+e[t]+";";return i+="}",i}(t,e))}}F("Dom",{style(t,e){return this.put(new Ni).rule(t,e)},fontface(t,e,i){return this.put(new Ni).font(t,e,i)}}),ot(Ni,"Style");class Ti extends pi{constructor(t,e=t){super(it("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let i=null;return e&&(i=e.plot(t)),null==t?i:this}track(){return this.reference("href")}}F({Container:{textPath:dt(function(t,e){return t instanceof pi||(t=this.text(t)),t.path(e)})},Text:{path:dt(function(t,e=!0){const i=new Ti;let n;if(t instanceof Ye||(t=this.defs().path(t)),i.attr("href","#"+t,X),e)for(;n=this.node.firstChild;)i.node.appendChild(n);return this.put(i)}),textPath(){return this.findOne("textPath")}},Path:{text:dt(function(t){return t instanceof pi||(t=(new pi).addTo(this.parent()).text(t)),t.path(this)}),targets(){return It("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Ti.prototype.MorphArray=Ue,ot(Ti,"TextPath");class _i extends ne{constructor(t,e=t){super(it("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,X)}}F({Container:{use:dt(function(t,e){return this.put(new _i).use(t,e)})}}),ot(_i,"Use");const Ci=et;ht([ci,ui,we,xe,Te],D("viewbox")),ht([Ne,Je,Qe,Ye],D("marker")),ht(pi,D("Text")),ht(Ye,D("Path")),ht(ie,D("Defs")),ht([pi,mi],D("Tspan")),ht([$e,fe,be,oi],D("radius")),ht(Wt,D("EventTarget")),ht(Qt,D("Dom")),ht(Jt,D("Element")),ht(ne,D("Shape")),ht([ee,pe],D("Container")),ht(be,D("Gradient")),ht(oi,D("Runner")),Dt.extend([...new Set(O)]),function(t=[]){Xe.push(...[].concat(t))}([Yt,Ct,Ot,At,Xt,ke,Ue,St]),ht(Xe,{to(t){return(new He).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,i,n,r){return this.fromArray(t.map(function(t,o){return n.step(t,e[o],i,r[o],r)}))}});const Si={paddingX:15,paddingY:5,imgMaxWidth:200,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineFlow:!1,lineFlowDuration:1,lineFlowForward:!0,lineStyle:"straight",rootLineKeepSameInCurve:!0,rootLineStartPositionKeepSameInCurve:!1,lineRadius:5,showLineMarker:!1,generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineDasharray:"6,4",associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"normal",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],hoverRectColor:"",hoverRectRadius:5,textAlign:"left",imgPlacement:"top",tagPlacement:"right"}},Mi=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","rootLineKeepSameInCurve","rootLineStartPositionKeepSameInCurve","showLineMarker","lineRadius","hoverRectColor","hoverRectRadius","lineFlow","lineFlowDuration","lineFlowForward","textAlign"],Ai=t=>{let e=Object.keys(t);for(let t=0;t<e.length;t++)if(!Mi.find(i=>i===e[t]))return!1;return!0},zi=["lineColor","lineDasharray","lineWidth","lineMarkerDir","lineFlow","lineFlowDuration","lineFlowForward"],Li=(t,e,i,n,r,o=0,s=0,a=[])=>{let l=!1;if(i&&(l=i(t,e,r,o,s,a)),!l&&t.children&&t.children.length>0){let e=o+1;t.children.forEach((r,o)=>{Li(r,t,i,n,!1,e,o,[...a,t])})}n&&n(t,e,r,o,s,a)},Oi=(t,e)=>{let i=[t],n=!1;for("stop"===e(t,null)&&(n=!0);i.length&&!n;){let t=i.shift();t.children&&t.children.length&&t.children.forEach(r=>{n||(i.push(r),"stop"===e(r,t)&&(n=!0))})}},Fi=(t,e,i,n)=>{let r=t/e,o=[];if(i&&n)if(t<=i&&e<=n)o=[t,e];else{o=r>i/n?[i,i/r]:[r*n,n]}else i?o=t<=i?[t,e]:[i,i/r]:n&&(o=e<=n?[t,e]:[r*n,n]);return o},Di=t=>{t=t.replace(/<br>/gim,"\n");let e=document.createElement("div");return e.innerHTML=t,t=e.textContent},Ri=t=>{try{return JSON.parse(JSON.stringify(t))}catch(t){return null}},Ii=(t,e,i=!1)=>{if(t.data=Ri(e.data),i){t.data.isActive=!1;Mn(t.data).forEach(t=>{t.isActive=!1})}return t.children=[],e.children&&e.children.length>0&&e.children.forEach((e,n)=>{t.children[n]=Ii({},e,i)}),Object.keys(e).forEach(i=>{["data","children"].includes(i)||/^_/.test(i)||(t[i]=e[i])}),t},qi=(t,e,i=!1,n=!0)=>{const r=e.nodeData?e.nodeData:e;return t.data=Ri(r.data),n?delete t.data.uid:t.data.uid||(t.data.uid=Xi()),i&&(t.data.isActive=!1),t.children=[],e.children&&e.children.length>0?e.children.forEach((e,r)=>{t.children[r]=qi({},e,i,n)}):e.nodeData&&e.nodeData.children&&e.nodeData.children.length>0&&e.nodeData.children.forEach((e,r)=>{t.children[r]=qi({},e,i,n)}),Object.keys(r).forEach(e=>{["data","children"].includes(e)||/^_/.test(e)||(t[e]=r[e])}),t},Bi=(t,e=!1)=>new Promise((i,n)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{try{let t=document.createElement("canvas");t.width=r.width,t.height=r.height,t.getContext("2d").drawImage(r,0,0,r.width,r.height),e?t.toBlob(t=>{i(t)}):i(t.toDataURL())}catch(t){n(t)}},r.onerror=t=>{n(t)},r.src=t}),Pi=(t,e=300,i)=>{let n=null;return(...r)=>{n||(n=setTimeout(()=>{t.call(i,...r),n=null},e))}},Ui=(t,e=()=>{})=>{let i=0,n=t.length;if(n<=0)return e();let r=()=>{i>=n?e():(t[i](),setTimeout(()=>{i++,r()},0))};r()},ji=t=>t*(Math.PI/180),Hi=t=>t.replace(/([a-z])([A-Z])/g,(...t)=>t[1]+"-"+t[2].toLowerCase());let Wi=null;const Vi=t=>(Wi||(Wi=document.createElement("div")),Wi.innerHTML=t,Wi.textContent),Ki=t=>new Promise((e,i)=>{let n=new FileReader;n.onload=t=>{e(t.target.result)},n.onerror=t=>{i(t)},n.readAsDataURL(t)});const Gi=t=>new Promise(e=>{let i=new Image;i.src=t,i.onload=()=>{e({width:i.width,height:i.height})},i.onerror=()=>{e({width:0,height:0})}}),Xi=()=>A(),Yi=t=>Object.prototype.toString.call(t).slice(8,-1),Zi=t=>null==t||""===t;let Qi=null;let Ji=null;const $i=t=>(t=String(t).replace(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(t)||/rgba\(255,255,255,[^)]+\)/.test(t)),tn=t=>(t=String(t).replace(/\s+/g,""),["","transparent"].includes(t)||/rgba\(\d+,\d+,\d+,0\)/.test(t)),en=t=>{let{lineColor:e,root:i,second:n,node:r}=t,o=[e,i.fillColor,i.color,n.fillColor,n.color,r.fillColor,r.color,i.borderColor,n.borderColor,r.borderColor];for(let t=0;t<o.length;t++){let e=o[t];if(!tn(e)&&!$i(e))return e}},nn=t=>{const e=t=>{t.childNodes.forEach(t=>{1===t.nodeType&&(t.classList.contains("ql-formula")?t.parentNode.removeChild(t):e(t))})};e(t)};let rn=null;const on=t=>{rn||(rn=document.createElement("div")),rn.innerHTML=t;const e=rn.childNodes;let i="";for(let t=0;t<e.length;t++){const n=e[t];1===n.nodeType?(nn(n),"p"===n.tagName.toLowerCase()?i+=n.textContent+"\n":i+=n.textContent):3===n.nodeType&&(i+=n.nodeValue)}return i.replace(/\n$/,"")};let sn=null;const an=t=>!/^_/.test(t)&&!c.includes(t),ln=t=>{let e=[];return t.forEach(i=>{t.find(t=>t.uid!==i.uid&&t.isAncestor(i))||e.push(i)}),e},hn=t=>{let e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),i.collapse(),e.removeAllRanges(),e.addRange(i)},dn=t=>{let e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e.removeAllRanges(),e.addRange(i)},cn=(t,e={})=>{(e={...e})&&e.richText&&e.resetRichText&&delete e.resetRichText;const i=t=>{t.forEach(t=>{t.data={...t.data,...e},t.children&&t.children.length>0&&i(t.children)})};return i(t),t},un=(t,e=!1,i=null,n=!1)=>{const r=t=>{t.forEach(t=>{if(t.data||(t.data={}),(e||Zi(t.data.uid))&&(t.data.uid=Xi()),n){Mn(t.data).forEach(t=>{(e||Zi(t.uid))&&(t.uid=Xi())})}i&&i(t),t.children&&t.children.length>0&&r(t.children)})};return r(t),t},fn=t=>t?Array.isArray(t)?t:[t]:[],pn=t=>t.parent?t.parent.nodeData.children.findIndex(e=>e.data.uid===t.uid):0,mn=(t,e)=>e.findIndex(e=>e.uid===t.uid),gn=t=>{let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);return"hsla("+new z(e).genrand_int32()%360+", 50%, 50%, 1)"},vn=t=>([["&","&"],["<","<"],[">",">"]].forEach(e=>{t=t.replace(new RegExp(e[0],"g"),e[1])}),t),yn=(t,e)=>{const i=Yi(t);if(i!==Yi(e))return!1;if("Object"===i){const i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(let r=0;r<i.length;r++){const o=i[r];if(!n.includes(o))return!1;if(!yn(t[o],e[o]))return!1}return!0}if("Array"===i){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const n=t[i],r=e[i];if(Yi(n)!==Yi(r))return!1;if(!yn(n,r))return!1}return!0}return t===e},bn=()=>navigator.clipboard&&"function"==typeof navigator.clipboard.read,xn=t=>{navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(JSON.stringify(t))},wn=t=>{if(!t||!t.parent)return;const e=pn(t);-1!==e&&t.parent.nodeData.children.splice(e,1)},kn=t=>({simpleMindMap:!0,data:t}),En=t=>{let e=null;if("string"==typeof t)try{const i=JSON.parse(t);"object"==typeof i&&i.simpleMindMap&&(e=i.data)}catch(t){}else"object"==typeof t&&t.simpleMindMap&&(e=t.data);const i=!!e;return{isSmm:i,data:i?e:String(t)}},Nn=(t,e)=>{t.preventDefault();const i=window.getSelection();if(!i.rangeCount)return;i.deleteFromDocument(),e=e||t.clipboardData.getData("text"),e=vn(e);const n=(e=Vi(e)).split(/\n/g),r=document.createDocumentFragment();n.forEach((t,e)=>{const i=document.createTextNode(t);if(r.appendChild(i),e<n.length-1){const t=document.createElement("br");r.appendChild(t)}}),i.getRangeAt(0).insertNode(r),i.collapseToEnd()},Tn=t=>{const e={},i=(t,n)=>{const r=t.data.uid;n&&n.children.push(r),e[r]={isRoot:!n,data:{...t.data},children:[]},t.children&&t.children.length>0&&t.children.forEach(t=>{i(t,e[r])})};return i(t,null),e},_n=(t,e=0,i=0,n=0,r=0,o=!1,s=!1)=>{let a=1/0,l=-1/0,h=1/0,d=-1/0;const c=(t,e)=>{if((!e||!o)&&t.group)try{const{x:e,y:i,width:n,height:r}=t.group.findOne(".smm-node-shape").rbox();e<a&&(a=e),e+n>l&&(l=e+n),i<h&&(h=i),i+r>d&&(d=i+r)}catch(t){}!s&&t._generalizationList.length>0&&t._generalizationList.forEach(t=>{c(t.generalizationNode)}),t.children&&t.children.forEach(t=>{c(t)})};return c(t,!0),a=a-e+n,h=h-i+r,l=l-e+n,d=d-i+r,{left:a,top:h,width:l-a,height:d-h}},Cn=document.documentElement.requestFullScreen?"fullscreenchange":document.documentElement.webkitRequestFullScreen?"webkitfullscreenchange":document.documentElement.mozRequestFullScreen?"mozfullscreenchange":document.documentElement.msRequestFullscreen?"msfullscreenchange":void 0,Sn=({el:t,width:e,height:i})=>{const n=new yi;return void 0!==e&&n.width(e),void 0!==i&&n.height(i),n.add(t),n},Mn=t=>{const e=t.generalization;return e?Array.isArray(e)?e:[e]:[]},An=t=>{t.setAttribute("xmlns","http://www.w3.org/1999/xhtml")},zn=t=>((t=[...t]).sort((t,e)=>t.sortIndex-e.sortIndex),t),Ln=(t,e)=>E()(t,e,{arrayMerge:(t,e)=>e}),On=t=>{const e={};return g.forEach(i=>{let n=t.style.merge(i);"fontSize"===i&&(n+="px"),e[i]=n}),e},Fn=["backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize"],Dn=["gradientStyle","startColor","endColor","startDir","endDir","fillColor","borderColor","borderWidth","borderDasharray"];class Rn{static setBackgroundStyle(t,e){if(!t)return;if(!Rn.cacheStyle){Rn.cacheStyle={};let e=window.getComputedStyle(t);Fn.forEach(t=>{Rn.cacheStyle[t]=e[t]})}let{backgroundColor:i,backgroundImage:n,backgroundRepeat:r,backgroundPosition:o,backgroundSize:s}=e;t.style.backgroundColor=i,n&&"none"!==n?(t.style.backgroundImage=`url(${n})`,t.style.backgroundRepeat=r,t.style.backgroundPosition=o,t.style.backgroundSize=s):t.style.backgroundImage="none"}static removeBackgroundStyle(t){Rn.cacheStyle&&(Fn.forEach(e=>{t.style[e]=Rn.cacheStyle[e]}),Rn.cacheStyle=null)}constructor(t){this.ctx=t,this._markerPath=null,this._marker=null,this._gradient=null}merge(t,e){let i=this.ctx.mindMap.themeConfig,n=null,r=!1;e?(r=!0,n=i):n=this.ctx.isGeneralization?i.generalization:0===this.ctx.layerIndex?i.root:1===this.ctx.layerIndex?i.second:i.node;let o="";return o=void 0!==this.getSelfStyle(t)?this.getSelfStyle(t):void 0!==n[t]?n[t]:i[t],r||this.addToEffectiveStyles({[t]:o}),o}getStyle(t,e){return this.merge(t,e)}getSelfStyle(t){return this.ctx.getData(t)}addToEffectiveStyles(t){this.ctx.mindMap.painter&&(this.ctx.effectiveStyles={...this.ctx.effectiveStyles,...t})}rect(t){this.shape(t),t.radius(this.merge("borderRadius"))}shape(t){const e={};Dn.forEach(t=>{e[t]=this.merge(t)}),e.gradientStyle?(this._gradient||(this._gradient=this.ctx.nodeDraw.gradient("linear")),this._gradient.update(t=>{t.stop(0,e.startColor),t.stop(1,e.endColor)}),this._gradient.from(...e.startDir).to(...e.endDir),t.fill(this._gradient)):t.fill({color:e.fillColor}),t.stroke({color:e.borderColor,width:e.borderWidth,dasharray:e.borderDasharray})}text(t){const e={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")};t.fill({color:e.color}).css({"font-family":e.fontFamily,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontStyle,"text-decoration":e.textDecoration})}domText(t,e=1){const i={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration"),textAlign:this.merge("textAlign")};t.style.color=i.color,t.style.textDecoration=i.textDecoration,t.style.fontFamily=i.fontFamily,t.style.fontSize=i.fontSize*e+"px",t.style.fontWeight=i.fontWeight||"normal",t.style.fontStyle=i.fontStyle,t.style.textAlign=i.textAlign}tagText(t,e){t.fill({color:"#fff"}).css({"font-size":e.fontSize+"px"})}tagRect(t,e){t.fill({color:e.fill}),e.radius&&t.radius(e.radius)}iconNode(t,e){t.attr({fill:e||this.merge("color")})}line(t,{width:e,color:i,dasharray:n}={},r,o){const{customHandleLine:s}=this.ctx.mindMap.opt;if("function"==typeof s&&s(this.ctx,t,{width:e,color:i,dasharray:n}),t.stroke({color:i,dasharray:n,width:e}).fill({color:"none"}),r){const e=this.merge("showLineMarker",!0),n=o.style;if(e){n._marker=n._marker||n.createMarker(),n._markerPath.stroke({color:i}).fill({color:i}),t.attr("marker-start",""),t.attr("marker-end","");const e=n.merge("lineMarkerDir");t.marker(e,n._marker)}else n._marker&&(t.attr("marker-start",""),t.attr("marker-end",""),n._marker.remove(),n._marker=null)}}createMarker(){return this.ctx.lineDraw.marker(20,20,t=>{t.ref(8,5),t.size(20,20),t.attr("markerUnits","userSpaceOnUse"),t.attr("orient","auto-start-reverse"),this._markerPath=t.path("M0,0 L2,5 L0,10 L10,5 Z")})}generalizationLine(t){t.stroke({width:this.merge("generalizationLineWidth",!0),color:this.merge("generalizationLineColor",!0)}).fill({color:"none"})}iconBtn(t,e,i){let{color:n,fill:r,fontSize:o,fontColor:s}=this.ctx.mindMap.opt.expandBtnStyle||{color:"#808080",fill:"#fff",fontSize:12,strokeColor:"#333333",fontColor:"#333333"};t.fill({color:n}),e.fill({color:n}),i.fill({color:r}),this.ctx.mindMap.opt.isShowExpandNum&&t.attr({"font-size":o+"px","font-color":s})}hasCustomStyle(){let t=!1;return Object.keys(this.ctx.getData()).forEach(e=>{an(e)&&(t=!0)}),t}getCustomStyle(){const t={};return Object.keys(this.ctx.getData()).forEach(e=>{an(e)&&(t[e]=this.ctx.getData(e))}),t}hoverNode(t){const e=this.merge("hoverRectColor")||this.ctx.mindMap.opt.hoverRectColor,i=this.merge("hoverRectRadius");t.radius(i).fill("none").stroke({color:e})}onRemove(){this._marker&&(this._marker.remove(),this._marker=null),this._markerPath&&(this._markerPath.remove(),this._markerPath=null),this._gradient&&(this._gradient.remove(),this._gradient=null)}}Rn.cacheStyle=null;const In=Rn;class qn{constructor(t){this.node=t,this.mindMap=t.mindMap}getShapePadding(t,e,i,n){const r=this.node.getShape(),o=t+2*i,s=e+2*n,l=Math.abs(o-s);switch(r){case a.SHAPE.ROUNDED_RECTANGLE:return{paddingX:e>t?(e-t)/2:0,paddingY:0};case a.SHAPE.DIAMOND:return{paddingX:t/2,paddingY:e/2};case a.SHAPE.PARALLELOGRAM:case a.SHAPE.OUTER_TRIANGULAR_RECTANGLE:case a.SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:i<=0?15:0,paddingY:0};case a.SHAPE.ELLIPSE:return{paddingX:i<=0?15:0,paddingY:n<=0?5:0};case a.SHAPE.CIRCLE:return{paddingX:s>o?l/2:0,paddingY:s<o?l/2:0}}const h=this.getShapeFromExtendList(r);return h&&h.getPadding({node:this.node,width:t,height:e,paddingX:i,paddingY:n})||{paddingX:0,paddingY:0}}getShapeFromExtendList(t){return this.mindMap.extendShapeList.find(e=>e.name===t)}createShape(){const t=this.node.getShape();let e=null;if(t===a.SHAPE.RECTANGLE?e=this.createRect():t===a.SHAPE.DIAMOND?e=this.createDiamond():t===a.SHAPE.PARALLELOGRAM?e=this.createParallelogram():t===a.SHAPE.ROUNDED_RECTANGLE?e=this.createRoundedRectangle():t===a.SHAPE.OCTAGONAL_RECTANGLE?e=this.createOctagonalRectangle():t===a.SHAPE.OUTER_TRIANGULAR_RECTANGLE?e=this.createOuterTriangularRectangle():t===a.SHAPE.INNER_TRIANGULAR_RECTANGLE?e=this.createInnerTriangularRectangle():t===a.SHAPE.ELLIPSE?e=this.createEllipse():t===a.SHAPE.CIRCLE&&(e=this.createCircle()),!e){const i=this.getShapeFromExtendList(t);i&&(e=i.createShape(this.node))}return e||this.createRect()}getNodeSize(){const t=this.node.getBorderWidth();let{width:e,height:i}=this.node;return e-=t,i-=t,{width:e,height:i}}createPath(t){const{customCreateNodePath:e}=this.mindMap.opt;return e?Ci(e(t)):(new Ye).plot(t)}createPolygon(t){const{customCreateNodePolygon:e}=this.mindMap.opt;return e?Ci(e(t)):(new Qe).plot(t)}createRect(){let{width:t,height:e}=this.getNodeSize(),i=this.node.style.merge("borderRadius");const n=`\n M${i},0\n L${t-i},0\n C${t-i},0 ${t},0 ${t},${i}\n L${t},${e-i}\n C${t},${e-i} ${t},${e} ${t-i},${e}\n L${i},${e}\n C${i},${e} 0,${e} 0,${e-i}\n L0,${i}\n C0,${i} 0,0 ${i},0\n Z\n `;return this.createPath(n)}createDiamond(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const r=[[i,0],[t,n],[i,e],[0,n]];return this.createPolygon(r)}createParallelogram(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e,0],[e-t,i],[0,i]];return this.createPolygon(n)}createRoundedRectangle(){let{width:t,height:e}=this.getNodeSize(),i=e/2;const n=`\n M${i},0\n L${t-i},0\n A${e/2},${e/2} 0 0,1 ${t-i},${e} \n L${i},${e}\n A${e/2},${e/2} 0 0,1 ${i},0\n `;return this.createPath(n)}createOctagonalRectangle(){let{width:t,height:e}=this.getNodeSize();const i=[[0,5],[5,0],[t-5,0],[t,5],[t,e-5],[t-5,e],[5,e],[0,e-5]];return this.createPolygon(i)}createOuterTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e-t,0],[e,i/2],[e-t,i],[t,i],[0,i/2]];return this.createPolygon(n)}createInnerTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[0,0],[e,0],[e-t/2,i/2],[e,i],[0,i],[t/2,i/2]];return this.createPolygon(n)}createEllipse(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const r=`\n M${i},0\n A${i},${n} 0 0,1 ${i},${e} \n M${i},${e} \n A${i},${n} 0 0,1 ${i},0 \n `;return this.createPath(r)}createCircle(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const r=`\n M${i},0\n A${i},${n} 0 0,1 ${i},${e} \n M${i},${e} \n A${i},${n} 0 0,1 ${i},0 \n `;return this.createPath(r)}}const Bn=[a.SHAPE.RECTANGLE,a.SHAPE.DIAMOND,a.SHAPE.PARALLELOGRAM,a.SHAPE.ROUNDED_RECTANGLE,a.SHAPE.OCTAGONAL_RECTANGLE,a.SHAPE.OUTER_TRIANGULAR_RECTANGLE,a.SHAPE.INNER_TRIANGULAR_RECTANGLE,a.SHAPE.ELLIPSE,a.SHAPE.CIRCLE];const Pn={formatGetGeneralization:function(){const t=this.getData("generalization");return Array.isArray(t)?t:t?[t]:[]},checkHasGeneralization:function(){return this.formatGetGeneralization().length>0},checkHasSelfGeneralization:function(){return!!this.formatGetGeneralization().find(t=>!t.range||t.range.length<=0)},getGeneralizationNodeIndex:function(t){return this._generalizationList.findIndex(e=>e.generalizationNode.uid===t.uid)},createGeneralizationNode:function(){if(this.isGeneralization||!this.checkHasGeneralization())return;let t=0,e=0;this.formatGetGeneralization().forEach((i,n)=>{let r=this._generalizationList[n];r||(r=this._generalizationList[n]={}),r.node=this,r.range=i.range,r.generalizationLine||(r.generalizationLine=this.lineDraw.path()),r.generalizationNode||(r.generalizationNode=new er({data:{inserting:i.inserting,data:i},uid:Xi(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),delete i.inserting,r.generalizationNode.generalizationBelongNode=this,r.generalizationNode.width>t&&(t=r.generalizationNode.width),r.generalizationNode.height>e&&(e=r.generalizationNode.height),i.isActive&&this.renderer.addNodeToActiveList(r.generalizationNode)}),this._generalizationNodeWidth=t,this._generalizationNodeHeight=e},updateGeneralization:function(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())},updateGeneralizationData:function(){const t=this.getChildrenLength(),e=this.formatGetGeneralization(),i=[];e.forEach(e=>{e.range?e.range.length>0&&e.range[0]<=t-1&&e.range[1]<=t-1&&i.push(e):i.push(e)}),i.length!==e.length&&this.setData({generalization:i})},renderGeneralization:function(t){if(this.isGeneralization)return;this.updateGeneralizationData();const e=this.formatGetGeneralization();e.length<=0||!1===this.getData("expand")?this.removeGeneralization():(e.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach(e=>{this.style.generalizationLine(e.generalizationLine),e.generalizationNode.render(()=>{},t)}))},removeGeneralization:function(){this.isGeneralization||(this._generalizationList.forEach(t=>{t.generalizationNode.style.onRemove(),t.generalizationLine&&(t.generalizationLine.remove(),t.generalizationLine=null),t.generalizationNode&&(this.renderer.removeNodeFromActiveList(t.generalizationNode),t.generalizationNode.remove(),t.generalizationNode=null)}),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())},hideGeneralization:function(){this.isGeneralization||this._generalizationList.forEach(t=>{t.generalizationLine&&t.generalizationLine.hide(),t.generalizationNode&&t.generalizationNode.hide()})},showGeneralization:function(){this.isGeneralization||this._generalizationList.forEach(t=>{t.generalizationLine&&t.generalizationLine.show(),t.generalizationNode&&t.generalizationNode.show()})},setGeneralizationOpacity:function(t){this._generalizationList.forEach(e=>{e.generalizationLine.opacity(t),e.generalizationNode.group.opacity(t)})},handleGeneralizationMouseenter:function(){const t=this.generalizationBelongNode,e=t.formatGetGeneralization()[t.getGeneralizationNodeIndex(this)],i=this.getStyle("hoverRectColor")||this.mindMap.opt.hoverRectColor,n=i?{stroke:i}:null;Array.isArray(e.range)&&e.range.length>0?this.mindMap.renderer.highlightNode(t,e.range,n):this.mindMap.renderer.highlightNode(t,null,n)},handleGeneralizationMouseleave:function(){this.mindMap.renderer.closeHighlightNode()}},Un={open:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z"></path></svg>',close:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z"></path><path d="M252.928 474.624h518.144v74.24h-518.144z"></path></svg>',remove:'<svg width="14px" height="14px" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path fill="#ffffff" d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z"></path><path fill="#ffffff" d="M252.928 474.624h518.144v74.24h-518.144z"></path></svg>',imgAdjust:'<svg width="12px" height="12px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M1008.128 614.4a25.6 25.6 0 0 0-27.648 5.632l-142.848 142.848L259.072 186.88 401.92 43.52A25.6 25.6 0 0 0 384 0h-358.4a25.6 25.6 0 0 0-25.6 25.6v358.4a25.6 25.6 0 0 0 43.52 17.92l143.36-142.848 578.048 578.048-142.848 142.848a25.6 25.6 0 0 0 17.92 43.52h358.4a25.6 25.6 0 0 0 25.6-25.6v-358.4a25.6 25.6 0 0 0-15.872-25.088z" /></svg>',quickCreateChild:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M514.048 62.464q93.184 0 175.616 35.328t143.872 96.768 96.768 143.872 35.328 175.616q0 94.208-35.328 176.128t-96.768 143.36-143.872 96.768-175.616 35.328q-94.208 0-176.64-35.328t-143.872-96.768-96.768-143.36-35.328-176.128q0-93.184 35.328-175.616t96.768-143.872 143.872-96.768 176.64-35.328zM772.096 576.512q26.624 0 45.056-18.944t18.432-45.568-18.432-45.056-45.056-18.432l-192.512 0 0-192.512q0-26.624-18.944-45.568t-45.568-18.944-45.056 18.944-18.432 45.568l0 192.512-192.512 0q-26.624 0-45.056 18.432t-18.432 45.056 18.432 45.568 45.056 18.944l192.512 0 0 191.488q0 26.624 18.432 45.568t45.056 18.944 45.568-18.944 18.944-45.568l0-191.488 192.512 0z"></path></svg>'};const jn={createExpandNodeContent:function(){if(this._openExpandNode)return;const{expandBtnSize:t,expandBtnIcon:e,isShowExpandNum:i}=this.mindMap.opt;let{close:n,open:r}=e||{};i?(this._openExpandNode=new pi,this._openExpandNode.addClass("smm-expand-btn-text"),this._openExpandNode.attr({"text-anchor":"middle","dominant-baseline":"middle",x:t/2,y:2})):(this._openExpandNode=Ci(r||Un.open).size(t,t),this._openExpandNode.x(0).y(-t/2)),this._closeExpandNode=Ci(n||Un.close).size(t,t),this._closeExpandNode.x(0).y(-t/2),this._fillExpandNode=(new gi).size(t),this._fillExpandNode.x(0).y(-t/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)},updateExpandBtnNode:function(){let t,{expand:e}=this.getData();if(e!==this._lastExpandBtnType&&(this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent(),!1===e?(t=this._openExpandNode,this._lastExpandBtnType=!1):(t=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn)){let{isShowExpandNum:i,expandBtnStyle:n,expandBtnNumHandler:r}=this.mindMap.opt;if(i)if(e)this._fillExpandNode.stroke("none");else{this._fillExpandNode.stroke({color:n.strokeColor});let e=this.sumNode(this.nodeData.children||[]);if("function"==typeof r){const t=r(e,this);Zi(t)||(e=t)}t.text(String(e))}this._expandBtn.add(this._fillExpandNode).add(t)}},updateExpandBtnPos:function(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)},renderExpandBtn:function(){this.getChildrenLength()<=0||this.isRoot||(this._expandBtn||(this._expandBtn=new xi,this._expandBtn.on("mouseover",t=>{t.stopPropagation(),this._expandBtn.css({cursor:"pointer"})}),this._expandBtn.on("mouseout",t=>{t.stopPropagation(),this._expandBtn.css({cursor:"auto"})}),this._expandBtn.on("click",t=>{t.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.getData("expand")),this.mindMap.emit("expand_btn_click",this)}),this._expandBtn.on("dblclick",t=>{t.stopPropagation()}),this._expandBtn.addClass("smm-expand-btn")),this.group.add(this._expandBtn),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())},removeExpandBtn:function(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)},showExpandBtn:function(){const{alwaysShowExpandBtn:t,notShowExpandBtn:e}=this.mindMap.opt;t||e||setTimeout(()=>{this.renderExpandBtn()},0)},hideExpandBtn:function(){const{alwaysShowExpandBtn:t,notShowExpandBtn:e}=this.mindMap.opt;if(t||this._isMouseenter||e)return;let{isActive:i,expand:n}=this.getData();!i&&n&&setTimeout(()=>{this.removeExpandBtn()},0)},sumNode:function(t=[]){return t.reduce((t,e)=>t+this.sumNode(e.children||[]),t.length)}};const Hn={setData:function(t={}){this.mindMap.execCommand("SET_NODE_DATA",this,t)},setText:function(t,e,i){this.mindMap.execCommand("SET_NODE_TEXT",this,t,e,i)},setImage:function(t){this.mindMap.execCommand("SET_NODE_IMAGE",this,t)},setIcon:function(t){this.mindMap.execCommand("SET_NODE_ICON",this,t)},setHyperlink:function(t,e){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,t,e)},setNote:function(t){this.mindMap.execCommand("SET_NODE_NOTE",this,t)},setAttachment:function(t,e){this.mindMap.execCommand("SET_NODE_ATTACHMENT",this,t,e)},setTag:function(t){this.mindMap.execCommand("SET_NODE_TAG",this,t)},setShape:function(t){this.mindMap.execCommand("SET_NODE_SHAPE",this,t)},setStyle:function(t,e){this.mindMap.execCommand("SET_NODE_STYLE",this,t,e)},setStyles:function(t){this.mindMap.execCommand("SET_NODE_STYLES",this,t)}},Wn=[{name:"优先级图标",type:"priority",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#E93B30"></path><path d="M580.309333 256h-75.52c-10.666667 29.824-30.165333 55.765333-58.709333 78.165333-28.416 22.314667-54.869333 37.418667-79.146667 45.397334v84.608a320 320 0 0 0 120.234667-70.698667v352.085333H580.266667V256z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M511.957333 1024C229.248 1024 0 794.752 0 512S229.248 0 511.957333 0C794.752 0 1024 229.248 1024 512s-229.248 512-512.042667 512z" fill="#FA8D2E"></path><path d="M667.946667 658.602667h-185.301334c4.864-8.533333 11.178667-17.066667 19.072-25.984 7.808-8.874667 26.453333-26.837333 55.936-53.888 29.525333-27.008 49.877333-47.786667 61.226667-62.165334 16.981333-21.717333 29.44-42.453333 37.290667-62.293333 7.808-19.84 11.776-40.746667 11.776-62.677333 0-38.570667-13.738667-70.741333-41.088-96.725334C599.466667 268.928 561.706667 256 513.834667 256c-43.690667 0-80.128 11.136-109.354667 33.578667-29.098667 22.4-46.506667 59.306667-52.010667 110.805333l93.184 9.301333c1.792-27.349333 8.405333-46.890667 19.754667-58.624 11.434667-11.776 26.837333-17.664 46.165333-17.664 19.541333 0 34.858667 5.589333 45.909334 16.768 11.136 11.264 16.682667 27.221333 16.682666 48.042667 0 18.858667-6.4 37.930667-19.242666 57.258667-9.472 14.037333-35.157333 40.533333-77.098667 79.872-52.096 48.554667-87.04 87.509333-104.704 116.821333A226.688 226.688 0 0 0 341.333333 745.429333h326.613334v-86.826666z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#2E66FA"></path><path d="M627.754667 731.733333c-29.354667 25.088-66.901333 37.632-112.725334 37.632-44.928 0-81.792-11.52-110.592-34.773333-33.066667-26.538667-49.877333-64.469333-50.304-114.133333h92.16c0.426667 21.76 7.552 38.314667 21.333334 49.664 12.288 10.88 28.117333 16.341333 47.402666 16.341333 20.309333 0 36.778667-6.101333 49.322667-18.432 12.544-12.330667 18.773333-29.568 18.773333-51.797333 0-21.290667-6.229333-38.186667-18.773333-50.773334-12.544-12.501333-29.866667-18.773333-52.138667-18.773333h-13.525333v-80.042667H512c42.112 0 63.274667-21.034667 63.274667-63.146666 0-20.309333-5.888-36.096-17.706667-47.445334a60.757333 60.757333 0 0 0-43.818667-17.066666c-17.493333 0-32 5.504-43.434666 16.298666-11.562667 10.88-17.792 25.728-18.773334 44.714667H359.68c0.981333-43.946667 16.042667-78.976 45.397333-104.96 29.354667-25.941333 65.706667-39.04 109.226667-39.04 44.928 0 81.792 13.525333 110.592 40.490667 28.8 26.922667 43.306667 61.610667 43.306667 104.149333 0 48.213333-19.413333 82.688-58.154667 103.552 43.52 23.125333 65.28 61.44 65.28 114.858667 0 48.128-15.957333 85.76-47.573333 112.682666z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M600.96 256v309.802667h60.117333v81.536h-60.16v98.218666h-90.154666v-98.218666H311.466667v-81.237334L522.666667 256h78.293333zM510.72 399.104l-112.042667 166.698667h112.042667V399.104z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M470.912 343.552h175.786667V256H400.256l-47.786667 253.952 75.434667 10.837333c21.205333-23.552 45.269333-35.413333 72.021333-35.413333 21.546667 0 38.997333 7.509333 52.437334 22.4 13.312 15.018667 20.053333 37.418667 20.053333 67.328 0 31.872-6.741333 55.765333-20.181333 71.552-13.397333 15.872-29.866667 23.765333-49.237334 23.765333-17.066667 0-32.085333-6.186667-45.013333-18.432-13.013333-12.373333-20.821333-29.013333-23.466667-50.133333L341.333333 611.498667c5.546667 40.874667 22.485333 73.429333 50.730667 97.621333 28.330667 24.32 64.938667 36.437333 109.866667 36.437333 56.149333 0 100.053333-21.546667 131.754666-64.554666a176.64 176.64 0 0 0 34.816-107.52c0-48.042667-14.378667-87.210667-43.221333-117.333334-28.8-30.208-63.957333-45.312-105.514667-45.312-21.674667 0-42.922667 5.248-63.829333 15.616l14.976-82.901333z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512 0c282.88 0 512 229.205333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M519.210667 256c36.992 0 67.626667 10.368 91.776 31.189333 24.192 20.821333 39.68 51.029333 46.293333 90.709334l-90.197333 9.984c-2.176-18.56-7.978667-32.298667-17.28-41.173334-9.258667-8.874667-21.418667-13.226667-36.224-13.226666-19.754667 0-36.437333 8.789333-50.048 26.453333-13.696 17.664-22.314667 54.613333-25.856 110.549333 23.296-27.52 52.138667-41.258667 86.656-41.258666 38.997333 0 72.362667 14.805333 100.181333 44.544 27.733333 29.696 41.685333 68.010667 41.685333 114.858666 0 49.877333-14.634667 89.856-43.818666 119.936-29.226667 30.208-66.730667 45.226667-112.554667 45.226667-49.066667 0-89.429333-19.072-121.130667-57.344C357.12 658.218667 341.333333 595.541333 341.333333 508.416c0-89.344 16.469333-153.813333 49.493334-193.194667C423.722667 275.754667 466.56 256 519.168 256z m-9.472 241.834667c-17.962667 0-33.066667 6.997333-45.525334 21.12-12.330667 14.037333-18.56 34.858667-18.56 62.293333 0 30.421333 6.912 53.76 20.906667 70.4 13.952 16.469333 29.866667 24.746667 47.786667 24.746667 17.28 0 31.701333-6.826667 43.178666-20.309334 11.52-13.525333 17.237333-35.669333 17.237334-66.56 0-31.658667-6.186667-54.869333-18.517334-69.546666a58.197333 58.197333 0 0 0-46.506666-22.144z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.752 0 512S229.248 0 512.042667 0C794.752 0 1024 229.248 1024 512s-229.248 512-511.957333 512z" fill="#6D768D"></path><path d="M673.024 273.066667H354.133333v86.869333h212.224a691.2 691.2 0 0 0-104.746666 187.989333c-26.026667 70.101333-39.978667 138.88-41.429334 206.293334h89.6c-0.298667-42.922667 6.698667-91.776 21.034667-146.474667a654.72 654.72 0 0 1 62.08-154.965333c27.136-48.554667 53.888-85.76 80.128-111.701334V273.066667z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z" fill="#6D768D"></path><path d="M512.426667 256c46.208 0 82.048 11.861333 107.605333 35.541333 25.6 23.68 38.314667 53.674667 38.314667 89.898667 0 22.613333-5.802667 42.666667-17.578667 60.330667a111.445333 111.445333 0 0 1-49.450667 40.277333c26.965333 10.837333 47.36 26.752 61.312 47.658667 13.994667 20.906667 21.034667 45.013333 21.034667 72.362666 0 45.098667-14.336 81.834667-42.965333 109.952-28.586667 28.245333-66.602667 42.368-114.090667 42.368-44.245333 0-81.066667-11.648-110.464-34.986666-34.645333-27.52-52.010667-65.28-52.010667-113.365334 0-26.368 6.528-50.645333 19.626667-72.746666 13.056-22.144 33.578667-39.210667 61.696-51.242667-24.064-10.154667-41.557333-24.192-52.48-41.941333a109.824 109.824 0 0 1-16.512-58.666667c0-36.224 12.757333-66.218667 37.973333-89.898667 25.386667-23.68 61.354667-35.541333 108.032-35.541333z m1.28 265.429333c-22.784 0-39.722667 7.978667-50.901334 23.893334-11.136 15.786667-16.64 33.066667-16.64 51.498666 0 25.984 6.485333 46.208 19.712 60.714667 13.098667 14.506667 29.525333 21.802667 49.152 21.802667 19.242667 0 35.157333-6.997333 47.786667-20.992 12.629333-13.909333 18.858667-34.048 18.858667-60.416 0-23.082667-6.314667-41.557333-19.2-55.466667a63.274667 63.274667 0 0 0-48.725334-21.034667z m-0.341334-191.488c-17.792 0-32 5.333333-42.581333 16-10.538667 10.666667-15.872 24.746667-15.872 42.325334 0 18.645333 5.248 33.152 15.701333 43.648 10.453333 10.453333 24.362667 15.658667 41.770667 15.658666 17.664 0 31.658667-5.290667 42.24-15.872 10.538667-10.581333 15.872-25.173333 15.872-43.818666 0-17.493333-5.248-31.573333-15.701333-42.154667s-24.277333-15.786667-41.429334-15.786667z" fill="#FFFFFF"></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.333333 229.248 0 512 0c282.88 0 512 229.333333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M497.28 256c49.365333 0 89.856 19.157333 121.429333 57.429333 31.701333 38.229333 47.488 101.205333 47.488 188.842667 0 89.173333-16.384 153.386667-49.365333 192.853333-32.853333 39.594667-75.605333 59.264-128.426667 59.264-37.888 0-68.608-10.154667-91.989333-30.506666s-38.4-50.816-45.013333-91.306667l90.112-9.984c2.261333 18.474667 8.021333 32.085333 17.28 41.088 9.173333 8.874667 21.418667 13.312 36.608 13.312 19.2 0 35.541333-8.874667 48.981333-26.752 13.44-17.749333 22.016-54.613333 25.770667-110.549333-23.466667 27.264-52.821333 40.874667-88.064 40.874666-38.314667 0-71.253333-14.72-99.114667-44.330666C355.242667 506.709333 341.333333 468.224 341.333333 420.864c0-49.493333 14.592-89.258667 43.946667-119.466667C414.549333 271.104 451.925333 256 497.237333 256z m-4.352 77.482667c-17.237333 0-31.658667 6.826667-43.008 20.437333-11.477333 13.653333-17.194667 35.84-17.194667 66.816 0 31.402667 6.229333 54.485333 18.645334 69.205333 12.458667 14.72 27.946667 22.101333 46.592 22.101334 18.005333 0 33.066667-7.082667 45.44-21.205334 12.330667-14.208 18.432-35.029333 18.432-62.506666 0-29.994667-6.912-53.376-20.821334-69.973334-13.824-16.597333-29.866667-24.874667-48.085333-24.874666z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M619.946667 273.066667c46.976 0 83.754667 16.042667 110.250666 48.042666 31.573333 37.973333 47.36 100.864 47.36 188.672 0 87.722667-15.829333 150.698667-47.658666 189.056-26.325333 31.616-62.976 47.36-109.952 47.36-47.274667 0-85.418667-17.237333-114.346667-51.968-28.885333-34.602667-43.392-96.426667-43.392-185.386666 0-87.168 15.872-150.016 47.701333-188.416 26.282667-31.488 62.933333-47.36 110.037334-47.36z m-207.488 12.8v452.266666H325.504V411.690667A299.904 299.904 0 0 1 213.333333 476.373333V398.933333c22.656-7.296 47.36-21.12 73.856-41.514666 26.624-20.522667 44.842667-44.288 54.784-71.552h70.485334z m207.488 60.842666c-11.306667 0-21.461333 3.413333-30.336 10.24-8.874667 6.826667-15.786667 19.157333-20.693334 36.864-6.4 22.997333-9.642667 61.653333-9.642666 115.968 0 54.442667 2.944 91.733333 8.661333 112.128 5.802667 20.352 13.098667 33.877333 21.845333 40.618667 8.789333 6.741333 18.858667 10.154667 30.165334 10.154667 11.349333 0 21.376-3.498667 30.250666-10.325334 8.874667-6.826667 15.786667-19.157333 20.693334-36.778666 6.4-22.826667 9.642667-61.354667 9.642666-115.797334 0-54.314667-2.858667-91.648-8.661333-112.042666-5.802667-20.352-13.013333-33.962667-21.76-40.789334a47.616 47.616 0 0 0-30.165333-10.24z" fill="#FFFFFF"></path></svg>'}]},{name:"进度图标",type:"progress",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144-294.144A414.72 414.72 0 0 1 928 512c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512h416c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144 294.144A414.72 414.72 0 0 1 512 928z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96v832z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512l-294.144 294.144A414.72 414.72 0 0 1 96 512c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512H96c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512L217.856 217.856A414.72 414.72 0 0 1 512 96V512z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#12BB37"></path><path d="M716.629333 341.333333h-51.328a35.072 35.072 0 0 0-28.330666 14.293334l-171.989334 233.984-77.909333-106.026667a35.2 35.2 0 0 0-28.330667-14.293333H307.413333c-7.082667 0-11.264 7.936-7.082666 13.653333l136.32 185.472a35.2 35.2 0 0 0 56.533333 0l230.4-313.429333a8.533333 8.533333 0 0 0-6.954667-13.653334z" fill="#FFFFFF"></path></svg>'}]},{name:"表情图标",type:"expression",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024"><path d="M1.097856 1.097642h1021.804717v1021.804716H1.097856z" fill="#F09495" ></path><path d="M1024.000214 1024H0.000214V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.195498v1019.609432z" fill="#FFFFFF" ></path><path d="M234.695985 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" ></path><path d="M234.695985 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115s28.339115 12.772559 28.339115 28.339115c0.099786 15.666342-12.672773 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617-11.774703-26.243617-26.243617-26.243617z" fill="#FFFFFF" ></path><path d="M776.232528 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" ></path><path d="M776.232528 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115 15.666342 0 28.339115 12.772559 28.339115 28.339115 0 15.666342-12.772559 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617c-0.099786-14.468914-11.874488-26.243617-26.243617-26.243617z" fill="#FFFFFF" ></path><path d="M512.000214 671.656987c-52.58702 0-105.872539-17.961411-105.872539-52.387449S459.413194 566.882089 512.000214 566.882089s105.872539 17.961411 105.87254 52.387449S564.587234 671.656987 512.000214 671.656987z m0-74.240499c-21.952836 0-43.207172 3.592282-58.2748 9.77899-13.870201 5.68778-17.06334 11.275775-17.06334 12.07406s3.19314 6.386279 17.06334 12.07406c15.067628 6.186708 36.321965 9.77899 58.2748 9.77899s43.207172-3.592282 58.274801-9.77899c13.870201-5.68778 17.06334-11.275775 17.06334-12.07406s-3.19314-6.386279-17.06334-12.07406c-15.067628-6.286494-36.321965-9.77899-58.274801-9.77899z" fill="#040000" ></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#E6A6C9" ></path><path d="M315.1 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM738.7 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM293.5 698.8l-14.5-1.3c0.1-0.6 1.5-14.6 15.1-27.9 17.2-16.7 45-24.8 82.7-24 4.9-0.1 10.9-10.5 16.1-19.6 8.4-14.7 19-33.1 37.9-34.3 19.4-1.2 42.2 16.4 71.5 55.4 9.9 5.2 16.5 11.2 21.8 16.1 8.4 7.7 13.1 11.9 25.1 10.8 14.9-1.4 38.9-11.1 77.5-31.4 26.8-28.4 56.4-41.4 83.5-36.6 27.9 4.9 50.6 27.6 67.5 67.5l-13.4 5.7c-14.7-34.5-34.3-54.9-56.7-58.8-22.3-3.9-47.6 7.8-71.2 33.1l-0.8 0.9-1.1 0.6c-85.6 45.1-99.4 38-120.2 19.1-5.5-5-11.2-10.2-20.1-14.7l-1.5-0.8-1-1.4c-32.2-43.2-50.4-51.6-60-51-11.1 0.7-18.8 14-26.2 27-7.6 13.2-15.4 26.9-28.8 26.9h-0.2c-78.4-1.6-83 38.3-83 38.7z" fill="#040000" ></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#F7E983" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M329.174412 344.491728a38.118106 10.277919 57.6 1 0 17.355867-11.014369 38.118106 10.277919 57.6 1 0-17.355867 11.014369Z" fill="#040000" ></path><path d="M644.769475 355.956059a11.175989 36.321965 30 1 0 36.321965-62.911488 11.175989 36.321965 30 1 0-36.321965 62.911488Z" fill="#040000" ></path><path d="M569.678445 671.158059c-26.343403 0-51.190021-5.288638-70.049503-14.967843-20.755408-10.577275-32.230754-25.445332-32.230755-41.710388 0-16.265056 11.475346-31.133112 32.230755-41.710387 18.859482-9.579419 43.805886-14.967843 70.049503-14.967843s51.190021 5.288638 70.049503 14.967843c20.755408 10.577275 32.230754 25.445332 32.230754 41.710387 0 16.265056-11.475346 31.133112-32.230754 41.710388-18.859482 9.679205-43.805886 14.967843-70.049503 14.967843z m0-95.095693c-49.693237 0-84.318846 20.356266-84.318846 38.517248s34.625609 38.517248 84.318846 38.517248 84.318846-20.356266 84.318846-38.517248-34.725395-38.517248-84.318846-38.517248z" fill="#040000" ></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#A6D9E2" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M376.194134 348.950302m-23.44962 0a23.44962 23.44962 0 1 0 46.89924 0 23.44962 23.44962 0 1 0-46.89924 0Z" fill="#040000" ></path><path d="M629.150672 348.950302m-24.647047 0a24.647047 24.647047 0 1 0 49.294095 0 24.647047 24.647047 0 1 0-49.294095 0Z" fill="#040000" ></path><path d="M397.847613 603.503411c13.471058 8.282206 28.738258 14.468914 43.7061 19.458195 29.835899 9.978562 62.266225 14.169558 93.299551 7.483921 21.054765-4.490353 40.213604-14.369129 56.778016-28.039758 6.785422-5.587995-2.893783-15.167414-9.579419-9.579419-46.999026 38.916391-112.258819 31.033327-163.847983 6.086922-4.590138-2.195284-9.080491-4.490353-13.371272-7.184564-7.583707-4.590138-14.468914 7.184564-6.984993 11.774703z" fill="#040000" ></path><path d="M627.753674 534.052621c-31.033327 24.048334-58.474371 68.253362-37.419607 106.970182 10.577275 19.35841 29.835899 32.629897 48.795167 42.708244 7.982849 4.190996 15.067628-7.883064 7.084779-12.07406-25.245761-13.271487-53.485091-35.324108-49.094524-66.557006 2.793997-20.156695 15.766127-37.319821 29.736114-51.190022 3.392711-3.392711 6.984993-6.785422 10.776847-9.77899 2.993569-2.295069 2.394855-7.483921 0-9.878776-2.893783-3.19314-6.885208-2.49464-9.878776-0.199572z" fill="#040000" ></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1026 1024" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#AD6F59" ></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" ></path><path d="M411.829832 330.730879a38.118106 10.277919 57.6 1 0 17.355867-11.014368 38.118106 10.277919 57.6 1 0-17.355867 11.014368Z" fill="#040000" ></path><path d="M480.669675 609.989476c11.774703-25.844475 27.740401-51.788735 44.60417-73.342429 13.770415-17.462483 29.237186-33.92711 47.897096-44.803742 17.262912-10.078347 35.324108-13.67063 54.283376-6.58585 11.974274 4.390567 23.948548 14.468914 33.128825 24.547261 14.369129 15.865913 25.145975 34.625609 34.725394 53.684662 4.290782 8.581563 17.262912 0.997856 12.972131-7.583707-15.167414-30.334828-35.224323-63.763009-66.157864-80.327421-21.054765-11.37556-44.504385-11.475346-66.157864-1.895927-21.054765 9.280062-38.617034 25.644904-53.485091 42.907815-14.468914 16.863769-27.041902 35.324108-38.217891 54.582733-5.887351 10.178133-11.674917 20.555837-16.464627 31.232898-1.696355 3.692068-0.997856 7.982849 2.694212 10.277918 3.19314 1.895927 8.581563 0.898071 10.178133-2.694211z" fill="#040000" ></path><path d="M663.863649 338.091735a14.468914 33.727538 30 1 0 33.727538-58.417811 14.468914 33.727538 30 1 0-33.727538 58.417811Z" fill="#040000" ></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#83CEE3" ></path><path d="M369 375.8m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M369 411.7c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.1 36-36 36z m0-69.1c-18.3 0-33.2 14.9-33.2 33.2S350.7 409 369 409s33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M672.2 333.6c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.3-7.6-13zM578.2 720.9c-12.5-96.7-33.3-154.7-55.6-155.6-8.8 3.9-22.3 17.5-37.7 60.1-10.8 29.8-18.4 62.2-23 81.6-1.2 5.1-2.1 9.1-2.9 11.8l-9.3-2.4c0.7-2.6 1.6-6.6 2.8-11.6 14.9-63 36-136.8 67.5-148.8l0.8-0.3h0.8c18.2-0.4 33.2 19.5 45.8 60.8 10.2 33.3 16.7 74.6 20.5 103.3l-9.7 1.1z" fill="#040000" ></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#8CC66D" ></path><path d="M375.778679 404.47473a14.5 33.8 30 1 0 33.8-58.543317 14.5 33.8 30 1 0-33.8 58.543317Z" fill="#040000" ></path><path d="M627.220263 374.211388a43.1 11.6 57.6 1 0 19.588408-12.431182 43.1 11.6 57.6 1 0-19.588408 12.431182Z" fill="#040000" ></path><path d="M451.1 548.5c17.6-9.3 63.9-30 105.3-16.2 17 20.3 32.7 98.8 28.8 138.1-27.5 10.2-82.5 10.2-106.1 5.8-8.3-10.5-32.7-81.8-35.3-114.6-0.4-5.5 2.5-10.6 7.3-13.1z" fill="#040000" ></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#5A74B8" ></path><path d="M357.7 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M357.7 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2 33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M676 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" ></path><path d="M676 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2c18.3 0 33.2-14.9 33.2-33.2s-14.9-33.2-33.2-33.2z" fill="#FFFFFF" ></path><path d="M347.6 684.1c0.3-0.9 0.6-1.7 0.9-2.6 0.2-0.5 1.4-3.2 0.3-0.8 0.6-1.4 1.3-2.9 2-4.3 3.2-6.3 6-10.7 10.9-15.3 4.3-4 10.8-7.5 17.1-6.1 3.9 0.9 7.9 4.9 11.1 7.2 3.1 2.2 6.3 4.5 9.7 6.2 7.5 3.8 15.3 4.4 23.4 1.9 4.7-1.5 9.2-3.6 13.6-5.9 5-2.6 10.7-5 14.2-9.5 4.5-5.7 6.1-8.5 11.4-14.1 1-1 2-2 3.1-3 0.2-0.2 2.2-1.7 0.6-0.5 0.6-0.4 1.2-0.9 1.8-1.3 1-0.6 2.1-1.3 3.2-1.7-2 0.8 0.2 0 0.6-0.1 2.3-0.7-0.3-0.2 1.2-0.3 2.8-0.1 3.6 0 5.5 1 3.8 1.9 6.6 4.7 9.5 7.8 4.5 5 7.5 11.1 11.7 16.2 1.8 2.2 3.7 4.3 5.4 6.5 8.1 10.3 17.7 22.2 32.2 22 8.8-0.1 16.6-5.2 22.6-11.2 4.2-4.1 7.7-8.9 11-13.7 2.9-4.2 4.6-9.9 6.2-13.5 3.2-7.1 7.2-13.1 13-18.1 4.8-4.2 11.1-6.5 16.7-5.3 10.5 2.4 17.2 12.1 23.1 20.2 4.7 6.5 9.8 13 16 18.2 7.8 6.4 17.1 11.4 27.5 11.1 14.1-0.4 25.5-9.5 34.2-19.9 3-3.6 3.6-8.8 0-12.4-3.1-3.1-9.4-3.7-12.4 0-6.3 7.6-14.7 15.9-24.9 14.7-2.2-0.3-5.3-1.5-7.9-3.1-3.5-2.1-6.1-4.4-9.1-7.5-4.9-5.1-6.8-8.1-10.9-13.8-7.3-10.1-16.1-19.6-28.2-23.7-18.5-6.3-35.7 5.6-46 20.1-2.4 3.3-4.4 6.9-6.1 10.6-1.8 3.9-2.7 8.5-5.2 11.9-3.1 4.4-6.2 8.8-10.2 12.5-3 2.8-5.7 4.4-8.6 5.1-0.4 0.1-1.7 0.1 0.1 0h-2.2c2.1 0.1 0 0-0.5-0.1-0.7-0.2-1.4-0.4-2-0.6 1.8 0.7-1.8-1.1-2.4-1.5l-1.2-0.9c1.5 1.2-0.9-0.9-1.2-1.1-4.7-4.3-8.4-9.5-12.3-14.4-10.9-13.6-20.9-34-41-34.9-14.2-0.6-24.5 10.6-32.4 20.8-1.2 1.6-2.5 3.2-3.7 4.8-1.5 1.9 1.1-1.4-0.4 0.5-0.4 0.5-0.8 1.2-1.3 1.6-1.7 1.4-4.6 2.6-6.6 3.6-2.9 1.6-5.9 3.2-9 4.5-1.6 0.7-3.4 1.2-5.1 1.7-2.2 0.6-0.7 0.5-2.8 0.4-2.8 0-3.9-0.4-6.6-1.9-3.9-2.2-7.5-4.9-11.1-7.5-5.6-4-10-6.9-17-7.5-10.5-0.9-20.3 3.2-28.2 9.9-9.4 8.1-16.4 20.2-20.1 32-3.6 11.2 13.3 15.8 16.8 5.1z" fill="#040000" ></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F0884F" ></path><path d="M287.2 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-1.5 4.3-2.9 6.5-4.3 2-1.2 4-2.2 6.1-3.2 0.6-0.3 1.2-0.6 1.9-0.9-0.3 0.2-1.5 0.6 0.2-0.1 1.3-0.5 2.6-1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 3.1 1.1 4.2 1.5 6.9 2.9 1.1 0.6 2.1 1.2 3.2 1.8 1.2 0.8-0.7-0.5 0.1 0 0.4 0.3 0.8 0.7 1.1 1.1 0.6 0.8-1.1-1.2-0.2-0.2 0.8 0.9-0.3-1.4-0.1-0.2 0.1 0.9 0.2-1.9 0-0.9-0.1 0.5-0.8 1.8 0 0.2-0.2 0.5-0.5 1-0.8 1.4-0.3 0.3-0.9 1.3-0.3 0.5-0.5 0.7-1.1 1.3-1.7 1.9-6.9 7.3-15.9 12.8-24.4 18.1-8.3 5.3-0.6 18.5 7.7 13.2 9.9-6.3 20.9-12.8 28.6-21.8 4.8-5.5 8.1-12.9 4.2-19.9-3.4-6-10.5-8.9-16.6-11.4-8.6-3.5-17.5-6.2-26.2-9.5v14.8c14.4-6.1 47.2-18.8 41.2-40.3-3.5-12.9-19.4-18.9-30.8-22.6-3.4-1.1-6.9-2.1-10.5-2.9-9.1-2.2-13.3 12.5-3.6 14.6z" fill="#040000" ></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F6F180" ></path><path d="M342.9 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" ></path><path d="M342.9 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.7 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.6-28.3-28.3-28.3z" fill="#FFFFFF" ></path><path d="M702 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" ></path><path d="M702 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.8 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.7-28.3-28.3-28.3z" fill="#FFFFFF" ></path><path d="M358.7 519.9c20 22 45.5 40.4 71.3 54.8 51.2 28.5 111.7 39.9 168 19.5 44.3-16.1 80.7-47.8 110.2-83.9 3-3.7 3.6-8.9 0-12.5-3.1-3.1-9.5-3.7-12.5 0-25.5 31.4-56.2 59.7-93.7 76-27.1 11.7-56.6 15.7-85.8 12.2-24.7-2.9-49.5-11.8-71.5-23.4-18.7-9.8-36.6-22.2-51.1-34.3-7.8-6.5-15.5-13.3-22.4-20.9-7.7-8.5-20.1 4.1-12.5 12.5z" ></path></svg>'},{name:"11",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M48.2 844.9c-68.5-210.6 186-782.1 409.1-795.4 6.3-0.4 12.5 0.2 18.6 1.6C665.1 94.6 985.4 515 987.1 821.3c0.1 20-12.9 37.9-22.4 43.1-162.7 89.8-605.8 179.7-884.4 30.9-15-7.9-24.2-26.1-32.1-50.4z" fill="#F0884F" ></path><path d="M401 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" ></path><path d="M408.7 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" ></path><path d="M527.5 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" ></path><path d="M527.5 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" ></path><path d="M450.7 517c1.1-8.2 3.2-16.4 6.1-24.1 0.1-0.3 1-2.5 0.5-1.4s0.3-0.7 0.5-1c0.7-1.4 1.4-2.8 2.2-4.1 0.4-0.8 2.8-3.9 1.3-2.1 0.8-1 1.7-1.9 2.6-2.8 1-1-1.5 1 0.1 0 0.5-0.3 1-0.6 1.5-0.8-1.3 0.7-1.2 0.3 0 0.1 1.9-0.3-1.8 0.3 0.1 0 1.2-0.2 1.5 0.3 0-0.1 0.6 0.2 1.3 0.3 1.9 0.5 0.3 0.1-1.3-0.7 0.2 0.1 0.8 0.5 1.6 0.9 2.4 1.4 1.4 1 0-0.1 1.4 1.1 0.9 0.8 1.8 1.7 2.6 2.6 1.8 1.9 3.5 3.9 5 6.1 5.1 7.1 9.3 14.8 13.2 22.6 3.5 6.9 13.7 4.7 15.8-2.1 2.6-8.7 4.8-17.4 7.4-26.1 0.9-3.2 1.9-6.4 3.2-9.4-0.7 1.6 0.8-1.6 1.2-2.2l0.9-1.5c0.7-1.2-1.4 0.7 0.1-0.1 1.7-0.9-1.2 0.3-0.3 0.1 0.8-0.2 1-1.2 0.3-0.3-0.6 0.8 0.6 0-0.5 0.2-2 0.3 2.4 0.5-1.1 0 0.5 0.1 1.2 0.2 1.6 0.4-1.1-0.8-0.8-0.4 0.2 0.2 0.7 0.4 3.4 2.3 2.7 1.8 8.9 7.1 15.9 16.9 22.5 26 2.8 3.8 7.5 5.6 11.8 3.1 3.7-2.2 5.9-8 3.1-11.8-8.2-11.1-16.6-23-27.7-31.4-6.3-4.7-14.5-7.6-21.7-3-6.7 4.2-9.6 12.5-11.9 19.6-3.2 9.9-5.5 20-8.6 29.9 5.3-0.7 10.5-1.4 15.8-2.1-7.8-15.5-24.8-50.1-48-41.7-14.1 5.1-19.7 23-22.9 36.2-0.9 3.8-1.8 7.7-2.3 11.6-0.6 4.6 1.1 9.3 6 10.6 4.2 1 10.2-1.5 10.8-6.1z" fill="#040000" ></path></svg>'},{name:"12",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M485.538528 993.072489a362.00362 481.804818 3.149 1 0 52.933731-962.15464 362.00362 481.804818 3.149 1 0-52.933731 962.15464Z" fill="#AADCF0" ></path><path d="M688.2 334.1c-15.1 7.6-30.2 15.6-44.3 25-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9.2-4.2-13.7-6.7-7.3-4.2-13.9 7.2-6.5 11.3z" fill="#040000" ></path><path d="M644.6 505.2c-30.1 21.5-60.6 62.5-39.1 99.8 10.7 18.6 30.3 30.9 49.1 40.1 7.8 3.8 14.6-7.9 6.8-11.7-23.6-11.5-53.7-31.4-49.4-60.9 2.8-18.9 15.8-34.6 29.5-47.2 2.5-2.3 5.1-4.6 7.8-6.7 0.5-0.4 0.9-0.7 1.4-1.1-0.4 0.3-1.2 0.9-0.1 0.1l0.9-0.6c6.9-5.1 0.2-16.8-6.9-11.8z" fill="#040000" ></path></svg>'},{name:"13",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M235.1 76.9c75.6-26.5 297.3-90.1 514.2-16.6 16.3 5.5 29.8 17.4 37.1 33 57.5 122.4 127.1 602.1 62.1 785.6a62.58 62.58 0 0 1-32.5 35.8c-109.5 51.8-428.1 136.7-609.3 37.2-14.4-7.9-25-21.3-29.7-37.1-41.9-140.6-37-627.7 19.1-798 6.1-18.7 20.5-33.4 39-39.9z" fill="#F9DABD" ></path><path d="M392.2 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" ></path><path d="M618.6 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" ></path><path d="M512 562.6c-36 0-65.3-29.3-65.3-65.3S476 432 512 432s65.3 29.3 65.3 65.3-29.3 65.3-65.3 65.3z m0-122.9c-31.7 0-57.6 25.8-57.6 57.6s25.8 57.6 57.6 57.6c31.7 0 57.6-25.8 57.6-57.6s-25.9-57.6-57.6-57.6z" fill="#040000" ></path></svg>'},{name:"14",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M178.1 971.5c38.1 15.9 98.7 26.6 171.3-12.3 3.7-2 8.4-1.6 11.6 1.1 43.3 35.9 123.3 80.8 236 10.9 3.8-2.4 8.7-2.4 12.6-0.2 41.8 23.9 191.6 58.2 246.6 14.2 4.4-3.5 9.1-6.6 14.5-8.5C1065 909.5 678.2-652 194.3 351c-37.5 77.8-38.4 94.1-71.9 211.3-27.6 96.3-29.1 231.3 1.4 348.1 7.2 27.3 27.3 49.9 54.3 61.1z" fill="#ABAAAA" ></path><path d="M468.9 349H418c-6.1 0-11.1-5-11.1-11.1V336c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.1-5 11.1-11.1 11.1zM643 471.9H390c-6.6 0-12-5.4-12-12s5.4-12 12-12h253c6.6 0 12 5.4 12 12s-5.4 12-12 12zM609 349h-61.2c-6 0-11-4.9-11-11v-2.1c0-6 4.9-11 11-11H609c6 0 11 4.9 11 11v2.1c0 6.1-4.9 11-11 11z" fill="#040000" ></path></svg>'},{name:"15",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M673.1 318.7c3.7-17.5 5.6-35.7 5.6-54.4 0-137.9-105.5-249.7-235.6-249.7S207.4 126.4 207.4 264.3c0 55.4 17.1 106.7 45.9 148.1-55.2 63.3-88.6 145.9-88.6 236.3 0 199.2 162.1 360.6 362.1 360.6 200 0 362.1-161.5 362.1-360.6 0.1-147.3-88.7-274-215.8-330z" fill="#4F8A54" ></path><path d="M392 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" ></path><path d="M386 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" ></path><path d="M505.6 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" ></path><path d="M501.4 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" ></path><path d="M474.3 364.8h-50.9c-6.1 0-11.1-5-11.1-11.1v-1.9c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.2-5 11.1-11.1 11.1z" fill="#040000" ></path></svg>'},{name:"16",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M246.4 227.6c-166.9 101.1-461.9 344 87 564.1 1.5 0.6 2.9 1.1 4.4 1.6 80.7 27.7 392.8 165.4 641-198.1 40-58.6 38.5-136.2-3.7-193.3C892 289.5 727 201.1 429.1 182.7c-64.1-4-127.8 11.6-182.7 44.9z" fill="#CF92BE" ></path><path d="M617.1 393.4c-17.4 8.8-34.9 18.1-51.2 28.9-6.9 4.6-20.3 12.3-17.4 22.6 1.2 4.3 5.6 7 9 9.5 3.7 2.7 7.6 5 11.5 7.3 18.2 10.8 37.1 20.3 55.9 30 10 5.1 18.9-10 8.8-15.1-16.4-8.4-32.9-16.9-49-26-4.5-2.6-9.1-5.2-13.5-8l-4.5-3c-0.7-0.5-1.3-1-2-1.5 1.6 1.2 0.7 0.4-0.2-0.2-1.3-0.9-0.3-0.9-0.5-0.3 0.2 0.2 0.4 0.5 0.6 0.7 1 1.9 1.3 3.7 0.8 5.7 0.1-0.6 0.7-1.4-0.6 1.3 0.7-1.5-0.1 0-0.2 0.1 0.6-0.6 1.2-1.3 1.9-1.9l1.8-1.5c1.8-1.6-0.6 0.3 1.2-0.9 2-1.5 4.1-2.9 6.2-4.3 10-6.5 20.4-12.4 30.9-18 6.5-3.5 13.1-7 19.7-10.4 9.6-5 0.8-20.1-9.2-15zM323.1 408.5c15.9 8.1 31.7 16.5 46.8 26 2.2 1.4 4.3 2.8 6.5 4.2 1 0.7 1.9 1.3 2.8 2 0.5 0.3 1 0.7 1.4 1.1-1.1-0.9-0.3-0.3 0.3 0.3 1.1 1 2.2 2.2 3.3 3.1 1.4 1.1-1-1.7-0.1-0.1-0.6-1.1-0.9-4.1 0.3-6.7 2.2-4.8 0.7 0.1 0-0.5 0 0-1.1 0.9-1.3 1 2.3-1.9 0 0-0.5 0.4-0.8 0.5-1.5 1.1-2.3 1.6-4 2.7-8.1 5.1-12.3 7.5-17.3 10-35.1 19.1-52.8 28.2-10 5.1-1.2 20.2 8.8 15.1 17.5-9 35-17.9 52-27.7 7.3-4.2 15.9-8.6 21.8-14.7 9.3-9.7-4.3-19.7-11.5-24.7-10.1-7.1-20.9-13.1-31.7-19-7.6-4.2-15.2-8.2-22.9-12.1-9.7-5.2-18.6 9.9-8.6 15zM513 592.1c-12.2 0-24.6-1.4-36.3-4.3-8-2-13.9-8.2-15.4-16.2s1.7-15.8 8.4-20.5c23.2-16.3 60.5-31.9 106.2-13 6.4 2.6 11 8.3 12.3 15.1 1.3 6.7-0.8 13.6-5.7 18.3-13.5 13.1-40.9 20.6-69.5 20.6z m-37.4-32.5c-3.4 2.4-4.9 6.2-4.2 10.2 0.8 4.1 3.6 7.1 7.7 8.1 39.1 9.7 81.2 0.7 96.1-13.7 2.4-2.3 3.4-5.6 2.7-8.9-0.7-3.4-2.9-6.2-6.1-7.5-41.2-17.2-75.1-3.1-96.2 11.8z" fill="#040000" ></path></svg>'},{name:"17",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M1008.6 465.7c0-124.9-95.5-226.2-213.4-226.2-12 0-23.8 1.1-35.2 3.1v-3.1c0-124.9-95.5-226.2-213.4-226.2S333.4 114.6 333.4 239.5c0 2.4 0 4.8 0.1 7.2-17.1-4.7-35-7.2-53.4-7.2-117.8 0-213.4 101.3-213.4 226.2 0 92.1 51.9 171.3 126.3 206.6-13.7 29.9-21.4 63.4-21.4 98.8 0 124.9 95.5 226.2 213.4 226.2 68.8 0 130-34.5 169-88.1 39 53.6 100.2 88.1 169 88.1 117.8 0 213.4-101.3 213.4-226.2 0-41.2-10.4-79.9-28.6-113.1 60.5-39.9 100.8-111.1 100.8-192.3z" fill="#8CC66D" ></path><path d="M437.8 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M649.7 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M527.3 625.9c6.3-14.2 13.1-28.3 17.9-43 6.2-19 8.3-38.6 10.5-58.3l2.1-19.2c0.7-6.2-9-6.1-9.7 0-1.7 16.3-2.8 32.8-5.7 48.9-4.2 23.7-13.8 45-23.5 66.7-2.5 5.6 5.9 10.5 8.4 4.9z" fill="#252525" ></path><path d="M447.7 522.3c20.3-0.1 40.6-0.2 61-0.4l96.6-0.6c7.5 0 14.9-0.1 22.4-0.1 16.6-0.1 16.7-25.9 0-25.8-20.3 0.1-40.6 0.2-61 0.4l-96.6 0.6c-7.5 0-14.9 0.1-22.4 0.1-16.6 0.1-16.7 25.9 0 25.8z" fill="#040000" ></path><path d="M495.4 508.2c-10.3 3.8-9.2 20.9-9.2 29.5 0.1 16 2.1 32.3 6.1 47.8 3.5 13.7 8.7 29.9 20.6 38.7 12.9 9.5 27.6 2.1 37.6-7.9 10.2-10.3 17.8-23 24.7-35.6 11.6-21.3 20.9-43.8 29.7-66.4 3-7.8-9.5-11.1-12.5-3.4-7.4 19.1-15.3 38.1-24.7 56.4-5.9 11.5-12.2 23-20.3 33.1-2.8 3.5-5.8 6.9-9.2 9.8-1.9 1.7-1.4 1.3-3.3 2.5-1.3 0.8-2.6 1.6-3.9 2.2-0.7 0.3 1-0.2-0.8 0.3-0.6 0.2-1.2 0.3-1.8 0.5-1.1 0.3-1.2 0.2-0.5 0.1-0.6 0-1.3 0-1.9 0.1-2.2 0.1 0.6 0.5-1.8-0.2l-1.8-0.6c1.5 0.5 0.2 0.1-0.5-0.3-0.8-0.5-2.9-2.1-1.7-1.1-1-0.9-2-1.7-2.8-2.7-0.4-0.5-0.9-1-1.3-1.5 0.4 0.5 0.1 0.2-0.5-0.7-0.8-1.3-1.7-2.5-2.4-3.9-0.7-1.3-1.4-2.5-2-3.8-0.4-0.8-0.8-1.6-1.1-2.4-0.1-0.2-0.5-1.1 0 0l-0.6-1.5a86.8 86.8 0 0 1-3.3-9.8c-4.4-14.9-6.2-27.9-6.8-42.8-0.3-6.6-0.3-13.1 0.4-19.7 0.2-1.5-0.3 1.5 0.1-0.5l0.3-1.8c0.2-0.9 0.5-1.8 0.7-2.8 0.4-1.9-0.7 1.1 0.3-0.7 0.5-1-1.3 1.2-0.3 0.5-0.3 0.3-1.1 0.8-2 1.1 7.7-2.9 4.3-15.4-3.5-12.5z" fill="#040000" ></path></svg>'},{name:"18",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M75.4 739.8c-78.7-134.4-194-455.7 401.4-579.6 9.8-2 19.2-6.2 29.2-7.5C656.8 133 947.3 205 1000.1 578.4c42.6 223.8 29.7 392.1-822 233.6-43.1-8-80.6-34.4-102.7-72.2z" fill="#F09495" ></path><path d="M704.6 875.4c-129 0-301.8-20.5-526.6-62.3-43.5-8.1-81.2-34.6-103.5-72.7-19.3-32.9-44.8-84.3-57.1-142.5-13.9-65.1-8.8-125.3 15.1-179.2 54.3-122.3 203.7-209.6 444-259.6 4.1-0.9 8.3-2.1 12.3-3.4 5.5-1.7 11.1-3.4 16.9-4.2 29-3.8 75.7-5.9 133.8 5.7 54.5 10.9 105.3 31 150.8 59.9C843.7 251 888.2 296 922.7 351c39.7 63.1 66.1 139.6 78.5 227.3 8.1 42.4 15.2 87.3 12.5 127.9-2.8 42.6-16.4 75.5-41.5 100.7-42.5 42.7-120.3 65-237.8 68.1-9.6 0.2-19.6 0.4-29.8 0.4zM76.3 739.3c22 37.6 59.2 63.7 102.1 71.7 242.5 45.1 424.4 65.3 556.1 61.9 116.9-3.1 194.1-25.2 236.3-67.5 55.4-55.6 44.4-142.5 28.3-226.7C976 415.8 903.4 291.5 789.2 219c-124-78.7-248.1-69.9-283.2-65.3-5.6 0.7-11.2 2.4-16.6 4.1-4.1 1.2-8.3 2.5-12.5 3.4C237.3 211.1 88.5 298 34.5 419.6c-54.6 122.8 2.8 253 41.8 319.7z" fill="#FFFFFF" ></path><path d="M424.1 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M635.9 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" ></path><path d="M426.2 543.3c17.1 7.9 36.6 26 25.5 46.1-6.9 12.5-19.8 21.2-31.7 28.4-4.5 2.7-0.4 9.8 4.1 7.1 17.4-10.5 41.6-27.6 39-51.1-1.6-14-12.4-24.8-23.5-32.3-3-2-6.1-3.9-9.3-5.4-4.8-2.1-8.9 5-4.1 7.2zM629.5 535.4c-21.8 11.7-40.6 37-25.7 61.3 8.2 13.4 22.2 22.7 35.7 30.3 4.7 2.7 8.9-4.6 4.2-7.2-15.5-8.7-39.9-23.9-36.9-45.2 1.6-11.4 10.7-20.7 19.6-27.2 2.4-1.7 4.8-3.4 7.4-4.8 4.7-2.5 0.4-9.8-4.3-7.2z" fill="#040000" ></path><path d="M457.2 584.6c25.6 25.6 66.7 41 101.8 28.3 18.2-6.6 33.2-19.1 45.5-33.8 4.2-5.1-3-12.4-7.3-7.3-18.5 22-43.3 38.1-73 35-18.6-1.9-36.2-10.8-50.9-22-2.9-2.2-6.1-4.8-8.8-7.5-4.7-4.7-12 2.6-7.3 7.3z" fill="#040000" ></path></svg>'},{name:"19",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M915.9 510.5c8.4-19 13.1-39.8 13.1-61.7 0-90-78.9-162.9-176.2-162.9-3.2 0-6.3 0.1-9.5 0.2v-0.2c0-94.8-116.2-171.6-259.6-171.6S224 191.2 224 286v2c-96.2 0-174.1 72-174.1 160.9 0 38 14.3 73 38.2 100.5-41.8 29.4-68.8 75.9-68.8 128.2 0 88.9 78 160.9 174.1 160.9 17.1 0 33.6-2.3 49.3-6.5 28.9 46.1 88.7 77.7 157.6 77.7 49.4 0 94-16.2 126-42.3 32 26.1 76.6 42.3 126 42.3 77.3 0 143-39.7 166.7-95 3.1 0.2 6.3 0.2 9.5 0.2 97.3 0 176.2-72.9 176.2-162.9 0-60.6-35.7-113.4-88.8-141.5z" fill="#5A74B8" ></path><path d="M357.6 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" ></path><path d="M357.5 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" ></path><path d="M531.3 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" ></path><path d="M531.2 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" ></path><path d="M426.7 574.6c20.9 29.9 59.7 52.2 96.2 38.6 19.2-7.2 34.7-21.2 47.6-36.9 2.8-3.5 3.4-8.3 0-11.7-2.9-2.9-8.9-3.5-11.7 0-16.5 20.2-40.9 40.9-68.1 35.5-17.3-3.4-31-13.2-42.9-25.9-2-2.2-3.9-4.4-5.8-6.7-1.6-1.9 1.1 1.5-0.4-0.6-0.2-0.2-0.3-0.5-0.5-0.7-6.2-8.7-20.6-0.4-14.4 8.4z" fill="#040000" ></path></svg>'},{name:"20",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M792.8 301.4c-8.2 0-16.2 0.4-24.2 1.3-12.3-81.8-129.2-145.9-271.8-145.9-137.1 0-250.5 59.3-269.9 136.6C105.3 295.5 7.4 391.2 7.4 508.9c0 119.1 100.2 215.6 223.7 215.6 5.3 0 10.6-0.2 15.8-0.5 14.4 80.5 130.4 143.2 271.3 143.2 135.9 0 248.6-58.3 269.4-134.6 1.7 0 3.4 0.1 5.1 0.1 123.6 0 223.7-96.5 223.7-215.6s-100-215.7-223.6-215.7z" fill="#F6CD50" ></path><path d="M435.9 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" ></path><path d="M588.1 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" ></path><path d="M435.9 431.5m-27.8 0a27.8 27.8 0 1 0 55.6 0 27.8 27.8 0 1 0-55.6 0Z" fill="#040000" ></path><path d="M601.9 407.4c-5.7 2.9-11.3 5.9-16.9 9-6.8 3.8-15.3 7.8-20.5 13.8-5.6 6.5 1.6 11.1 6.7 14.4 11.2 7.1 23.3 13 35.1 19 5.7 2.9 10.8-5.7 5.1-8.6-10.9-5.6-21.9-11.1-32.4-17.4-2.4-1.4-4.6-3.1-7-4.6 1 0.6-0.4-0.4-0.4-0.4-1.9-0.3-0.5 4.2 0.5 4.1-0.1 0-0.6 0.3 0.3-0.3 0.5-0.3 1-0.9 1.5-1.3 9.7-7.9 21.9-13.5 33.1-19.2 5.7-2.7 0.6-11.4-5.1-8.5zM406.6 547.6c11.5 14.4 27 26.7 42.7 36.3 32.2 19.8 71.2 27.2 107.6 15.4 29.5-9.6 54.6-29.1 75.5-51.6 10.8-11.6-6.6-29.1-17.5-17.5-9.4 10.1-19.5 19.7-30.8 27.7-4.6 3.2-9.3 6.2-14.2 8.9-5 2.8-9.9 5.1-14.1 6.7-4.6 1.7-9.3 3.2-14.1 4.4-2.2 0.5-4.4 1-6.6 1.4-1 0.2-2 0.3-2.9 0.5 2.6-0.4-2.1 0.2-2.5 0.3-4.1 0.4-8.3 0.5-12.5 0.4-2.2-0.1-4.4-0.2-6.6-0.4-1.1-0.1-2.2-0.2-3.2-0.3-1.5-0.2-1.4-0.2 0.1 0l-2.1-0.3c-7.8-1.3-15.4-3.4-22.8-6.2-0.9-0.4-1.8-0.7-2.8-1.1-3.1-1.2 2.3 1.1-0.7-0.3-1.5-0.7-2.9-1.3-4.4-2-3.7-1.8-7.2-3.7-10.8-5.8-5.7-3.4-11.1-7.1-16.4-11.1 3 2.3-1.1-0.9-1.8-1.5-1.1-0.9-2.1-1.7-3.1-2.6-2.1-1.8-4.2-3.7-6.3-5.6-4.4-4.1-8.7-8.4-12.4-13.1-4.2-5.2-13.1-4.3-17.5 0-5 5.1-4 12.2 0.2 17.4z" fill="#040000" ></path></svg>'}]},{name:"标记图标",type:"sign",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M809.728 429.696a18.901333 18.901333 0 0 0-15.274667-12.885333l-183.466666-26.624-81.92-166.272a18.901333 18.901333 0 0 0-34.005334 0l-81.92 166.272-183.594666 26.624a19.029333 19.029333 0 0 0-10.496 32.298666l132.693333 129.536-31.274667 182.741334a18.816 18.816 0 0 0 27.477334 19.84l164.138666-86.186667 164.096 86.058667a18.773333 18.773333 0 1 0 27.434667-19.84l-31.36-182.741334 132.693333-129.408a18.901333 18.901333 0 0 0 4.778667-19.413333z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M644.565333 306.901333c32.128 0 65.834667-5.76 101.077334-17.237333a17.066667 17.066667 0 0 1 22.357333 16.213333v328.32c-1.109333 0.768 10.325333 27.093333-99.370667 19.84-109.653333-7.210667-181.76-45.098667-246.869333-45.098666-65.152 0-49.322667 2.688-74.154667 8.405333v168.064a24.746667 24.746667 0 0 1-24.490666 25.258667 22.528 22.528 0 0 1-17.28-7.253334 24.149333 24.149333 0 0 1-7.168-18.005333V281.258667C299.776 280.490667 328.106667 256 421.76 256s164.437333 50.901333 222.805333 50.901333z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M524.074667 225.408l274.517333 274.517333a17.066667 17.066667 0 0 1 0 24.149334l-274.517333 274.517333a17.066667 17.066667 0 0 1-24.149334 0l-274.517333-274.517333a17.066667 17.066667 0 0 1 0-24.149334l274.517333-274.517333a17.066667 17.066667 0 0 1 24.149334 0z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M317.866667 300.8h388.266666c9.386667 0 17.066667 7.68 17.066667 17.066667v388.266666a17.066667 17.066667 0 0 1-17.066667 17.066667h-388.266666a17.066667 17.066667 0 0 1-17.066667-17.066667v-388.266666c0-9.386667 7.68-17.066667 17.066667-17.066667z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M498.346667 279.082667L248.789333 701.44a15.829333 15.829333 0 0 0 13.653334 23.893333h499.114666a15.829333 15.829333 0 0 0 13.653334-23.893333l-249.6-422.357333a15.829333 15.829333 0 0 0-27.264 0z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path><path d="M634.538667 487.808L555.050667 426.24 507.306667 256a201.002667 201.002667 0 0 0-23.594667 20.394667l-0.256-0.256L525.653333 426.666667l-133.290666 59.946666a14.08 14.08 0 0 0-8.021334 15.957334l28.757334 126.378666a14.208 14.208 0 0 0 27.733333-6.229333l-26.24-115.114667 126.037333-56.704 76.416 59.136a14.250667 14.250667 0 0 0 19.968-2.474666 14.08 14.08 0 0 0-2.474666-19.797334z" fill="#6D768D"></path></svg>'},{name:"7",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M374.656 273.194667c5.973333 4.48 12.117333 9.6 18.346667 15.36 6.272 5.717333 11.904 12.373333 16.896 19.84 2.517333 4.010667 5.504 8.490667 9.002666 13.482666a529.493333 529.493333 0 0 1 20.266667 32.213334h155.221333a169.813333 169.813333 0 0 0 9.770667-15.744c2.474667-4.48 5.248-8.96 8.234667-13.482667a460.842667 460.842667 0 0 1 23.253333-31.829333c4.992-6.229333 12.245333-12.373333 21.76-18.346667a34.261333 34.261333 0 0 0 10.112-9.728 31.274667 31.274667 0 0 0 5.248-11.989333 18.56 18.56 0 0 0-1.536-11.605334 17.664 17.664 0 0 0-10.112-8.618666c-4.48-1.493333-8.362667-2.005333-11.605333-1.493334a46.933333 46.933333 0 0 0-9.770667 2.602667c-3.242667 1.28-6.613333 2.645333-10.112 4.138667a32.426667 32.426667 0 0 1-12.757333 2.261333 26.026667 26.026667 0 0 1-12.373334-2.645333 45.653333 45.653333 0 0 1-8.96-6.357334l-8.661333-7.850666a30.336 30.336 0 0 0-11.989333-6.4c-9.984-3.968-18.005333-4.693333-24.021334-2.218667-5.973333 2.474667-11.946667 6.485333-17.962666 11.946667a88.618667 88.618667 0 0 1-11.989334 10.496 7.338667 7.338667 0 0 1-3.754666 1.493333 46.165333 46.165333 0 0 1-8.277334-5.205333 71.808 71.808 0 0 1-7.125333-4.906667 37.973333 37.973333 0 0 1-6.4-6.357333c-3.968-3.968-9.941333-6.613333-17.92-7.850667a31.061333 31.061333 0 0 0-21.76 4.138667c-8.533333 5.461333-14.506667 10.069333-18.048 13.824a29.354667 29.354667 0 0 1-15.744 7.893333 23.978667 23.978667 0 0 1-13.098667-0.768 987.733333 987.733333 0 0 0-14.634666-4.48 80.725333 80.725333 0 0 0-14.250667-2.986667 16.768 16.768 0 0 0-11.989333 2.986667c-6.997333 5.461333-9.258667 12.074667-6.741334 19.84a34.56 34.56 0 0 0 13.482667 18.346667z" fill="#FFFFFF"></path><path d="M780.757333 545.152a219.306667 219.306667 0 0 0-19.882666-65.536 224.981333 224.981333 0 0 0-33.365334-49.792 430.336 430.336 0 0 0-37.12-37.12c-14.506667-11.946667-27.264-23.296-38.272-34.048a544.512 544.512 0 0 1-27.733333-28.842667 305.28 305.28 0 0 1-22.485333-26.197333h-168.746667c-6.485333 8.490667-13.994667 17.493333-22.485333 26.965333a360.96 360.96 0 0 1-26.24 28.074667c-10.538667 10.24-22.272 21.12-35.285334 32.597333a305.493333 305.493333 0 0 0-41.6 44.16 250.026667 250.026667 0 0 0-49.493333 117.589334 216.106667 216.106667 0 0 0 1.877333 70.4 220.586667 220.586667 0 0 0 75.349334 126.549333c21.248 18.005333 47.146667 32.597333 77.653333 43.818667 30.464 11.264 65.493333 16.853333 104.96 16.853333 38.528 0 72.874667-4.864 103.125333-14.592a265.045333 265.045333 0 0 0 78.378667-39.338667c21.973333-16.469333 39.594667-35.797333 52.864-58.026666 13.226667-22.186667 22.101333-45.824 26.624-70.784 4.992-30.421333 5.632-58.026667 1.877333-82.773334z" fill="#FFFFFF"></path><path d="M593.322667 647.509333a20.48 20.48 0 0 1-11.861334 3.2h-50.133333v14.165334c0 4.266667-1.792 8.362667-5.376 12.373333a15.914667 15.914667 0 0 1-13.952 5.333333 24.917333 24.917333 0 0 1-14.336-3.882666c-3.84-2.602667-5.973333-7.210667-6.4-13.824v-14.165334h-48.725333a17.792 17.792 0 0 1-11.818667-3.882666 10.24 10.24 0 0 1-3.968-9.6c0-4.266667 1.578667-7.68 4.693333-10.24a16.768 16.768 0 0 1 11.093334-3.925334h48.682666v-24.789333h-48.682666a15.573333 15.573333 0 0 1-11.52-4.266667 13.525333 13.525333 0 0 1-4.266667-9.941333 15.36 15.36 0 0 1 4.693333-10.624 14.72 14.72 0 0 1 11.093334-4.949333h48.682666l0.725334-14.890667a1053.568 1053.568 0 0 1-40.832-42.538667l-10.752-9.898666a41.216 41.216 0 0 1-6.442667-11.690667c-1.92-4.992-0.938667-10.069333 2.858667-15.274667a13.653333 13.653333 0 0 1 15.786666-3.84c6.186667 2.090667 11.221333 4.821333 15.018667 8.106667 1.92 2.389333 5.248 5.888 10.026667 10.666667l15.061333 14.848 19.328 19.157333 22.186667-20.565333a987.605333 987.605333 0 0 1 29.397333-25.514667 21.162667 21.162667 0 0 1 14.293333-5.674667c5.290667 0 9.557333 2.133333 12.928 6.4 6.186667 7.082667 3.84 15.36-7.168 24.789334a179.072 179.072 0 0 0-12.885333 12.373333c-5.76 5.973333-11.52 11.733333-17.194667 17.408-6.698667 7.082667-14.08 14.378667-22.186666 21.973333v13.44h46.506666c6.698667 0 11.605333 1.536 14.72 4.608a14.165333 14.165333 0 0 1 4.650667 10.282667c0 4.266667-1.450667 7.936-4.309333 11.008-2.858667 3.029333-7.637333 4.352-14.336 3.84l-46.506667 0.768-0.768 24.064h45.866667c13.354667 0 20.053333 4.992 20.053333 14.933333 0.469333 4.693333-0.853333 8.106667-3.925333 10.24z" fill="#6D768D"></path></svg>'},{name:"9",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M512 213.333333l234.666667 341.333334h-128v213.333333h-213.333334v-213.333333h-128L512 213.333333z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M533.333333 810.666667L298.666667 469.333333h128V256h213.333333v213.333333h128l-234.666667 341.333334z" fill="#FFFFFF"></path></svg>'},{name:"11",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M213.333333 533.333333L554.666667 298.666667v128h213.333333v213.333333h-213.333333v128l-341.333334-234.666667z" fill="#FFFFFF"></path></svg>'},{name:"12",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M810.666667 533.333333L469.333333 768v-128H256v-213.333333h213.333333V298.666667l341.333334 234.666666z" fill="#FFFFFF"></path></svg>'},{name:"13",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#6D768D"></path><path d="M571.349333 508.586667l162.389334-162.346667a44.330667 44.330667 0 1 0-62.72-62.72l-162.389334 162.389333-162.517333-162.389333a44.330667 44.330667 0 1 0-62.72 62.72l162.389333 162.389333-162.389333 162.474667a44.330667 44.330667 0 1 0 62.72 62.72l162.389333-162.346667 162.389334 162.389334a44.330667 44.330667 0 1 0 62.72-62.72l-162.261334-162.56z" fill="#FFFFFF"></path></svg>'},{name:"14",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C233.386667 0 0 225.877333 0 512s225.877333 512 512 512 512-225.877333 512-512S790.613333 0 512 0z" fill="#6D768D"></path><path d="M726.144 311.210667l-277.333333 305.066666-124.8-124.8c-13.866667-13.866667-41.6-13.866667-55.466667 0-13.866667 13.866667-13.866667 41.6 0 55.466667l159.445333 152.533333c13.866667 13.866667 41.6 13.866667 55.466667 0l305.066667-332.8c13.866667-13.866667 13.866667-41.6 0-55.466666-20.778667-13.866667-48.512-13.866667-62.378667 0z" fill="#FFFFFF"></path></svg>'},{name:"15",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M541.952 755.626667a40.618667 40.618667 0 0 1-29.824 12.373333 41.344 41.344 0 0 1-30.122667-12.373333 40.106667 40.106667 0 0 1-12.672-30.122667c0-11.605333 4.096-21.845333 12.672-30.122667a40.405333 40.405333 0 0 1 30.122667-12.714666c11.605333 0 21.546667 4.138667 29.824 12.714666a40.32 40.32 0 0 1 12.714667 30.122667c0 11.861333-4.096 21.76-12.714667 30.122667zM450.986667 241.28A77.866667 77.866667 0 0 1 512.256 213.333333c24.874667 0 45.354667 8.917333 61.354667 27.946667 15.488 18.432 23.722667 41.685333 23.722666 69.674667 0 23.765333-33.152 200.533333-44.672 329.045333h-80.128C463.146667 511.402667 426.666667 334.677333 426.666667 310.954667c0-27.392 8.277333-50.645333 24.32-69.674667z" fill="#FFFFFF"></path></svg>'},{name:"16",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.794667 0 512 0z" fill="#6D768D"></path><path d="M490.666667 682.666667a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m13.994666-490.752c61.397333 0 112.341333 14.634667 153.002667 43.946666 40.533333 29.269333 60.885333 72.618667 60.885333 130.133334 0 35.242667-12.373333 64.938667-29.952 89.045333-10.282667 14.677333-33.664 33.408-62.890666 56.192l-32.426667 22.357333c-15.701333 12.202667-29.696 26.453333-34.858667 42.666667-1.706667 5.546667-3.072 14.677333-3.968 24.533333-0.426667 4.949333-4.864 15.018667-15.232 15.018667h-83.328c-13.568 0-15.957333-10.581333-15.744-15.786667 1.493333-34.005333 4.608-64.213333 18.474667-80.469333 28.074667-32.896 91.904-73.813333 91.904-73.813333a104.106667 104.106667 0 0 0 23.552-24.021334c10.837333-14.933333 19.797333-31.317333 19.797333-49.237333 0-20.565333-6.016-39.338667-18.090666-56.32-12.032-16.938667-34.090667-25.386667-66.005334-25.386667-31.445333 0-53.76 10.410667-66.901333 31.274667-9.685333 15.445333-15.786667 29.610667-18.346667 45.013333-0.853333 5.461333-4.394667 16.981333-16.042666 16.981334H327.210667c-17.322667 0-21.12-11.221333-20.650667-16.64 6.272-68.138667 32.896-114.688 80-144.597334 32-20.565333 71.381333-30.890667 118.101333-30.890666z" fill="#FFFFFF"></path></svg>'},{name:"17",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M336.256 410.026667H253.312a40.021333 40.021333 0 0 0-39.850667 43.264l23.296 278.101333c1.706667 20.693333 19.072 36.608 39.850667 36.608h59.648c11.050667 0 20.010667-8.96 20.010667-19.968v-318.037333a19.968 19.968 0 0 0-20.010667-19.968z m434.432 0h-178.944C653.312 182.314667 548.949333 170.666667 548.949333 170.666667c-44.288 0-35.114667 34.986667-38.442666 40.832 0 84.48-68.010667 155.093333-101.034667 184.362666a39.552 39.552 0 0 0-13.226667 29.653334v322.56c0 11.008 8.96 19.925333 20.010667 19.925333h233.728c30.378667 0 58.154667-17.152 71.68-44.373333 18.176-36.736 40.448-90.112 54.656-133.973334 13.781333-42.410667 26.24-94.976 33.578667-131.968a39.850667 39.850667 0 0 0-39.253334-47.658666z" fill="#FFFFFF"></path></svg>'},{name:"18",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M796.16 413.909333c-31.146667-0.298667-115.626667-0.085333-146.858667-0.085333h-158.464c8.533333-7.68 15.914667-14.506667 23.594667-20.906667 29.781333-24.874667 25.813333-71.082667-14.208-88.874666-22.954667-10.24-44.970667-5.632-64 11.52-34.944 31.274667-69.632 62.677333-104.277333 93.994666a15.488 15.488 0 0 1-11.178667 4.437334c-11.221333-0.085333-26.88-0.128-46.933333-0.170667a17.066667 17.066667 0 0 0-17.109334 17.066667L256 719.701333a17.066667 17.066667 0 0 0 17.066667 17.152l49.578666-0.085333c3.968 0 7.466667 0.768 10.88 2.602667 15.829333 8.832 31.701333 17.493333 47.616 26.24a18.133333 18.133333 0 0 0 9.301334 2.346666h168.405333c6.186667 0 11.946667-0.981333 17.834667-2.56 29.44-7.253333 40.021333-30.293333 38.528-52.565333-0.768-9.728-4.266667-18.346667-9.984-26.24 19.626667-5.76 35.114667-16.213333 42.112-36.096 7.125333-20.394667 1.621333-38.4-12.672-53.333333 28.16-19.754667 34.858667-44.672 18.645333-75.648h140.458667c6.570667 0 13.013333-0.597333 19.370666-2.645334 31.957333-9.813333 48.810667-42.88 35.626667-71.552-10.154667-22.186667-28.629333-33.152-52.608-33.450666z" fill="#FFFFFF"></path></svg>'},{name:"19",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M270.506667 413.909333c31.146667-0.298667 115.626667-0.085333 146.858666-0.085333h158.464c-8.533333-7.68-15.914667-14.506667-23.594666-20.906667-29.781333-24.874667-25.813333-71.082667 14.208-88.874666 22.954667-10.24 44.970667-5.632 64 11.52 34.944 31.274667 69.632 62.677333 104.277333 93.994666 3.413333 2.986667 6.528 4.437333 11.178667 4.437334 11.221333-0.085333 26.88-0.128 46.933333-0.170667a17.066667 17.066667 0 0 1 17.109333 17.066667l0.682667 288.853333a17.066667 17.066667 0 0 1-17.066667 17.152l-49.578666-0.085333a22.101333 22.101333 0 0 0-10.88 2.602666c-15.829333 8.832-31.701333 17.493333-47.616 26.24a18.133333 18.133333 0 0 1-9.301334 2.346667h-168.405333a68.693333 68.693333 0 0 1-17.834667-2.56c-29.44-7.253333-40.021333-30.293333-38.528-52.565333 0.768-9.728 4.266667-18.346667 9.984-26.24-19.626667-5.76-35.114667-16.213333-42.112-36.096-7.125333-20.394667-1.621333-38.4 12.672-53.333334-28.16-19.754667-34.858667-44.672-18.645333-75.648H272.853333c-6.570667 0-13.013333-0.597333-19.370666-2.645333-31.957333-9.813333-48.810667-42.88-35.626667-71.552 10.154667-22.186667 28.629333-33.152 52.608-33.450667z" fill="#FFFFFF"></path></svg>'},{name:"20",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M667.733333 480.128H400v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 213.333333a155.605333 155.605333 0 0 0-155.392 155.434667v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 509.013333v292.010667a28.885333 28.885333 0 0 0 28.885333 28.885333h340.138667a28.885333 28.885333 0 0 0 28.928-28.885333V509.013333a28.885333 28.885333 0 0 0-28.928-28.885333z" fill="#FFFFFF"></path></svg>'},{name:"21",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M400.042667 437.461333v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 170.666667a155.605333 155.605333 0 0 0-155.392 155.434666v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 466.346667v292.010666a28.885333 28.885333 0 0 0 28.885333 28.885334h340.138667a28.885333 28.885333 0 0 0 28.928-28.885334V466.346667a28.885333 28.885333 0 0 0-28.928-28.885334H400.042667z" fill="#FFFFFF"></path><path d="M595.242667 437.461333v-111.36a97.706667 97.706667 0 0 0-97.621334-97.621333 97.706667 97.706667 0 0 0-97.578666 97.621333 28.885333 28.885333 0 0 1-57.813334 0A155.605333 155.605333 0 0 1 497.621333 170.666667a155.605333 155.605333 0 0 1 155.434667 155.434666v111.36h14.634667c16 0 28.928 12.928 28.928 28.885334v292.010666a28.885333 28.885333 0 0 1-28.928 28.885334H327.552A28.885333 28.885333 0 0 1 298.666667 758.357333V466.346667c0-15.957333 12.928-28.885333 28.885333-28.885334h267.690667z" fill="#FFFFFF"></path></svg>'},{name:"22",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M511.999787 512.000213m-511.999787 0a511.999787 511.999787 0 1 0 1023.999573 0 511.999787 511.999787 0 1 0-1023.999573 0Z" fill="#6D768D"></path><path d="M381.354508 364.586941c0 54.015977 29.013321 103.935957 75.946635 130.986613a152.53327 152.53327 0 0 0 151.935936 0 151.12527 151.12527 0 0 0 75.946636-130.986613A151.594604 151.594604 0 0 0 533.333111 213.333671a151.594604 151.594604 0 0 0-151.89327 151.25327zM660.479725 498.901552a185.258589 185.258589 0 0 1-127.146614 50.346646c-49.066646 0-93.866628-19.199992-127.06128-50.346646C317.141201 544.853533 255.999893 637.440161 255.999893 744.106783c0 13.183995 10.709329 23.850657 23.978657 23.850657h506.709122a23.893323 23.893323 0 0 0 23.978657-23.893323c0-106.538622-61.098641-199.25325-150.186604-245.205232z" fill="#FFFFFF"></path></svg>'},{name:"23",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M445.610667 401.578667a129.322667 129.322667 0 1 0 258.645333 0 129.322667 129.322667 0 0 0-258.645333 0z m237.568 114.901333a157.354667 157.354667 0 0 1-216.362667 0 236.373333 236.373333 0 0 0-127.957333 209.706667c0 11.264 9.130667 20.394667 20.394666 20.394666h431.402667a20.394667 20.394667 0 0 0 20.394667-20.394666 236.373333 236.373333 0 0 0-127.872-209.706667zM409.813333 401.578667c0-40.362667 14.592-77.397333 38.698667-106.112a112.725333 112.725333 0 0 0-29.013333-3.925334 112.64 112.64 0 0 0-112.426667 112.469334 112.64 112.64 0 0 0 144.853333 107.648 164.693333 164.693333 0 0 1-42.112-110.08z m-18.602666 136.704a136.533333 136.533333 0 0 1-65.706667-34.474667 205.44 205.44 0 0 0-111.232 182.4c0 9.813333 7.936 17.706667 17.706667 17.706667H303.36a273.621333 273.621333 0 0 1 87.893333-165.632z" fill="#FFFFFF"></path></svg>'}]}],Vn={hyperlink:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z" ></path></svg>',note:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" ><path d="M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z" ></path></svg>',attachment:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024" width="128" height="128"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" ></path></svg>',nodeIconList:Wn,getNodeIconListIcon:(t,e=[])=>{let i=t.split("_");const n=(t=>t.reduce((t,e)=>{const i=t.find(t=>t.type===e.type);return i?e.list.forEach(t=>{const e=i.list.find(e=>e.name===t.name);e?e.icon=t.icon:i.list.push(t)}):t.push({...e}),t},[]))([...Wn,...e]);let r=n.find(t=>t.type===i[0]);if(r){let t=r.list.find(t=>t.name===i[1]);return t?t.icon:""}return""}},Kn=(t,e)=>{const i=new xi,n=(new pi).text(t);return e.text(n),i.add(n),i.bbox()},Gn={radius:3,fontSize:12,fill:"",height:20,paddingX:8};const Xn={getImageUrl:function(){const t=this.getData("image");return(this.mindMap.renderer.renderTree.data.imgMap||{})[t]||t},createImgNode:function(){let t=this.getImageUrl();if(!t)return;t=(this.mindMap.renderer.renderTree.data.imgMap||{})[t]||t;const e=this.getImgShowSize(),i=(new we).load(t).size(...e),{defaultNodeImage:n}=this.mindMap.opt;if(n){const e=new Image;e.onerror=()=>{i.load(n)},e.src=t}return this.getData("imageTitle")&&i.attr("title",this.getData("imageTitle")),i.on("click",t=>{this.mindMap.emit("node_img_click",this,i,t)}),i.on("dblclick",t=>{this.mindMap.emit("node_img_dblclick",this,t,i)}),i.on("mouseenter",t=>{this.mindMap.emit("node_img_mouseenter",this,i,t)}),i.on("mouseleave",t=>{this.mindMap.emit("node_img_mouseleave",this,i,t)}),i.on("mousemove",t=>{this.mindMap.emit("node_img_mousemove",this,i,t)}),{node:i,width:e[0],height:e[1]}},getImgShowSize:function(){const{custom:t,width:e,height:i}=this.getData("imageSize");return t?[e,i]:Fi(e,i,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)},createIconNode:function(){let t=this.getData();if(!t.icon||t.icon.length<=0)return[];let e=this.mindMap.themeConfig.iconSize;return t.icon.map(t=>{let i=Vn.getNodeIconListIcon(t,this.mindMap.opt.iconList||[]),n=null;return n=/^<svg/.test(i)?Ci(i):(new we).load(i),n.size(e,e),n.on("click",e=>{this.mindMap.emit("node_icon_click",this,t,e,n)}),n.on("mouseenter",e=>{this.mindMap.emit("node_icon_mouseenter",this,t,e,n)}),n.on("mouseleave",e=>{this.mindMap.emit("node_icon_mouseleave",this,t,e,n)}),{node:n,width:e,height:e}})},createRichTextNode:function(t){const e=this.hasCustomWidth();let i="string"==typeof t?t:this.getData("text"),{textAutoWrapWidth:n,emptyTextMeasureHeightText:r}=this.mindMap.opt;n=e?this.customTextWidth:n;const o=new xi;let s=!1;this.getData("resetRichText")&&(delete this.nodeData.data.resetRichText,s=!0),s&&!Zi(i)&&(i=(t=>{Qi||(Qi=document.createElement("div")),Qi.innerHTML=t;for(let t=Qi.childNodes,e=t.length;e--;)if(1==t[e].nodeType)return!0;return!1})(i)?(t=>{sn||(sn=document.createElement("div")),sn.innerHTML=t;const e=sn.querySelectorAll(".ql-formula");Array.from(e).forEach(t=>{const e=document.createTextNode("$smmformula$");t.parentNode.replaceChild(e,t)});const i=sn.childNodes;let n=[];for(let t=0;t<i.length;t++){const e=i[t];1===e.nodeType?n.push(e.textContent):3===e.nodeType&&n.push(e.nodeValue)}if(t=n.map(t=>`<p><span>${vn(t)}</span></p>`).join(""),e.length>0){t=t.replace(/\$smmformula\$/g,'<span class="smmformula"></span>'),sn.innerHTML=t;const i=sn.querySelectorAll(".smmformula");Array.from(i).forEach((t,i)=>{t.parentNode.replaceChild(e[i],t)}),t=sn.innerHTML}return t})(i):`<p>${i}</p>`,this.setData({text:i}));const a=[],l=On(this);Object.keys(l).forEach(t=>{a.push([t,l[t]])}),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl||(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.position="fixed",this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.left="-999999px",this.mindMap.el.appendChild(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl));const h=this.mindMap.commonCaches.measureRichtextNodeTextSizeEl;a.forEach(([t,e])=>{h.style[t]=e}),h.style.lineHeight=1.2;const d=`<div>${i}</div>`;h.innerHTML=d;const c=h.children[0];c.classList.add("smm-richtext-node-wrap"),An(c),c.style.maxWidth=n+"px",c.style.width=e?this.customTextWidth+"px":"";let{width:u,height:f}=c.getBoundingClientRect();if(f<=0){h.innerHTML=`<p>${r}</p>`;let t=h.children[0];t.classList.add("smm-richtext-node-wrap"),f=t.getBoundingClientRect().height,h.innerHTML=d}u=Math.min(Math.ceil(u)+1,n),f=Math.ceil(f),o.attr("data-width",u),o.attr("data-height",f);const p=Sn({el:h.children[0],width:u,height:f}),m={"line-height":1.2};return a.forEach(([t,e])=>{m[Hi(t)]=e}),p.css(m),o.add(p),{node:o,nodeContent:p,width:u,height:f}},createTextNode:function(t){if(this.getData("needUpdate")&&delete this.nodeData.data.needUpdate,this.getData("richText"))return this.createRichTextNode(t);const e="string"==typeof t?t:this.getData("text");this.getData("resetRichText")&&delete this.nodeData.data.resetRichText;const i=new xi,n=this.getStyle("fontSize",!1),r=this.getStyle("textAlign",!1);let o=[];Zi(e)||(o=String(e).split(/\n/gim));const{textAutoWrapWidth:s,emptyTextMeasureHeightText:a}=this.mindMap.opt;let l=o.length>1;o.forEach((t,e)=>{let i=t.split(""),n=[],r=[];for(;i.length;){let t=i.shift(),e=[...r,t].join("");Kn(e,this.style).width<=s?r.push(t):(n.push(r.join("")),r=[t])}r.length>0&&n.push(r.join("")),n.length>1&&(l=!0),o[e]=n.join("\n")}),o=o.join("\n").replace(/\n$/g,"").split(/\n/gim),o.forEach((t,e)=>{""===t&&(t="\ufeff");const o=(new pi).text(t);o.addClass("smm-text-node-wrap"),o.attr("text-anchor",{left:"start",center:"middle",right:"end"}[r]||"start"),this.style.text(o),o.y(n*m*e+(m-1)*n/2),i.add(o)});let{width:h,height:d}=i.bbox();if(d<=0){const t=(new pi).text(a);this.style.text(t);d=t.bbox().height}return h=Math.min(Math.ceil(h),s),d=Math.ceil(d),i.attr("data-width",h),i.attr("data-height",d),i.attr("data-ismultiLine",l||o.length>1),{node:i,width:h,height:d}},createHyperlinkNode:function(){const{hyperlink:t,hyperlinkTitle:e}=this.getData();if(!t)return;const{customHyperlinkJump:i,hyperlinkIcon:n}=this.mindMap.opt,{icon:r,style:o}=n,s=this.getNodeIconSize("hyperlinkIcon"),a=(new Ci).size(s,s),l=(new wi).to(t).target("_blank");l.node.addEventListener("click",e=>{"function"==typeof i&&(e.preventDefault(),i(t,this))}),e&&a.add(Ci(`<title>${e}</title>`)),l.rect(s,s).fill({color:"transparent"});const h=Ci(r||Vn.hyperlink).size(s,s);return this.style.iconNode(h,o.color),l.add(h),a.add(l),{node:a,width:s,height:s}},createTagNode:function(){const t=this.getData("tag");if(!t||t.length<=0)return[];let{maxTag:e,tagsColorMap:i}=this.mindMap.opt;i=i||{};const n=[];return t.slice(0,e).forEach((t,e)=>{let r="",o={...Gn};"string"==typeof t?r=t:(r=t.text,o={...Gn,...t.style});const s=void 0!==o.width,a=new xi;a.on("click",()=>{this.mindMap.emit("node_tag_click",this,t,e,a)});const l=(new pi).text(r);this.style.tagText(l,o);const{width:h,height:d}=l.bbox(),c=s?o.width:h+2*o.paddingX,u=s?Math.max(c,h):c,f=Math.max(o.height,d);s?l.x((u-h)/2):l.x(s?0:o.paddingX),l.cy(-f/2);const p=(new $e).size(c,o.height).cy(-f/2);s&&p.x((u-c)/2),this.style.tagRect(p,{...o,fill:o.fill||i[l.node.textContent]||gn(l.node.textContent)}),a.add(p).add(l),n.push({node:a,width:u,height:f})}),n},createNoteNode:function(){if(!this.getData("note"))return null;const{icon:t,style:e}=this.mindMap.opt.noteIcon,i=this.getNodeIconSize("noteIcon"),n=(new Ci).attr("cursor","pointer").addClass("smm-node-note").size(i,i);n.add((new $e).size(i,i).fill({color:"transparent"}));const r=Ci(t||Vn.note).size(i,i);if(this.style.iconNode(r,e.color),n.add(r),!this.mindMap.opt.customNoteContentShow){if(!this.noteEl){this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`\n position: fixed;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}\n `;(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.noteEl)}this.noteEl.innerText=this.getData("note")}return n.on("mouseover",()=>{const{left:t,top:e}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),t,e,this):(this.noteEl.style.left=t+"px",this.noteEl.style.top=e+"px",this.noteEl.style.display="block")}),n.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),n.on("click",t=>{this.mindMap.emit("node_note_click",this,t,n)}),n.on("dblclick",t=>{this.mindMap.emit("node_note_dblclick",this,t,n)}),{node:n,width:i,height:i}},createAttachmentNode:function(){const{attachmentUrl:t,attachmentName:e}=this.getData();if(!t)return;const i=this.getNodeIconSize("attachmentIcon"),{icon:n,style:r}=this.mindMap.opt.attachmentIcon,o=(new Ci).attr("cursor","pointer").size(i,i);e&&o.add(Ci(`<title>${e}</title>`)),o.add((new $e).size(i,i).fill({color:"transparent"}));const s=Ci(n||Vn.attachment).size(i,i);return this.style.iconNode(s,r.color),o.add(s),o.on("click",t=>{this.mindMap.emit("node_attachmentClick",this,t,o)}),o.on("contextmenu",t=>{this.mindMap.emit("node_attachmentContextmenu",this,t,o)}),{node:o,width:i,height:i}},getNoteContentPosition:function(){const t=this.getNodeIconSize("noteIcon"),{scaleY:e}=this.mindMap.view.getTransformData().transform,i=t*e;let{left:n,top:r}=this._noteData.node.node.getBoundingClientRect();return r+=i,{left:n,top:r}},getNodeIconSize:function(t){const{style:e}=this.mindMap.opt[t];return Zi(e.size)?this.mindMap.themeConfig.iconSize:e.size},measureCustomNodeContentSize:function(t){this.mindMap.commonCaches.measureCustomNodeContentSizeEl||(this.mindMap.commonCaches.measureCustomNodeContentSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.style.cssText="\n position: fixed;\n left: -99999px;\n top: -99999px;\n ",this.mindMap.el.appendChild(this.mindMap.commonCaches.measureCustomNodeContentSizeEl)),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.innerHTML="",this.mindMap.commonCaches.measureCustomNodeContentSizeEl.appendChild(t);let e=this.mindMap.commonCaches.measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:e.width,height:e.height}},isUseCustomNodeContent:function(){return!!this._customNodeContent}};const Yn={renderExpandBtnPlaceholderRect:function(){if(this.getChildrenLength()<=0||this.isRoot)return;const{alwaysShowExpandBtn:t,notShowExpandBtn:e,expandBtnSize:i}=this.mindMap.opt;if(!t&&!e){let{width:t,height:e}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new $e,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,i,t,e,this)}},clearExpandBtnPlaceholderRect:function(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)},updateExpandBtnPlaceholderRect:function(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.getChildrenLength()>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}};const Zn={initDragHandle:function(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes=null,this.dragHandleWidth=4,this.dragHandleMousedownX=0,this.isDragHandleMousedown=!1,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.dragHandleMousedownBodyCursor="",this.dragHandleMousedownLeft=0,this.onDragMousemoveHandle=this.onDragMousemoveHandle.bind(this),window.addEventListener("mousemove",this.onDragMousemoveHandle),this.onDragMouseupHandle=this.onDragMouseupHandle.bind(this),window.addEventListener("mouseup",this.onDragMouseupHandle),this.mindMap.on("node_mouseup",this.onDragMouseupHandle))},onDragMousemoveHandle:function(t){if(!this.isDragHandleMousedown)return;t.stopPropagation(),t.preventDefault();let{minNodeTextModifyWidth:e,maxNodeTextModifyWidth:i,isUseCustomNodeContent:n,customCreateNodeContent:r}=this.mindMap.opt;const o=n&&r&&this._customNodeContent;document.body.style.cursor="ew-resize",this.group.css({cursor:"ew-resize"});const{scaleX:s}=this.mindMap.draw.transform(),a=t.clientX-this.dragHandleMousedownX;let l=this.dragHandleMousedownCustomTextWidth+(0===this.dragHandleIndex?-a:a)/s;if(l=Math.max(l,e),-1!==i&&(l=Math.min(l,i)),!o&&this.getData("image")){const t=this.getImgShowSize();this._rectInfo.textContentWidth-this.customTextWidth+l<=t[0]&&(l=t[0]+this.customTextWidth-this._rectInfo.textContentWidth)}this.customTextWidth=l,0===this.dragHandleIndex&&(this.left=this.dragHandleMousedownLeft+a/s),this.reRender(o?[]:["text"],{ignoreUpdateCustomTextWidth:!0})},onDragMouseupHandle:function(){this.isDragHandleMousedown&&(document.body.style.cursor=this.dragHandleMousedownBodyCursor,this.group.css({cursor:"default"}),this.isDragHandleMousedown=!1,this.dragHandleMousedownX=0,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.setData({customTextWidth:this.customTextWidth}),this.mindMap.render(),this.mindMap.emit("dragModifyNodeWidthEnd",this))},createDragHandleNode:function(){const t=[new $e,new $e];return t.forEach((t,e)=>{t.size(this.dragHandleWidth,this.height).fill({color:"transparent"}).css({cursor:"ew-resize"}),t.on("mousedown",t=>{t.stopPropagation(),t.preventDefault(),this.dragHandleMousedownX=t.clientX,this.dragHandleIndex=e,this.dragHandleMousedownCustomTextWidth=void 0===this.customTextWidth?this._textData?this._textData.width:this.width:this.customTextWidth,this.dragHandleMousedownBodyCursor=document.body.style.cursor,this.dragHandleMousedownLeft=this.left,this.isDragHandleMousedown=!0})}),t},updateDragHandle:function(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes||(this._dragHandleNodes=this.createDragHandleNode()),this.getData("isActive")?(this._dragHandleNodes.forEach(t=>{t.height(this.height),this.group.add(t)}),this._dragHandleNodes[1].x(this.width-this.dragHandleWidth)):this._dragHandleNodes.forEach(t=>{t.remove()}))}};const Qn={createUserListNode:function(){this.mindMap.cooperate&&(this._userListGroup=new xi,this.group.add(this._userListGroup))},updateUserListNode:function(){if(!this._userListGroup)return;const{avatarSize:t}=this.mindMap.opt.cooperateStyle;this._userListGroup.clear();const e=this.userList.length,i=Math.floor(this.width/t),n=[];e>i?n.push(...this.userList.slice(0,i-1),{isMore:!0,name:"+"+(e-i+1)}):n.push(...this.userList),n.forEach((e,i)=>{let n=null;n=e.avatar?this.createImageAvatar(e):this.createTextAvatar(e),n.on("click",t=>{this.mindMap.emit("node_cooperate_avatar_click",e,this,n,t)}),n.on("mouseenter",t=>{this.mindMap.emit("node_cooperate_avatar_mouseenter",e,this,n,t)}),n.on("mouseleave",t=>{this.mindMap.emit("node_cooperate_avatar_mouseleave",e,this,n,t)}),n.x(i*t).cy(-t/2),this._userListGroup.add(n)})},createTextAvatar:function(t){const{avatarSize:e,fontSize:i}=this.mindMap.opt.cooperateStyle,n=new xi,r=t.isMore?t.name:String(t.name)[0],o=(new gi).size(e,e);o.fill({color:t.color||gn(r)});const s=(new pi).text(r).fill({color:"#fff"}).css({"font-size":i+"px"}).dx(-i/2).dy((e-i)/2);return n.add(o).add(s),n},createImageAvatar:function(t){const{avatarSize:e}=this.mindMap.opt.cooperateStyle;return(new we).load(t.avatar).size(e,e)},addUser:function(t){this.userList.find(e=>e.id==t.id)||(this.userList.push(t),this.updateUserListNode())},removeUser:function(t){const e=this.userList.findIndex(e=>e.id==t.id);-1!==e&&(this.userList.splice(e,1),this.updateUserListNode())},emptyUser:function(){this.userList=[],this.updateUserListNode()}};const Jn={initQuickCreateChildBtn:function(){this.isGeneralization||(this._quickCreateChildBtn=null,this._showQuickCreateChildBtn=!1)},showQuickCreateChildBtn:function(){if(!(this.isGeneralization||this.getChildrenLength()>0)){if(this._quickCreateChildBtn)this.group.add(this._quickCreateChildBtn);else{const{quickCreateChildBtnIcon:t,expandBtnStyle:e,expandBtnSize:i}=this.mindMap.opt,{icon:n,style:r}=t;let{color:o,fill:s}=e||{color:"#808080",fill:"#fff"};o=r.color||o;const a=Ci(n||Un.quickCreateChild).size(i,i);a.css({cursor:"pointer"}),a.x(0).y(-i/2),this.style.iconNode(a,o);const l=(new gi).size(i);l.x(0).y(-i/2),l.fill({color:s}).css({cursor:"pointer"}),this._quickCreateChildBtn=new xi,this._quickCreateChildBtn.add(l).add(a),this._quickCreateChildBtn.on("click",t=>{t.stopPropagation(),this.mindMap.emit("quick_create_btn_click",this);const{customQuickCreateChildBtnClick:e}=this.mindMap.opt;"function"!=typeof e?this.mindMap.execCommand("INSERT_CHILD_NODE",!0,[this]):e(this)}),this._quickCreateChildBtn.on("dblclick",t=>{t.stopPropagation()}),this._quickCreateChildBtn.addClass("smm-quick-create-child-btn"),this.group.add(this._quickCreateChildBtn)}this._showQuickCreateChildBtn=!0,this.renderer.layout.renderExpandBtn(this,this._quickCreateChildBtn)}},removeQuickCreateChildBtn:function(){this.isGeneralization||this._quickCreateChildBtn&&this._showQuickCreateChildBtn&&(this._quickCreateChildBtn.remove(),this._showQuickCreateChildBtn=!1)},hideQuickCreateChildBtn:function(){if(this.isGeneralization)return;const{isActive:t}=this.getData();t||this.removeQuickCreateChildBtn()}};const $n={getImgTextMarin:function(t,e,i,n,r){const{imgTextMargin:o}=this.mindMap.opt;return"v"===t?n>0&&r>0?o:0:e>0&&i>0?o:0},getTagContentSize:function(t){let e=0,i=this._tagData.reduce((t,i)=>(e=Math.max(e,i.height),t+i.width),0);return i+=(this._tagData.length-1)*t,{width:i,height:e}},getNodeRect:function(){if(this.isUseCustomNodeContent()){const t=this.measureCustomNodeContentSize(this._customNodeContent.cloneNode(!0));return{width:this.hasCustomWidth()?this.customTextWidth:t.width,height:t.height}}const{TAG_PLACEMENT:t,IMG_PLACEMENT:e}=a,{textContentMargin:i}=this.mindMap.opt,n=(this.getStyle("tagPlacement")||t.RIGHT)===t.BOTTOM,r=this.getStyle("imgPlacement")||e.TOP;let o=0,s=0,l=0,h=0,d=0,c=0,u=0;if(this._imgData&&(o=this._imgData.width,s=this._imgData.height),this.mindMap.nodeInnerPrefixList.forEach(t=>{const e=this[`_${t.name}Data`];e&&(l+=e.width,h=Math.max(h,e.height),u++)}),this._prefixData&&(l+=this._prefixData.width,h=Math.max(h,this._prefixData.height),u++),this._iconData.length>0&&(l+=this._iconData.reduce((t,e)=>(h=Math.max(h,e.height),t+e.width),0)+(this._iconData.length-1)*i,u++),this._textData&&(l+=this._textData.width,h=Math.max(h,this._textData.height),u++),this._hyperlinkData&&(l+=this._hyperlinkData.width,h=Math.max(h,this._hyperlinkData.height),u++),this._tagData.length>0){const{width:t,height:e}=this.getTagContentSize(i);n?(d=t,c=e):(l+=t,h=Math.max(h,e),u++)}this._noteData&&(l+=this._noteData.width,h=Math.max(h,this._noteData.height),u++),this._attachmentData&&(l+=this._attachmentData.width,h=Math.max(h,this._attachmentData.height),u++),this._postfixData&&(l+=this._postfixData.width,h=Math.max(h,this._postfixData.height),u++),this.mindMap.nodeInnerPostfixList.forEach(t=>{const e=this[`_${t.name}Data`];e&&(l+=e.width,h=Math.max(h,e.height),u++)}),l+=(u-1)*i,n&&l>0&&c>0&&(this._rectInfo.textContentWidthWithoutTag=l,l=Math.max(l,d),h=h+i+c),this._rectInfo.textContentWidth=l,this._rectInfo.textContentHeight=h;let f=0,p=0;[e.TOP,e.BOTTOM].includes(r)?(f=Math.max(o,l),p=s+h+this.getImgTextMarin("v",0,0,s,h)):(f=o+l+this.getImgTextMarin("h",o,l),p=Math.max(s,h));const{paddingX:m,paddingY:g}=this.getPaddingVale(),{paddingX:v,paddingY:y}=this.shapeInstance.getShapePadding(f,p,m,g);this.shapePadding.paddingX=v,this.shapePadding.paddingY=y;const b=this.getBorderWidth();return{width:f+2*m+2*v+b,height:p+2*g+2*y+b}},addHoverNode:function(t,e){const{hoverRectPadding:i}=this.mindMap.opt;this.hoverNode=(new $e).size(t+2*i,e+2*i).x(-i).y(-i),this.hoverNode.addClass("smm-hover-node"),this.style.hoverNode(this.hoverNode,t,e),this.group.add(this.hoverNode)},layout:function(){if(!this.group)return;this.group.clear();const{openRealtimeRenderOnNodeTextEdit:t,textContentMargin:e,addCustomContentToNode:i}=this.mindMap.opt,{width:n,height:r}=this;let{paddingX:o,paddingY:s}=this.getPaddingVale();const l=this.getBorderWidth()/2;if(o+=this.shapePadding.paddingX+l,s+=this.shapePadding.paddingY+l,this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(l,l),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.createUserListNode&&this.createUserListNode(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid),this.isUseCustomNodeContent()){const t=Sn({el:this._customNodeContent,width:n,height:r});return this.group.add(t),void this.addHoverNode(n,r)}const{IMG_PLACEMENT:h,TAG_PLACEMENT:d}=a,c=this.getStyle("imgPlacement")||h.TOP,u=(this.getStyle("tagPlacement")||d.RIGHT)===d.BOTTOM;let{textContentWidth:f,textContentHeight:p,textContentWidthWithoutTag:m}=this._rectInfo;const g=p;let v=0,y=0;const b=this._tagData&&this._tagData.length>0;if(b){const t=this.getTagContentSize(e);v=t.width,y=t.height,u&&(p-=y+e)}let x=0,w=0;if(this._imgData)switch(x=this._imgData.width,w=this._imgData.height,this.group.add(this._imgData.node),c){case h.TOP:this._imgData.node.cx(n/2).y(s);break;case h.BOTTOM:this._imgData.node.cx(n/2).y(r-s-w);break;case h.LEFT:this._imgData.node.x(o).cy(r/2);break;case h.RIGHT:this._imgData.node.x(n-o-x).cy(r/2)}let k=new xi,E=0;if(b&&u&&(E=m<f?(f-m)/2:0),this.mindMap.nodeInnerPrefixList.forEach(t=>{const i=this[`_${t.name}Data`];i&&(i.node.x(E).y((p-i.height)/2),k.add(i.node),E+=i.width+e)}),this._prefixData){const t=Sn({el:this._prefixData.el,width:this._prefixData.width,height:this._prefixData.height});t.x(E).y((p-this._prefixData.height)/2),k.add(t),E+=this._prefixData.width+e}let N=new xi;if(this._iconData&&this._iconData.length>0){let t=0;this._iconData.forEach(i=>{i.node.x(E+t).y((p-i.height)/2),N.add(i.node),t+=i.width+e}),k.add(N),E+=t}if(this._textData){const i=this._textData.node.attr("data-offsetx")||0;this._textData.node.attr("data-offsetx",E),(this._textData.nodeContent||this._textData.node).x(-i).x(E).y((p-this._textData.height)/2),t&&this._textData.node.opacity(this.mindMap.renderer.textEdit.getCurrentEditNode()===this?0:1),k.add(this._textData.node),E+=this._textData.width+e}this._hyperlinkData&&(this._hyperlinkData.node.x(E).y((p-this._hyperlinkData.height)/2),k.add(this._hyperlinkData.node),E+=this._hyperlinkData.width+e);let T=new xi;if(b)if(u){let t=0;this._tagData.forEach(i=>{i.node.x(t).y((y-i.height)/2),T.add(i.node),t+=i.width+e}),T.x((f-v)/2).y(g-y),k.add(T)}else{let t=0;this._tagData.forEach(i=>{i.node.x(E+t).y((p-i.height)/2),T.add(i.node),t+=i.width+e}),k.add(T),E+=t}if(this._noteData&&(this._noteData.node.x(E).y((p-this._noteData.height)/2),k.add(this._noteData.node),E+=this._noteData.width+e),this._attachmentData&&(this._attachmentData.node.x(E).y((p-this._attachmentData.height)/2),k.add(this._attachmentData.node),E+=this._attachmentData.width+e),this._postfixData){const t=Sn({el:this._postfixData.el,width:this._postfixData.width,height:this._postfixData.height});t.x(E).y((p-this._postfixData.height)/2),k.add(t),E+=this._postfixData.width+e}this.mindMap.nodeInnerPostfixList.forEach(t=>{const i=this[`_${t.name}Data`];i&&(i.node.x(E).y((p-i.height)/2),k.add(i.node),E+=i.width+e)}),this.group.add(k);const{width:_,height:C}=k.bbox();let S=0,M=0;switch(c){case h.TOP:S=n/2-_/2,M=s+w+this.getImgTextMarin("v",0,0,w,g);break;case h.BOTTOM:S=n/2-_/2,M=s;break;case h.LEFT:S=x+o+this.getImgTextMarin("h",x,f),M=r/2-C/2;break;case h.RIGHT:S=o,M=r/2-C/2}if(k.translate(S,M),this.addHoverNode(n,r),this._customContentAddToNodeAdd&&this._customContentAddToNodeAdd.el){const t=Sn(this._customContentAddToNodeAdd);this.group.add(t),i&&"function"==typeof i.handle&&i.handle({content:this._customContentAddToNodeAdd,element:t,node:this})}this.mindMap.emit("node_layout_end",this)},customNodeContentRealtimeLayout:function(){if(!this.group)return;if(!this.isUseCustomNodeContent())return;this.shapeNode&&this.shapeNode.remove(),this._unVisibleRectRegionNode&&this._unVisibleRectRegionNode.remove(),this.hoverNode&&this.hoverNode.remove();const{width:t,height:e}=this,i=this.getBorderWidth()/2;this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(i,i),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid),this.addHoverNode(t,e),this.shapeNode.back(),this.group.findOne("foreignObject").size(t,e)}};class tr{constructor(t={}){this.opt=t,this.nodeData=this.handleData(t.data||{}),this.nodeDataSnapshot="",this.uid=t.uid,this.mindMap=t.mindMap,this.renderer=t.renderer,this.draw=this.mindMap.draw,this.nodeDraw=this.mindMap.nodeDraw,this.lineDraw=this.mindMap.lineDraw,this.style=new In(this),this.effectiveStyles={},this.shapeInstance=new qn(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=void 0!==t.isRoot&&t.isRoot,this.isGeneralization=void 0!==t.isGeneralization&&t.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=void 0===t.layerIndex?0:t.layerIndex,this.width=t.width||0,this.height=t.height||0,this.customTextWidth=t.data.data.customTextWidth||void 0,this._left=t.left||0,this._top=t.top||0,this.customLeft=t.data.data.customLeft||void 0,this.customTop=t.data.data.customTop||void 0,this.isDrag=!1,this.parent=t.parent||null,this.children=t.children||[],this.userList=[],this.group=null,this.shapeNode=null,this.hoverNode=null,this._customNodeContent=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this.noteContentIsShow=!1,this._attachmentData=null,this._prefixData=null,this._postfixData=null,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._userListGroup=null,this._lines=[],this._generalizationList=[],this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._customContentAddToNodeAdd=null,this._rectInfo={textContentWidth:0,textContentHeight:0,textContentWidthWithoutTag:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,this.isHide=!1;const e=Object.getPrototypeOf(this);e.bindEvent||(Object.keys($n).forEach(t=>{e[t]=$n[t]}),Object.keys(Pn).forEach(t=>{e[t]=Pn[t]}),Object.keys(jn).forEach(t=>{e[t]=jn[t]}),Object.keys(Yn).forEach(t=>{e[t]=Yn[t]}),Object.keys(Hn).forEach(t=>{e[t]=Hn[t]}),Object.keys(Xn).forEach(t=>{e[t]=Xn[t]}),this.mindMap.cooperate&&Object.keys(Qn).forEach(t=>{e[t]=Qn[t]}),Object.keys(Zn).forEach(t=>{e[t]=Zn[t]}),this.mindMap.opt.isShowCreateChildBtnIcon&&(Object.keys(Jn).forEach(t=>{e[t]=Jn[t]}),this.initQuickCreateChildBtn()),e.bindEvent=!0),this.getSize(),this.updateGeneralization(),this.initDragHandle()}get left(){return this.customLeft||this._left}set left(t){this._left=t}get top(){return this.customTop||this._top}set top(t){this._top=t}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}resetWhenDelete(){this._isMouseenter=!1}handleData(t){return t.data.expand=!1!==t.data.expand,t.data.isActive=!0===t.data.isActive,t.children=t.children||[],t}createNodeData(t){const{isUseCustomNodeContent:e,customCreateNodeContent:i,createNodePrefixContent:n,createNodePostfixContent:r,addCustomContentToNode:o}=this.mindMap.opt,s=["custom","image","icon","text","hyperlink","tag","note","attachment","prefix","postfix",...this.mindMap.nodeInnerPrefixList.map(t=>t.name),...this.mindMap.nodeInnerPostfixList.map(t=>t.name)],a={};Array.isArray(t)?s.forEach(e=>{t.includes(e)&&(a[e]=!0)}):s.forEach(t=>{a[t]=!0}),e&&i&&a.custom&&(this._customNodeContent=i(this)),this._customNodeContent?An(this._customNodeContent):(a.image&&(this._imgData=this.createImgNode()),a.icon&&(this._iconData=this.createIconNode()),a.text&&(this._textData=this.createTextNode()),a.hyperlink&&(this._hyperlinkData=this.createHyperlinkNode()),a.tag&&(this._tagData=this.createTagNode()),a.note&&(this._noteData=this.createNoteNode()),a.attachment&&(this._attachmentData=this.createAttachmentNode()),this.mindMap.nodeInnerPrefixList.forEach(t=>{a[t.name]&&(this[`_${t.name}Data`]=t.createContent(this))}),a.prefix&&(this._prefixData=n?n(this):null,this._prefixData&&this._prefixData.el&&An(this._prefixData.el)),a.postfix&&(this._postfixData=r?r(this):null,this._postfixData&&this._postfixData.el&&An(this._postfixData.el)),this.mindMap.nodeInnerPostfixList.forEach(t=>{a[t.name]&&(this[`_${t.name}Data`]=t.createContent(this))}),o&&"function"==typeof o.create&&(this._customContentAddToNodeAdd=o.create(this),this._customContentAddToNodeAdd&&this._customContentAddToNodeAdd.el&&An(this._customContentAddToNodeAdd.el)))}getSize(t,e={}){e.ignoreUpdateCustomTextWidth||!1||(this.customTextWidth=this.getData("customTextWidth")||void 0),this.customLeft=this.getData("customLeft")||void 0,this.customTop=this.getData("customTop")||void 0,this.createNodeData(t);const{width:i,height:n}=this.getNodeRect(),r=this.width!==i||this.height!==n;return this.width=i,this.height=n,r}bindGroupEvent(){this.group.on("click",t=>{if(this.mindMap.emit("node_click",this,t),this.isMultipleChoice)return t.stopPropagation(),void(this.isMultipleChoice=!1);this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&this.userList.length>0||this.active(t)}),this.group.on("mousedown",t=>{const{readonly:e,enableCtrlKeyNodeSelection:i,useLeftKeySelectionRightKeyDrag:n,mousedownEventPreventDefault:r}=this.mindMap.opt;if(r&&t.preventDefault(),e||(this.isRoot?3!==t.which||n||t.stopPropagation():2!==t.which&&t.stopPropagation()),!e&&(t.ctrlKey||t.metaKey)&&i){this.isMultipleChoice=!0;const t=this.getData("isActive");t||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.renderer[t?"removeNodeFromActiveList":"addNodeToActiveList"](this,!0),this.renderer.emitNodeActiveEvent(t?null:this)}this.mindMap.emit("node_mousedown",this,t)}),this.group.on("mouseup",t=>{this.isRoot||2===t.which||this.mindMap.opt.readonly||t.stopPropagation(),this.mindMap.emit("node_mouseup",this,t)}),this.group.on("mouseenter",t=>{this.isDrag||(this._isMouseenter=!0,this.showExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseenter(),this.mindMap.emit("node_mouseenter",this,t))}),this.group.on("mouseleave",t=>{this._isMouseenter&&(this._isMouseenter=!1,this.hideExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseleave(),this.mindMap.emit("node_mouseleave",this,t))}),this.group.on("dblclick",t=>{const{readonly:e,onlyOneEnableActiveNodeOnCooperate:i}=this.mindMap.opt;e||t.ctrlKey||t.metaKey||(t.stopPropagation(),i&&this.userList.length>0||this.mindMap.emit("node_dblclick",this,t))}),this.group.on("contextmenu",t=>{const{readonly:e,useLeftKeySelectionRightKeyDrag:i}=this.mindMap.opt;e||t.ctrlKey||(t.stopPropagation(),t.preventDefault(),this.mindMap.select&&!i&&this.mindMap.select.hasSelectRange()||(this.getData("isActive")&&1===this.renderer.activeNodeList.length||(this.renderer.clearActiveNodeList(),this.active(t)),this.mindMap.emit("node_contextmenu",t,this)))})}active(t){this.mindMap.opt.readonly||(t&&t.stopPropagation(),this.getData("isActive")||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActiveNodeList(),this.renderer.addNodeToActiveList(this,!0),this.renderer.emitNodeActiveEvent(this)))}deactivate(){this.mindMap.renderer.removeNodeFromActiveList(this),this.mindMap.renderer.emitNodeActiveEvent()}update(t){if(!this.group)return;this.updateNodeActiveClass();const{alwaysShowExpandBtn:e,notShowExpandBtn:i,isShowCreateChildBtnIcon:n,readonly:r}=this.mindMap.opt,o=this.getChildrenLength();if(!i)if(e)this._expandBtn&&o<=0?this.removeExpandBtn():this.renderExpandBtn();else{const{isActive:t,expand:e}=this.getData();o<=0?this.removeExpandBtn():!e||t||this._isMouseenter?this.showExpandBtn():this.hideExpandBtn()}if(n)if(o>0)this.removeQuickCreateChildBtn();else{const{isActive:t}=this.getData();t?this.showQuickCreateChildBtn():this.hideQuickCreateChildBtn()}this.updateDragHandle(),this.renderGeneralization(t),this.updateUserListNode&&this.updateUserListNode();const s=this.group.transform();this.nodeDataSnapshot=r?"":JSON.stringify(this.getData()),this.left===s.translateX&&this.top===s.translateY||this.group.translate(this.left-s.translateX,this.top-s.translateY)}getNodePosInClient(t,e){const i=this.mindMap.draw.transform(),{scaleX:n,scaleY:r,translateX:o,translateY:s}=i;return{left:t*n+o,top:e*r+s}}checkIsInClient(t=0){const{left:e,top:i}=this.getNodePosInClient(this.left,this.top);return e+this.width>0-t&&i+this.height>0-t&&e<this.mindMap.width+t&&i<this.mindMap.height+t}reRender(t,e){const i=this.getSize(t,e);return this.layout(),this.update(),i}updateNodeActiveClass(){if(!this.group)return;const t=this.getData("isActive");this.group[t?"addClass":"removeClass"]("active")}updateNodeByActive(t){if(this.group){const{isShowCreateChildBtnIcon:e}=this.mindMap.opt;t?(this.showExpandBtn(),e&&this.showQuickCreateChildBtn()):(this.hideExpandBtn(),e&&this.hideQuickCreateChildBtn()),this.updateNodeActiveClass(),this.updateDragHandle()}}render(t=()=>{},e=!1,i=!1){this.renderLine();const{openPerformance:n,performanceConfig:r}=this.mindMap.opt;if(e||!n||this.checkIsInClient(r.padding)||this.isRoot?this.group?(this.nodeDraw.has(this.group)||this.nodeDraw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.updateExpandBtnPlaceholderRect(),this.update(e)):(this.group=new xi,this.group.addClass("smm-node"),this.group.css({cursor:"default"}),this.bindGroupEvent(),this.nodeDraw.add(this.group),this.layout(),this.update(e)):n&&r.removeNodeWhenOutCanvas&&this.removeSelf(),this.children&&this.children.length&&!1!==this.getData("expand")){let n=0;this.children.forEach(r=>{const o=()=>{r.render(()=>{n++,n>=this.children.length&&t()},e,i)};i?setTimeout(o,0):o()})}else t();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),this.mindMap.emit("node_dblclick",this,null,!0))}removeSelf(){this.group&&(this.group.remove(),this.removeGeneralization())}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&this.children.forEach(t=>{t.remove()}))}destroy(){this.removeLine(),this.parent&&this.parent.removeLine(),this.group&&(this.emptyUser&&this.emptyUser(),this.resetWhenDelete(),this.group.remove(),this.removeGeneralization(),this.group=null,this.style.onRemove())}hide(){if(this.group&&this.group.hide(),this.hideGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].hide(),this._lines.forEach(t=>{t.hide()})}this.children&&this.children.length&&this.children.forEach(t=>{t.hide()})}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].show(),this._lines.forEach(t=>{t.show()})}this.children&&this.children.length&&this.children.forEach(t=>{t.show()})}}setOpacity(t){this.group&&this.group.opacity(t),this._lines.forEach(e=>{e.opacity(t)}),this.children.forEach(e=>{e.setOpacity(t)}),this.setGeneralizationOpacity(t)}hideChildren(){this._lines.forEach(t=>{t.hide()}),this.children&&this.children.length&&this.children.forEach(t=>{t.hide()})}showChildren(){this._lines.forEach(t=>{t.show()}),this.children&&this.children.length&&this.children.forEach(t=>{t.show()})}startDrag(){this.isDrag=!0,this.group&&this.group.addClass("smm-node-dragging")}endDrag(){this.isDrag=!1,this.group&&this.group.removeClass("smm-node-dragging")}renderLine(t=!1){if(!1===this.getData("expand"))return;let e=this.getChildrenLength();this.mindMap.renderer.layout.nodeIsRemoveAllLines&&this.mindMap.renderer.layout.nodeIsRemoveAllLines(this)&&(e=0),e>this._lines.length?new Array(e-this._lines.length).fill(0).forEach(()=>{this._lines.push(this.lineDraw.path())}):e<this._lines.length&&(this._lines.slice(e).forEach(t=>{t.remove()}),this._lines=this._lines.slice(0,e)),this.renderer.layout.renderLine(this,this._lines,(...t)=>{this.styleLine(...t)},this.style.getStyle("lineStyle",!0)),t&&this.children&&this.children.length>0&&this.children.forEach(e=>{e.renderLine(t)})}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?a.SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return void 0!==this.customLeft&&void 0!==this.customTop}ancestorHasCustomPosition(){let t=this;for(;t;){if(t.hasCustomPosition())return!0;t=t.parent}return!1}ancestorHasGeneralization(){let t=this.parent;for(;t;){if(t.checkHasGeneralization())return!0;t=t.parent}return!1}addChildren(t){this.children.push(t)}styleLine(t,e,i){const{enableInheritAncestorLineStyle:n}=this.mindMap.opt,r=n?"getSelfInhertStyle":"getSelfStyle",o=e[r]("lineWidth")||e.getStyle("lineWidth",!0),s=e[r]("lineColor")||this.getRainbowLineColor(e)||e.getStyle("lineColor",!0),a=e[r]("lineDasharray")||e.getStyle("lineDasharray",!0);this.style.line(t,{width:o,color:s,dasharray:a},i,e)}getRainbowLineColor(t){return this.mindMap.rainbowLines?this.mindMap.rainbowLines.getNodeColor(t):""}removeLine(){this._lines.forEach(t=>{t.remove()}),this._lines=[]}isAncestor(t){if(this.uid===t.uid)return!1;let e=t.parent;for(;e;){if(this.uid===e.uid)return!0;e=e.parent}return!1}isParent(t){if(this.uid===t.uid)return!1;const e=t.parent;return!(!e||this.uid!==e.uid)}isBrother(t){return!(!this.parent||this.uid===t.uid)&&this.parent.children.find(e=>e.uid===t.uid)}getIndexInBrothers(){return this.parent&&this.parent.children?this.parent.children.findIndex(t=>t.uid===this.uid):-1}getPaddingVale(){return{paddingX:this.getStyle("paddingX"),paddingY:this.getStyle("paddingY")}}getStyle(t,e){const i=this.style.merge(t,e);return void 0===i?"":i}getSelfStyle(t){return this.style.getSelfStyle(t)}getParentSelfStyle(t){return this.parent?this.parent.getSelfStyle(t)||this.parent.getParentSelfStyle(t):null}getSelfInhertStyle(t){return this.getSelfStyle(t)||this.getParentSelfStyle(t)}getBorderWidth(){return this.style.merge("borderWidth",!1)||0}getData(t){return t?this.nodeData.data[t]:this.nodeData.data}getPureData(t=!0,e=!1){return qi({},this,t,e)}getAncestorNodes(){const t=[];let e=this.parent;for(;e;)t.unshift(e),e=e.parent;return t}hasCustomStyle(){return this.style.hasCustomStyle()}getRect(){return this.group?this.group.rbox():null}getRectInSvg(){const{scaleX:t,scaleY:e,translateX:i,translateY:n}=this.mindMap.draw.transform();let{left:r,top:o,width:s,height:a}=this;const l=(r+s)*t+i,h=(o+a)*e+n;return r=r*t+i,o=o*e+n,{left:r,right:l,top:o,bottom:h,width:s*t,height:a*e}}highlight(){this.group&&this.group.addClass("smm-node-highlight")}closeHighlight(){this.group&&this.group.removeClass("smm-node-highlight")}fakeClone(){const t=new tr({...this.opt,uid:Xi()});return Object.keys(this).forEach(e=>{t[e]=this[e]}),t}createSvgTextNode(t=""){return(new pi).text(t)}getSvgObjects(){return{SVG:Ci,G:xi,Rect:$e}}checkEnableDragModifyNodeWidth(){const{enableDragModifyNodeWidth:t,isUseCustomNodeContent:e,customCreateNodeContent:i}=this.mindMap.opt;return t&&(this.mindMap.richText||e&&i)}hasCustomWidth(){return this.checkEnableDragModifyNodeWidth()&&void 0!==this.customTextWidth}getChildrenLength(){return this.nodeData.children?this.nodeData.children.length:0}}const er=tr;class ir{constructor(t){this.max=t||1e3,this.size=0,this.pool=new Map}add(t,e){return!(!this.has(t)&&this.size>=this.max)&&(this.delete(t),this.pool.set(t,e),this.size++,!0)}delete(t){this.pool.has(t)&&(this.pool.delete(t),this.size--)}has(t){return this.pool.has(t)}get(t){if(this.pool.has(t))return this.pool.get(t)}clear(){this.size=0,this.pool=new Map}}const nr=class{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.lineDraw=this.mindMap.lineDraw,this.root=null,this.lru=new ir(this.mindMap.opt.maxNodeCacheCount),this.rootNodeCenterOffset=null}doLayout(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}renderLine(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}renderGeneralization(){}cacheNode(t,e){this.renderer.nodeCache[t]=e,this.lru.add(t,e)}checkIsNeedResizeSources(){return this.renderer.checkHasRenderSource(a.CHANGE_THEME)}checkIsLayerTypeChange(t,e){return!(t>=2&&e>=2)&&(t>=2&&e<2||(t<2&&e>=2||void 0))}checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(t){this.renderer.checkHasRenderSource(a.CHANGE_LAYOUT)&&(t.needRerenderExpandBtnPlaceholderRect=!0)}checkIsNodeDataChange(t,e){return!!t&&((t="string"==typeof t?JSON.parse(t):t).isActive=e.isActive,t.expand=e.expand,(t=JSON.stringify(t))!==JSON.stringify(e))}checkNodeFixChange(t,e,i){let n=!1;this.mindMap.nodeInnerPrefixList.forEach(i=>{if(i.updateNodeData){const r=i.updateNodeData(t,e);r&&(n=r)}});let r=!1;return this.mindMap.nodeInnerPostfixList.forEach(e=>{if(e.updateNodeData){const n=e.updateNodeData(t,i);n&&(r=n)}}),n||r}createNode(t,e,i,n,r,o){const s={};this.mindMap.nodeInnerPrefixList.forEach(i=>{if(i.createNodeData){const[a,l]=i.createNodeData({data:t,parent:e,ancestors:o,layerIndex:n,index:r});s[a]=l}});const a={};this.mindMap.nodeInnerPostfixList.forEach(i=>{if(i.createNodeData){const[s,l]=i.createNodeData({data:t,parent:e,ancestors:o,layerIndex:n,index:r});a[s]=l}});const l=t.data.uid;let h=null;if(t&&t._node&&!this.renderer.reRender){h=t._node;const r=this.checkIsLayerTypeChange(h.layerIndex,n);h.reset(),h.layerIndex=n,i?h.isRoot=!0:h.parent=e._node,this.cacheNode(t._node.uid,h),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(h);const o=this.checkNodeFixChange(h,s,a),l=this.checkIsNeedResizeSources(),d=this.checkIsNodeDataChange(t._node.nodeDataSnapshot,t.data);(l||d||r||h.getData("resetRichText")&&!h.isUseCustomNodeContent()||h.getData("needUpdate")||o)&&(h.getSize(),h.needLayout=!0),this.checkGetGeneralizationChange(h,l)}else if(!this.lru.has(l)&&!this.renderer.lastNodeCache[l]||this.renderer.reRender){const r=l||Xi();h=new er({data:t,uid:r,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:n,isRoot:i,parent:i?null:e._node,...s}),t.data.uid=r,this.cacheNode(r,h),t._node=h}else{h=this.lru.get(l)||this.renderer.lastNodeCache[l];const r=JSON.stringify(h.getData()),o=this.checkIsLayerTypeChange(h.layerIndex,n);h.reset(),h.nodeData=h.handleData(t||{}),h.layerIndex=n,i?h.isRoot=!0:h.parent=e._node,this.cacheNode(l,h),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(h),t._node=h;const d=this.checkIsNeedResizeSources(),c=this.checkIsNodeDataChange(r,t.data),u=this.checkNodeFixChange(h,s,a);(d||c||o||h.getData("resetRichText")&&!h.isUseCustomNodeContent()||h.getData("needUpdate")||u)&&(h.getSize(),h.needLayout=!0),this.checkGetGeneralizationChange(h,d)}return t.data.isActive&&this.renderer.addNodeToActiveList(h),-1!==this.mindMap.renderer.findActiveNodeIndex(h)&&h.setData({isActive:!0}),i?this.root=h:e._node.addChildren(h),h}checkGetGeneralizationChange(t,e){const i=t.getData("generalization");i&&t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach((t,n)=>{const r=t.generalizationNode,o=r.getData(),s=i[n];(e||s&&JSON.stringify(o)!==JSON.stringify(s))&&(s&&(r.nodeData.data=s),r.getSize(),r.needLayout=!0)})}formatPosition(t,e,i){return"number"==typeof t?t:void 0!==l[t]?e*l[t]:/^\d\d*%$/.test(t)?Number.parseFloat(t)/100*e:(e-i)/2}formatInitRootNodePosition(t){const{CENTER:e}=a.INIT_ROOT_NODE_POSITION;return(!t||!Array.isArray(t)||t.length<2)&&(t=[e,e]),t}setNodeCenter(t,e){let{initRootNodePosition:i}=this.mindMap.opt;i=this.formatInitRootNodePosition(e||i),t.left=this.formatPosition(i[0],this.mindMap.width,t.width),t.top=this.formatPosition(i[1],this.mindMap.height,t.height)}getRootCenterOffset(t,e){if(this.rootNodeCenterOffset)return this.rootNodeCenterOffset;let{initRootNodePosition:i}=this.mindMap.opt;const{CENTER:n}=a.INIT_ROOT_NODE_POSITION;if(i=this.formatInitRootNodePosition(i),i[0]===n&&i[1]===n)this.rootNodeCenterOffset={x:0,y:0};else{const i={width:t,height:e},r={width:t,height:e};this.setNodeCenter(i,[n,n]),this.setNodeCenter(r),this.rootNodeCenterOffset={x:r.left-i.left,y:r.top-i.top}}return this.rootNodeCenterOffset}updateChildren(t,e,i){t.forEach(t=>{t[e]+=i,t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildren(t.children,e,i)})}updateChildrenPro(t,e){t.forEach(t=>{Object.keys(e).forEach(i=>{t[i]+=e[i]}),t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildrenPro(t.children,e)})}getNodeAreaWidth(t,e=!1){let i=[],n=0,r=(t,o)=>{e&&t.checkHasGeneralization()&&(n+=t._generalizationNodeWidth),t.children.length?(o+=t.width/2,t.children.forEach(t=>{r(t,o)})):(o+=t.width,i.push(o))};return r(t,0),Math.max(...i)+n}quadraticCurvePath(t,e,i,n,r=!1){let o,s;return r?(o=t+.8*(i-t),s=e+.2*(n-e)):(o=t+.2*(i-t),s=e+.8*(n-e)),`M ${t},${e} Q ${o},${s} ${i},${n}`}cubicBezierPath(t,e,i,n,r=!1){let o,s,a,l;return r?(o=t,s=e+(n-e)/2,a=i,l=s):(o=t+(i-t)/2,s=e,a=o,l=n),`M ${t},${e} C ${o},${s} ${a},${l} ${i},${n}`}computeNewPoint(t,e,i=0){return t[0]===e[0]?e[1]>t[1]?[e[0],e[1]-i]:[e[0],e[1]+i]:t[1]===e[1]?e[0]>t[0]?[e[0]-i,e[1]]:[e[0]+i,e[1]]:void 0}createFoldLine(t){const{lineRadius:e}=this.mindMap.themeConfig,i=t.length;let n="",r="";if(i>=3&&e>0){const n=t[i-3],o=t[i-2],s=t[i-1];if(!(n[0].toFixed(0)===o[0].toFixed(0)&&o[0].toFixed(0)===s[0].toFixed(0)||n[1].toFixed(0)===o[1].toFixed(0)&&o[1].toFixed(0)===s[1].toFixed(0))){const a=this.computeNewPoint(n,o,e),l=this.computeNewPoint(s,o,e);r=`Q ${o[0]},${o[1]} ${l[0]},${l[1]}`,t.splice(i-2,1,a,r)}}return t.forEach((t,e)=>{if("string"==typeof t)n+=t;else{const[i,r]=t;n+=0===e?`M ${i},${r}`:`L ${i},${r}`}}),n}getMarginX(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:r}=e,o=2*i.hoverRectPadding;return 1===t?n.marginX+o:r.marginX+o}getMarginY(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:r}=e,o=2*i.hoverRectPadding;return 1===t?n.marginY+o:r.marginY+o}getNodeWidthWithGeneralization(t){return Math.max(t.width,t.checkHasGeneralization()?t._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(t){return Math.max(t.height,t.checkHasGeneralization()?t._generalizationNodeHeight:0)}getNodeBoundaries(t,e){let{generalizationLineMargin:i,generalizationNodeMargin:n}=this.mindMap.themeConfig,r=t=>{let i=1/0,o=-1/0,s=1/0,a=-1/0;t.children&&t.children.length>0&&t.children.forEach(t=>{let{left:l,right:h,top:d,bottom:c}=r(t),u=t.checkHasGeneralization()&&t.getData("expand")?t._generalizationNodeWidth+n:0,f=t.checkHasGeneralization()&&t.getData("expand")?t._generalizationNodeHeight+n:0;l-("h"===e?u:0)<i&&(i=l-("h"===e?u:0)),h+("h"===e?u:0)>o&&(o=h+("h"===e?u:0)),d<s&&(s=d),c+("v"===e?f:0)>a&&(a=c+("v"===e?f:0))});let l={left:t.left,right:t.left+t.width,top:t.top,bottom:t.top+t.height};return{left:l.left<i?l.left:i,right:l.right>o?l.right:o,top:l.top<s?l.top:s,bottom:l.bottom>a?l.bottom:a}},{left:o,right:s,top:a,bottom:l}=r(t);return{left:o,right:s,top:a,bottom:l,generalizationLineMargin:i,generalizationNodeMargin:n}}getChildrenBoundaries(t,e,i=0,n){let{generalizationLineMargin:r,generalizationNodeMargin:o}=this.mindMap.themeConfig;const s=t.children.slice(i,n+1);let a=1/0,l=-1/0,h=1/0,d=-1/0;return s.forEach(t=>{const i=this.getNodeBoundaries(t,e);a=i.left<a?i.left:a,l=i.right>l?i.right:l,h=i.top<h?i.top:h,d=i.bottom>d?i.bottom:d}),{left:a,right:l,top:h,bottom:d,generalizationLineMargin:r,generalizationNodeMargin:o}}getNodeGeneralizationRenderBoundaries(t,e){let i=null;return i=t.range?this.getChildrenBoundaries(t.node,e,t.range[0],t.range[1]):this.getNodeBoundaries(t.node,e),i}getNodeActChildrenLength(t){return t.nodeData.children&&t.nodeData.children.length}setLineStyle(t,e,i,n){e.plot(this.transformPath(i)),t&&t(e,n,!0)}transformPath(t){const{customTransformNodeLinePath:e}=this.mindMap.opt;return e?e(t):t}};const rr=class extends nr{constructor(t={},e){super(t),this.isUseLeft=e===a.LAYOUT.LOGICAL_STRUCTURE_LEFT}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){let t=0;Li(this.renderer.renderTree,null,(e,i,n,r,o,s)=>{let a=this.createNode(e,i,n,r,o,s);if(a.sortIndex=t,t++,n?this.setNodeCenter(a):this.isUseLeft?a.left=i._node.left-a.width-this.getMarginX(r):a.left=i._node.left+i._node.width+this.getMarginX(r),!e.data.expand)return!0},(t,e,i,n)=>{let r=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaHeight=r?t._node.children.reduce((t,e)=>t+e.height,0)+(r+1)*this.getMarginY(n+1):0;let o=t._node.checkHasGeneralization()?t._node._generalizationNodeHeight+this.getMarginY(n+1):0;t._node.childrenAreaHeight2=Math.max(t._node.childrenAreaHeight,o)},!0,0)}computedTopValue(){Li(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.top+t.height/2-t.childrenAreaHeight/2+e;t.children.forEach(t=>{t.top=i,i+=t.height+e})}},null,!0)}adjustTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let r=t.childrenAreaHeight2-2*this.getMarginY(n+1)-t.height;r>0&&this.updateBrothers(t,r/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=mn(t,i);i.forEach((i,r)=>{if(i.uid===t.uid||i.hasCustomPosition())return;let o=0;r<n?o=-e:r>n&&(o=e),i.top+=o,i.children&&i.children.length&&this.updateChildren(i.children,"top",o)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a}=t;const{alwaysShowExpandBtn:l,notShowExpandBtn:h}=this.mindMap.opt;l&&!h||(a=0);let d=.6*(this.getMarginX(t.layerIndex+1)-a);this.isUseLeft&&(d*=-1);let c=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((l,h)=>{let u;u=this.isUseLeft?0===t.layerIndex?n:n-a:0===t.layerIndex?n+o:n+o+a;let f=r+s/2,p=this.isUseLeft?l.left+l.width:l.left,m=l.top+l.height/2,g=c?l.width*(this.isUseLeft?-1:1):0;f=c&&!t.isRoot?f+s/2:f,m=c?m+l.height/2:m;let v=this.createFoldLine([[u,f],[u+d,f],[u+d,m],[p+g,m]]);this.setLineStyle(i,e[h],v,l)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a}=t;const{alwaysShowExpandBtn:l,notShowExpandBtn:h}=this.mindMap.opt;l&&!h||(a=0);const{nodeUseLineStyle:d}=this.mindMap.themeConfig;t.children.forEach((l,h)=>{0===t.layerIndex&&(a=0);let c=this.isUseLeft?n-a:n+o+a,u=r+s/2,f=this.isUseLeft?l.left+l.width:l.left,p=l.top+l.height/2;u=d&&!t.isRoot?u+s/2:u,p=d?p+l.height/2:p;let m=`M ${c},${u} L ${f},${p}`+(d?` L ${this.isUseLeft?l.left:l.left+l.width},${p}`:"");this.setLineStyle(i,e[h],m,l)})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a}=t;const{alwaysShowExpandBtn:l,notShowExpandBtn:h}=this.mindMap.opt;l&&!h||(a=0);const{nodeUseLineStyle:d,rootLineStartPositionKeepSameInCurve:c,rootLineKeepSameInCurve:u}=this.mindMap.themeConfig;t.children.forEach((l,h)=>{let f;0===t.layerIndex&&(a=0),f=this.isUseLeft?0!==t.layerIndex||c?n-a:n+o/2:0!==t.layerIndex||c?n+o+a:n+o/2;let p,m=r+s/2,g=this.isUseLeft?l.left+l.width:l.left,v=l.top+l.height/2,y="";m=d&&!t.isRoot?m+s/2:m,v=d?v+l.height/2:v,p=this.isUseLeft?d?` L ${l.left},${v}`:"":d?` L ${l.left+l.width},${v}`:"",y=t.isRoot&&!u?this.quadraticCurvePath(f,m,g,v)+p:this.cubicBezierPath(f,m,g,v)+p,this.setLineStyle(i,e[h],y,l)})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r,layerIndex:o}=t;0===o&&(r=0);let{translateX:s,translateY:a}=e.transform(),l=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,h=this.isUseLeft?0-r:i,d=n/2+l;h===s&&d===a||e.translate(h-s,d-a)}renderGeneralization(t){t.forEach(t=>{let{left:e,top:i,bottom:n,right:r,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeGeneralizationRenderBoundaries(t,"h"),a=this.isUseLeft?e-o:r+o,l=i,h=a,d=n,c=`M ${a},${l} Q ${a+(this.isUseLeft?-20:20)},${l+(d-l)/2} ${h},${d}`;t.generalizationLine.plot(c),t.generalizationNode.left=a+(this.isUseLeft?-s:s)-(this.isUseLeft?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n){this.isUseLeft?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}};const or=class extends nr{constructor(t={}){super(t)}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{let s=this.createNode(t,e,i,n,r,o);if(i?this.setNodeCenter(s):(e._node.dir?s.dir=e._node.dir:s.dir=s.getData("dir")||(r%2==0?a.LAYOUT_GROW_DIR.RIGHT:a.LAYOUT_GROW_DIR.LEFT),s.left=s.dir===a.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-s.width),!t.data.expand)return!0},(t,e,i,n)=>{if(!t.data.expand)return t._node.leftChildrenAreaHeight=0,void(t._node.rightChildrenAreaHeight=0);let r=0,o=0,s=0,l=0;t._node.children.forEach(t=>{t.dir===a.LAYOUT_GROW_DIR.LEFT?(r++,s+=t.height):(o++,l+=t.height)}),t._node.leftChildrenAreaHeight=s+(r+1)*this.getMarginY(n+1),t._node.rightChildrenAreaHeight=l+(o+1)*this.getMarginY(n+1);let h=t._node.checkHasGeneralization()?t._node._generalizationNodeHeight+this.getMarginY(n+1):0;t._node.leftChildrenAreaHeight2=Math.max(t._node.leftChildrenAreaHeight,h),t._node.rightChildrenAreaHeight2=Math.max(t._node.rightChildrenAreaHeight,h)},!0,0)}computedTopValue(){Li(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.top+t.height/2+e,r=i-t.leftChildrenAreaHeight/2,o=i-t.rightChildrenAreaHeight/2;t.children.forEach(t=>{t.dir===a.LAYOUT_GROW_DIR.LEFT?(t.top=r,r+=t.height+e):(t.top=o,o+=t.height+e)})}},null,!0)}adjustTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let r=2*this.getMarginY(n+1)+t.height,o=t.leftChildrenAreaHeight2-r,s=t.rightChildrenAreaHeight2-r;(o>0||s>0)&&this.updateBrothers(t,o/2,s/2)},null,!0)}updateBrothers(t,e,i){if(t.parent){let n=t.parent.children.filter(e=>e.dir===t.dir),r=mn(t,n);n.forEach((t,n)=>{if(t.hasCustomPosition())return;let o=0,s=t.dir===a.LAYOUT_GROW_DIR.LEFT?e:i;n<r?o=-s:n>r&&(o=s),t.top+=o,t.children&&t.children.length&&this.updateChildren(t.children,"top",o)}),this.updateBrothers(t.parent,e,i)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0);let c=.6*(this.getMarginX(t.layerIndex+1)-l),u=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((h,d)=>{let f=0,p=0,m=u?h.width:0;h.dir===a.LAYOUT_GROW_DIR.LEFT?(p=-c,f=0===t.layerIndex?n:n-l,m=-m):(p=c,f=0===t.layerIndex?n+o:n+o+l);let g=r+s/2,v=h.dir===a.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,y=h.top+h.height/2;g=u&&!t.isRoot?g+s/2:g,y=u?y+h.height/2:y;let b=this.createFoldLine([[f,g],[f+p,g],[f+p,y],[v+m,y]]);this.setLineStyle(i,e[d],b,h)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0);const{nodeUseLineStyle:c}=this.mindMap.themeConfig;t.children.forEach((h,d)=>{0===t.layerIndex&&(l=0);let u=h.dir===a.LAYOUT_GROW_DIR.LEFT?n-l:n+o+l,f=r+s/2,p=h.dir===a.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,m=h.top+h.height/2;f=c&&!t.isRoot?f+s/2:f,m=c?m+h.height/2:m;let g="";c&&(g=h.dir===a.LAYOUT_GROW_DIR.LEFT?` L ${h.left},${m}`:` L ${h.left+h.width},${m}`);let v=`M ${u},${f} L ${p},${m}`+g;this.setLineStyle(i,e[d],v,h)})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0);const{nodeUseLineStyle:c,rootLineKeepSameInCurve:u,rootLineStartPositionKeepSameInCurve:f}=this.mindMap.themeConfig;t.children.forEach((h,d)=>{0===t.layerIndex&&(l=0);let p=0!==t.layerIndex||f?h.dir===a.LAYOUT_GROW_DIR.LEFT?n-l:n+o+l:n+o/2,m=r+s/2,g=h.dir===a.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,v=h.top+h.height/2,y="";m=c&&!t.isRoot?m+s/2:m,v=c?v+h.height/2:v;let b="";c&&(b=h.dir===a.LAYOUT_GROW_DIR.LEFT?` L ${h.left},${v}`:` L ${h.left+h.width},${v}`),y=t.isRoot&&!u?this.quadraticCurvePath(p,m,g,v)+b:this.cubicBezierPath(p,m,g,v)+b,this.setLineStyle(i,e[d],y,h)})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r}=t,{translateX:o,translateY:s}=e.transform(),l=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,h=t.dir===a.LAYOUT_GROW_DIR.LEFT?0-r:i,d=n/2+l;if(h===o&&d===s)return;let c=h-o,u=d-s;e.translate(c,u)}renderGeneralization(t){t.forEach(t=>{let e=t.node.dir===a.LAYOUT_GROW_DIR.LEFT,{top:i,bottom:n,left:r,right:o,generalizationLineMargin:s,generalizationNodeMargin:l}=this.getNodeGeneralizationRenderBoundaries(t,"h"),h=e?r-s:o+s,d=`M ${h},${i} Q ${h+(e?-20:20)},${i+(n-i)/2} ${h},${n}`;t.generalizationLine.plot(d),t.generalizationNode.left=h+(e?-l:l)-(e?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,r){r.dir===a.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}};const sr=class extends nr{constructor(t={}){super(t)}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{let s=this.createNode(t,e,i,n,r,o);if(i?this.setNodeCenter(s):e._node.isRoot&&(s.top=e._node.top+e._node.height+this.getMarginX(n)),!t.data.expand)return!0},(t,e,i,n)=>{if(i){let e=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=e?t._node.children.reduce((t,e)=>t+e.width,0)+(e+1)*this.getMarginX(n+1):0}},!0,0)}computedLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginX(n+1),r=this.getMarginY(n+1);if(i){let i=t.left+t.width/2-t.childrenAreaWidth/2+e;t.children.forEach(t=>{t.left=i,i+=t.width+e})}else{let e=t.top+this.getNodeHeightWithGeneralization(t)+r+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(i=>{i.left=t.left+.5*t.width,i.top=e,e+=this.getNodeHeightWithGeneralization(i)+r+(this.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;if(e&&e.isRoot){let e=this.getNodeAreaWidth(t,!0)-t.width;e>0&&this.updateBrothersLeft(t,e)}let r=t.children.length;if(e&&!e.isRoot&&r>0){let e=this.getMarginY(n+1),i=t.children.reduce((t,e)=>t+this.getNodeHeightWithGeneralization(e)+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),0)+r*e;this.updateBrothersTop(t,i)}},(t,e,i)=>{if(i){let{right:e,left:i}=this.getNodeBoundaries(t,"h"),n=e-i,r=t.left-i-(n-t.width)/2;this.updateChildren(t.children,"left",r)}},!0)}updateBrothersLeft(t,e){if(t.parent){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{t.hasCustomPosition()||i<=n||(t.left+=e,t.children&&t.children.length&&this.updateChildren(t.children,"left",e))}),this.updateBrothersLeft(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{if(t.hasCustomPosition())return;let r=0;i>n&&(r=e),t.top+=r,t.children&&t.children.length&&this.updateChildren(t.children,"top",r)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a}=t;const{alwaysShowExpandBtn:l,notShowExpandBtn:h}=this.mindMap.opt;l&&!h||(a=0);let d=t.children.length,c=this.getMarginX(t.layerIndex+1);if(t.isRoot){let a=n+o/2,l=r+s,h=.7*c,u=1/0,f=-1/0;t.children.forEach((t,n)=>{let r=t.left+t.width/2,o=t.top;r<u&&(u=r),r>f&&(f=r);let s=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${o} L ${t.left+t.width},${o}`:"",a=`M ${r},${l+h} L ${r},${l+h>o?o+t.height:o}`+s;this.setLineStyle(i,e[n],a,t)}),u=Math.min(u,a),f=Math.max(f,a);let p=this.lineDraw.path();if(t.style.line(p),p.plot(this.transformPath(`M ${a},${l} L ${a},${l+h}`)),t._lines.push(p),i&&i(p,t),d>0){let e=this.lineDraw.path();t.style.line(e),e.plot(this.transformPath(`M ${u},${l+h} L ${f},${l+h}`)),t._lines.push(e),i&&i(e,t)}}else{let n=r+s,o=-1/0,l=t.left+.3*t.width;if(t.children.forEach((s,a)=>{let h=s.top+s.height/2;h>o&&(o=h);let d="",c=s.left,u=s.left+s.width<l,f=!1;u?c=s.left+s.width:s.left<l&&s.left+s.width>l&&(f=!0,h=s.top,o=h),h>r&&h<n?d=`M ${u?t.left:t.left+t.width},${h} L ${c},${h}`:h<n?(f&&(h=s.top+s.height,c=l),d=`M ${l},${r} L ${l},${h} L ${c},${h}`):(f&&(c=l),d=`M ${l},${h} L ${c},${h}`),d+=this.mindMap.themeConfig.nodeUseLineStyle?` L ${c},${h-s.height/2} L ${c},${h+s.height/2}`:"",this.setLineStyle(i,e[a],d,s)}),d>0){let e=this.lineDraw.path();a=d>0?a:0,t.style.line(e),o<n+a?e.hide():(e.plot(this.transformPath(`M ${l},${n+a} L ${l},${o}`)),e.show()),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r,isRoot:o}=t;if(!o){let{translateX:t,translateY:o}=e.transform();e.translate(.3*i-r/2-t,n+r/2-o)}}renderGeneralization(t){t.forEach(t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:r,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(t,"h"),s=n+r,a=`M ${s},${e} Q ${s+20},${e+(i-e)/2} ${n+r},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+o,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,r){t.size(i,e).x(0).y(n)}};const ar=class extends nr{constructor(t={}){super(t)}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{t(this.root)}])}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{let s=this.createNode(t,e,i,n,r,o);if(i?this.setNodeCenter(s):s.top=e._node.top+e._node.height+this.getMarginX(n),!t.data.expand)return!0},(t,e,i,n)=>{let r=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=r?t._node.children.reduce((t,e)=>t+e.width,0)+(r+1)*this.getMarginY(n+1):0;let o=t._node.checkHasGeneralization()?t._node._generalizationNodeWidth+this.getMarginY(n+1):0;t._node.childrenAreaWidth2=Math.max(t._node.childrenAreaWidth,o)},!0,0)}computedLeftValue(){Li(this.root,null,(t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.left+t.width/2-t.childrenAreaWidth/2+e;t.children.forEach(t=>{t.left=i,i+=t.width+e})}},null,!0)}adjustLeftValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let r=t.childrenAreaWidth2-2*this.getMarginY(n+1)-t.width;r>0&&this.updateBrothers(t,r/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{if(t.hasCustomPosition())return;let r=0;i<n?r=-e:i>n&&(r=e),t.left+=r,t.children&&t.children.length&&this.updateChildren(t.children,"left",r)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a}=t;const{alwaysShowExpandBtn:l,notShowExpandBtn:h}=this.mindMap.opt;l&&!h||(a=0);const{nodeUseLineStyle:d,rootLineStartPositionKeepSameInCurve:c,rootLineKeepSameInCurve:u}=this.mindMap.themeConfig;t.children.forEach((l,h)=>{0===t.layerIndex&&(a=0);let f=n+o/2,p=0!==t.layerIndex||c?r+s+a:r+s/2,m=l.left+l.width/2,g=l.top,v="",y=d?` L ${l.left},${g} L ${l.left+l.width},${g}`:"";v=t.isRoot&&!u?this.quadraticCurvePath(f,p,m,g,!0)+y:this.cubicBezierPath(f,p,m,g,!0)+y,this.setLineStyle(i,e[h],v,l)})}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s}=t;const{nodeUseLineStyle:a}=this.mindMap.themeConfig;let l=n+o/2,h=r+s;t.children.forEach((t,n)=>{let r=t.left+t.width/2,o=t.top,s=a?` L ${t.left},${o} L ${t.left+t.width},${o}`:"",d=`M ${l},${h} L ${r},${o}`+s;this.setLineStyle(i,e[n],d,t)})}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:a,isRoot:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);let c=n+o/2,u=r+s,f=.7*this.getMarginX(t.layerIndex+1),p=1/0,m=-1/0,g=t.children.length;t.children.forEach((t,n)=>{let r=t.left+t.width/2,o=u+f>t.top?t.top+t.height:t.top;r<p&&(p=r),r>m&&(m=r);let s=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${o} L ${t.left+t.width},${o}`:"",a=`M ${r},${u+f} L ${r},${o}`+s;this.setLineStyle(i,e[n],a,t)}),p=Math.min(c,p),m=Math.max(c,m);let v=this.lineDraw.path();if(t.style.line(v),a=g>0&&!l?a:0,v.plot(this.transformPath(`M ${c},${u+a} L ${c},${u+f}`)),t._lines.push(v),i&&i(v,t),g>0){let e=this.lineDraw.path();t.style.line(e),e.plot(this.transformPath(`M ${p},${u+f} L ${m},${u+f}`)),t._lines.push(e),i&&i(e,t)}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r}=t,{translateX:o,translateY:s}=e.transform();e.translate(i/2-r/2-o,n+r/2-s)}renderGeneralization(t){t.forEach(t=>{let{bottom:e,left:i,right:n,generalizationLineMargin:r,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(t,"v"),s=e+r,a=`M ${i},${s} Q ${i+(n-i)/2},${s+20} ${n},${e+r}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.top=e+o,t.generalizationNode.left=i+(n-i-t.generalizationNode.width)/2})}renderExpandBtnRect(t,e,i,n,r){t.size(i,e).x(0).y(n)}};const lr=class extends nr{constructor(t={},e){super(t),this.layout=e}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{let s=this.createNode(t,e,i,n,r,o);if(i?this.setNodeCenter(s):(this.layout===a.LAYOUT.TIMELINE2?e._node.dir?s.dir=e._node.dir:s.dir=r%2==0?a.LAYOUT_GROW_DIR.BOTTOM:a.LAYOUT_GROW_DIR.TOP:s.dir="",e._node.isRoot&&(s.top=e._node.top+(t._node.height>e._node.height?-(t._node.height-e._node.height)/2:(e._node.height-t._node.height)/2))),!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Li(this.root,null,(t,e,i,n,r)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginX(n+1),r=this.getMarginY(n+1);if(i){let i=t.left+t.width+e;t.children.forEach(t=>{t.left=i,i+=t.width+e})}else{let e=t.top+t.height+r+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(i=>{i.left=t.left+.5*t.width,i.top=e,e+=i.height+r+(this.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;t.isRoot&&this.updateBrothersLeft(t);let r=t.children.length;if(e&&!e.isRoot&&r>0){let e=this.getMarginY(n+1),i=t.children.reduce((t,e)=>t+e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),0)+r*e;this.updateBrothersTop(t,i)}},(t,e,i,n)=>{e&&e.isRoot&&t.dir===a.LAYOUT_GROW_DIR.TOP&&t.children.forEach(e=>{let i=this.getNodeAreaHeight(e),n=e.top;e.top=t.top-(e.top-t.top)-i+t.height,this.updateChildren(e.children,"top",e.top-n)})},!0)}getNodeAreaHeight(t){let e=0,i=t=>{e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+this.getMarginY(t.layerIndex),t.children.length&&t.children.forEach(t=>{i(t)})};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach(t=>{t.left+=i,t.children&&t.children.length&&this.updateChildren(t.children,"left",i);let{left:e,right:n}=this.getNodeBoundaries(t,"h"),r=n-e-t.width;r>0&&(i+=r)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{if(t.hasCustomPosition())return;let r=0;i>n&&(r=e),t.top+=r,t.children&&t.children.length&&this.updateChildren(t.children,"top",r)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0);let c=t.children.length;if(t.isRoot){let n=t;t.children.forEach((r,o)=>{let s=n.left+n.width,a=r.left,l=t.top+t.height/2,h=`M ${s},${l} L ${a},${l}`;this.setLineStyle(i,e[o],h,r),n=r})}else{let n=-1/0,o=1/0,h=t.left+.3*t.width;if(t.children.forEach((t,r)=>{let s=t.top+t.height/2;s>n&&(n=s),s<o&&(o=s);let a=`M ${h},${s} L ${t.left},${s}`;this.setLineStyle(i,e[r],a,t)}),c>0){let e=this.lineDraw.path();l=c>0?l:0,t.parent&&t.parent.isRoot&&t.dir===a.LAYOUT_GROW_DIR.TOP?e.plot(this.transformPath(`M ${h},${r} L ${h},${o}`)):e.plot(this.transformPath(`M ${h},${r+s+l} L ${h},${n}`)),t.style.line(e),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r,isRoot:o}=t;if(!o){let{translateX:o,translateY:s}=e.transform();t.parent&&t.parent.isRoot&&t.dir===a.LAYOUT_GROW_DIR.TOP?e.translate(.3*i-r/2-o,-r/2-s):e.translate(.3*i-r/2-o,n+r/2-s)}}renderGeneralization(t){t.forEach(t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:r,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(t,"h"),s=n+r,a=`M ${s},${e} Q ${s+20},${e+(i-e)/2} ${n+r},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+o,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,r){if(this.layout===a.LAYOUT.TIMELINE)t.size(i,e).x(0).y(n);else{let o="";o=r.dir===a.LAYOUT_GROW_DIR.TOP&&1===r.layerIndex?a.LAYOUT_GROW_DIR.TOP:a.LAYOUT_GROW_DIR.BOTTOM,o===a.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}}};const hr=class extends nr{constructor(t={},e){super(t),this.layout=e}doLayout(t){Ui([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{let s=this.createNode(t,e,i,n,r,o);if(i?this.setNodeCenter(s):(e._node.dir?s.dir=e._node.dir:this.layout===a.LAYOUT.VERTICAL_TIMELINE2?s.dir=a.LAYOUT_GROW_DIR.LEFT:this.layout===a.LAYOUT.VERTICAL_TIMELINE3?s.dir=a.LAYOUT_GROW_DIR.RIGHT:s.dir=r%2==0?a.LAYOUT_GROW_DIR.RIGHT:a.LAYOUT_GROW_DIR.LEFT,e._node.isRoot?s.left=e._node.left+(t._node.width>e._node.width?-(t._node.width-e._node.width)/2:(e._node.width-t._node.width)/2):s.left=s.dir===a.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-s.width),!t.data.expand)return!0},(t,e,i,n)=>{if(i)return;let r=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaHeight=r?t._node.children.reduce((t,e)=>t+e.height,0)+(r+1)*this.getMarginY(n+1):0},!0,0)}computedTopValue(){Li(this.root,null,(t,e,i,n,r)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1);if(i){let i=t.top+t.height+e;t.children.forEach(t=>{t.top=i,i+=t.height+e})}else{let e=this.getMarginY(n+1),i=t.top+t.height/2+e-t.childrenAreaHeight/2;t.children.forEach(t=>{t.top=i,i+=t.height+e})}}},null,!0)}adjustLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;if(i)return;let r=2*this.getMarginY(n+1)+t.height,o=t.childrenAreaHeight-r;o>0&&this.updateBrothers(t,o/2)},null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=mn(t,i);i.forEach((i,r)=>{if(i.hasCustomPosition())return;if(!t.parent.isRoot&&i.uid===t.uid)return;let o=0;t.parent.isRoot?o=r<n?0:r>n?2*e:e:r<n?o=-e:r>n&&(o=e),i.top+=o,i.children&&i.children.length&&this.updateChildren(i.children,"top",o)}),this.updateBrothers(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{if(t.hasCustomPosition())return;let r=0;i>n&&(r=e),t.top+=r,t.children&&t.children.length&&this.updateChildren(t.children,"top",r)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{expandBtnSize:n}=t;const{alwaysShowExpandBtn:r,notShowExpandBtn:o}=this.mindMap.opt;if(r&&!o||(n=0),t.isRoot){let n=t;t.children.forEach((r,o)=>{let s=n.top+n.height,a=r.top,l=t.left+t.width/2,h=`M ${l},${s} L ${l},${a}`;this.setLineStyle(i,e[o],h,r),n=r})}else if(t.dir===a.LAYOUT_GROW_DIR.RIGHT){let r=t.left+t.width,o=t.top+t.height/2,s=.6*(this.getMarginX(t.layerIndex+1)-n);t.children.forEach((t,n)=>{let a=t.left,l=t.top+t.height/2,h=this.createFoldLine([[r,o],[r+s,o],[r+s,l],[a,l]]);this.setLineStyle(i,e[n],h,t)})}else{let r=t.left,o=t.top+t.height/2,s=.6*(this.getMarginX(t.layerIndex+1)-n);t.children.forEach((t,n)=>{let a=t.left+t.width,l=t.top+t.height/2,h=this.createFoldLine([[r,o],[r-s,o],[r-s,l],[a,l]]);this.setLineStyle(i,e[n],h,t)})}}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0),t.children.forEach((h,d)=>{if(t.isRoot){let n=t;t.children.forEach((r,o)=>{let s=n.top+n.height,a=r.top,l=t.left+t.width/2,h=`M ${l},${s} L ${l},${a}`;this.setLineStyle(i,e[o],h,r),n=r})}else{let t=`M ${h.dir===a.LAYOUT_GROW_DIR.LEFT?n-l:n+o+l},${r+s/2} L ${h.dir===a.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left},${h.top+h.height/2}`;this.setLineStyle(i,e[d],t,h)}})}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:r,width:o,height:s,expandBtnSize:l}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(l=0),t.children.forEach((h,d)=>{if(t.isRoot){let n=t;t.children.forEach((r,o)=>{let s=n.top+n.height,a=r.top,l=t.left+t.width/2,h=`M ${l},${s} L ${l},${a}`;this.setLineStyle(i,e[o],h,r),n=r})}else{let t=h.dir===a.LAYOUT_GROW_DIR.LEFT?n-l:n+o+l,c=r+s/2,u=h.dir===a.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,f=h.top+h.height/2,p=this.cubicBezierPath(t,c,u,f);this.setLineStyle(i,e[d],p,h)}})}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r,isRoot:o}=t;if(!o){let{translateX:o,translateY:s}=e.transform();t.dir===a.LAYOUT_GROW_DIR.RIGHT?e.translate(i-o,n/2-s):e.translate(-r-o,n/2-s)}}renderGeneralization(t){t.forEach(t=>{let e=t.node.dir===a.LAYOUT_GROW_DIR.LEFT,{top:i,bottom:n,left:r,right:o,generalizationLineMargin:s,generalizationNodeMargin:l}=this.getNodeGeneralizationRenderBoundaries(t,"h"),h=e?r-s:o+s,d=`M ${h},${i} Q ${h+(e?-20:20)},${i+(n-i)/2} ${h},${n}`;t.generalizationLine.plot(this.transformPath(d)),t.generalizationNode.left=h+(e?-l:l)-(e?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,r){r.dir===a.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}},dr={top:{renderExpandBtn({node:t,btn:e,expandBtnSize:i,translateX:n,translateY:r,width:o,height:s}){t.parent&&t.parent.isRoot?e.translate(.3*o-i/2-n,-i/2-r):e.translate(.3*o-i/2-n,s+i/2-r)},renderLine({node:t,line:e,top:i,x:n,lineLength:r,height:o,expandBtnSize:s,maxy:a,ctx:l}){t.parent&&t.parent.isRoot?e.plot(l.transformPath(`M ${n},${i} L ${n+r},${i-Math.tan(ji(l.mindMap.opt.fishboneDeg))*r}`)):e.plot(l.transformPath(`M ${n},${i+o+s} L ${n},${a}`))},computedLeftTopValue({layerIndex:t,node:e,ctx:i}){if(t>=1&&e.children){let n=i.getMarginY(t+1),r=e.left+e.width*i.childIndent,o=e.top+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n;e.children.forEach(t=>{t.left=r,t.top+=o,o+=t.height+(i.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+n})}},adjustLeftTopValueBefore({node:t,parent:e,ctx:i,layerIndex:n}){let r=t.children.length,o=i.getMarginY(n+1);if(e&&!e.isRoot&&r>0){let e=t.children.reduce((t,e)=>t+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+o,0);i.updateBrothersTop(t,e)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:i}){if(t&&t.isRoot){let t=i.getMarginY(e.layerIndex+1),n=e.expandBtnSize+t;e.children.forEach(t=>{let r=i.getNodeAreaHeight(t),o=t.top,s=t.left;t.top=e.top-(t.top-e.top)-r+e.height,t.left=e.left+e.width*i.indent+(r+n)/Math.tan(ji(i.mindMap.opt.fishboneDeg)),n+=r,i.updateChildrenPro(t.children,{top:t.top-o,left:t.left-s})})}}},bottom:{renderExpandBtn({node:t,btn:e,expandBtnSize:i,translateX:n,translateY:r,width:o,height:s}){t.parent&&t.parent.isRoot?e.translate(.3*o-i/2-n,s+i/2-r):e.translate(.3*o-i/2-n,-i/2-r)},renderLine({node:t,line:e,top:i,x:n,lineLength:r,height:o,miny:s,ctx:a}){t.parent&&t.parent.isRoot?e.plot(a.transformPath(`M ${n},${i+o} L ${n+r},${i+o+Math.tan(ji(a.mindMap.opt.fishboneDeg))*r}`)):e.plot(a.transformPath(`M ${n},${i} L ${n},${s}`))},computedLeftTopValue({layerIndex:t,node:e,ctx:i}){let n=i.getMarginY(t+1);if(1===t&&e.children){let t=e.left+e.width*i.childIndent,r=e.top+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n;e.children.forEach(e=>{e.left=t,e.top=r+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),r+=e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n})}if(t>1&&e.children){let t=e.left+e.width*i.childIndent,r=e.top-(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)-n;e.children.forEach(e=>{e.left=t,e.top=r-e.height,r-=e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n})}},adjustLeftTopValueBefore({node:t,ctx:e,layerIndex:i}){let n=e.getMarginY(i+1),r=t.children.length;if(i>2&&r>0){let i=t.children.reduce((t,i)=>t+i.height+(e.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)+n,0);e.updateBrothersTop(t,-i)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:i}){if(t&&t.isRoot){let t=i.getMarginY(e.layerIndex+1),n=0,r=e.expandBtnSize;e.children.forEach(o=>{let s=i.getNodeActChildrenLength(o)>0,a=i.getNodeAreaHeight(o),l=s?a-o.height-(s?o.expandBtnSize:0):0;l-=s?t:0;let h=n+l,d=o.left;o.top+=h,o.left=e.left+e.width*i.indent+(a+r)/Math.tan(ji(i.mindMap.opt.fishboneDeg)),n+=l,r+=a,i.updateChildrenPro(o.children,{top:h,left:o.left-d})})}}}};const cr=class extends nr{constructor(t={},e){super(t),this.layout=e,this.indent=.3,this.childIndent=.5,this.fishTail=null,this.maxx=0,this.headRatio=1,this.tailRatio=.6,this.paddingXRatio=.3,this.fishHeadPathStr="M4,181 C4,181, 0,177, 4,173 Q 96.09523809523809,0, 288.2857142857143,0 L 288.2857142857143,354 Q 48.047619047619044,354, 8,218.18367346938777 C8,218.18367346938777, 6,214.18367346938777, 8,214.18367346938777 L 41.183673469387756,214.18367346938777 Z",this.fishTailPathStr="M 606.9342905223708 0 Q 713.1342905223709 -177 819.3342905223708 -177 L 766.2342905223709 0 L 819.3342905223708 177 Q 713.1342905223709 177 606.9342905223708 0 z",this.bindEvent(),this.extendShape(),this.beforeChange=this.beforeChange.bind(this)}nodeIsRemoveAllLines(t){return t.isRoot||1===t.layerIndex}isFishbone2(){return this.layout===a.LAYOUT.FISHBONE2}bindEvent(){this.isFishbone2()&&(this.onCheckUpdateFishTail=this.onCheckUpdateFishTail.bind(this),this.mindMap.on("afterExecCommand",this.onCheckUpdateFishTail))}unBindEvent(){this.mindMap.off("afterExecCommand",this.onCheckUpdateFishTail)}extendShape(){this.isFishbone2()&&this.mindMap.addShape({name:"fishHead",createShape:t=>{const e=Ci(`<path d="${this.fishHeadPathStr}"></path>`),{width:i,height:n}=t.shapeInstance.getNodeSize();return e.size(i,n),e},getPadding:({width:t,height:e,paddingX:i,paddingY:n})=>{t+=2*i,e+=2*n;let r=this.paddingXRatio*t,o=0;return o=((t+=2*r)/this.headRatio-e)/2,{paddingX:r,paddingY:o}}})}doLayout(t){Ui([()=>{this.computedBaseValue(),this.addFishTail()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue(),this.updateFishTailPosition()},()=>{t(this.root)}])}addFishTail(){if(!this.isFishbone2())return;const t=this.mindMap.lineDraw.findOne(".smm-layout-fishbone-tail");t?this.fishTail=t:(this.fishTail=Ci(`<path d="${this.fishTailPathStr}"></path>`),this.fishTail.addClass("smm-layout-fishbone-tail"));const e=this.root.height,i=e*this.tailRatio;this.fishTail.size(i,e),this.styleFishTail(),this.mindMap.lineDraw.add(this.fishTail)}onCheckUpdateFishTail(t,e,i){if("SET_NODE_DATA"===t){let t=!1;Object.keys(i).forEach(e=>{Dn.includes(e)&&(t=!0)}),t&&this.styleFishTail()}}styleFishTail(){this.root.style.shape(this.fishTail)}removeFishTail(){const t=this.mindMap.lineDraw.findOne(".smm-layout-fishbone-tail");t&&t.remove()}updateFishTailPosition(){this.isFishbone2()&&this.fishTail.x(this.maxx).cy(this.root.top+this.root.height/2)}computedBaseValue(){Li(this.renderer.renderTree,null,(t,e,i,n,r,o)=>{i&&this.isFishbone2()&&(t.data.shape="fishHead");let s=this.createNode(t,e,i,n,r,o);if(i)this.setNodeCenter(s);else if(e._node.dir?s.dir=e._node.dir:s.dir=r%2==0?a.LAYOUT_GROW_DIR.TOP:a.LAYOUT_GROW_DIR.BOTTOM,e._node.isRoot){let t=this.getMarginY(n);const i=this.isFishbone2()?e._node.height/4:0;this.checkIsTop(s)?s.top=e._node.top-s.height-t+i:s.top=e._node.top+e._node.height+t-i}if(!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(t.isRoot){let e=this.getMarginX(n+1);const i=this.isFishbone2()?2:1;let r=t.left+t.width+t.height/i+e,o=t.left+t.width+t.height/i+e;t.children.forEach(t=>{this.checkIsTop(t)?(t.left=r,r+=t.width+e):(t.left=o+20,o+=t.width+e)})}let r={layerIndex:n,node:t,ctx:this};this.checkIsTop(t)?dr.top.computedLeftTopValue(r):dr.bottom.computedLeftTopValue(r)},null,!0)}adjustLeftTopValue(){Li(this.root,null,(t,e,i,n)=>{if(!t.getData("expand"))return;let r={node:t,parent:e,layerIndex:n,ctx:this};this.checkIsTop(t)?dr.top.adjustLeftTopValueBefore(r):dr.bottom.adjustLeftTopValueBefore(r)},(t,e)=>{let i={parent:e,node:t,ctx:this};if(this.checkIsTop(t)?dr.top.adjustLeftTopValueAfter(i):dr.bottom.adjustLeftTopValueAfter(i),t.isRoot){let e=0,i=0,n=-1/0;t.children.forEach(t=>{if(this.checkIsTop(t)){t.left+=e,this.updateChildren(t.children,"left",e);let{left:i,right:r}=this.getNodeBoundaries(t,"h");r>n&&(n=r),e+=r-i}else{t.left+=i,this.updateChildren(t.children,"left",i);let{left:e,right:r}=this.getNodeBoundaries(t,"h");r>n&&(n=r),i+=r-e}}),this.maxx=n}},!0)}getNodeAreaHeight(t){let e=0,i=t=>{let n=this.getMarginY(t.layerIndex);e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+n,t.children.length&&t.children.forEach(t=>{i(t)})};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach(t=>{t.left+=i,t.children&&t.children.length&&this.updateChildren(t.children,"left",i);let{left:e,right:n}=this.getNodeBoundaries(t,"h"),r=n-e-t.width;r>0&&(i+=r)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=mn(t,i);i.forEach((t,i)=>{if(t.hasCustomPosition())return;let r=0;i>n&&(r=e),t.top+=r,t.children&&t.children.length&&this.updateChildren(t.children,"top",r)}),this.checkIsTop(t)?this.updateBrothersTop(t.parent,e):this.updateBrothersTop(t.parent,3===t.layerIndex?0:e)}}checkIsTop(t){return t.dir===a.LAYOUT_GROW_DIR.TOP}renderLine(t,e,i){if(1!==t.layerIndex&&t.children.length<=0)return[];let{top:n,height:r,expandBtnSize:o}=t;const{alwaysShowExpandBtn:s,notShowExpandBtn:a}=this.mindMap.opt;s&&!a||(o=0);let l=t.children.length;if(t.isRoot){let e=-1/0;t.children.forEach(n=>{n.left>e&&(e=n.left);let r=this.getMarginY(n.layerIndex),o=n.left,s=t.height/2+r-(this.isFishbone2()?t.height/4:0),a=s/Math.tan(ji(this.mindMap.opt.fishboneDeg)),l=this.lineDraw.path();this.checkIsTop(n)?l.plot(this.transformPath(`M ${o-a},${n.top+n.height+s} L ${n.left},${n.top+n.height}`)):l.plot(this.transformPath(`M ${o-a},${n.top-s} L ${o},${n.top}`)),t.style.line(l),t._lines.push(l),i&&i(l,t)});let n=t.top+t.height/2,r=t.height/2+this.getMarginY(t.layerIndex+1),o=this.lineDraw.path();const s=this.isFishbone2()?this.maxx:e-r/Math.tan(ji(this.mindMap.opt.fishboneDeg));o.plot(this.transformPath(`M ${t.left+t.width},${n} L ${s},${n}`)),t.style.line(o),t._lines.push(o),i&&i(o,t)}else{let s=-1/0,a=1/0,h=-1/0,d=t.left+t.width*this.indent;if(t.children.forEach((n,r)=>{n.left>h&&(h=n.left);let o=n.top+n.height/2;if(o>s&&(s=o),o<a&&(a=o),t.layerIndex>1){let t=`M ${d},${o} L ${n.left},${o}`;this.setLineStyle(i,e[r],t,n)}}),l>=0){let e=this.lineDraw.path();o=l>0?o:0;let c=h-t.left-t.width*this.indent;c=Math.max(c,0);let u={node:t,line:e,top:n,x:d,lineLength:c,height:r,expandBtnSize:o,maxy:s,miny:a,ctx:this};this.checkIsTop(t)?dr.top.renderLine(u):dr.bottom.renderLine(u),t.style.line(e),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:r,isRoot:o}=t;if(!o){let{translateX:o,translateY:s}=e.transform(),a={node:t,btn:e,expandBtnSize:r,translateX:o,translateY:s,width:i,height:n};this.checkIsTop(t)?dr.top.renderExpandBtn(a):dr.bottom.renderExpandBtn(a)}}renderGeneralization(t){t.forEach(t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:r,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(t,"h"),s=n+r,a=`M ${s},${e} Q ${s+20},${e+(i-e)/2} ${n+r},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+o,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2})}renderExpandBtnRect(t,e,i,n,r){let o="";o=r.dir===a.LAYOUT_GROW_DIR.TOP?1===r.layerIndex?a.LAYOUT_GROW_DIR.TOP:a.LAYOUT_GROW_DIR.BOTTOM:1===r.layerIndex?a.LAYOUT_GROW_DIR.BOTTOM:a.LAYOUT_GROW_DIR.TOP,o===a.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}beforeChange(){this.isFishbone2()&&(this.root.nodeData.data.shape=a.SHAPE.RECTANGLE,this.removeFishTail(),this.unBindEvent(),this.mindMap.removeShape("fishHead"))}},ur="smm-node-edit-wrap";class fr{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.hasBodyMousedown=!1,this.textNodePaddingX=5,this.textNodePaddingY=3,this.isNeedUpdateTextEditNode=!1,this.mindMap.addEditNodeClass(ur),this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("node_dblclick",(t,e,i)=>{this.show({node:t,e,isInserting:i})}),this.mindMap.on("draw_click",()=>{this.hideEditTextBox()}),this.mindMap.on("body_mousedown",()=>{this.hasBodyMousedown=!0}),this.mindMap.on("body_click",()=>{this.hasBodyMousedown&&(this.hasBodyMousedown=!1,this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox())}),this.mindMap.on("svg_mousedown",()=>{this.hideEditTextBox()}),this.mindMap.on("expand_btn_click",()=>{this.hideEditTextBox()}),this.mindMap.on("before_node_active",()=>{this.hideEditTextBox()}),this.mindMap.on("mousewheel",()=>{this.mindMap.opt.mousewheelAction===a.MOUSE_WHEEL_ACTION.MOVE&&this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("F2",()=>{this.renderer.activeNodeList.length<=0||this.show({node:this.renderer.activeNodeList[0]})}),this.mindMap.on("scale",this.onScale),this.mindMap.opt.enableAutoEnterTextEditWhenKeydown&&window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()}),this.mindMap.on("after_update_config",(t,e)=>{t.openRealtimeRenderOnNodeTextEdit!==e.openRealtimeRenderOnNodeTextEdit&&(this.mindMap.richText?this.mindMap.richText.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit):this.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit)),t.enableAutoEnterTextEditWhenKeydown!==e.enableAutoEnterTextEditWhenKeydown&&window[t.enableAutoEnterTextEditWhenKeydown?"addEventListener":"removeEventListener"]("keydown",this.onKeydown)}),this.mindMap.on("afterExecCommand",()=>{this.isShowTextEdit()&&(this.isNeedUpdateTextEditNode=!0)}),this.mindMap.on("node_tree_render_end",()=>{this.isShowTextEdit()&&this.isNeedUpdateTextEditNode&&(this.isNeedUpdateTextEditNode=!1,this.updateTextEditNode())})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(t){if(t.target!==document.body)return;const e=this.mindMap.renderer.activeNodeList;if(e.length<=0||e.length>1)return;const i=e[0];i&&this.checkIsAutoEnterTextEditKey(t)&&(t.preventDefault(),this.show({node:i,e:t,isInserting:!1,isFromKeyDown:!0}))}checkIsAutoEnterTextEditKey(t){const e=t.keyCode;return(229===e||e>=65&&e<=90||e>=48&&e<=57)&&!this.mindMap.keyCommand.hasCombinationKey(t)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("Tab",()=>{this.hideEditTextBox()})}isShowTextEdit(){return this.mindMap.richText?this.mindMap.richText.showTextEdit:this.showTextEdit}setIsShowTextEdit(t){this.showTextEdit=t,t?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()}async show({node:t,isInserting:e=!1,isFromKeyDown:i=!1,isFromScale:n=!1}){if(t.isUseCustomNodeContent())return;this.getCurrentEditNode()&&this.hideEditTextBox();const{beforeTextEdit:r,openRealtimeRenderOnNodeTextEdit:o}=this.mindMap.opt;if("function"==typeof r){let i=!1;try{i=await r(t,e)}catch(t){i=!1,this.mindMap.opt.errorHandler(u.BEFORE_TEXT_EDIT_ERROR,t)}if(!i)return}const{offsetLeft:s,offsetTop:a}=((t,e,i=0,n=0)=>{let r=t.elRect,{scaleX:o,scaleY:s,translateX:a,translateY:l}=t.draw.transform(),{left:h,top:d,width:c,height:u}=e,f=(h+c)*o+a,p=(d+u)*s+l;h=h*o+a,d=d*s+l;let m=0,g=0;return h<0+i&&(m=-h+i),f>r.width-i&&(m=-(f-r.width)-i),d<0+n&&(g=-d+n),p>r.height-n&&(g=-(p-r.height)-n),{isOuter:0!==m||0!==g,offsetLeft:m,offsetTop:g}})(this.mindMap,t);this.mindMap.view.translateXY(s,a);const l=t._textData.node;o&&l.show();const h=l.node.getBoundingClientRect();o&&l.hide();const d={node:t,rect:h,isInserting:e,isFromKeyDown:i,isFromScale:n};this.mindMap.richText?this.mindMap.richText.showEditText(d):(this.currentNode=t,this.showEditTextBox(d))}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t){this.textEditNode&&(this.textEditNode.style.background=t?"transparent":this.currentNode?this.getBackground(this.currentNode):"",this.textEditNode.style.boxShadow=t?"none":"0 0 20px rgba(0,0,0,.5)")}onScale(){const t=this.getCurrentEditNode();t&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.setIsShowTextEdit(!1)),this.show({node:t,isFromScale:!0}))}showEditTextBox({node:t,rect:e,isInserting:i,isFromKeyDown:n,isFromScale:r}){if(this.showTextEdit)return;const{nodeTextEditZIndex:o,textAutoWrapWidth:s,selectTextOnEnterEditText:a,openRealtimeRenderOnNodeTextEdit:l,autoEmptyTextWhenKeydownEnterEdit:h}=this.mindMap.opt;if(r||this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.classList.add(ur),this.textEditNode.style.cssText=`\n position: fixed;\n box-sizing: border-box;\n ${l?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}\n padding: ${this.textNodePaddingY}px ${this.textNodePaddingX}px;\n margin-left: -${this.textNodePaddingX}px;\n margin-top: -${this.textNodePaddingY}px;\n outline: none; \n word-break: break-all;\n line-break: anywhere;\n `,this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("mousedown",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("keydown",t=>{this.checkIsAutoEnterTextEditKey(t)&&t.stopPropagation()}),this.textEditNode.addEventListener("paste",t=>{const e=t.clipboardData.getData("text"),{isSmm:i,data:n}=En(e);i&&n[0]&&n[0].data?Nn(t,Vi(n[0].data.text)):Nn(t),this.emitTextChangeEvent()}),this.textEditNode.addEventListener("input",()=>{this.emitTextChangeEvent()});(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode)}const d=this.mindMap.view.scale,c=t.style.merge("fontSize"),u=(this.cacheEditingText||t.getData("text")).split(/\n/gim).map(t=>vn(t)),f="true"===t._textData.node.attr("data-ismultiLine");t.style.domText(this.textEditNode,d),l||(this.textEditNode.style.background=this.getBackground(t)),this.textEditNode.style.zIndex=o,this.textEditNode.innerHTML=n&&h?"":u.join("<br>"),this.textEditNode.style.minWidth=e.width+2*this.textNodePaddingX+"px",this.textEditNode.style.minHeight=e.height+"px",this.textEditNode.style.left=Math.floor(e.left)+"px",this.textEditNode.style.top=Math.floor(e.top)+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=s*d+"px",f?(this.textEditNode.style.lineHeight=m,this.textEditNode.style.transform=`translateY(${(m-1)*c/2*d}px)`):this.textEditNode.style.lineHeight="normal",this.setIsShowTextEdit(!0),i||a&&!n?dn(this.textEditNode):hn(this.textEditNode),this.cacheEditingText=""}emitTextChangeEvent(){this.mindMap.emit("node_text_edit_change",{node:this.currentNode,text:this.getEditText(),richText:!1})}updateTextEditNode(){if(this.mindMap.richText)return void this.mindMap.richText.updateTextEditNode();if(!this.showTextEdit||!this.currentNode)return;const t=this.currentNode._textData.node.node.getBoundingClientRect();this.textEditNode.style.minWidth=t.width+2*this.textNodePaddingX+"px",this.textEditNode.style.minHeight=t.height+2*this.textNodePaddingY+"px",this.textEditNode.style.left=Math.floor(t.left)+"px",this.textEditNode.style.top=Math.floor(t.top)+"px"}getBackground(t){if(t.style.merge("gradientStyle")){return`linear-gradient(to right, ${t.style.merge("startColor")}, ${t.style.merge("endColor")})`}{const e=t.style.merge("fillColor"),i=t.style.merge("color");return"transparent"===e?$i(i)?en(this.mindMap.themeConfig):"#fff":e}}removeTextEditEl(){if(this.mindMap.richText)return void this.mindMap.richText.removeTextEditEl();if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return Di(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.mindMap.richText)return this.mindMap.richText.hideEditText();if(!this.showTextEdit)return;const t=this.currentNode,e=this.getEditText();this.currentNode=null,this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.setIsShowTextEdit(!1),this.mindMap.execCommand("SET_NODE_TEXT",t,e),this.mindMap.render(),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList,t)}getCurrentEditNode(){return this.mindMap.richText?this.mindMap.richText.node:this.currentNode}}const pr={[a.LAYOUT.LOGICAL_STRUCTURE]:rr,[a.LAYOUT.LOGICAL_STRUCTURE_LEFT]:rr,[a.LAYOUT.MIND_MAP]:or,[a.LAYOUT.CATALOG_ORGANIZATION]:sr,[a.LAYOUT.ORGANIZATION_STRUCTURE]:ar,[a.LAYOUT.TIMELINE]:lr,[a.LAYOUT.TIMELINE2]:lr,[a.LAYOUT.VERTICAL_TIMELINE]:hr,[a.LAYOUT.VERTICAL_TIMELINE2]:hr,[a.LAYOUT.VERTICAL_TIMELINE3]:hr,[a.LAYOUT.FISHBONE]:cr,[a.LAYOUT.FISHBONE2]:cr};const mr=class{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=this.mindMap.opt.data?E()({},this.mindMap.opt.data):null,this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.nodeCache={},this.lastNodeCache={},this.renderSourceList=[],this.renderCallbackList=[],this.activeNodeList=[],this.emitNodeActiveEventTimer=null,this.renderTimer=null,this.root=null,this.textEdit=new fr(this),this.beingCopyData=null,this.highlightBoxNode=null,this.highlightBoxNodeStyle=null,this.lastActiveNodeList=[],this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){this.layout&&this.layout.beforeChange&&this.layout.beforeChange();const{layout:t}=this.mindMap.opt;let e=pr[t]||this.mindMap[t];e||(e=pr[a.LAYOUT.LOGICAL_STRUCTURE],this.mindMap.opt.layout=a.LAYOUT.LOGICAL_STRUCTURE),this.layout=new e(this,t)}setData(t){this.renderTree=t||null}bindEvent(){const{openPerformance:t,performanceConfig:e,openRealtimeRenderOnNodeTextEdit:i}=this.mindMap.opt;this.mindMap.on("draw_click",t=>{this.clearActiveNodeListOnDrawClick(t,"click")}),this.mindMap.on("contextmenu",t=>{this.clearActiveNodeListOnDrawClick(t,"contextmenu")}),this.mindMap.svg.on("dblclick",()=>{this.mindMap.opt.enableDblclickBackToRootNode&&this.setRootNodeCenter()});const n=Pi(()=>{this.renderTree&&this.root&&(this.mindMap.emit("node_tree_render_start"),this.root.render(()=>{this.mindMap.emit("node_tree_render_end")},!1,!0))},e.time);t&&this.mindMap.on("view_data_change",n),this.onNodeTextEditChange=((t,e=300,i)=>{let n=null;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,t.apply(i,r)},e)}})(this.onNodeTextEditChange,100,this),i&&this.mindMap.on("node_text_edit_change",this.onNodeTextEditChange),this.mindMap.on("after_update_config",(t,e)=>{t.openPerformance!==e.openPerformance&&(this.mindMap[t.openPerformance?"on":"off"]("view_data_change",n),this.forceLoadNode()),t.openRealtimeRenderOnNodeTextEdit!==e.openRealtimeRenderOnNodeTextEdit&&this.mindMap[t.openRealtimeRenderOnNodeTextEdit?"on":"off"]("node_text_edit_change",this.onNodeTextEditChange)})}onNodeTextEditChange({node:t,text:e}){t._textData=t.createTextNode(e);const{width:i,height:n}=t.getNodeRect();t.width=i,t.height=n,t.layout(),this.mindMap.render(()=>{this.textEdit.updateTextEditNode()})}forceLoadNode(t){(t=t||this.root)&&(this.mindMap.emit("node_tree_render_start"),t.render(()=>{this.mindMap.emit("node_tree_render_end")},!0))}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertMultiNode=this.insertMultiNode.bind(this),this.mindMap.command.add("INSERT_MULTI_NODE",this.insertMultiNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.insertMultiChildNode=this.insertMultiChildNode.bind(this),this.mindMap.command.add("INSERT_MULTI_CHILD_NODE",this.insertMultiChildNode),this.insertParentNode=this.insertParentNode.bind(this),this.mindMap.command.add("INSERT_PARENT_NODE",this.insertParentNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.moveUpOneLevel=this.moveUpOneLevel.bind(this),this.mindMap.command.add("MOVE_UP_ONE_LEVEL",this.moveUpOneLevel),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.removeCurrentNode=this.removeCurrentNode.bind(this),this.mindMap.command.add("REMOVE_CURRENT_NODE",this.removeCurrentNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeStyles=this.setNodeStyles.bind(this),this.mindMap.command.add("SET_NODE_STYLES",this.setNodeStyles),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActiveNode=this.clearActiveNode.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActiveNode),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeAttachment=this.setNodeAttachment.bind(this),this.mindMap.command.add("SET_NODE_ATTACHMENT",this.setNodeAttachment),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.insertFormula=this.insertFormula.bind(this),this.mindMap.command.add("INSERT_FORMULA",this.insertFormula),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape),this.goTargetNode=this.goTargetNode.bind(this),this.mindMap.command.add("GO_TARGET_NODE",this.goTargetNode),this.removeCustomStyles=this.removeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_CUSTOM_STYLES",this.removeCustomStyles),this.removeAllNodeCustomStyles=this.removeAllNodeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_ALL_NODE_CUSTOM_STYLES",this.removeAllNodeCustomStyles)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Insert",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.mindMap.execCommand("INSERT_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Tab",()=>{this.mindMap.execCommand("INSERT_PARENT_NODE")}),this.mindMap.keyCommand.addShortcut("Control+g",()=>{this.mindMap.execCommand("ADD_GENERALIZATION")}),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.mindMap.keyCommand.addShortcut("Del|Backspace",()=>{this.mindMap.execCommand("REMOVE_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Backspace",()=>{this.mindMap.execCommand("REMOVE_CURRENT_NODE")}),this.mindMap.on("before_show_text_edit",()=>{this.startTextEdit()}),this.mindMap.on("hide_text_edit",()=>{this.endTextEdit()}),this.mindMap.keyCommand.addShortcut("Control+a",()=>{this.mindMap.execCommand("SELECT_ALL")}),this.mindMap.keyCommand.addShortcut("Control+l",()=>{this.mindMap.execCommand("RESET_LAYOUT")}),this.mindMap.keyCommand.addShortcut("Control+Up",()=>{this.mindMap.execCommand("UP_NODE")}),this.mindMap.keyCommand.addShortcut("Control+Down",()=>{this.mindMap.execCommand("DOWN_NODE")}),this.mindMap.keyCommand.addShortcut("Control+c",()=>{this.copy()}),this.mindMap.keyCommand.addShortcut("Control+x",()=>{this.cut()}),this.mindMap.keyCommand.addShortcut("Control+v",()=>{this.paste()}),this.mindMap.keyCommand.addShortcut("Control+Enter",()=>{this.setRootNodeCenter()})}emitNodeActiveEvent(t=null,e=[...this.activeNodeList]){const i=!((t,e)=>{if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!e.find(e=>e.uid===t[i].uid))return!1;return!0})(this.lastActiveNodeList,e);i&&(this.lastActiveNodeList=[...e],clearTimeout(this.emitNodeActiveEventTimer),this.emitNodeActiveEventTimer=setTimeout(()=>{this.mindMap.emit("node_active",t,e)},0))}clearActiveNodeListOnDrawClick(t,e){if(this.activeNodeList.length<=0)return;let i=!0;const{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if("contextmenu"===e?!n:n){const e=this.mindMap.event.mousedownPos;i=Math.abs(t.clientX-e.x)<=5&&Math.abs(t.clientY-e.y)<=5}i&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}clearCache(){this.layout.lru.clear(),this.nodeCache={},this.lastNodeCache={}}addRenderParams(t,e){if(t){const e=this.renderCallbackList.findIndex(e=>e===t);-1===e&&this.renderCallbackList.push(t)}if(e){-1===this.renderSourceList.findIndex(t=>t===e)&&this.renderSourceList.push(e)}}checkHasRenderSource(t){t=Array.isArray(t)?t:[t];for(let e=0;e<this.renderSourceList.length;e++)if(t.includes(this.renderSourceList[e]))return!0;return!1}onRenderEnd(){this.renderCallbackList.forEach(t=>{t()}),this.isRendering=!1,this.reRender=!1,this.renderCallbackList=[],this.renderSourceList=[],this.mindMap.emit("node_tree_render_end")}render(t,e){this.addRenderParams(t,e),clearTimeout(this.renderTimer),this.renderTimer=setTimeout(()=>{this._render()},0)}_render(){this.checkHasRenderSource(a.CHANGE_THEME)&&this.resetUnExpandNodeStyle(),this.isRendering?this.hasWaitRendering=!0:(this.isRendering=!0,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActiveNodeList(),this.renderTree?(this.mindMap.emit("node_tree_render_start"),this.root=null,this.layout.doLayout(t=>{Object.keys(this.lastNodeCache).forEach(t=>{this.nodeCache[t]||(this.removeNodeFromActiveList(this.lastNodeCache[t]),this.emitNodeActiveEvent(),this.lastNodeCache[t].destroy())}),this.root=t,this.root.render(()=>{if(this.isRendering=!1,this.hasWaitRendering)return this.hasWaitRendering=!1,void this.render();this.onRenderEnd()})}),this.emitNodeActiveEvent()):this.onRenderEnd())}renderByCustomNodeContentNode(t){t.getSize(),t.customNodeContentRealtimeLayout(),this.mindMap.render()}resetUnExpandNodeStyle(){this.renderTree&&Li(this.renderTree,null,t=>{if(!t.data.expand)return Li(t,null,t=>{t.data.needUpdate=!0}),!0})}clearActiveNode(){this.activeNodeList.length<=0||(this.clearActiveNodeList(),this.emitNodeActiveEvent(null,[]))}clearActiveNodeList(){this.activeNodeList.forEach(t=>{this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1)}),this.activeNodeList=[]}addNodeToActiveList(t,e=!1){if(this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&t.userList.length>0)return;-1===this.findActiveNodeIndex(t)&&(e||this.mindMap.emit("before_node_active",t,this.activeNodeList),this.mindMap.execCommand("SET_NODE_ACTIVE",t,!0),this.activeNodeList.push(t))}removeNodeFromActiveList(t){let e=this.findActiveNodeIndex(t);-1!==e&&(this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1),this.activeNodeList.splice(e,1))}activeMultiNode(t=[]){t.forEach(t=>{this.mindMap.emit("before_node_active",t,this.activeNodeList),this.addNodeToActiveList(t,!0),this.emitNodeActiveEvent(t)})}cancelActiveMultiNode(t=[]){t.forEach(t=>{this.removeNodeFromActiveList(t),this.emitNodeActiveEvent(null)})}findActiveNodeIndex(t){return mn(t,this.activeNodeList)}selectAll(){this.mindMap.opt.readonly||(Li(this.root,null,t=>{t.getData("isActive")||this.addNodeToActiveList(t),t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach(t=>{const e=t.generalizationNode;e.getData("isActive")||this.addNodeToActiveList(e)})},null,!0,0,0),this.emitNodeActiveEvent())}back(t){this.backForward("back",t)}forward(t){this.backForward("forward",t)}backForward(t,e){this.mindMap.execCommand("CLEAR_ACTIVE_NODE");const i=this.mindMap.command[t](e);i&&(this.renderTree=i,this.mindMap.render()),this.mindMap.emit("data_change",i)}getNewNodeBehavior(t=!1,e=!1){const{createNewNodeBehavior:i}=this.mindMap.opt;let n=!1,r=!1;switch(i){case a.CREATE_NEW_NODE_BEHAVIOR.DEFAULT:n=e||!t,r=!e&&t;break;case a.CREATE_NEW_NODE_BEHAVIOR.NOT_ACTIVE:n=!1,r=!1;break;case a.CREATE_NEW_NODE_BEHAVIOR.ACTIVE_ONLY:n=!0,r=!1}return{focusNewNode:n,inserting:r}}insertNode(t=!0,e=[],i=null,n=[]){if(e=fn(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,s=e.length>0?e:this.activeNodeList,a=s.length>1,l=this.hasRichTextPlugin(),{focusNewNode:h,inserting:d}=this.getNewNodeBehavior(t,a),c={expand:!0,richText:l,isActive:h};l&&(c.resetRichText=!0),n=cn(n,c);const u=i&&i.richText;let f=!1;s.forEach(t=>{if(t.isGeneralization||t.isRoot)return;n=Ri(n);const e=t.parent,s=1===t.layerIndex?r:o,a=pn(t);u&&c.resetRichText&&delete c.resetRichText;const l={inserting:d,data:{text:s,...c,uid:Xi(),...i||{}},children:[...un(n,f)]};f=!0,e.nodeData.children.splice(a+1,0,l)}),h&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiNode(t,e){if(!e||e.length<=0)return;if(t=fn(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:r}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:n,isActive:r};n&&(o.resetRichText=!0),e=cn(e,o);let s=!1;i.forEach(t=>{if(t.isGeneralization||t.isRoot)return;e=Ri(e);const i=t.parent,n=pn(t),r=un(e,s);s=!0,i.nodeData.children.splice(n+1,0,...r)}),r&&this.clearActiveNodeList(),this.mindMap.render()}insertChildNode(t=!0,e=[],i=null,n=[]){if(e=fn(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,s=e.length>0?e:this.activeNodeList,a=s.length>1,l=this.hasRichTextPlugin(),{focusNewNode:h,inserting:d}=this.getNewNodeBehavior(t,a),c={expand:!0,richText:l,isActive:h};l&&(c.resetRichText=!0),n=cn(n,c);const u=i&&i.richText;let f=!1;s.forEach(t=>{if(t.isGeneralization)return;n=Ri(n),t.nodeData.children||(t.nodeData.children=[]);const e=t.isRoot?r:o;u&&c.resetRichText&&delete c.resetRichText;const s={inserting:d,data:{text:e,uid:Xi(),...c,...i||{}},children:[...un(n,f)]};f=!0,t.nodeData.children.push(s),t.setData({expand:!0})}),h&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiChildNode(t,e){if(!e||e.length<=0)return;if(t=fn(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:r}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:n,isActive:r};n&&(o.resetRichText=!0),e=cn(e,o);let s=!1;i.forEach(t=>{t.isGeneralization||(e=Ri(e),t.nodeData.children||(t.nodeData.children=[]),e=un(e,s),s=!0,t.nodeData.children.push(...e),t.setData({expand:!0}))}),r&&this.clearActiveNodeList(),this.mindMap.render()}insertParentNode(t=!0,e,i){if(e=fn(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:n,defaultInsertBelowSecondLevelNodeText:r}=this.mindMap.opt,o=e.length>0?e:this.activeNodeList,s=o.length>1,a=this.hasRichTextPlugin(),{focusNewNode:l,inserting:h}=this.getNewNodeBehavior(t,s),d={expand:!0,richText:a,isActive:l};a&&(d.resetRichText=!0);const c=i&&i.richText;o.forEach(t=>{if(t.isGeneralization||t.isRoot)return;const e=1===t.layerIndex?n:r;c&&d.resetRichText&&delete d.resetRichText;const o={inserting:h,data:{text:e,uid:Xi(),...d,...i||{}},children:[t.nodeData]},s=t.parent,a=pn(t);s.nodeData.children.splice(a,1,o)}),l&&this.clearActiveNodeList(),this.mindMap.render()}upNode(t){if(this.activeNodeList.length<=0&&!t)return;const e=(t?[t]:this.activeNodeList)[0];if(e.isRoot)return;let i=e.parent,n=i.children,r=mn(e,n);if(-1===r||0===r)return;let o=r-1;n.splice(r,1),n.splice(o,0,e),i.nodeData.children.splice(r,1),i.nodeData.children.splice(o,0,e.nodeData),this.mindMap.render()}downNode(t){if(this.activeNodeList.length<=0&&!t)return;const e=(t?[t]:this.activeNodeList)[0];if(e.isRoot)return;let i=e.parent,n=i.children,r=mn(e,n);if(-1===r||r===n.length-1)return;let o=r+1;n.splice(r,1),n.splice(o,0,e),i.nodeData.children.splice(r,1),i.nodeData.children.splice(o,0,e.nodeData),this.mindMap.render()}moveUpOneLevel(t){if(!(t=t||this.activeNodeList[0])||t.isRoot||t.layerIndex<=1)return;const e=t.parent,i=e.parent,n=mn(t,e.children),r=mn(e,i.children);e.nodeData.children.splice(n,1),i.nodeData.children.splice(r+1,0,t.nodeData),this.mindMap.render()}_handleRemoveCustomStyles(t){let e=!1;return Object.keys(t).forEach(i=>{an(i)&&(e=!0,delete t[i])}),this.hasRichTextPlugin()&&(e=!0,t.resetRichText=!0),e}removeCustomStyles(t){if(!(t=t||this.activeNodeList[0]))return;this._handleRemoveCustomStyles(t.getData())&&this.reRenderNodeCheckChange(t)}removeAllNodeCustomStyles(t){t=fn(t);let e=!1;if(t.length>0)t.forEach(t=>{this._handleRemoveCustomStyles(t.getData())&&(e=!0)});else{if(!this.renderTree)return;Li(this.renderTree,null,t=>{this._handleRemoveCustomStyles(t.data)&&(e=!0);const i=Mn(t.data);i.length>0&&i.forEach(t=>{this._handleRemoveCustomStyles(t)&&(e=!0)})})}e&&this.mindMap.reRender()}copy(){this.beingCopyData=this.copyNode(),this.beingCopyData&&(this.mindMap.opt.disabledClipboard||xn(kn(this.beingCopyData)))}cut(){this.mindMap.execCommand("CUT_NODE",t=>{this.beingCopyData=t,this.mindMap.opt.disabledClipboard||xn(kn(t))})}handlePaste(t){const{disabledClipboard:e}=this.mindMap.opt;if(e)return;const i=t.clipboardData||t.originalEvent.clipboardData,n=i.items;let r=null,o="";Array.from(n).forEach(t=>{t.type.indexOf("image")>-1&&(r=t.getAsFile()),t.type.indexOf("text")>-1&&(o=i.getData("text"))}),this.paste()}async paste(){const{errorHandler:t,handleIsSplitByWrapOnPasteCreateNewNode:e,handleNodePasteImg:i,disabledClipboard:n,onlyPasteTextWhenHasImgAndText:r}=this.mindMap.opt;if(!n&&bn())try{const n=await(async()=>{let t=null,e=null;if(bn()){const i=await navigator.clipboard.read();if(i&&i.length>0)for(const n of i)for(const i of n.types)if(/^image\//.test(i))e=await n.getType(i);else if("text/plain"===i){const e=await n.getType(i);t=await e.text()}}return{text:t,img:e}})();let s=n.text||"",a=n.img||null;if(s){let i=null,n=!0;if(this.mindMap.opt.customHandleClipboardText)try{const t=await this.mindMap.opt.customHandleClipboardText(s);if(!Zi(t)){n=!1;const e=En(t);e.isSmm?i=e.data:s=e.data}}catch(e){t(u.CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR,e)}if(n){const t=En(s);t.isSmm?i=t.data:s=t.data}if(i)this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],Array.isArray(i)?i:[i]);else{this.hasRichTextPlugin()&&(s=vn(s));const t=s.split(new RegExp("\r?\n|(?<!\n)\r","g")).filter(t=>!!t);t.length>1&&e?e().then(()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],t.map(t=>({data:{text:t},children:[]})))}).catch(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:s})}):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:s})}}if(a&&(!s||!r))try{let t=null;t=i&&"function"==typeof i?await i(a):await(o=a,new Promise((t,e)=>{let i=new FileReader;i.readAsDataURL(o),i.onload=async e=>{let i=e.target.result,n=await Gi(i);t({url:i,size:n})},i.onerror=t=>{e(t)}})),this.activeNodeList.length>0&&this.activeNodeList.forEach(e=>{this.mindMap.execCommand("SET_NODE_IMAGE",e,{url:t.url,title:"",width:t.size.width,height:t.size.height})})}catch(e){t(u.LOAD_CLIPBOARD_IMAGE_ERROR,e)}}catch(e){t(u.READ_CLIPBOARD_ERROR,e)}else this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData);var o}insertBefore(t,e){this.insertTo(t,e,"before")}insertAfter(t,e){this.insertTo(t,e,"after")}insertTo(t,e,i="before"){let n=fn(t);n=n.filter(t=>!t.isRoot),"after"===i&&n.reverse(),n.forEach(t=>{let n=t.parent,r=n.children,o=mn(t,r);if(-1===o)return;r.splice(o,1),n.nodeData.children.splice(o,1);let s=e.parent,a=s.children,l=mn(e,a);-1!==l&&("after"===i&&l++,a.splice(l,0,t),s.nodeData.children.splice(l,0,t.nodeData))}),this.mindMap.render()}removeNode(t=[]){if(t=fn(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=null,i=t.length>0,n=i?t:this.activeNodeList,r=n.find(t=>t.isRoot);if(r)this.clearActiveNodeList(),r.children=[],r.nodeData.children=[];else{e=this.getNextActiveNode(n);for(let t=0;t<n.length;t++){const e=n[t],r=this.textEdit.getCurrentEditNode();r&&r.getData("uid")===e.getData("uid")&&this.textEdit.hideEditTextBox(),i&&n.splice(t,1),e.isGeneralization?(this.deleteNodeGeneralization(e),this.removeNodeFromActiveList(e),t--):(this.removeNodeFromActiveList(e),wn(e),t--)}}this.activeNodeList=[],e&&this.addNodeToActiveList(e),this.emitNodeActiveEvent(),this.mindMap.render()}deleteNodeGeneralization(t){const e=t.generalizationBelongNode,i=e.getGeneralizationNodeIndex(t);let n=e.getData("generalization");Array.isArray(n)?n.splice(i,1):n=null,this.mindMap.execCommand("SET_NODE_DATA",e,{generalization:n}),this.closeHighlightNode()}removeCurrentNode(t=[]){if(t=fn(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=t.length>0?t:this.activeNodeList;e=e.filter(t=>!t.isRoot);let i=this.getNextActiveNode(e);for(let t=0;t<e.length;t++){let i=e[t];if(i.isGeneralization)this.deleteNodeGeneralization(i);else{const t=i.parent,e=pn(i);t.nodeData.children.splice(e,1,...i.nodeData.children||[])}}this.activeNodeList=[],i&&this.addNodeToActiveList(i),this.emitNodeActiveEvent(),this.mindMap.render()}getNextActiveNode(t){if(1!==t.length)return null;if(-1===this.findActiveNodeIndex(t[0]))return null;let e=null;if(1===this.activeNodeList.length&&!this.activeNodeList[0].isGeneralization&&this.mindMap.opt.deleteNodeActive){const t=this.activeNodeList[0],i=t.parent.children,n=mn(t,i);e=n<i.length-1?i[n+1]:n>0?i[n-1]:t.parent}return e}copyNode(){if(this.activeNodeList.length<=0)return null;let t=ln(this.activeNodeList);return t=zn(t),t.map(t=>qi({},t,!0))}cutNode(t){if(this.activeNodeList.length<=0)return;let e=ln(this.activeNodeList).filter(t=>!t.isRoot);e=zn(e);const i=e.map(t=>qi({},t,!0));e.forEach(t=>{wn(t)}),this.clearActiveNodeList(),this.mindMap.render(),t&&"function"==typeof t&&t(i)}moveNodeTo(t,e){let i=fn(t);i=i.filter(t=>!t.isRoot),i.forEach(t=>{this.removeNodeFromActiveList(t),wn(t),e.setData({expand:!0}),e.nodeData.children.push(t.nodeData)}),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(t){t=fn(t),this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],t)}setNodeStyle(t,e,i){const n={[e]:i};this.setNodeDataRender(t,n),zi.includes(e)&&(t.parent||t).renderLine(!0)}setNodeStyles(t,e){const i={...e};this.setNodeDataRender(t,i);let n=Object.keys(e),r=!1;n.forEach(t=>{zi.includes(t)&&(r=!0)}),r&&(t.parent||t).renderLine(!0)}setNodeActive(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{isActive:e}),t.updateNodeByActive(e)}setNodeExpand(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{expand:e}),this.mindMap.render()}expandAllNode(t=""){if(!this.renderTree)return;const e=(i,n)=>{n||i.data.uid!==t||(n=!0),n&&!i.data.expand&&(i.data.expand=!0),i.children&&i.children.length>0&&i.children.forEach(t=>{e(t,n)})};e(this.renderTree,!t),this.mindMap.render()}unexpandAllNode(t=!0,e=""){if(!this.renderTree)return;const i=(t,n,r)=>{r||t.data.uid!==e||(r=!0),r&&!n&&t.children&&t.children.length>0&&(t.data.expand=!1),t.children&&t.children.length>0&&t.children.forEach(t=>{i(t,!1,r)})};i(this.renderTree,!0,!e),this.mindMap.render(()=>{t&&this.setRootNodeCenter()})}expandToLevel(t){this.renderTree&&(Li(this.renderTree,null,(e,i,n,r)=>{r<t?e.data.expand=!0:!n&&e.children&&e.children.length>0&&(e.data.expand=!1)},null,!0,0,0),this.mindMap.render())}toggleActiveExpand(){this.activeNodeList.forEach(t=>{t.nodeData.children.length<=0||t.isRoot||this.toggleNodeExpand(t)})}toggleNodeExpand(t){this.mindMap.execCommand("SET_NODE_EXPAND",t,!t.getData("expand"))}setNodeText(t,e,i,n){i=void 0===i?t.getData("richText"):i,this.setNodeDataRender(t,{text:e,richText:i,resetRichText:n})}setNodeImage(t,e){const{url:i,title:n,width:r,height:o,custom:s=!1}=e||{url:"",title:"",width:0,height:0,custom:!1};this.setNodeDataRender(t,{image:i,imageTitle:n||"",imageSize:{width:r,height:o,custom:s}})}setNodeIcon(t,e){this.setNodeDataRender(t,{icon:e})}setNodeHyperlink(t,e,i=""){this.setNodeDataRender(t,{hyperlink:e,hyperlinkTitle:i})}setNodeNote(t,e){this.setNodeDataRender(t,{note:e})}setNodeAttachment(t,e,i=""){this.setNodeDataRender(t,{attachmentUrl:e,attachmentName:i})}setNodeTag(t,e){this.setNodeDataRender(t,{tag:e})}insertFormula(t,e=[]){if(!this.hasRichTextPlugin()||!this.mindMap.formula)return;((e=fn(e)).length>0?e:this.activeNodeList).forEach(e=>{this.mindMap.formula.insertFormulaToNode(e,t)})}addGeneralization(t,e=!0){if(this.activeNodeList.length<=0)return;const i=this.activeNodeList.filter(t=>!t.isRoot&&!t.isGeneralization&&!t.checkHasSelfGeneralization()),n=(t=>{const e={},i={};t.forEach(t=>{const n=t.parent;if(n){const r=n.uid;i[r]=n;const o=t.getIndexInBrothers(),s={node:t,index:o};e[r]?e[r].find(t=>t.index===s.index)||e[r].push(s):e[r]=[s]}});const n=[];return Object.keys(e).forEach(t=>{if(e[t].length>1){const r=e[t].map(t=>t.index).sort((t,e)=>t-e);n.push({node:i[t],range:[r[0],r[r.length-1]]})}else n.push({node:e[t][0].node})}),n})(i);if(n.length<=0)return;const r=this.hasRichTextPlugin(),{focusNewNode:o,inserting:s}=this.getNewNodeBehavior(e,n.length>1);let a=!1;const l=t&&t.richText;n.forEach(e=>{const i={inserting:s,...t||{text:this.mindMap.opt.defaultGeneralizationText},range:e.range||null,uid:Xi(),richText:r,isActive:o};r&&!l&&(i.resetRichText=r);let n=e.node.getData("generalization");if(n=n?Array.isArray(n)?n:[n]:[],e.range){if(!!n.find(t=>t.range&&t.range[0]===e.range[0]&&t.range[1]===e.range[1]))return;n.push(i)}else n.push(i);a=!0,this.mindMap.execCommand("SET_NODE_DATA",e.node,{generalization:n}),e.node.setData({expand:!0})}),a&&(o&&this.clearActiveNodeList(),this.mindMap.render(()=>{this.mindMap.render()}))}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach(t=>{t.checkHasGeneralization()&&this.mindMap.execCommand("SET_NODE_DATA",t,{generalization:null})}),this.mindMap.render(),this.closeHighlightNode())}setNodeCustomPosition(t,e=void 0,i=void 0){([t]||0).forEach(t=>{this.mindMap.execCommand("SET_NODE_DATA",t,{customLeft:e,customTop:i})})}resetLayout(){Li(this.root,null,t=>{t.customLeft=void 0,t.customTop=void 0,this.mindMap.execCommand("SET_NODE_DATA",t,{customLeft:void 0,customTop:void 0}),this.mindMap.render()},null,!0,0,0)}setNodeShape(t,e){if(!e||!Bn.includes(e))return;([t]||0).forEach(t=>{this.setNodeStyle(t,"shape",e)})}goTargetNode(t,e=()=>{}){let i="string"==typeof t?t:t.getData("uid");i&&this.expandToNodeUid(i,()=>{let t=this.findNodeByUid(i);t&&(t.active(),this.moveNodeToCenter(t),e(t))})}setNodeData(t,e){Object.keys(e).forEach(i=>{t.nodeData.data[i]=e[i]})}setNodeDataRender(t,e,i=!1){this.mindMap.execCommand("SET_NODE_DATA",t,e),(t=>{const e=[...zi],i=Object.keys(t);for(let t=0;t<i.length;t++)if(!e.includes(i[t]))return!1;return!0})(e)?this.mindMap.emit("node_tree_render_end"):this.reRenderNodeCheckChange(t,i)}reRenderNodeCheckChange(t,e){t.reRender()?e||this.mindMap.render():this.mindMap.emit("node_tree_render_end")}moveNodeToCenter(t,e){let{resetScaleOnMoveNodeToCenter:i}=this.mindMap.opt;void 0!==e&&(i=e);let{transform:n,state:r}=this.mindMap.view.getTransformData(),{left:o,top:s,width:a,height:l}=t;i||(o*=n.scaleX,s*=n.scaleY,a*=n.scaleX,l*=n.scaleY);let h=this.mindMap.width/2,d=this.mindMap.height/2,c=o+a/2,u=s+l/2,f=h-r.x-c,p=d-r.y-u;this.mindMap.view.translateX(f),this.mindMap.view.translateY(p),i&&this.mindMap.view.setScale(1)}setRootNodeCenter(){this.moveNodeToCenter(this.root)}expandToNodeUid(t,e=()=>{}){if(!this.renderTree)return void e();let i=[],n=!1;const r={};Oi(this.renderTree,(e,o)=>{if(e.data.uid===t)return i=o?[...r[o.data.uid],o]:[],"stop";if(Mn(e.data).forEach(s=>{s.uid===t&&(i=o?[...r[o.data.uid],o,e]:[],n=!0)}),n)return"stop";r[e.data.uid]=o?[...r[o.data.uid],o]:[]});let o=!1;if(i.forEach(t=>{t.data.expand||(o=!0,t.data.expand=!0)}),n){const t=i[i.length-1];t&&Li(t,null,t=>{t.data.expand||(o=!0,t.data.expand=!0)})}o?this.mindMap.render(e):e()}findNodeByUid(t){if(!this.root)return;let e=null;return Li(this.root,null,i=>{if(i.getData("uid")===t)return e=i,!0;let n=!1;return(i._generalizationList||[]).forEach(i=>{i.generalizationNode.getData("uid")===t&&(e=i.generalizationNode,n=!0)}),!!n||void 0}),e}highlightNode(t,e,i){if(this.isRendering)return;i={stroke:"rgb(94, 200, 248)",fill:"transparent",...i||{}},this.highlightBoxNode?this.highlightBoxNodeStyle&&(this.highlightBoxNodeStyle.stroke===i.stroke&&this.highlightBoxNodeStyle.fill===i.fill||this.highlightBoxNode.stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"})):this.highlightBoxNode=(new Qe).stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"}),this.highlightBoxNodeStyle={...i};let n=1/0,r=1/0,o=-1/0,s=-1/0;if(e){t.children.slice(e[0],e[1]+1).forEach(t=>{t.left<n&&(n=t.left),t.top<r&&(r=t.top);const e=t.left+t.width,i=t.top+t.height;e>o&&(o=e),i>s&&(s=i)})}else n=t.left,r=t.top,o=t.left+t.width,s=t.top+t.height;this.highlightBoxNode.plot([[n,r],[o,r],[o,s],[n,s]]),this.mindMap.otherDraw.add(this.highlightBoxNode)}closeHighlightNode(){this.highlightBoxNode&&this.highlightBoxNode.remove()}hasRichTextPlugin(){return!!this.mindMap.richText}},gr={default:Si},vr={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let t=0;t<=9;t++)vr[t]=t+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((t,e)=>{vr[t]=e+65});const yr=vr;class br{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.isStopCheckInSvg=!1,this.defaultEnableCheck=this.defaultEnableCheck.bind(this),this.bindEvent()}extendKeyMap(t,e){yr[t]=e}removeKeyMap(t){void 0!==yr[t]&&delete yr[t]}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){Object.keys(this.shortcutMapCache).length>0||(this.shortcutMapCache=this.shortcutMap,this.shortcutMap={})}restore(){Object.keys(this.shortcutMapCache).length<=0||(this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={})}stopCheckInSvg(){const{enableShortcutOnlyWhenMouseInSvg:t}=this.mindMap.opt;t&&(this.isStopCheckInSvg=!0)}recoveryCheckInSvg(){const{enableShortcutOnlyWhenMouseInSvg:t}=this.mindMap.opt;t&&(this.isStopCheckInSvg=!0)}bindEvent(){this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("svg_mouseenter",()=>{this.isInSvg=!0}),this.mindMap.on("svg_mouseleave",()=>{this.isInSvg=!1}),window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}defaultEnableCheck(t){const e=t.target;if(e===document.body)return!0;for(let t=0;t<this.mindMap.editNodeClassList.length;t++){const i=this.mindMap.editNodeClassList[t];if(e.classList.contains(i))return!0}return!1}onKeydown(t){const{enableShortcutOnlyWhenMouseInSvg:e,beforeShortcutRun:i,customCheckEnableShortcut:n}=this.mindMap.opt;("function"==typeof n?n:this.defaultEnableCheck)(t)&&(this.isPause||e&&!this.isStopCheckInSvg&&!this.isInSvg||Object.keys(this.shortcutMap).forEach(e=>{if(this.checkKey(t,e)){if(this.checkKey(t,"Control+v")||(t.stopPropagation(),t.preventDefault()),"function"==typeof i){if(i(e,[...this.mindMap.renderer.activeNodeList]))return}this.shortcutMap[e].forEach(t=>{t()})}}))}checkKey(t,e){let i=this.getOriginEventCodeArr(t),n=this.getKeyCodeArr(e);if(i.length!==n.length)return!1;for(let t=0;t<i.length;t++){let e=n.findIndex(e=>e===i[t]);if(-1===e)return!1;n.splice(e,1)}return!0}getOriginEventCodeArr(t){let e=[];return(t.ctrlKey||t.metaKey)&&e.push(yr.Control),t.altKey&&e.push(yr.Alt),t.shiftKey&&e.push(yr.Shift),e.includes(t.keyCode)||e.push(t.keyCode),e}hasCombinationKey(t){return t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}getKeyCodeArr(t){let e=t.split(/\s*\+\s*/),i=[];return e.forEach(t=>{i.push(yr[t])}),i}addShortcut(t,e){t.split(/\s*\|\s*/).forEach(t=>{this.shortcutMap[t]?this.shortcutMap[t].push(e):this.shortcutMap[t]=[e]})}removeShortcut(t,e){t.split(/\s*\|\s*/).forEach(t=>{if(this.shortcutMap[t])if(e){let i=this.shortcutMap[t].findIndex(t=>t===e);-1!==i&&this.shortcutMap[t].splice(i,1)}else this.shortcutMap[t]=[],delete this.shortcutMap[t]})}getShortcutFn(t){let e=[];return t.split(/\s*\|\s*/).forEach(t=>{e=this.shortcutMap[t]||[]}),e}}const xr=JSON.parse('{"rE":"0.14.0-fix.3"}');const wr=class{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.originAddHistory=this.addHistory.bind(this),this.addHistory=Pi(this.addHistory,this.mindMap.opt.addHistoryTime,this),this.isPause=!1}pause(){this.isPause=!0}recovery(){this.isPause=!1}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",()=>{this.mindMap.execCommand("BACK")}),this.mindMap.keyCommand.addShortcut("Control+y",()=>{this.mindMap.execCommand("FORWARD")})}exec(t,...e){if(this.commands[t]){if(this.commands[t].forEach(t=>{t(...e)}),this.mindMap.emit("afterExecCommand",t,...e),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(t))return;this.addHistory()}}add(t,e){this.commands[t]?this.commands[t].push(e):this.commands[t]=[e]}remove(t,e){if(this.commands[t])if(e){let i=this.commands[t].find(t=>t===e);-1!==i&&this.commands[t].splice(i,1)}else this.commands[t]=[],delete this.commands[t]}addHistory(){if(this.mindMap.opt.readonly||this.isPause)return;this.mindMap.emit("beforeAddHistory");const t=this.history.length>0?this.history[this.activeHistoryIndex]:null,e=this.getCopyData(),i=JSON.stringify(e);t&&t===i||(this.emitDataUpdatesEvent(t,i),this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(i),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",e),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length))}back(t=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-t>=0){const e=this.history[this.activeHistoryIndex];this.activeHistoryIndex-=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const i=this.history[this.activeHistoryIndex],n=JSON.parse(i);return this.emitDataUpdatesEvent(e,i),n}}forward(t=1){if(this.mindMap.opt.readonly)return;let e=this.history.length;if(this.activeHistoryIndex+t<=e-1){const e=this.history[this.activeHistoryIndex];this.activeHistoryIndex+=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const i=this.history[this.activeHistoryIndex],n=JSON.parse(i);return this.emitDataUpdatesEvent(e,i),n}}getCopyData(){if(!this.mindMap.renderer.renderTree)return null;const t=Ii({},this.mindMap.renderer.renderTree,!0);return t.smmVersion=xr.rE,t}removeDataUid(t){t=Ri(t);let e=t=>{delete t.data.uid,t.children&&t.children.length>0&&t.children.forEach(t=>{e(t)})};return e(t),t}emitDataUpdatesEvent(t,e){try{const i="data_change_detail";if(this.mindMap.event.listenerCount(i)>0&&t&&e){const n=JSON.parse(t),r=JSON.parse(e),o=Ri(Tn(n)),s=Ri(Tn(r)),a=[],l=(t,e)=>(t.children&&t.children.length>0&&t.children.forEach((i,n)=>{t.children[n]="string"==typeof i?e[i]:e[i.data.uid],l(t.children[n],e)}),t);Object.keys(s).forEach(t=>{o[t]?yn(o[t],s[t])||a.push({action:"update",oldData:l(o[t],o),data:l(s[t],s)}):a.push({action:"create",data:l(s[t],s)})}),Object.keys(o).forEach(t=>{s[t]||a.push({action:"delete",data:l(o[t],o)})}),this.mindMap.emit(i,a)}}catch(t){this.mindMap.opt.errorHandler(u.DATA_CHANGE_DETAIL_EVENT_ERROR,t)}}};const kr=class{constructor(){this.has={},this.queue=[],this.nextTick=function(t,e){let i=!1,n=null,r=()=>{i=!1,e?t.call(e):t()};if("undefined"!=typeof MutationObserver){let t=1,e=new MutationObserver(r),i=document.createTextNode(t);e.observe(i,{characterData:!0}),n=function(){t=(t+1)%2,i.data=t}}else n=setTimeout;return function(){i||(i=!0,n(r,0))}}(this.flush,this)}push(t,e){this.has[t]?this.replaceTask(t,e):(this.has[t]=!0,this.queue.push({name:t,fn:e}),this.nextTick())}replaceTask(t,e){const i=this.queue.findIndex(e=>e.name===t);-1!==i&&(this.queue[i]={name:t,fn:e})}flush(){let t=this.queue.slice(0);this.queue=[],t.forEach(({name:t,fn:e})=>{this.has[t]=!1,e()})}},Er={el:null,data:null,viewData:null,readonly:!1,layout:a.LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.2,translateRatio:1,minZoomRatio:20,maxZoomRatio:400,customCheckIsTouchPad:null,mouseScaleCenterUseMousePosition:!0,maxTag:5,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,customNoteContentShow:null,textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:a.MOUSE_WHEEL_ACTION.MOVE,mousewheelMoveStep:100,mousewheelZoomActionReverse:!0,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff",fontSize:13,strokeColor:"#333333"},expandBtnIcon:{open:"",close:""},expandBtnNumHandler:null,isShowExpandNum:!0,enableShortcutOnlyWhenMouseInSvg:!0,customCheckEnableShortcut:null,initRootNodePosition:null,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:500,alwaysShowExpandBtn:!1,notShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null,isUseCustomNodeContent:!1,customCreateNodeContent:null,customInnerElsAppendTo:null,enableAutoEnterTextEditWhenKeydown:!1,autoEmptyTextWhenKeydownEnterEdit:!1,customHandleClipboardText:null,disableMouseWheelZoom:!1,errorHandler:(t,e)=>{console.error(t,e)},enableDblclickBackToRootNode:!1,hoverRectColor:"rgb(94, 200, 248)",hoverRectPadding:2,selectTextOnEnterEditText:!1,deleteNodeActive:!0,fit:!1,tagsColorMap:{},cooperateStyle:{avatarSize:22,fontSize:12},onlyOneEnableActiveNodeOnCooperate:!1,defaultGeneralizationText:"概要",handleIsSplitByWrapOnPasteCreateNewNode:null,addHistoryTime:100,isDisableDrag:!1,createNewNodeBehavior:a.CREATE_NEW_NODE_BEHAVIOR.DEFAULT,defaultNodeImage:"",isLimitMindMapInCanvas:!1,handleNodePasteImg:null,customCreateNodePath:null,customCreateNodePolygon:null,customTransformNodeLinePath:null,beforeShortcutRun:null,resetScaleOnMoveNodeToCenter:!1,createNodePrefixContent:null,createNodePostfixContent:null,disabledClipboard:!1,customHyperlinkJump:null,openPerformance:!1,performanceConfig:{time:250,padding:100,removeNodeWhenOutCanvas:!0},emptyTextMeasureHeightText:"abc123我和你",openRealtimeRenderOnNodeTextEdit:!1,mousedownEventPreventDefault:!1,onlyPasteTextWhenHasImgAndText:!0,enableDragModifyNodeWidth:!0,minNodeTextModifyWidth:20,maxNodeTextModifyWidth:-1,customHandleLine:null,addHistoryOnInit:!0,noteIcon:{icon:"",style:{}},hyperlinkIcon:{icon:"",style:{}},attachmentIcon:{icon:"",style:{}},isShowCreateChildBtnIcon:!0,quickCreateChildBtnIcon:{icon:"",style:{}},customQuickCreateChildBtnClick:null,addCustomContentToNode:null,enableInheritAncestorLineStyle:!0,selectTranslateStep:3,selectTranslateLimit:20,enableFreeDrag:!1,autoMoveWhenMouseInEdgeOnDrag:!0,dragMultiNodeRectConfig:{width:40,height:20,fill:"rgb(94, 200, 248)"},dragPlaceholderRectFill:"rgb(94, 200, 248)",dragPlaceholderLineConfig:{color:"rgb(94, 200, 248)",width:2},dragOpacityConfig:{cloneNodeOpacity:.5,beingDragNodeOpacity:.3},handleDragCloneNode:null,beforeDragEnd:null,beforeDragStart:null,watermarkConfig:{onlyExport:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14},belowNode:!1},exportPaddingX:10,exportPaddingY:10,resetCss:"\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ",minExportImgCanvasScale:2,addContentToHeader:null,addContentToFooter:null,handleBeingExportSvg:null,maxCanvasSize:16384,defaultAssociativeLineText:"关联",associativeLineIsAlwaysAboveNode:!0,associativeLineInitPointsPosition:{from:"",to:""},enableAdjustAssociativeLinePoints:!0,beforeAssociativeLineConnection:null,disableTouchZoom:!1,minTouchZoomScale:20,maxTouchZoomScale:-1,isLimitMindMapInCanvasWhenHasScrollbar:!0,isOnlySearchCurrentRenderNodes:!1,beforeCooperateUpdate:null,rainbowLinesConfig:{open:!1,colorsList:[]},demonstrateConfig:null,enableEditFormulaInRichTextEdit:!0,katexFontPath:"https://unpkg.com/katex@0.16.11/dist/",getKatexOutputType:null,transformRichTextOnEnterEdit:null,beforeHideRichTextEdit:null,outerFramePaddingX:10,outerFramePaddingY:10,defaultOuterFrameText:"外框",onlyPainterNodeCustomStyles:!1,beforeDeleteNodeImg:null,imgResizeBtnSize:25,minImgResizeWidth:50,minImgResizeHeight:50,maxImgResizeWidthInheritTheme:!1,maxImgResizeWidth:1/0,maxImgResizeHeight:1/0,customDeleteBtnInnerHTML:"",customResizeBtnInnerHTML:""};class Nr{constructor(t={}){if(Nr.instanceCount++,this.opt=this.handleOpt(E()(Er,t)),this.opt.data=this.handleData(this.opt.data),this.el=this.opt.el,!this.el)throw new Error("缺少容器元素el");this.getElRectInfo(),this.initWidth=this.width,this.initHeight=this.height,this.cssEl=null,this.cssTextMap={},this.nodeInnerPrefixList=[],this.nodeInnerPostfixList=[],this.editNodeClassList=[],this.extendShapeList=[],this.initContainer(),this.initTheme(),this.initCache(),Nr.pluginList.filter(t=>t.preload).forEach(t=>{this.initPlugin(t)}),this.event=new w({mindMap:this}),this.keyCommand=new br({mindMap:this}),this.command=new wr({mindMap:this}),this.renderer=new mr({mindMap:this}),this.view=new v({mindMap:this}),this.batchExecution=new kr,Nr.pluginList.filter(t=>!t.preload).forEach(t=>{this.initPlugin(t)}),this.addCss(),this.render(this.opt.fit?()=>this.view.fit():()=>{}),this.opt.addHistoryOnInit&&this.opt.data&&this.command.addHistory()}handleOpt(t){return d.includes(t.layout)||(t.layout=a.LAYOUT.LOGICAL_STRUCTURE),t.theme=t.theme&&gr[t.theme]?t.theme:"default",t}handleData(t){return Zi(t)||Object.keys(t).length<=0?null:((t=Ri(t||{})).data&&!t.data.expand&&(t.data.expand=!0),un([t],!1,null,!0),t)}initContainer(){const{associativeLineIsAlwaysAboveNode:t}=this.opt;this.el.classList.add("smm-mind-map-container");const e=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=Ci().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),t||e(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),t&&e(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}appendCss(t,e){this.cssTextMap[t]=e,this.removeCss(),this.addCss()}removeAppendCss(t){this.cssTextMap[t]&&(delete this.cssTextMap[t],this.removeCss(),this.addCss())}joinCss(){return f+Object.keys(this.cssTextMap).map(t=>this.cssTextMap[t]).join("\n")}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.joinCss(),document.head.appendChild(this.cssEl)}removeCss(){this.cssEl&&document.head.removeChild(this.cssEl)}checkEditNodeClassIndex(t){return this.editNodeClassList.findIndex(e=>e===t)}addEditNodeClass(t){-1===this.checkEditNodeClassIndex(t)&&this.editNodeClassList.push(t)}deleteEditNodeClass(t){const e=this.checkEditNodeClassIndex(t);-1!==e&&this.editNodeClassList.splice(e,1)}render(t,e=""){this.initTheme(),this.renderer.render(t,e)}reRender(t,e=""){this.renderer.reRender=!0,this.renderer.clearCache(),this.clearDraw(),this.render(t,e)}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("容器元素el的宽高不能为0")}resize(){const t=this.width,e=this.height;this.getElRectInfo(),this.svg.size(this.width,this.height),t===this.width&&e===this.height||this.demonstrate&&this.demonstrate.isInDemonstrate||this.render(),this.emit("resize")}on(t,e){this.event.on(t,e)}emit(t,...e){this.event.emit(t,...e)}off(t,e){this.event.off(t,e)}initCache(){this.commonCaches={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null}}initTheme(){this.themeConfig=Ln(gr[this.opt.theme]||gr.default,this.opt.themeConfig),In.setBackgroundStyle(this.el,this.themeConfig)}setTheme(t,e=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=t,e||this.render(null,a.CHANGE_THEME),this.emit("view_theme_change",t)}getTheme(){return this.opt.theme}setThemeConfig(t,e=!1){const i=((t,e)=>{const i={};return Object.keys(e).forEach(n=>{const r=t[n],o=e[n];if(Yi(r)===Yi(o)){if("Object"===Yi(r)){if(JSON.stringify(r)!==JSON.stringify(o))return void(i[n]=o)}else if(r!==o)return void(i[n]=o)}else i[n]=o}),i})(this.themeConfig,t);if(this.opt.themeConfig=t,!e){const t=Ai(i);this.render(null,t?"":a.CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(t){return void 0===t?this.themeConfig:this.themeConfig[t]}getConfig(t){return void 0===t?this.opt:this.opt[t]}updateConfig(t={}){this.emit("before_update_config",this.opt);const e={...this.opt};this.opt=this.handleOpt(E().all([Er,this.opt,t])),this.emit("after_update_config",this.opt,e)}getLayout(){return this.opt.layout}setLayout(t,e=!1){d.includes(t)||(t=a.LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=t,this.view.reset(),this.renderer.setLayout(),e||this.render(null,a.CHANGE_LAYOUT),this.emit("layout_change",t)}execCommand(...t){this.command.exec(...t)}updateData(t){t=this.handleData(t),this.emit("before_update_data",t),this.renderer.setData(t),this.render(),this.command.addHistory(),this.emit("update_data",t)}setData(t){t=this.handleData(t),this.emit("before_set_data",t),this.opt.data=t,this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(t),this.reRender(),this.emit("set_data",t)}setFullData(t){t.root&&this.setData(t.root),t.layout&&this.setLayout(t.layout),t.theme&&(t.theme.template&&this.setTheme(t.theme.template),t.theme.config&&this.setThemeConfig(t.theme.config)),t.view&&this.view.setTransformData(t.view)}getData(t){let e=this.command.getCopyData(),i={};return i=t?{layout:this.getLayout(),root:e,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:e,Ri(i)}async export(...t){try{if(!this.doExport)throw new Error("请注册Export插件!");return await this.doExport.export(...t)}catch(t){this.opt.errorHandler(u.EXPORT_ERROR,t)}}toPos(t,e){return{x:t-this.elRect.left,y:e-this.elRect.top}}setMode(t){if(![a.MODE.READONLY,a.MODE.EDIT].includes(t))return;const e=t===a.MODE.READONLY;e!==this.opt.readonly&&(e&&(this.renderer.textEdit.isShowTextEdit()&&(this.renderer.textEdit.hideEditTextBox(),this.command.originAddHistory()),this.execCommand("CLEAR_ACTIVE_NODE")),this.opt.readonly=e,!e&&this.command.history.length<=0&&this.command.originAddHistory(),this.emit("mode_change",t))}getSvgData({paddingX:t=0,paddingY:e=0,ignoreWatermark:i=!1,addContentToHeader:n,addContentToFooter:r,node:o}={}){const{watermarkConfig:s,openPerformance:a}=this.opt;a&&this.renderer.forceLoadNode(o);const{cssTextList:l,header:h,headerHeight:d,footer:c,footerHeight:u}=(({addContentToHeader:t,addContentToFooter:e})=>{const i=[];let n=null,r=0,o=null,s=0;const a=(t,e)=>{if("function"==typeof t){const n=t();if(!n)return;const{el:r,cssText:o,height:s}=n;r instanceof HTMLElement&&(An(r),e(Sn({el:r,height:s}),s)),o&&i.push(o)}};return a(t,(t,e)=>{n=t,r=e}),a(e,(t,e)=>{o=t,s=e}),{cssTextList:i,header:n,headerHeight:r,footer:o,footerHeight:s}})({addContentToHeader:n,addContentToFooter:r}),f=this.svg,p=this.draw,m=f.width(),g=f.height(),v=p.transform(),y=this.elRect;p.scale(1/v.scaleX,1/v.scaleY);const b=p.rbox();let x=null;o&&(x=_n(o,b.x,b.y,t,e));b.width+=2*t,b.height+=2*e+0+d+u,p.translate(t,e),f.size(b.width,b.height),p.translate(-b.x+y.left,-b.y+y.top);let w=f.clone();const k=this.watermark&&this.watermark.hasWatermark();if(!i&&k){this.watermark.isInExport=!0;const{onlyExport:t}=s;b.width>m||b.height>g?(this.width=b.width,this.height=b.height,this.watermark.onResize(),w=f.clone(),this.width=m,this.height=g,this.watermark.onResize()):t&&(this.watermark.onResize(),w=f.clone()),t&&this.watermark.clear(),this.watermark.isInExport=!1}[this.joinCss(),...l].forEach(t=>{w.add(Ci(`<style>${t}</style>`))}),h&&d>0&&(w.findOne(".smm-container").translate(0,d),h.width(b.width),h.y(e),w.add(h,0)),c&&u>0&&(c.width(b.width),c.y(b.height-e-u),w.add(c));const E=f.find("defs"),N=w.find("defs");return E.forEach((t,e)=>{const i=N[e];if(!i)return;const n=t.children(),r=i.children();for(let t=0;t<n.length;t++){const e=n[t],i=r[t];e&&i&&i.attr("id",e.attr("id"))}}),f.size(m,g),p.transform(v),{svg:w,svgHTML:w.svg(),clipData:x,rect:{...b,ratio:b.width/b.height},origWidth:m,origHeight:g,scaleX:v.scaleX,scaleY:v.scaleY}}addShape(t){if(!t)return;this.extendShapeList.find(e=>e.name===t.name)||this.extendShapeList.push(t)}removeShape(t){const e=this.extendShapeList.findIndex(e=>e.name===t);-1!==e&&this.extendShapeList.splice(e,1)}getSvgObjects(){return{SVG:Ci,G:xi,Rect:$e}}addPlugin(t,e){-1===Nr.hasPlugin(t)&&Nr.usePlugin(t,e),this.initPlugin(t)}removePlugin(t){let e=Nr.hasPlugin(t);-1!==e&&(Nr.pluginList.splice(e,1),this[t.instanceName]&&(this[t.instanceName].beforePluginRemove&&this[t.instanceName].beforePluginRemove(),delete this[t.instanceName]))}initPlugin(t){this[t.instanceName]||(this[t.instanceName]=new t({mindMap:this,pluginOpt:t.pluginOpt}))}destroy(){this.emit("beforeDestroy"),this.renderer.textEdit.hideEditTextBox(),this.renderer.textEdit.removeTextEditEl(),[...Nr.pluginList].forEach(t=>{this[t.instanceName]&&this[t.instanceName].beforePluginDestroy&&this[t.instanceName].beforePluginDestroy(),this[t.instanceName]=null}),this.event.unbind(),this.svg.remove(),In.removeBackgroundStyle(this.el),this.el.classList.remove("smm-mind-map-container"),this.el.innerHTML="",this.el=null,this.removeCss(),Nr.instanceCount--}}let Tr=[];Nr.extendNodeDataNoStylePropList=(t=[])=>{Tr.push(...t),c.push(...t)},Nr.resetNodeDataNoStylePropList=()=>{Tr.forEach(t=>{const e=c.findIndex(e=>e===t);-1!==e&&c.splice(e,1)}),Tr=[]},Nr.pluginList=[],Nr.usePlugin=(t,e={})=>(-1!==Nr.hasPlugin(t)||(t.pluginOpt=e,Nr.pluginList.push(t)),Nr),Nr.hasPlugin=t=>Nr.pluginList.findIndex(e=>e===t),Nr.instanceCount=0,Nr.defineTheme=(t,e={})=>{if(gr[t])return new Error("该主题名称已存在");gr[t]=Ln(Si,e)},Nr.removeTheme=t=>{gr[t]&&(gr[t]=null)};const _r=Nr;class Cr{constructor(t){this.mindMap=t.mindMap,this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.startViewPos={x:0,y:0},this.currentState=null}calculationMiniMap(t,e){let{svg:i,rect:n,origWidth:r,origHeight:o,scaleX:s,scaleY:a}=this.mindMap.getSvgData({ignoreWatermark:!0});const l=this.mindMap.elRect;n.x-=l.left,n.x2-=l.left,n.y-=l.top,n.y2-=l.top;let h=0,d=0;t/e>n.ratio?(d=e,h=n.ratio*d):(h=t,d=h/n.ratio);let c=h/n.width,u=(t-h)/2,f=(e-d)/2,p=n.width*s,m=n.height*a,g=(p-n.width)/2,v=(m-n.height)/2,y=n.x-g,b=n.x2+g,x=n.y-v,w=n.y2+v,k={left:0,top:0,right:0,bottom:0};k.left=Math.max(0,-y/p*h)+u,k.right=Math.max(0,(b-r)/p*h)+u,k.top=Math.max(0,-x/m*d)+f,k.bottom=Math.max(0,(w-o)/m*d)+f,k.top>f+d&&(k.top=f+d),k.left>u+h&&(k.left=u+h),Object.keys(k).forEach(t=>{k[t]=k[t]+"px"}),this.removeNodeContent(i);const E=i.svg();return this.currentState={viewBoxStyle:{...k},miniMapBoxScale:c,miniMapBoxLeft:u,miniMapBoxTop:f},{getImgUrl:async t=>{t(await this.mindMap.doExport.fixSvgStrAndToBlob(E))},svgHTML:E,viewBoxStyle:k,miniMapBoxScale:c,miniMapBoxLeft:u,miniMapBoxTop:f}}removeNodeContent(t){if(t.hasClass("smm-node")){let e=t.findOne(".smm-node-shape"),i=e.attr("fill");return($i(i)||tn(i))&&e.attr("fill",en(this.mindMap.themeConfig)),t.clear(),void t.add(e)}let e=t.children();e&&e.length>0&&e.forEach(t=>{this.removeNodeContent(t)})}onMousedown(t){this.isMousedown=!0,this.mousedownPos={x:t.clientX,y:t.clientY};let e=this.mindMap.view.getTransformData();this.startViewPos={x:e.state.x,y:e.state.y}}onMousemove(t,e=5){if(!this.isMousedown||this.isViewBoxMousedown)return;let i=t.clientX-this.mousedownPos.x,n=t.clientY-this.mousedownPos.y;this.mindMap.view.translateXTo(i*e+this.startViewPos.x),this.mindMap.view.translateYTo(n*e+this.startViewPos.y)}onMouseup(){this.isMousedown=!1,this.isViewBoxMousedown=!1}onViewBoxMousedown(t){this.isViewBoxMousedown=!0,this.mousedownPos={x:t.clientX,y:t.clientY};let e=this.mindMap.view.getTransformData();this.startViewPos={x:e.state.x,y:e.state.y}}onViewBoxMousemove(t){if(!this.isViewBoxMousedown||!this.currentState||this.isMousedown)return;let e=t.clientX-this.mousedownPos.x,i=t.clientY-this.mousedownPos.y;const{viewBoxStyle:n,miniMapBoxScale:r,miniMapBoxLeft:o,miniMapBoxTop:s}=this.currentState,a=Math.max(o,Number.parseFloat(n.left)+e),l=Math.max(o,Number.parseFloat(n.right)-e),h=Math.max(s,Number.parseFloat(n.top)+i),d=Math.max(s,Number.parseFloat(n.bottom)-i);this.mindMap.emit("mini_map_view_box_position_change",{left:a+"px",right:l+"px",top:h+"px",bottom:d+"px"}),this.mindMap.view.translateXTo(-e/r+this.startViewPos.x),this.mindMap.view.translateYTo(-i/r+this.startViewPos.y)}}Cr.instanceName="miniMap";const Sr=Cr;class Mr{constructor(t={}){this.mindMap=t.mindMap,this.lineSpacing=0,this.textSpacing=0,this.angle=0,this.text="",this.textStyle={},this.watermarkDraw=null,this.isInExport=!1,this.maxLong=this.getMaxLong(),this.updateWatermark(this.mindMap.opt.watermarkConfig||{}),this.bindEvent()}getMaxLong(){return Math.sqrt(Math.pow(this.mindMap.width,2)+Math.pow(this.mindMap.height,2))}bindEvent(){this.onResize=this.onResize.bind(this),this.mindMap.on("resize",this.onResize)}unBindEvent(){this.mindMap.off("resize",this.onResize)}onResize(){this.maxLong=this.getMaxLong(),this.draw()}createContainer(){this.watermarkDraw||(this.watermarkDraw=(new xi).css({"pointer-events":"none","user-select":"none"}).addClass("smm-water-mark-container"),this.updateLayer())}updateLayer(){if(!this.watermarkDraw)return;const{belowNode:t}=this.mindMap.opt.watermarkConfig;t?this.watermarkDraw.insertBefore(this.mindMap.draw):this.mindMap.svg.add(this.watermarkDraw)}removeContainer(){this.watermarkDraw&&(this.watermarkDraw.remove(),this.watermarkDraw=null)}hasWatermark(){return!!this.text.trim()}handleConfig({text:t,lineSpacing:e,textSpacing:i,angle:n,textStyle:r}){this.text=void 0===t?"":String(t).trim(),this.lineSpacing="number"==typeof e&&e>0?e:100,this.textSpacing="number"==typeof i&&i>0?i:100,this.angle="number"==typeof n&&n>=0&&n<=90?n:30,this.textStyle=Object.assign(this.textStyle,r||{})}clear(){this.watermarkDraw&&this.watermarkDraw.clear()}draw(){this.clear();const{onlyExport:t}=this.mindMap.opt.watermarkConfig;if(t&&!this.isInExport)return;if(!this.hasWatermark())return void this.removeContainer();this.createContainer();let e=0;for(;e<this.mindMap.width;)this.drawText(e),e+=this.lineSpacing/Math.sin(ji(this.angle));let i=this.lineSpacing/Math.cos(ji(this.angle))||this.lineSpacing,n=i;for(;n<this.mindMap.height;)this.drawText(0,n),n+=i}drawText(t,e){let i=Math.min(this.maxLong,(this.mindMap.width-t)/Math.cos(ji(this.angle))),n=new xi,r=null,o=0,s=-1;for(;o<i;){let t=(new pi).text(this.text);n.add(t),t.transform({translateX:o}),this.setTextStyle(t),r=n.bbox(),-1===s&&(s=r.height),o=r.width+this.textSpacing}let a={rotate:this.angle,origin:"top left",translateX:t,translateY:s};void 0!==e&&(a.translateY=e+s),n.transform(a),this.watermarkDraw.add(n)}setTextStyle(t){Object.keys(this.textStyle).forEach(e=>{let i=this.textStyle[e];"color"===e?t.fill(i):t.css(Hi(e),i)})}updateWatermark(t){this.mindMap.opt.watermarkConfig=E()(this.mindMap.opt.watermarkConfig,t),this.updateLayer(),this.handleConfig(t),this.draw()}beforePluginRemove(){this.unBindEvent(),this.removeContainer()}beforePluginDestroy(){this.unBindEvent(),this.removeContainer()}}Mr.instanceName="watermark";const Ar=Mr;class zr{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.addShortcut()}addShortcut(){this.onLeftKeyUp=this.onLeftKeyUp.bind(this),this.onUpKeyUp=this.onUpKeyUp.bind(this),this.onRightKeyUp=this.onRightKeyUp.bind(this),this.onDownKeyUp=this.onDownKeyUp.bind(this),this.mindMap.keyCommand.addShortcut(a.KEY_DIR.LEFT,this.onLeftKeyUp),this.mindMap.keyCommand.addShortcut(a.KEY_DIR.UP,this.onUpKeyUp),this.mindMap.keyCommand.addShortcut(a.KEY_DIR.RIGHT,this.onRightKeyUp),this.mindMap.keyCommand.addShortcut(a.KEY_DIR.DOWN,this.onDownKeyUp)}removeShortcut(){this.mindMap.keyCommand.removeShortcut(a.KEY_DIR.LEFT,this.onLeftKeyUp),this.mindMap.keyCommand.removeShortcut(a.KEY_DIR.UP,this.onUpKeyUp),this.mindMap.keyCommand.removeShortcut(a.KEY_DIR.RIGHT,this.onRightKeyUp),this.mindMap.keyCommand.removeShortcut(a.KEY_DIR.DOWN,this.onDownKeyUp)}onLeftKeyUp(){this.onKeyup(a.KEY_DIR.LEFT)}onUpKeyUp(){this.onKeyup(a.KEY_DIR.UP)}onRightKeyUp(){this.onKeyup(a.KEY_DIR.RIGHT)}onDownKeyUp(){this.onKeyup(a.KEY_DIR.DOWN)}onKeyup(t){if(this.mindMap.renderer.activeNodeList.length>0)this.focus(t);else{let t=this.mindMap.renderer.root;this.mindMap.execCommand("GO_TARGET_NODE",t)}}focus(t){let e=this.mindMap.renderer.activeNodeList[0],i=this.getNodeRect(e),n=null,r=1/0,o=(t,e)=>{let o=this.getDistance(i,t);o<r&&(n=e,r=o)};this.getFocusNodeByShadowAlgorithm({currentActiveNode:e,currentActiveNodeRect:i,dir:t,checkNodeDis:o}),n||this.getFocusNodeByAreaAlgorithm({currentActiveNode:e,currentActiveNodeRect:i,dir:t,checkNodeDis:o}),n||this.getFocusNodeBySimpleAlgorithm({currentActiveNode:e,currentActiveNodeRect:i,dir:t,checkNodeDis:o}),n&&this.mindMap.execCommand("GO_TARGET_NODE",n)}getFocusNodeBySimpleAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:i,checkNodeDis:n}){Oi(this.mindMap.renderer.root,r=>{if(r.uid===t.uid)return;let o=this.getNodeRect(r),{left:s,top:l,right:h,bottom:d}=o,c=!1;i===a.KEY_DIR.LEFT?c=h<=e.left:i===a.KEY_DIR.RIGHT?c=s>=e.right:i===a.KEY_DIR.UP?c=d<=e.top:i===a.KEY_DIR.DOWN&&(c=l>=e.bottom),c&&n(o,r)})}getFocusNodeByShadowAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:i,checkNodeDis:n}){Oi(this.mindMap.renderer.root,r=>{if(r.uid===t.uid)return;let o=this.getNodeRect(r),{left:s,top:l,right:h,bottom:d}=o,c=!1;i===a.KEY_DIR.LEFT?c=s<e.left&&l<e.bottom&&d>e.top:i===a.KEY_DIR.RIGHT?c=h>e.right&&l<e.bottom&&d>e.top:i===a.KEY_DIR.UP?c=l<e.top&&s<e.right&&h>e.left:i===a.KEY_DIR.DOWN&&(c=d>e.bottom&&s<e.right&&h>e.left),c&&n(o,r)})}getFocusNodeByAreaAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:i,checkNodeDis:n}){let r=(e.right+e.left)/2,o=(e.bottom+e.top)/2;Oi(this.mindMap.renderer.root,e=>{if(e.uid===t.uid)return;let s=this.getNodeRect(e),{left:l,top:h,right:d,bottom:c}=s,u=(d+l)/2-r,f=(c+h)/2-o;if(0===u&&0===f)return;let p=!1;i===a.KEY_DIR.LEFT?p=u<=0&&u<=f&&u<=-f:i===a.KEY_DIR.RIGHT?p=u>0&&u>=-f&&u>=f:i===a.KEY_DIR.UP?p=f<=0&&f<u&&f<-u:i===a.KEY_DIR.DOWN&&(p=f>0&&-f<u&&f>u),p&&n(s,e)})}getNodeRect(t){let{scaleX:e,scaleY:i,translateX:n,translateY:r}=this.mindMap.draw.transform(),{left:o,top:s,width:a,height:l}=t;return{right:(o+a)*e+n,bottom:(s+l)*i+r,left:o*e+n,top:s*i+r}}getDistance(t,e){let i=this.getCenter(t),n=this.getCenter(e);return Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))}getCenter({left:t,right:e,top:i,bottom:n}){return{x:(t+e)/2,y:(i+n)/2}}beforePluginRemove(){this.removeShortcut()}beforePluginDestroy(){this.removeShortcut()}}zr.instanceName="keyboardNavigation";const Lr=zr;var Or=i(71710),Fr=i.n(Or),Dr=i(18990),Rr=i.n(Dr);const Ir=(t,e)=>t.find(t=>t.name===e),qr=(t,e)=>t.find(t=>t.attributes.type===e).elements,Br=(t,e,i,n)=>{const r={expand:!0,isActive:!1,text:i(),range:null},o=n.match(/\((\d+),(\d+)\)/);if(o){const i=Number(o[1]),n=Number(o[2]);i===n?e[i]=r:(r.range=[i,n],t.push(r))}else t.push(r)},Pr=t=>{const e=[],i=[],n=(t,n,r)=>{const o=Xi(),s=Vi(t.text);e.push({id:o,title:s,attributedTitle:[{text:s}]}),i.push({id:Xi(),range:"("+n+","+r+")",topicId:o})},r=(t=>Mn(t).filter(t=>t.range&&t.range.length>0))(t.data);return r.forEach(t=>{n(t,t.range[0],t.range[1])}),(t.children||[]).forEach((t,e)=>{const i=(t=>Mn(t).filter(t=>!t.range||t.range.length<=0))(t.data);i.forEach(t=>{n(t,e,e)})}),{summary:e,summaries:i}},Ur=async(t,e,i)=>{let n=null;(t=JSON.parse(t)).length>1&&"function"==typeof i&&(n=await i(t)),n||(n=t[0]);const r=n.rootTopic,o={},s=[],a=async(t,i)=>{if(i.data={text:Zi(t.title)?"":t.title},t.notes){const e=t.notes.realHTML||t.notes.plain;i.data.note=e&&e.content||""}t.href&&/^https?:\/\//.test(t.href)&&(i.data.hyperlink=t.href),t.labels&&t.labels.length>0&&(i.data.tag=t.labels),(async(t,e,i,n)=>{if(t.image&&/\.(jpg|jpeg|png|gif|webp)$/.test(t.image.src)){let r=null;const o=new Promise(t=>{r=t});i.push(o);try{const i=`data:image/${/\.([^.]+)$/.exec(t.image.src)[1]};base64,`+await n["resources/"+t.image.src.split("/")[1]].async("base64");if(e.data.image=i,t.image.width||t.image.height)e.data.imageSize={width:t.image.width,height:t.image.height};else{const t=await Gi(i);e.data.imageSize={width:t.width,height:t.height}}r()}catch(t){console.log(t),r()}}})(t,i,s,e);const n=[],r=[];i._summary&&n.push(i._summary),Array.isArray(t.summaries)&&t.summaries.length>0&&t.summaries.forEach(e=>{Br(n,r,()=>((t,e)=>{if(t.children.summary&&t.children.summary.length>0)for(let i=0;i<t.children.summary.length;i++){const n=t.children.summary[i];if(n.id===e)return n.title}})(t,e.topicId),e.range)}),i.data.generalization=n,i.children=[],t.children&&t.children.attached&&t.children.attached.length>0&&t.children.attached.forEach((t,e)=>{const n={};i.children.push(n),r[e]&&(n._summary=r[e]),a(t,n)})};return a(r,o),await Promise.all(s),o},jr=t=>{const e=(t=>{let e=null;const i=t=>{if(t){for(let i=0;i<t.length;i++)if(!e&&"topic"===t[i].name)return void(e=t[i]);t.forEach(t=>{i(t.elements)})}};return i(t),e})(JSON.parse(t).elements),i={},n=(t,e)=>{const i=t.elements;let r=Ir(i,"title");r=r&&r.elements&&r.elements[0].text,e.data={text:Zi(r)?"":r};try{const t=Ir(i,"notes");t&&(e.data.note=t.elements[0].elements[0].elements[0].text)}catch(t){console.log(t)}try{t.attributes&&t.attributes["xlink:href"]&&/^https?:\/\//.test(t.attributes["xlink:href"])&&(e.data.hyperlink=t.attributes["xlink:href"])}catch(t){console.log(t)}try{const t=Ir(i,"labels");t&&(e.data.tag=t.elements.map(t=>t.elements[0].text))}catch(t){console.log(t)}const o=Ir(i,"children"),s=[],a=[];try{e._summary&&s.push(e._summary);const t=Ir(i,"summaries");t&&Array.isArray(t.elements)&&t.elements.length>0&&t.elements.forEach(t=>{Br(s,a,()=>((t,e)=>{const i=qr(t.elements,"summary");if(i&&i&&i.length>0)for(let t=0;t<i.length;t++){const n=i[t];if(n.attributes.id===e)return n.elements&&n.elements[0]&&n.elements[0].elements&&n.elements[0].elements[0]?n.elements[0].elements[0].text:""}return""})(o,t.attributes["topic-id"]),t.attributes.range)})}catch(t){console.log(t)}if(e.data.generalization=s,e.children=[],o&&o.elements&&o.elements.length>0){(qr(o.elements,"attached")||[]).forEach((t,i)=>{const r={};e.children.push(r),a[i]&&(r._summary=a[i]),n(t,r)})}};return n(e,i),i},Hr={parseXmindFile:(t,e)=>new Promise((i,n)=>{Fr().loadAsync(t).then(async t=>{try{let r="",o=t.files["content.json"],s=t.files["content.xml"]||t.files["/content.xml"];if(o){let i=await o.async("string");r=await Ur(i,t.files,e)}else if(s){let t=await s.async("string"),e=Rr().xml2json(t);r=jr(e)}r?i(r):n(new Error("解析失败"))}catch(t){n(t)}},t=>{n(t)})}),transformXmind:Ur,transformOldXmind:jr,transformToXmind:async(t,e)=>{const i="simpleMindMap_"+Date.now(),n=[];let r={},o=[],s=async(t,r,a)=>{let l={id:t.data.uid,structureClass:"org.xmind.ui.logic.right",title:Vi(t.data.text),children:{attached:[]}};void 0!==t.data.note&&(l.notes={realHTML:{content:t.data.note},plain:{content:t.data.note}}),void 0!==t.data.hyperlink&&(l.href=t.data.hyperlink),void 0!==t.data.tag&&(l.labels=(t.data.tag||[]).map(t=>"object"==typeof t&&null!==t?t.text:t)),(async(t,e,i,n)=>{if(t.data.image){let r=null,o=new Promise(t=>{r=t});i.push(o);try{let i="",o=t.data.image;/^data:/.test(t.data.image)||(o=await Bi(t.data.image));let s=(t=>{if(!/^data:/.test(t))return t;let[e,i]=t.split(",");return{type:/^data:[^/]+\/([^;]+);/.exec(e)[1],base64:i}})(o);i="image_"+n.length+"."+s.type,n.push({name:i,data:s.base64}),e.image={src:"xap:resources/"+i,width:t.data.imageSize.width,height:t.data.imageSize.height},r()}catch(t){console.log(t),r()}}})(t,r,o,n),a?(l.class="topic",r.id=i,r.class="sheet",r.title=e,r.extensions=[],r.topicPositioning="fixed",r.topicOverlapping="overlap",r.coreVersion="2.100.0",r.rootTopic=l):Object.keys(l).forEach(t=>{r[t]=l[t]});const{summary:h,summaries:d}=Pr(t);a?d.length>0&&(r.rootTopic.children.summary=h,r.rootTopic.summaries=d):d.length>0&&(r.children.summary=h,r.summaries=d),t.children&&t.children.length>0&&t.children.forEach(t=>{let e={};s(t,e),l.children.attached.push(e)})};s(t,r,!0),await Promise.all(o);const a=[r],l=new(Fr());l.file("content.json",JSON.stringify(a)),l.file("metadata.json",`{"modifier":"","dataStructureVersion":"2","creator":{"name":"mind-map"},"layoutEngineVersion":"3","activeSheetId":"${i}"}`),l.file("content.xml",'<?xml version="1.0" encoding="UTF-8" standalone="no"?><xmap-content xmlns="urn:xmind:xmap:xmlns:content:2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" modified-by="bruce" timestamp="1503058545540" version="2.0"> <sheet id="7abtd0ssc7n4pi1nu6i7b6lsdh" modified-by="bruce" theme="0kdeemiijde6nuk97e4t0vpp54" timestamp="1503058545540"> <topic id="1vr0lcte2og4t2sopiogvdmifc" modified-by="bruce" structure-class="org.xmind.ui.logic.right" timestamp="1503058545417"> <title>Warning 警告 Attention Warnung 경고</title> <children> <topics type="attached"> <topic id="71h1aip2t1o8vvm0a41nausaar" modified-by="bruce" timestamp="1503058545423"> <title svg:width="500">This file can not be opened normally, please do not modify and save, otherwise the contents will be permanently lost!</title> <children> <topics type="attached"> <topic id="428akmkh9a0tog6c91qj995qdl" modified-by="bruce" timestamp="1503058545427"> <title>You can try using XMind 8 Update 3 or later version to open</title> </topic> </topics> </children> </topic> <topic id="2kb87f8m38b3hnfhp450c7q35e" modified-by="bruce" timestamp="1503058545434"> <title svg:width="500">该文件无法正常打开,请勿修改并保存,否则文件内容将会永久性丢失!</title> <children> <topics type="attached"> <topic id="3m9hoo4a09n53ofl6fohdun99f" modified-by="bruce" timestamp="1503058545438"> <title>你可以尝试使用 XMind 8 Update 3 或更新版本打开</title> </topic> </topics> </children> </topic> <topic id="7r3r4617hvh931ot9obi595r8f" modified-by="bruce" timestamp="1503058545444"> <title svg:width="500">該文件無法正常打開,請勿修改並保存,否則文件內容將會永久性丟失!</title> <children> <topics type="attached"> <topic id="691pgka6gmgpgkacaa0h3f1hjb" modified-by="bruce" timestamp="1503058545448"> <title>你可以嘗試使用 XMind 8 Update 3 或更新版本打開</title> </topic> </topics> </children> </topic> <topic id="0f2e3rpkfahg4spg4nda946r0b" modified-by="bruce" timestamp="1503058545453"> <title svg:width="500">この文書は正常に開かないので、修正して保存しないようにしてください。そうでないと、書類の内容が永久に失われます。!</title> <children> <topics type="attached"> <topic id="4vuubta53ksc1falk46mevge0t" modified-by="bruce" timestamp="1503058545457"> <title>XMind 8 Update 3 や更新版を使って開くこともできます</title> </topic> </topics> </children> </topic> <topic id="70n9i4u3lb89sq9l1m1bs255j5" modified-by="bruce" timestamp="1503058545463"> <title svg:width="500">Datei kann nicht richtig geöffnet werden. Bitte ändern Sie diese Datei nicht und speichern Sie sie, sonst wird die Datei endgültig gelöscht werden.</title> <children> <topics type="attached"> <topic id="1qpc5ee298p2sqeqbinpca46b7" modified-by="bruce" timestamp="1503058545466"> <title svg:width="500">Bitte versuchen Sie, diese Datei mit XMind 8 Update 3 oder später zu öffnen.</title> </topic> </topics> </children> </topic> <topic id="4dmes10uc19pq7enu8sc4bmvif" modified-by="bruce" timestamp="1503058545473"> <title svg:width="500">Ce fichier ne peut pas ouvert normalement, veuillez le rédiger et sauvegarder, sinon le fichier sera perdu en permanence. </title> <children> <topics type="attached"> <topic id="5f0rivgubii2launodiln7sdkt" modified-by="bruce" timestamp="1503058545476"> <title svg:width="500">Vous pouvez essayer d\'ouvrir avec XMind 8 Update 3 ou avec une version plus récente.</title> </topic> </topics> </children> </topic> <topic id="10pn1os1sgfsnqa8akabom5pej" modified-by="bruce" timestamp="1503058545481"> <title svg:width="500">파일을 정상적으로 열 수 없으며, 수정 및 저장하지 마십시오. 그렇지 않으면 파일의 내용이 영구적으로 손실됩니다!</title> <children> <topics type="attached"> <topic id="0l2nr0fq3em22rctapkj46ue58" modified-by="bruce" timestamp="1503058545484"> <title svg:width="500">XMind 8 Update 3 또는 이후 버전을 사용하여</title> </topic> </topics> </children> </topic> </topics> </children> <extensions> <extension provider="org.xmind.ui.map.unbalanced"> <content> <right-number>-1</right-number> </content> </extension> </extensions> </topic> <title>Sheet 1</title> </sheet></xmap-content>');const h={"file-entries":{"content.json":{},"metadata.json":{},"Thumbnails/thumbnail.png":{}}};n.length>0&&n.forEach(t=>{h["file-entries"]["resources/"+t.name]={};l.folder("resources").file(t.name,t.data,{base64:!0})}),l.file("manifest.json",JSON.stringify(h));return await l.generateAsync({type:"blob"})}};class Wr{constructor(t){this.mindMap=t.mindMap}async xmind(t,e){return await Hr.transformToXmind(t,e)}getXmind(){return Hr}}Wr.instanceName="doExportXMind";const Vr=Wr;var Kr=function(t,e){return Kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Kr(t,e)};function Gr(t,e){function i(){this.constructor=t}Kr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Xr=function(){return Xr=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Xr.apply(this,arguments)};function Yr(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})}function Zr(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Qr(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)n[r]=o[s];return n}for(var Jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$r=new Uint8Array(256),to=0;to<64;to++)$r[Jr.charCodeAt(to)]=to;var eo,io=function(t){var e,i,n,r,o,s=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var h=new Uint8Array(s);for(e=0;e<a;e+=4)i=$r[t.charCodeAt(e)],n=$r[t.charCodeAt(e+1)],r=$r[t.charCodeAt(e+2)],o=$r[t.charCodeAt(e+3)],h[l++]=i<<2|n>>4,h[l++]=(15&n)<<4|r>>2,h[l++]=(3&r)<<6|63&o;return h},no=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,ro=function(t){return t.charCodeAt(0)},oo=function(t){return t.codePointAt(0)},so=function(t,e){return ho(t.toString(16),e,"0").toUpperCase()},ao=function(t){return so(t,2)},lo=function(t){return String.fromCharCode(t)},ho=function(t,e,i){for(var n="",r=0,o=e-t.length;r<o;r++)n+=i;return n+t},co=function(t,e,i){for(var n=t.length,r=0;r<n;r++)e[i++]=t.charCodeAt(r);return n},uo=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},fo=function(t){return t.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")},po=["\\n","\\f","\\r","\\u000B"],mo=function(t){return/^[\n\f\r\u000B]$/.test(t)},go=function(t){return t.split(/[\n\f\r\u000B]/)},vo=function(t){return t.replace(/[\n\f\r\u000B]/g," ")},yo=function(t,e){var i,n=t.charCodeAt(e),r=e+1,o=1;return n>=55296&&n<=56319&&t.length>r&&(i=t.charCodeAt(r))>=56320&&i<=57343&&(o=2),[t.slice(e,e+o),o]},bo=function(t,e,i,n){for(var r=function(t){for(var e=po.join("|"),i=["$"],n=0,r=t.length;n<r;n++){var o=t[n];if(mo(o))throw new TypeError("`wordBreak` must not include "+e);i.push(""===o?".":uo(o))}var s=i.join("|");return new RegExp("("+e+")|((.*?)("+s+"))","gm")}(e),o=fo(t).match(r),s="",a=0,l=[],h=function(){""!==s&&l.push(s),s="",a=0},d=0,c=o.length;d<c;d++){var u=o[d];if(mo(u))h();else{var f=n(u);a+f>i&&h(),s+=u,a+=f}}return h(),l},xo=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,wo=function(t){var e=t.match(xo);if(e){var i=e[1],n=e[2],r=void 0===n?"01":n,o=e[3],s=void 0===o?"01":o,a=e[4],l=void 0===a?"00":a,h=e[5],d=void 0===h?"00":h,c=e[6],u=void 0===c?"00":c,f=e[7],p=void 0===f?"Z":f,m=e[8],g=void 0===m?"00":m,v=e[9];return new Date(i+"-"+r+"-"+s+"T"+l+":"+d+":"+u+("Z"===p?"Z":""+p+g+":"+(void 0===v?"00":v)))}},ko=function(t,e){for(var i,n,r=0;r<t.length;){var o=t.substring(r).match(e);if(!o)return{match:n,pos:r};n=o,r+=(null!==(i=o.index)&&void 0!==i?i:0)+o[0].length}return{match:n,pos:r}},Eo=function(t){return t[t.length-1]},No=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,i=new Uint8Array(e),n=0;n<e;n++)i[n]=t.charCodeAt(n);return i},To=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,n=[],r=0;r<i;r++){var o=t[r];n[r]=o instanceof Uint8Array?o:No(o)}var s=0;for(r=0;r<i;r++)s+=t[r].length;for(var a=new Uint8Array(s),l=0,h=0;h<i;h++)for(var d=n[h],c=0,u=d.length;c<u;c++)a[l++]=d[c];return a},_o=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=lo(t[i]);return e},Co=function(t,e){return t.id-e.id},So=function(t){for(var e=t.length,i=0,n=Math.floor(e/2);i<n;i++){var r=i,o=e-i-1,s=t[i];t[r]=t[o],t[o]=s}return t},Mo=function(t){if("string"==typeof t)return function(t){var e=t.trim(),i=e.substring(0,100).match(no);if(!i)return io(e);var n=i[0],r=e.substring(n.length);return io(r)}(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},Ao=function(){return new Promise(function(t){setTimeout(function(){return t()},0)})},zo=function(t){return Math.floor((t-65536)/1024)+55296},Lo=function(t){return(t-65536)%1024+56320};!function(t){t.BigEndian="BigEndian",t.LittleEndian="LittleEndian"}(eo||(eo={}));for(var Oo="�".codePointAt(0),Fo=function(t,e){if(void 0===e&&(e=!0),t.length<=1)return String.fromCodePoint(Oo);for(var i=e?qo(t):eo.BigEndian,n=e?2:0,r=[];t.length-n>=2;){var o=Io(t[n++],t[n++],i);if(Do(o))if(t.length-n<2)r.push(Oo);else{var s=Io(t[n++],t[n++],i);Ro(s)?r.push(o,s):r.push(Oo)}else Ro(o)?(n+=2,r.push(Oo)):r.push(o)}return n<t.length&&r.push(Oo),String.fromCodePoint.apply(String,r)},Do=function(t){return t>=55296&&t<=56319},Ro=function(t){return t>=56320&&t<=57343},Io=function(t,e,i){if(i===eo.LittleEndian)return e<<8|t;if(i===eo.BigEndian)return t<<8|e;throw new Error("Invalid byteOrder: "+i)},qo=function(t){return Bo(t)?eo.BigEndian:Po(t)?eo.LittleEndian:eo.BigEndian},Bo=function(t){return 254===t[0]&&255===t[1]},Po=function(t){return 255===t[0]&&254===t[1]},Uo=function(t){return Bo(t)||Po(t)},jo=function(t){return Math.ceil(t.toString(2).length/8)},Ho=function(t){for(var e=new Uint8Array(jo(t)),i=1;i<=e.length;i++)e[i-1]=t>>8*(e.length-i);return e},Wo=function(t){throw new Error(t)},Vo=i(72717),Ko=i.n(Vo),Go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xo=new Uint8Array(256),Yo=0;Yo<64;Yo++)Xo[Go.charCodeAt(Yo)]=Yo;var Zo=function(t){return function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e}(Ko().inflate(function(t){var e,i,n,r,o,s=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var h=new Uint8Array(s);for(e=0;e<a;e+=4)i=Xo[t.charCodeAt(e)],n=Xo[t.charCodeAt(e+1)],r=Xo[t.charCodeAt(e+2)],o=Xo[t.charCodeAt(e+3)],h[l++]=i<<2|n>>4,h[l++]=(15&n)<<4|r>>2,h[l++]=(3&r)<<6|63&o;return h}(t)))};var Qo,Jo={Courier:"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQB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HJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="};!function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(Qo||(Qo={}));var $o={},ts=function(){function t(){var t=this;this.getWidthOfGlyph=function(e){return t.CharWidths[e]},this.getXAxisKerningForPair=function(e,i){return(t.KernPairXAmounts[e]||{})[i]}}return t.load=function(e){var i=$o[e];if(i)return i;var n=Zo(Jo[e]),r=Object.assign(new t,JSON.parse(n));return r.CharWidths=r.CharMetrics.reduce(function(t,e){return t[e.N]=e.WX,t},{}),r.KernPairXAmounts=r.KernPairs.reduce(function(t,e){var i=e[0],n=e[1],r=e[2];return t[i]||(t[i]={}),t[i][n]=r,t},{}),$o[e]=r,r},t}();for(var es=Zo("eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1GG1X1BVawfdnX0xdoRbjPCdBVGs1svo3R/tPVD1r2YL3k0kUfC04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rd9nWo56movd196uyqy792faz2prfkJHyAHPiBONTe+kZ2ephrlhb4Ll0HSRfRNOLxqk5onB1LWu4kCPAGRmicIDOZ6j67Ro0T5V2/F6t1lDpTlkz6iMTpspj/JI53H83+jZNmt/+ybY2TZ1lRctmcUldonEDLxLEbGV5aZ9AwRnqAJmydSFu6c2dunU6/8yDIL5Og0+8W67VOp98xsL6kr1H8FglO/W45Uq1z6ncPXto6rX432zlpnVW/e6bAGfXPV0aOmXPqZwcbM+fUzw42Zs6pnx/BxsyJ9fMaV8ycW79fre3c+v1qbefW79+u7QT7/ePazrGf+UE7Zk6wf+Mmi8EJ9ocFQnCC/WGBEJxgf3gDgddNNIp/WC3Mb12i24cHXIEfkcs3FzGDM/UPnnJjcKb+cQXOmfrHFThn6h/fgItO1z8+4IjO2P+0LBOdsX9znHgBKUYn7Id+Pkklvh3TCgtpX9DFhbSvll1I+1t0C3NfTBcX5v4IeSHv5sYxX7g7H86dt+/Wbpw7c+8XsLkz934Bmztz79+AzZ2+9w+4cmfww2ptZ/DDam1n8MPbtZ3GDw9rs9ui3KZPblw4tz8vJiuc208LhMK5/bRAKJzbT28gFE7wp9XCTvCnR1zO8ZeLw7Fwjj8tTlw4x78v0Ern+PcFWukc//4GWulE//6AonSu/7paxrn+zZ2YnRclRK/rBXJsCAjxh2cKEAWVJ02ku/wOoFv2+12XkmnODwHgW4uQGVbZ0uM7mAJ1b/68/JlpUMnWdy5MF6/Vd5eL19YYSPd6FqPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA=="),is=JSON.parse(es),ns=function(t,e){var i=this;this.canEncodeUnicodeCodePoint=function(t){return t in i.unicodeMappings},this.encodeUnicodeCodePoint=function(t){var e=i.unicodeMappings[t];if(!e){var n=String.fromCharCode(t),r="0x"+function(t,e,i){for(var n="",r=0,o=e-t.length;r<o;r++)n+=i;return n+t}(t.toString(16),4,"0"),o=i.name+' cannot encode "'+n+'" ('+r+")";throw new Error(o)}return{code:e[0],name:e[1]}},this.name=t,this.supportedCodePoints=Object.keys(e).map(Number).sort(function(t,e){return t-e}),this.unicodeMappings=e},rs={Symbol:new ns("Symbol",is.symbol),ZapfDingbats:new ns("ZapfDingbats",is.zapfdingbats),WinAnsi:new ns("WinAnsi",is.win1252)},os=function(t){return Object.keys(t).map(function(e){return t[e]})},ss=os(Qo),as=function(t){return ss.includes(t)},ls=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},hs=function(t){return"`"+t+"`"},ds=function(t){var e=typeof t;return"string"===e?"'"+t+"'":"undefined"===e?hs(t):t},cs=function(t,e,i){Array.isArray(i)||(i=os(i));for(var n=0,r=i.length;n<r;n++)if(t===i[n])return;throw new TypeError(function(t,e,i){for(var n=new Array(i.length),r=0,o=i.length;r<o;r++){var s=i[r];n[r]=ds(s)}var a=n.join(" or ");return hs(e)+" must be one of "+a+", but was actually "+ds(t)}(t,e,i))},us=function(t,e,i){Array.isArray(i)||(i=os(i)),cs(t,e,i.concat(void 0))},fs=function(t,e){return"null"===e?null===t:"undefined"===e?void 0===t:"string"===e?"string"==typeof t:"number"===e?"number"==typeof t&&!isNaN(t):"boolean"===e?"boolean"==typeof t:"symbol"===e?"symbol"==typeof t:"bigint"===e?"bigint"==typeof t:e===Date?t instanceof Date:e===Array?t instanceof Array:e===Uint8Array?t instanceof Uint8Array:e===ArrayBuffer?t instanceof ArrayBuffer:e===Function?t instanceof Function:t instanceof e[0]},ps=function(t,e,i){for(var n=new Array(i.length),r=0,o=i.length;r<o;r++){var s=i[r];"null"===s&&(n[r]=hs("null")),"undefined"===s&&(n[r]=hs("undefined")),"string"===s?n[r]=hs("string"):"number"===s?n[r]=hs("number"):"boolean"===s?n[r]=hs("boolean"):"symbol"===s?n[r]=hs("symbol"):"bigint"===s?n[r]=hs("bigint"):s===Array?n[r]=hs("Array"):s===Uint8Array?n[r]=hs("Uint8Array"):s===ArrayBuffer?n[r]=hs("ArrayBuffer"):n[r]=hs(s[1])}var a,l=n.join(" or ");return hs(e)+" must be of type "+l+", but was actually of type "+hs(null===(a=t)?"null":void 0===a?"undefined":"string"==typeof a?"string":isNaN(a)?"NaN":"number"==typeof a?"number":"boolean"==typeof a?"boolean":"symbol"==typeof a?"symbol":"bigint"==typeof a?"bigint":a.constructor&&a.constructor.name?a.constructor.name:a.name?a.name:a.constructor?String(a.constructor):String(a))},ms=function(t,e,i){for(var n=0,r=i.length;n<r;n++)if(fs(t,i[n]))return;throw new TypeError(ps(t,e,i))},gs=function(t,e,i){ms(t,e,i.concat("undefined"))},vs=function(t,e,i){for(var n=0,r=t.length;n<r;n++)ms(t[n],e,i)},ys=function(t,e,i,n){if(ms(t,e,["number"]),ms(i,"min",["number"]),ms(n,"max",["number"]),n=Math.max(i,n),t<i||t>n)throw new Error(hs(e)+" must be at least "+i+" and at most "+n+", but was actually "+t)},bs=function(t,e,i,n){ms(t,e,["number","undefined"]),"number"==typeof t&&ys(t,e,i,n)},xs=function(t,e,i){if(ms(t,e,["number"]),t%i!==0)throw new Error(hs(e)+" must be a multiple of "+i+", but was actually "+t)},ws=function(t,e){if(![1,0].includes(Math.sign(t)))throw new Error(hs(e)+" must be a positive number or 0, but was actually "+t)},ks=new Uint16Array(256),Es=0;Es<256;Es++)ks[Es]=Es;ks[22]=ro(""),ks[24]=ro("˘"),ks[25]=ro("ˇ"),ks[26]=ro("ˆ"),ks[27]=ro("˙"),ks[28]=ro("˝"),ks[29]=ro("˛"),ks[30]=ro("˚"),ks[31]=ro("˜"),ks[127]=ro("�"),ks[128]=ro("•"),ks[129]=ro("†"),ks[130]=ro("‡"),ks[131]=ro("…"),ks[132]=ro("—"),ks[133]=ro("–"),ks[134]=ro("ƒ"),ks[135]=ro("⁄"),ks[136]=ro("‹"),ks[137]=ro("›"),ks[138]=ro("−"),ks[139]=ro("‰"),ks[140]=ro("„"),ks[141]=ro("“"),ks[142]=ro("”"),ks[143]=ro("‘"),ks[144]=ro("’"),ks[145]=ro("‚"),ks[146]=ro("™"),ks[147]=ro("fi"),ks[148]=ro("fl"),ks[149]=ro("Ł"),ks[150]=ro("Œ"),ks[151]=ro("Š"),ks[152]=ro("Ÿ"),ks[153]=ro("Ž"),ks[154]=ro("ı"),ks[155]=ro("ł"),ks[156]=ro("œ"),ks[157]=ro("š"),ks[158]=ro("ž"),ks[159]=ro("�"),ks[160]=ro("€"),ks[173]=ro("�");var Ns=function(t){for(var e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]=ks[t[i]];return String.fromCodePoint.apply(String,e)};const Ts=function(){function t(t){this.populate=t,this.value=void 0}return t.prototype.getValue=function(){return this.value},t.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},t.prototype.invalidate=function(){this.value=void 0},t.populatedBy=function(e){return new t(e)},t}();var _s,Cs=function(t){function e(e,i){var n="Method "+e+"."+i+"() not implemented";return t.call(this,n)||this}return Gr(e,t),e}(Error),Ss=function(t){function e(e){var i="Cannot construct "+e+" - it has a private constructor";return t.call(this,i)||this}return Gr(e,t),e}(Error),Ms=function(t){function e(e,i){var n=function(t){var e,i;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:null===(i=null==t?void 0:t.constructor)||void 0===i?void 0:i.name},r="Expected instance of "+(Array.isArray(e)?e.map(n):[n(e)]).join(" or ")+", but got instance of "+(i?n(i):i);return t.call(this,r)||this}return Gr(e,t),e}(Error),As=function(t){function e(e){var i=e+" stream encoding not supported";return t.call(this,i)||this}return Gr(e,t),e}(Error),zs=function(t){function e(e,i){var n="Cannot call "+e+"."+i+"() more than once";return t.call(this,n)||this}return Gr(e,t),e}(Error),Ls=(function(t){function e(e){var i="Missing catalog (ref="+e+")";return t.call(this,i)||this}Gr(e,t)}(Error),function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return Gr(e,t),e}(Error)),Os=function(t){function e(e){var i,n,r,o="Unrecognized stream type: "+(null!==(r=null!==(n=null===(i=null==e?void 0:e.contructor)||void 0===i?void 0:i.name)&&void 0!==n?n:null==e?void 0:e.name)&&void 0!==r?r:e);return t.call(this,o)||this}return Gr(e,t),e}(Error),Fs=function(t){function e(){return t.call(this,"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.")||this}return Gr(e,t),e}(Error),Ds=function(t){function e(e){var i="Attempted to convert PDFArray with "+e+" elements to rectangle, but must have exactly 4 elements.";return t.call(this,i)||this}return Gr(e,t),e}(Error),Rs=function(t){function e(e){var i='Attempted to convert "'+e+'" to a date, but it does not match the PDF date string format.';return t.call(this,i)||this}return Gr(e,t),e}(Error),Is=function(t){function e(e,i){var n="Invalid targetIndex specified: targetIndex="+e+" must be less than Count="+i;return t.call(this,n)||this}return Gr(e,t),e}(Error),qs=function(t){function e(e,i){var n="Failed to "+i+" at targetIndex="+e+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return t.call(this,n)||this}return Gr(e,t),e}(Error),Bs=function(t){function e(e,i,n){var r="index should be at least "+i+" and at most "+n+", but was actually "+e;return t.call(this,r)||this}return Gr(e,t),e}(Error),Ps=function(t){function e(){return t.call(this,"Attempted to set invalid field value")||this}return Gr(e,t),e}(Error),Us=function(t){function e(){return t.call(this,"Attempted to select multiple values for single-select field")||this}return Gr(e,t),e}(Error),js=function(t){function e(e){var i="No /DA (default appearance) entry found for field: "+e;return t.call(this,i)||this}return Gr(e,t),e}(Error),Hs=function(t){function e(e){var i="No Tf operator found for DA of field: "+e;return t.call(this,i)||this}return Gr(e,t),e}(Error),Ws=function(t){function e(e,i){var n="Failed to parse number (line:"+e.line+" col:"+e.column+" offset="+e.offset+'): "'+i+'"';return t.call(this,n)||this}return Gr(e,t),e}(Error),Vs=function(t){function e(e,i){var n="Failed to parse PDF document (line:"+e.line+" col:"+e.column+" offset="+e.offset+"): "+i;return t.call(this,n)||this}return Gr(e,t),e}(Error),Ks=function(t){function e(e,i,n){var r="Expected next byte to be "+i+" but it was actually "+n;return t.call(this,e,r)||this}return Gr(e,t),e}(Vs),Gs=function(t){function e(e,i){var n="Failed to parse PDF object starting with the following byte: "+i;return t.call(this,e,n)||this}return Gr(e,t),e}(Vs),Xs=function(t){function e(e){return t.call(this,e,"Failed to parse invalid PDF object")||this}return Gr(e,t),e}(Vs),Ys=function(t){function e(e){return t.call(this,e,"Failed to parse PDF stream")||this}return Gr(e,t),e}(Vs),Zs=function(t){function e(e){return t.call(this,e,"Failed to parse PDF literal string due to unbalanced parenthesis")||this}return Gr(e,t),e}(Vs),Qs=function(t){function e(e){return t.call(this,e,"Parser stalled")||this}return Gr(e,t),e}(Vs),Js=function(t){function e(e){return t.call(this,e,"No PDF header found")||this}return Gr(e,t),e}(Vs),$s=function(t){function e(e,i){var n="Did not find expected keyword '"+_o(i)+"'";return t.call(this,e,n)||this}return Gr(e,t),e}(Vs);!function(t){t[t.Null=0]="Null",t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Newline=10]="Newline",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationPoint=33]="ExclamationPoint",t[t.Hash=35]="Hash",t[t.Percent=37]="Percent",t[t.LeftParen=40]="LeftParen",t[t.RightParen=41]="RightParen",t[t.Plus=43]="Plus",t[t.Minus=45]="Minus",t[t.Dash=45]="Dash",t[t.Period=46]="Period",t[t.ForwardSlash=47]="ForwardSlash",t[t.Zero=48]="Zero",t[t.One=49]="One",t[t.Two=50]="Two",t[t.Three=51]="Three",t[t.Four=52]="Four",t[t.Five=53]="Five",t[t.Six=54]="Six",t[t.Seven=55]="Seven",t[t.Eight=56]="Eight",t[t.Nine=57]="Nine",t[t.LessThan=60]="LessThan",t[t.GreaterThan=62]="GreaterThan",t[t.A=65]="A",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.O=79]="O",t[t.P=80]="P",t[t.R=82]="R",t[t.LeftSquareBracket=91]="LeftSquareBracket",t[t.BackSlash=92]="BackSlash",t[t.RightSquareBracket=93]="RightSquareBracket",t[t.a=97]="a",t[t.b=98]="b",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.i=105]="i",t[t.j=106]="j",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.x=120]="x",t[t.LeftCurly=123]="LeftCurly",t[t.RightCurly=125]="RightCurly",t[t.Tilde=126]="Tilde"}(_s||(_s={}));const ta=_s;var ea=i(59534),ia=i.n(ea);const na=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=lo(129);return"%PDF-"+this.major+"."+this.minor+"\n%"+t+t+t+t},t.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},t.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=ta.Percent,t[e++]=ta.P,t[e++]=ta.D,t[e++]=ta.F,t[e++]=ta.Dash,e+=co(this.major,t,e),t[e++]=ta.Period,e+=co(this.minor,t,e),t[e++]=ta.Newline,t[e++]=ta.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-i},t.forVersion=function(e,i){return new t(e,i)},t}();const ra=function(){function t(){}return t.prototype.clone=function(t){throw new Cs(this.constructor.name,"clone")},t.prototype.toString=function(){throw new Cs(this.constructor.name,"toString")},t.prototype.sizeInBytes=function(){throw new Cs(this.constructor.name,"sizeInBytes")},t.prototype.copyBytesInto=function(t,e){throw new Cs(this.constructor.name,"copyBytesInto")},t}();const oa=function(t){function e(e){var i=t.call(this)||this;return i.numberValue=e,i.stringValue=function(t){var e,i=String(t);if(Math.abs(t)<1){if(e=parseInt(t.toString().split("e-")[1])){var n=t<0;n&&(t*=-1),t*=Math.pow(10,e-1),i="0."+new Array(e).join("0")+t.toString().substring(2),n&&(i="-"+i)}}else(e=parseInt(t.toString().split("+")[1]))>20&&(e-=20,i=(t/=Math.pow(10,e)).toString()+new Array(e+1).join("0"));return i}(e),i}return Gr(e,t),e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(t,e){return e+=co(this.stringValue,t,e),this.stringValue.length},e.of=function(t){return new e(t)},e}(ra);var sa=function(t){function e(e){var i=t.call(this)||this;return i.array=[],i.context=e,i}return Gr(e,t),e.prototype.size=function(){return this.array.length},e.prototype.push=function(t){this.array.push(t)},e.prototype.insert=function(t,e){this.array.splice(t,0,e)},e.prototype.indexOf=function(t){var e=this.array.indexOf(t);return-1===e?void 0:e},e.prototype.remove=function(t){this.array.splice(t,1)},e.prototype.set=function(t,e){this.array[t]=e},e.prototype.get=function(t){return this.array[t]},e.prototype.lookupMaybe=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return(e=this.context).lookupMaybe.apply(e,Qr([this.get(t)],i))},e.prototype.lookup=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return(e=this.context).lookup.apply(e,Qr([this.get(t)],i))},e.prototype.asRectangle=function(){if(4!==this.size())throw new Ds(this.size());var t=this.lookup(0,oa).asNumber(),e=this.lookup(1,oa).asNumber();return{x:t,y:e,width:this.lookup(2,oa).asNumber()-t,height:this.lookup(3,oa).asNumber()-e}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(t){for(var i=e.withContext(t||this.context),n=0,r=this.size();n<r;n++)i.push(this.array[n]);return i},e.prototype.toString=function(){for(var t="[ ",e=0,i=this.size();e<i;e++)t+=this.get(e).toString(),t+=" ";return t+="]"},e.prototype.sizeInBytes=function(){for(var t=3,e=0,i=this.size();e<i;e++)t+=this.get(e).sizeInBytes()+1;return t},e.prototype.copyBytesInto=function(t,e){var i=e;t[e++]=ta.LeftSquareBracket,t[e++]=ta.Space;for(var n=0,r=this.size();n<r;n++)e+=this.get(n).copyBytesInto(t,e),t[e++]=ta.Space;return t[e++]=ta.RightSquareBracket,e-i},e.prototype.scalePDFNumbers=function(t,e){for(var i=0,n=this.size();i<n;i++){var r=this.lookup(i);if(r instanceof oa){var o=i%2==0?t:e;this.set(i,oa.of(r.asNumber()*o))}}},e.withContext=function(t){return new e(t)},e}(ra);const aa=sa;var la={};const ha=function(t){function e(e,i){var n=this;if(e!==la)throw new Ss("PDFBool");return(n=t.call(this)||this).value=i,n}return Gr(e,t),e.prototype.asBoolean=function(){return this.value},e.prototype.clone=function(){return this},e.prototype.toString=function(){return String(this.value)},e.prototype.sizeInBytes=function(){return this.value?4:5},e.prototype.copyBytesInto=function(t,e){return this.value?(t[e++]=ta.t,t[e++]=ta.r,t[e++]=ta.u,t[e++]=ta.e,4):(t[e++]=ta.f,t[e++]=ta.a,t[e++]=ta.l,t[e++]=ta.s,t[e++]=ta.e,5)},e.True=new e(la,!0),e.False=new e(la,!1),e}(ra);var da=new Uint8Array(256);da[ta.LeftParen]=1,da[ta.RightParen]=1,da[ta.LessThan]=1,da[ta.GreaterThan]=1,da[ta.LeftSquareBracket]=1,da[ta.RightSquareBracket]=1,da[ta.LeftCurly]=1,da[ta.RightCurly]=1,da[ta.ForwardSlash]=1,da[ta.Percent]=1;var ca=new Uint8Array(256);ca[ta.Null]=1,ca[ta.Tab]=1,ca[ta.Newline]=1,ca[ta.FormFeed]=1,ca[ta.CarriageReturn]=1,ca[ta.Space]=1;for(var ua=new Uint8Array(256),fa=0;fa<256;fa++)ua[fa]=ca[fa]||da[fa]?1:0;ua[ta.Hash]=1;var pa=function(t){return t.replace(/#([\dABCDEF]{2})/g,function(t,e){return function(t){return lo(parseInt(t,16))}(e)})},ma=function(t){return t>=ta.ExclamationPoint&&t<=ta.Tilde&&!ua[t]},ga={},va=new Map,ya=function(t){function e(e,i){var n=this;if(e!==ga)throw new Ss("PDFName");n=t.call(this)||this;for(var r="/",o=0,s=i.length;o<s;o++){var a=i[o],l=ro(a);r+=ma(l)?a:"#"+ao(l)}return n.encodedName=r,n}return Gr(e,t),e.prototype.asBytes=function(){for(var t=[],e="",i=!1,n=function(e){void 0!==e&&t.push(e),i=!1},r=1,o=this.encodedName.length;r<o;r++){var s=this.encodedName[r],a=ro(s),l=this.encodedName[r+1];i?a>=ta.Zero&&a<=ta.Nine||a>=ta.a&&a<=ta.f||a>=ta.A&&a<=ta.F?2!==(e+=s).length&&(l>="0"&&l<="9"||l>="a"&&l<="f"||l>="A"&&l<="F")||(n(parseInt(e,16)),e=""):n(a):a===ta.Hash?i=!0:n(a)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,e){return e+=co(this.encodedName,t,e),this.encodedName.length},e.of=function(t){var i=pa(t),n=va.get(i);return n||(n=new e(ga,i),va.set(i,n)),n},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e}(ra);const ba=ya;var xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,e){return t[e++]=ta.n,t[e++]=ta.u,t[e++]=ta.l,t[e++]=ta.l,4},e}(ra);const wa=new xa;var ka=function(t){function e(e,i){var n=t.call(this)||this;return n.dict=e,n.context=i,n}return Gr(e,t),e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,e){this.dict.set(t,e)},e.prototype.get=function(t,e){void 0===e&&(e=!1);var i=this.dict.get(t);if(i!==wa||e)return i},e.prototype.has=function(t){var e=this.dict.get(t);return void 0!==e&&e!==wa},e.prototype.lookupMaybe=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=i.includes(wa),o=(e=this.context).lookupMaybe.apply(e,Qr([this.get(t,r)],i));if(o!==wa||r)return o},e.prototype.lookup=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=i.includes(wa),o=(e=this.context).lookup.apply(e,Qr([this.get(t,r)],i));if(o!==wa||r)return o},e.prototype.delete=function(t){return this.dict.delete(t)},e.prototype.asMap=function(){return new Map(this.dict)},e.prototype.uniqueKey=function(t){void 0===t&&(t="");for(var e=this.keys(),i=ba.of(this.context.addRandomSuffix(t,10));e.includes(i);)i=ba.of(this.context.addRandomSuffix(t,10));return i},e.prototype.clone=function(t){for(var i=e.withContext(t||this.context),n=this.entries(),r=0,o=n.length;r<o;r++){var s=n[r],a=s[0],l=s[1];i.set(a,l)}return i},e.prototype.toString=function(){for(var t="<<\n",e=this.entries(),i=0,n=e.length;i<n;i++){var r=e[i],o=r[0],s=r[1];t+=o.toString()+" "+s.toString()+"\n"}return t+=">>"},e.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),i=0,n=e.length;i<n;i++){var r=e[i],o=r[0],s=r[1];t+=o.sizeInBytes()+s.sizeInBytes()+2}return t},e.prototype.copyBytesInto=function(t,e){var i=e;t[e++]=ta.LessThan,t[e++]=ta.LessThan,t[e++]=ta.Newline;for(var n=this.entries(),r=0,o=n.length;r<o;r++){var s=n[r],a=s[0],l=s[1];e+=a.copyBytesInto(t,e),t[e++]=ta.Space,e+=l.copyBytesInto(t,e),t[e++]=ta.Newline}return t[e++]=ta.GreaterThan,t[e++]=ta.GreaterThan,e-i},e.withContext=function(t){return new e(new Map,t)},e.fromMapWithContext=function(t,i){return new e(t,i)},e}(ra);const Ea=ka;var Na=function(t){function e(e){var i=t.call(this)||this;return i.dict=e,i}return Gr(e,t),e.prototype.clone=function(t){throw new Cs(this.constructor.name,"clone")},e.prototype.getContentsString=function(){throw new Cs(this.constructor.name,"getContentsString")},e.prototype.getContents=function(){throw new Cs(this.constructor.name,"getContents")},e.prototype.getContentsSize=function(){throw new Cs(this.constructor.name,"getContentsSize")},e.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(ba.Length,oa.of(t))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){this.updateDict();var t=this.dict.toString();return t+="\nstream\n",t+=this.getContentsString(),t+="\nendstream"},e.prototype.copyBytesInto=function(t,e){this.updateDict();var i=e;e+=this.dict.copyBytesInto(t,e),t[e++]=ta.Newline,t[e++]=ta.s,t[e++]=ta.t,t[e++]=ta.r,t[e++]=ta.e,t[e++]=ta.a,t[e++]=ta.m,t[e++]=ta.Newline;for(var n=this.getContents(),r=0,o=n.length;r<o;r++)t[e++]=n[r];return t[e++]=ta.Newline,t[e++]=ta.e,t[e++]=ta.n,t[e++]=ta.d,t[e++]=ta.s,t[e++]=ta.t,t[e++]=ta.r,t[e++]=ta.e,t[e++]=ta.a,t[e++]=ta.m,e-i},e}(ra);const Ta=Na;const _a=function(t){function e(e,i){var n=t.call(this,e)||this;return n.contents=i,n}return Gr(e,t),e.prototype.asUint8Array=function(){return this.contents.slice()},e.prototype.clone=function(t){return e.of(this.dict.clone(t),this.contents.slice())},e.prototype.getContentsString=function(){return _o(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(t,i){return new e(t,i)},e}(Ta);var Ca={},Sa=new Map;const Ma=function(t){function e(e,i,n){var r=this;if(e!==Ca)throw new Ss("PDFRef");return(r=t.call(this)||this).objectNumber=i,r.generationNumber=n,r.tag=i+" "+n+" R",r}return Gr(e,t),e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.tag},e.prototype.sizeInBytes=function(){return this.tag.length},e.prototype.copyBytesInto=function(t,e){return e+=co(this.tag,t,e),this.tag.length},e.of=function(t,i){void 0===i&&(i=0);var n=t+" "+i+" R",r=Sa.get(n);return r||(r=new e(Ca,t,i),Sa.set(n,r)),r},e}(ra);var Aa=function(){function t(t,e){this.name=t,this.args=e||[]}return t.prototype.clone=function(e){for(var i=new Array(this.args.length),n=0,r=i.length;n<r;n++){var o=this.args[n];i[n]=o instanceof ra?o.clone(e):o}return t.of(this.name,i)},t.prototype.toString=function(){for(var t="",e=0,i=this.args.length;e<i;e++)t+=String(this.args[e])+" ";return t+=this.name},t.prototype.sizeInBytes=function(){for(var t=0,e=0,i=this.args.length;e<i;e++){var n=this.args[e];t+=(n instanceof ra?n.sizeInBytes():n.length)+1}return t+=this.name.length},t.prototype.copyBytesInto=function(t,e){for(var i=e,n=0,r=this.args.length;n<r;n++){var o=this.args[n];e+=o instanceof ra?o.copyBytesInto(t,e):co(o,t,e),t[e++]=ta.Space}return(e+=co(this.name,t,e))-i},t.of=function(e,i){return new t(e,i)},t}();const za=Aa;var La;!function(t){t.NonStrokingColor="sc",t.NonStrokingColorN="scn",t.NonStrokingColorRgb="rg",t.NonStrokingColorGray="g",t.NonStrokingColorCmyk="k",t.NonStrokingColorspace="cs",t.StrokingColor="SC",t.StrokingColorN="SCN",t.StrokingColorRgb="RG",t.StrokingColorGray="G",t.StrokingColorCmyk="K",t.StrokingColorspace="CS",t.BeginMarkedContentSequence="BDC",t.BeginMarkedContent="BMC",t.EndMarkedContent="EMC",t.MarkedContentPointWithProps="DP",t.MarkedContentPoint="MP",t.DrawObject="Do",t.ConcatTransformationMatrix="cm",t.PopGraphicsState="Q",t.PushGraphicsState="q",t.SetFlatness="i",t.SetGraphicsStateParams="gs",t.SetLineCapStyle="J",t.SetLineDashPattern="d",t.SetLineJoinStyle="j",t.SetLineMiterLimit="M",t.SetLineWidth="w",t.SetTextMatrix="Tm",t.SetRenderingIntent="ri",t.AppendRectangle="re",t.BeginInlineImage="BI",t.BeginInlineImageData="ID",t.EndInlineImage="EI",t.ClipEvenOdd="W*",t.ClipNonZero="W",t.CloseAndStroke="s",t.CloseFillEvenOddAndStroke="b*",t.CloseFillNonZeroAndStroke="b",t.ClosePath="h",t.AppendBezierCurve="c",t.CurveToReplicateFinalPoint="y",t.CurveToReplicateInitialPoint="v",t.EndPath="n",t.FillEvenOddAndStroke="B*",t.FillEvenOdd="f*",t.FillNonZeroAndStroke="B",t.FillNonZero="f",t.LegacyFillNonZero="F",t.LineTo="l",t.MoveTo="m",t.ShadingFill="sh",t.StrokePath="S",t.BeginText="BT",t.EndText="ET",t.MoveText="Td",t.MoveTextSetLeading="TD",t.NextLine="T*",t.SetCharacterSpacing="Tc",t.SetFontAndSize="Tf",t.SetTextHorizontalScaling="Tz",t.SetTextLineHeight="TL",t.SetTextRenderingMode="Tr",t.SetTextRise="Ts",t.SetWordSpacing="Tw",t.ShowText="Tj",t.ShowTextAdjusted="TJ",t.ShowTextLine="'",t.ShowTextLineAndSpace='"',t.Type3D0="d0",t.Type3D1="d1",t.BeginCompatibilitySection="BX",t.EndCompatibilitySection="EX"}(La||(La={}));const Oa=La;const Fa=function(t){function e(e,i){var n=t.call(this,e)||this;return n.computeContents=function(){var t=n.getUnencodedContents();return n.encode?ia().deflate(t):t},n.encode=i,i&&e.set(ba.of("Filter"),ba.of("FlateDecode")),n.contentsCache=Ts.populatedBy(n.computeContents),n}return Gr(e,t),e.prototype.getContents=function(){return this.contentsCache.access()},e.prototype.getContentsSize=function(){return this.contentsCache.access().length},e.prototype.getUnencodedContents=function(){throw new Cs(this.constructor.name,"getUnencodedContents")},e}(Ta);var Da=function(t){function e(e,i,n){void 0===n&&(n=!0);var r=t.call(this,e,n)||this;return r.operators=i,r}return Gr(e,t),e.prototype.push=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.operators).push.apply(t,e)},e.prototype.clone=function(t){for(var i=new Array(this.operators.length),n=0,r=this.operators.length;n<r;n++)i[n]=this.operators[n].clone(t);var o=this.dict,s=this.encode;return e.of(o.clone(t),i,s)},e.prototype.getContentsString=function(){for(var t="",e=0,i=this.operators.length;e<i;e++)t+=this.operators[e]+"\n";return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=0,i=0,n=this.operators.length;i<n;i++)e+=this.operators[i].copyBytesInto(t,e),t[e++]=ta.Newline;return t},e.prototype.getUnencodedContentsSize=function(){for(var t=0,e=0,i=this.operators.length;e<i;e++)t+=this.operators[e].sizeInBytes()+1;return t},e.of=function(t,i,n){return void 0===n&&(n=!0),new e(t,i,n)},e}(Fa);const Ra=Da;var Ia=function(){function t(t){this.seed=t}return t.prototype.nextInt=function(){var t=1e4*Math.sin(this.seed++);return t-Math.floor(t)},t.withSeed=function(e){return new t(e)},t}(),qa=function(t,e){var i=t[0],n=e[0];return i.objectNumber-n.objectNumber},Ba=function(){function t(){this.largestObjectNumber=0,this.header=na.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=Ia.withSeed(1)}return t.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,Ma.of(this.largestObjectNumber)},t.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},t.prototype.delete=function(t){return this.indirectObjects.delete(t)},t.prototype.lookupMaybe=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.includes(wa),r=t instanceof Ma?this.indirectObjects.get(t):t;if(r&&(r!==wa||n)){for(var o=0,s=e.length;o<s;o++){var a=e[o];if(a===wa){if(r===wa)return r}else if(r instanceof a)return r}throw new Ms(e,r)}},t.prototype.lookup=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=t instanceof Ma?this.indirectObjects.get(t):t;if(0===e.length)return n;for(var r=0,o=e.length;r<o;r++){var s=e[r];if(s===wa){if(n===wa)return n}else if(n instanceof s)return n}throw new Ms(e,n)},t.prototype.getObjectRef=function(t){for(var e=Array.from(this.indirectObjects.entries()),i=0,n=e.length;i<n;i++){var r=e[i],o=r[0];if(r[1]===t)return o}},t.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(qa)},t.prototype.obj=function(t){if(t instanceof ra)return t;if(null==t)return wa;if("string"==typeof t)return ba.of(t);if("number"==typeof t)return oa.of(t);if("boolean"==typeof t)return t?ha.True:ha.False;if(Array.isArray(t)){for(var e=aa.withContext(this),i=0,n=t.length;i<n;i++)e.push(this.obj(t[i]));return e}var r=Ea.withContext(this),o=Object.keys(t);for(i=0,n=o.length;i<n;i++){var s=o[i],a=t[s];void 0!==a&&r.set(ba.of(s),this.obj(a))}return r},t.prototype.stream=function(t,e){return void 0===e&&(e={}),_a.of(this.obj(e),No(t))},t.prototype.flateStream=function(t,e){return void 0===e&&(e={}),this.stream(ia().deflate(No(t)),Xr(Xr({},e),{Filter:"FlateDecode"}))},t.prototype.contentStream=function(t,e){return void 0===e&&(e={}),Ra.of(this.obj(e),t)},t.prototype.formXObject=function(t,e){return void 0===e&&(e={}),this.contentStream(t,Xr(Xr({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},e),{Type:"XObject",Subtype:"Form"}))},t.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),e=za.of(Oa.PushGraphicsState),i=Ra.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(i),this.pushGraphicsStateContentStreamRef},t.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=za.of(Oa.PopGraphicsState),i=Ra.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(i),this.popGraphicsStateContentStreamRef},t.prototype.addRandomSuffix=function(t,e){return void 0===e&&(e=4),t+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,e))},t.create=function(){return new t},t}();const Pa=Ba;var Ua=function(t){function e(e,i,n){void 0===n&&(n=!0);var r=t.call(this,e,i)||this;return r.normalized=!1,r.autoNormalizeCTM=n,r}return Gr(e,t),e.prototype.clone=function(t){for(var i=e.fromMapWithContext(new Map,t||this.context,this.autoNormalizeCTM),n=this.entries(),r=0,o=n.length;r<o;r++){var s=n[r],a=s[0],l=s[1];i.set(a,l)}return i},e.prototype.Parent=function(){return this.lookupMaybe(ba.Parent,Ea)},e.prototype.Contents=function(){return this.lookup(ba.of("Contents"))},e.prototype.Annots=function(){return this.lookupMaybe(ba.Annots,aa)},e.prototype.BleedBox=function(){return this.lookupMaybe(ba.BleedBox,aa)},e.prototype.TrimBox=function(){return this.lookupMaybe(ba.TrimBox,aa)},e.prototype.ArtBox=function(){return this.lookupMaybe(ba.ArtBox,aa)},e.prototype.Resources=function(){var t=this.getInheritableAttribute(ba.Resources);return this.context.lookupMaybe(t,Ea)},e.prototype.MediaBox=function(){var t=this.getInheritableAttribute(ba.MediaBox);return this.context.lookup(t,aa)},e.prototype.CropBox=function(){var t=this.getInheritableAttribute(ba.CropBox);return this.context.lookupMaybe(t,aa)},e.prototype.Rotate=function(){var t=this.getInheritableAttribute(ba.Rotate);return this.context.lookupMaybe(t,oa)},e.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(i){e||(e=i.get(t))}),e},e.prototype.setParent=function(t){this.set(ba.Parent,t)},e.prototype.addContentStream=function(t){var e=this.normalizedEntries().Contents||this.context.obj([]);this.set(ba.Contents,e),e.push(t)},e.prototype.wrapContentStreams=function(t,e){var i=this.Contents();return i instanceof aa&&(i.insert(0,t),i.push(e),!0)},e.prototype.addAnnot=function(t){this.normalizedEntries().Annots.push(t)},e.prototype.removeAnnot=function(t){var e=this.normalizedEntries().Annots,i=e.indexOf(t);void 0!==i&&e.remove(i)},e.prototype.setFontDictionary=function(t,e){this.normalizedEntries().Font.set(t,e)},e.prototype.newFontDictionaryKey=function(t){return this.normalizedEntries().Font.uniqueKey(t)},e.prototype.newFontDictionary=function(t,e){var i=this.newFontDictionaryKey(t);return this.setFontDictionary(i,e),i},e.prototype.setXObject=function(t,e){this.normalizedEntries().XObject.set(t,e)},e.prototype.newXObjectKey=function(t){return this.normalizedEntries().XObject.uniqueKey(t)},e.prototype.newXObject=function(t,e){var i=this.newXObjectKey(t);return this.setXObject(i,e),i},e.prototype.setExtGState=function(t,e){this.normalizedEntries().ExtGState.set(t,e)},e.prototype.newExtGStateKey=function(t){return this.normalizedEntries().ExtGState.uniqueKey(t)},e.prototype.newExtGState=function(t,e){var i=this.newExtGStateKey(t);return this.setExtGState(i,e),i},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.normalize=function(){if(!this.normalized){var t=this.context,e=this.get(ba.Contents);this.context.lookup(e)instanceof Ta&&this.set(ba.Contents,t.obj([e])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var i=this.getInheritableAttribute(ba.Resources),n=t.lookupMaybe(i,Ea)||t.obj({});this.set(ba.Resources,n);var r=n.lookupMaybe(ba.Font,Ea)||t.obj({});n.set(ba.Font,r);var o=n.lookupMaybe(ba.XObject,Ea)||t.obj({});n.set(ba.XObject,o);var s=n.lookupMaybe(ba.ExtGState,Ea)||t.obj({});n.set(ba.ExtGState,s);var a=this.Annots()||t.obj([]);this.set(ba.Annots,a),this.normalized=!0}},e.prototype.normalizedEntries=function(){this.normalize();var t=this.Annots(),e=this.Resources();return{Annots:t,Resources:e,Contents:this.Contents(),Font:e.lookup(ba.Font,Ea),XObject:e.lookup(ba.XObject,Ea),ExtGState:e.lookup(ba.ExtGState,Ea)}},e.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],e.withContextAndParent=function(t,i){var n=new Map;return n.set(ba.Type,ba.Page),n.set(ba.Parent,i),n.set(ba.Resources,t.obj({})),n.set(ba.MediaBox,t.obj([0,0,612,792])),new e(n,t,!1)},e.fromMapWithContext=function(t,i,n){return void 0===n&&(n=!0),new e(t,i,n)},e}(Ea);const ja=Ua;var Ha=function(){function t(t,e){var i=this;this.traversedObjects=new Map,this.copy=function(t){return t instanceof ja?i.copyPDFPage(t):t instanceof Ea?i.copyPDFDict(t):t instanceof aa?i.copyPDFArray(t):t instanceof Ta?i.copyPDFStream(t):t instanceof Ma?i.copyPDFIndirectObject(t):t.clone()},this.copyPDFPage=function(t){for(var e=t.clone(),n=ja.InheritableEntries,r=0,o=n.length;r<o;r++){var s=ba.of(n[r]),a=e.getInheritableAttribute(s);!e.get(s)&&a&&e.set(s,a)}return e.delete(ba.of("Parent")),i.copyPDFDict(e)},this.copyPDFDict=function(t){if(i.traversedObjects.has(t))return i.traversedObjects.get(t);var e=t.clone(i.dest);i.traversedObjects.set(t,e);for(var n=t.entries(),r=0,o=n.length;r<o;r++){var s=n[r],a=s[0],l=s[1];e.set(a,i.copy(l))}return e},this.copyPDFArray=function(t){if(i.traversedObjects.has(t))return i.traversedObjects.get(t);var e=t.clone(i.dest);i.traversedObjects.set(t,e);for(var n=0,r=t.size();n<r;n++){var o=t.get(n);e.set(n,i.copy(o))}return e},this.copyPDFStream=function(t){if(i.traversedObjects.has(t))return i.traversedObjects.get(t);var e=t.clone(i.dest);i.traversedObjects.set(t,e);for(var n=t.dict.entries(),r=0,o=n.length;r<o;r++){var s=n[r],a=s[0],l=s[1];e.dict.set(a,i.copy(l))}return e},this.copyPDFIndirectObject=function(t){if(!i.traversedObjects.has(t)){var e=i.dest.nextRef();i.traversedObjects.set(t,e);var n=i.src.lookup(t);if(n){var r=i.copy(n);i.dest.assign(e,r)}}return i.traversedObjects.get(t)},this.src=t,this.dest=e}return t.for=function(e,i){return new t(e,i)},t}();const Wa=Ha;var Va=function(){function t(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return t.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},t.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},t.prototype.toString=function(){for(var t="xref\n",e=0,i=this.subsections.length;e<i;e++){var n=this.subsections[e];t+=n[0].ref.objectNumber+" "+n.length+"\n";for(var r=0,o=n.length;r<o;r++){var s=n[r];t+=ho(String(s.offset),10,"0"),t+=" ",t+=ho(String(s.ref.generationNumber),5,"0"),t+=" ",t+=s.deleted?"f":"n",t+=" \n"}}return t},t.prototype.sizeInBytes=function(){for(var t=5,e=0,i=this.subsections.length;e<i;e++){var n=this.subsections[e],r=n.length,o=n[0];t+=2,t+=String(o.ref.objectNumber).length,t+=String(r).length,t+=20*r}return t},t.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=ta.x,t[e++]=ta.r,t[e++]=ta.e,t[e++]=ta.f,t[e++]=ta.Newline,(e+=this.copySubsectionsIntoBuffer(this.subsections,t,e))-i},t.prototype.copySubsectionsIntoBuffer=function(t,e,i){for(var n=i,r=t.length,o=0;o<r;o++){var s=this.subsections[o],a=String(s[0].ref.objectNumber);i+=co(a,e,i),e[i++]=ta.Space;var l=String(s.length);i+=co(l,e,i),e[i++]=ta.Newline,i+=this.copyEntriesIntoBuffer(s,e,i)}return i-n},t.prototype.copyEntriesIntoBuffer=function(t,e,i){for(var n=t.length,r=0;r<n;r++){var o=t[r],s=ho(String(o.offset),10,"0");i+=co(s,e,i),e[i++]=ta.Space;var a=ho(String(o.ref.generationNumber),5,"0");i+=co(a,e,i),e[i++]=ta.Space,e[i++]=o.deleted?ta.f:ta.n,e[i++]=ta.Space,e[i++]=ta.Newline}return 20*n},t.prototype.append=function(t){if(0===this.chunkLength)return this.subsections.push([t]),this.chunkIdx=0,void(this.chunkLength=1);var e=this.subsections[this.chunkIdx],i=e[this.chunkLength-1];t.ref.objectNumber-i.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},t.create=function(){return new t({ref:Ma.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}();const Ka=Va;const Ga=function(){function t(t){this.lastXRefOffset=String(t)}return t.prototype.toString=function(){return"startxref\n"+this.lastXRefOffset+"\n%%EOF"},t.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},t.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=ta.s,t[e++]=ta.t,t[e++]=ta.a,t[e++]=ta.r,t[e++]=ta.t,t[e++]=ta.x,t[e++]=ta.r,t[e++]=ta.e,t[e++]=ta.f,t[e++]=ta.Newline,e+=co(this.lastXRefOffset,t,e),t[e++]=ta.Newline,t[e++]=ta.Percent,t[e++]=ta.Percent,t[e++]=ta.E,t[e++]=ta.O,t[e++]=ta.F,e-i},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}();const Xa=function(){function t(t){this.dict=t}return t.prototype.toString=function(){return"trailer\n"+this.dict.toString()},t.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},t.prototype.copyBytesInto=function(t,e){var i=e;return t[e++]=ta.t,t[e++]=ta.r,t[e++]=ta.a,t[e++]=ta.i,t[e++]=ta.l,t[e++]=ta.e,t[e++]=ta.r,t[e++]=ta.Newline,(e+=this.dict.copyBytesInto(t,e))-i},t.of=function(e){return new t(e)},t}();var Ya=function(t){function e(e,i,n){void 0===n&&(n=!0);var r=t.call(this,e.obj({}),n)||this;return r.objects=i,r.offsets=r.computeObjectOffsets(),r.offsetsString=r.computeOffsetsString(),r.dict.set(ba.of("Type"),ba.of("ObjStm")),r.dict.set(ba.of("N"),oa.of(r.objects.length)),r.dict.set(ba.of("First"),oa.of(r.offsetsString.length)),r}return Gr(e,t),e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,e=0,i=this.objects.length;e<i;e++){t+=this.objects[e][1]+"\n"}return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=co(this.offsetsString,t,0),i=0,n=this.objects.length;i<n;i++){e+=this.objects[i][1].copyBytesInto(t,e),t[e++]=ta.Newline}return t},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+Eo(this.offsets)[1]+Eo(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var t="",e=0,i=this.offsets.length;e<i;e++){var n=this.offsets[e];t+=n[0]+" "+n[1]+" "}return t},e.prototype.computeObjectOffsets=function(){for(var t=0,e=new Array(this.objects.length),i=0,n=this.objects.length;i<n;i++){var r=this.objects[i],o=r[0],s=r[1];e[i]=[o.objectNumber,t],t+=s.sizeInBytes()+1}return e},e.withContextAndObjects=function(t,i,n){return void 0===n&&(n=!0),new e(t,i,n)},e}(Fa);const Za=Ya;var Qa=function(){function t(t,e){var i=this;this.parsedObjects=0,this.shouldWaitForTick=function(t){return i.parsedObjects+=t,i.parsedObjects%i.objectsPerTick===0},this.context=t,this.objectsPerTick=e}return t.prototype.serializeToBuffer=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n,r,o,s,a,l,h,d,c,u,f,p,m,g;return Zr(this,function(v){switch(v.label){case 0:return[4,this.computeBufferSize()];case 1:t=v.sent(),e=t.size,i=t.header,n=t.indirectObjects,r=t.xref,o=t.trailerDict,s=t.trailer,a=0,l=new Uint8Array(e),a+=i.copyBytesInto(l,a),l[a++]=ta.Newline,l[a++]=ta.Newline,h=0,d=n.length,v.label=2;case 2:return h<d?(c=n[h],u=c[0],f=c[1],p=String(u.objectNumber),a+=co(p,l,a),l[a++]=ta.Space,m=String(u.generationNumber),a+=co(m,l,a),l[a++]=ta.Space,l[a++]=ta.o,l[a++]=ta.b,l[a++]=ta.j,l[a++]=ta.Newline,a+=f.copyBytesInto(l,a),l[a++]=ta.Newline,l[a++]=ta.e,l[a++]=ta.n,l[a++]=ta.d,l[a++]=ta.o,l[a++]=ta.b,l[a++]=ta.j,l[a++]=ta.Newline,l[a++]=ta.Newline,g=f instanceof Za?f.getObjectsCount():1,this.shouldWaitForTick(g)?[4,Ao()]:[3,4]):[3,5];case 3:v.sent(),v.label=4;case 4:return h++,[3,2];case 5:return r&&(a+=r.copyBytesInto(l,a),l[a++]=ta.Newline),o&&(a+=o.copyBytesInto(l,a),l[a++]=ta.Newline,l[a++]=ta.Newline),a+=s.copyBytesInto(l,a),[2,l]}})})},t.prototype.computeIndirectObjectSize=function(t){var e=t[0],i=t[1];return e.sizeInBytes()+3+(i.sizeInBytes()+9)},t.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},t.prototype.computeBufferSize=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n,r,o,s,a,l,h,d;return Zr(this,function(c){switch(c.label){case 0:t=na.forVersion(1,7),e=t.sizeInBytes()+2,i=Ka.create(),n=this.context.enumerateIndirectObjects(),r=0,o=n.length,c.label=1;case 1:return r<o?(s=n[r],a=s[0],i.addEntry(a,e),e+=this.computeIndirectObjectSize(s),this.shouldWaitForTick(1)?[4,Ao()]:[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return r++,[3,1];case 4:return l=e,e+=i.sizeInBytes()+1,h=Xa.of(this.createTrailerDict()),e+=h.sizeInBytes()+2,d=Ga.forLastCrossRefSectionOffset(l),[2,{size:e+=d.sizeInBytes(),header:t,indirectObjects:n,xref:i,trailerDict:h,trailer:d}]}})})},t.forContext=function(e,i){return new t(e,i)},t}();const Ja=Qa;var $a=function(t){function e(e){var i=t.call(this)||this;return i.data=e,i}return Gr(e,t),e.prototype.clone=function(){return e.of(this.data.slice())},e.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},e.prototype.sizeInBytes=function(){return this.data.length},e.prototype.copyBytesInto=function(t,e){for(var i=this.data.length,n=0;n<i;n++)t[e++]=this.data[n];return i},e.of=function(t){return new e(t)},e}(ra);const tl=$a;var el;!function(t){t[t.Deleted=0]="Deleted",t[t.Uncompressed=1]="Uncompressed",t[t.Compressed=2]="Compressed"}(el||(el={}));var il=function(t){function e(e,i,n){void 0===n&&(n=!0);var r=t.call(this,e,n)||this;return r.computeIndex=function(){for(var t=[],e=0,i=0,n=r.entries.length;i<n;i++){var o=r.entries[i],s=r.entries[i-1];0===i?t.push(o.ref.objectNumber):o.ref.objectNumber-s.ref.objectNumber>1&&(t.push(e),t.push(o.ref.objectNumber),e=0),e+=1}return t.push(e),t},r.computeEntryTuples=function(){for(var t=new Array(r.entries.length),e=0,i=r.entries.length;e<i;e++){var n=r.entries[e];if(n.type===el.Deleted){var o=n.type,s=n.nextFreeObjectNumber,a=n.ref;t[e]=[o,s,a.generationNumber]}if(n.type===el.Uncompressed){o=n.type;var l=n.offset;a=n.ref;t[e]=[o,l,a.generationNumber]}if(n.type===el.Compressed){o=n.type;var h=n.objectStreamRef,d=n.index;t[e]=[o,h.objectNumber,d]}}return t},r.computeMaxEntryByteWidths=function(){for(var t=r.entryTuplesCache.access(),e=[0,0,0],i=0,n=t.length;i<n;i++){var o=t[i],s=o[0],a=o[1],l=o[2],h=jo(s),d=jo(a),c=jo(l);h>e[0]&&(e[0]=h),d>e[1]&&(e[1]=d),c>e[2]&&(e[2]=c)}return e},r.entries=i||[],r.entryTuplesCache=Ts.populatedBy(r.computeEntryTuples),r.maxByteWidthsCache=Ts.populatedBy(r.computeMaxEntryByteWidths),r.indexCache=Ts.populatedBy(r.computeIndex),e.set(ba.of("Type"),ba.of("XRef")),r}return Gr(e,t),e.prototype.addDeletedEntry=function(t,e){var i=el.Deleted;this.entries.push({type:i,ref:t,nextFreeObjectNumber:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,e){var i=el.Uncompressed;this.entries.push({type:i,ref:t,offset:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,e,i){var n=el.Compressed;this.entries.push({type:n,ref:t,objectStreamRef:e,index:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var i=this,n=i.dict,r=i.entries,o=i.encode;return e.of(n.clone(t),r.slice(),o)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),i="",n=0,r=t.length;n<r;n++){for(var o=t[n],s=o[0],a=o[1],l=o[2],h=So(Ho(s)),d=So(Ho(a)),c=So(Ho(l)),u=e[0]-1;u>=0;u--)i+=(h[u]||0).toString(2);for(u=e[1]-1;u>=0;u--)i+=(d[u]||0).toString(2);for(u=e[2]-1;u>=0;u--)i+=(c[u]||0).toString(2)}return i},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),i=new Uint8Array(this.getUnencodedContentsSize()),n=0,r=0,o=t.length;r<o;r++){for(var s=t[r],a=s[0],l=s[1],h=s[2],d=So(Ho(a)),c=So(Ho(l)),u=So(Ho(h)),f=e[0]-1;f>=0;f--)i[n++]=d[f]||0;for(f=e[1]-1;f>=0;f--)i[n++]=c[f]||0;for(f=e[2]-1;f>=0;f--)i[n++]=u[f]||0}return i},e.prototype.getUnencodedContentsSize=function(){var t=function(t){for(var e=0,i=0,n=t.length;i<n;i++)e+=t[i];return e}(this.maxByteWidthsCache.access());return t*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),i=this.indexCache.access(),n=this.dict.context;this.dict.set(ba.of("W"),n.obj(e)),this.dict.set(ba.of("Index"),n.obj(i))},e.create=function(t,i){void 0===i&&(i=!0);var n=new e(t,[],i);return n.addDeletedEntry(Ma.of(0,65535),0),n},e.of=function(t,i,n){return void 0===n&&(n=!0),new e(t,i,n)},e}(Fa);const nl=il;var rl=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o.encodeStreams=n,o.objectsPerStream=r,o}return Gr(e,t),e.prototype.computeBufferSize=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n,r,o,s,a,l,h,d,c,u,f,p,m,g,v,y;return Zr(this,function(b){switch(b.label){case 0:t=this.context.largestObjectNumber+1,e=na.forVersion(1,7),i=e.sizeInBytes()+2,n=nl.create(this.createTrailerDict(),this.encodeStreams),r=[],o=[],s=[],a=this.context.enumerateIndirectObjects(),c=0,u=a.length,b.label=1;case 1:return c<u?(l=a[c],p=l[0],h=l[1],p===this.context.trailerInfo.Encrypt||h instanceof Ta||h instanceof tl||0!==p.generationNumber?(r.push(l),n.addUncompressedEntry(p,i),i+=this.computeIndirectObjectSize(l),this.shouldWaitForTick(1)?[4,Ao()]:[3,3]):[3,4]):[3,6];case 2:b.sent(),b.label=3;case 3:return[3,5];case 4:f=Eo(o),d=Eo(s),f&&f.length%this.objectsPerStream!==0||(f=[],o.push(f),d=Ma.of(t++),s.push(d)),n.addCompressedEntry(p,d,f.length),f.push(l),b.label=5;case 5:return c++,[3,1];case 6:c=0,u=o.length,b.label=7;case 7:return c<u?(f=o[c],p=s[c],m=Za.withContextAndObjects(this.context,f,this.encodeStreams),n.addUncompressedEntry(p,i),i+=this.computeIndirectObjectSize([p,m]),r.push([p,m]),this.shouldWaitForTick(f.length)?[4,Ao()]:[3,9]):[3,10];case 8:b.sent(),b.label=9;case 9:return c++,[3,7];case 10:return g=Ma.of(t++),n.dict.set(ba.of("Size"),oa.of(t)),n.addUncompressedEntry(g,i),v=i,i+=this.computeIndirectObjectSize([g,n]),r.push([g,n]),y=Ga.forLastCrossRefSectionOffset(v),[2,{size:i+=y.sizeInBytes(),header:e,indirectObjects:r,trailer:y}]}})})},e.forContext=function(t,i,n,r){return void 0===n&&(n=!0),void 0===r&&(r=50),new e(t,i,n,r)},e}(Ja);const ol=rl;var sl=function(t){function e(e){var i=t.call(this)||this;return i.value=e,i}return Gr(e,t),e.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2==1?"0":""),e=t.length,i=new Uint8Array(t.length/2),n=0,r=0;n<e;){var o=parseInt(t.substring(n,n+2),16);i[r]=o,n+=2,r+=1}return i},e.prototype.decodeText=function(){var t=this.asBytes();return Uo(t)?Fo(t):Ns(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=wo(t);if(!e)throw new Rs(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"<"+this.value+">"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=ta.LessThan,e+=co(this.value,t,e),t[e++]=ta.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var i=function(t,e){void 0===e&&(e=!0);var i=[];e&&i.push(65279);for(var n=0,r=t.length;n<r;){var o=t.codePointAt(n);if(o<65536)i.push(o),n+=1;else{if(!(o<1114112))throw new Error("Invalid code point: 0x"+ao(o));i.push(zo(o),Lo(o)),n+=2}}return new Uint16Array(i)}(t),n="",r=0,o=i.length;r<o;r++)n+=so(i[r],4);return new e(n)},e}(ra);const al=sl;var ll=function(){function t(t,e){this.encoding=t===Qo.ZapfDingbats?rs.ZapfDingbats:t===Qo.Symbol?rs.Symbol:rs.WinAnsi,this.font=ts.load(t),this.fontName=this.font.FontName,this.customName=e}return t.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),i=new Array(e.length),n=0,r=e.length;n<r;n++)i[n]=ao(e[n].code);return al.of(i.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var i=this.encodeTextAsGlyphs(t),n=0,r=0,o=i.length;r<o;r++){var s=i[r].name,a=(i[r+1]||{}).name,l=this.font.getXAxisKerningForPair(s,a)||0;n+=this.widthOfGlyph(s)+l}return n*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var i=e.descender,n=void 0===i||i,r=this.font,o=r.Ascender,s=r.Descender,a=r.FontBBox,l=(o||a[3])-(s||a[1]);return n||(l+=s||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,i=e.Ascender,n=e.Descender,r=e.FontBBox;return 1e3*t/((i||r[3])-(n||r[1]))},t.prototype.embedIntoContext=function(t,e){var i=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===rs.WinAnsi?"WinAnsiEncoding":void 0});return e?(t.assign(e,i),e):t.register(i)},t.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},t.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),i=new Array(e.length),n=0,r=e.length;n<r;n++){var o=oo(e[n]);i[n]=this.encoding.encodeUnicodeCodePoint(o)}return i},t.for=function(e,i){return new t(e,i)},t}();const hl=ll;var dl=function(t){return"/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n"+t.length+" beginbfchar\n"+t.map(function(t){return t[0]+" "+t[1]}).join("\n")+"\nendbfchar\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},cl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"<"+t.join("")+">"},ul=function(t){return so(t,4)},fl=function(t){if(function(t){return t>=0&&t<=65535}(t))return ul(t);if(function(t){return t>=65536&&t<=1114111}(t)){var e=zo(t),i=Lo(t);return""+ul(e)+ul(i)}var n=ao(t);throw new Error("0x"+n+" is not a valid UTF-8 or UTF-16 codepoint.")},pl=function(t){function e(e){var i=t.call(this)||this;return i.value=e,i}return Gr(e,t),e.prototype.asBytes=function(){for(var t=[],e="",i=!1,n=function(e){void 0!==e&&t.push(e),i=!1},r=0,o=this.value.length;r<o;r++){var s=this.value[r],a=ro(s),l=this.value[r+1];i?a===ta.Newline||a===ta.CarriageReturn?n():a===ta.n?n(ta.Newline):a===ta.r?n(ta.CarriageReturn):a===ta.t?n(ta.Tab):a===ta.b?n(ta.Backspace):a===ta.f?n(ta.FormFeed):a===ta.LeftParen?n(ta.LeftParen):a===ta.RightParen?n(ta.RightParen):a===ta.Backspace?n(ta.BackSlash):a>=ta.Zero&&a<=ta.Seven?3!==(e+=s).length&&l>="0"&&l<="7"||(n(parseInt(e,8)),e=""):n(a):a===ta.BackSlash?i=!0:n(a)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return Uo(t)?Fo(t):Ns(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=wo(t);if(!e)throw new Rs(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=ta.LeftParen,e+=co(this.value,t,e),t[e++]=ta.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){return new e("D:"+ho(String(t.getUTCFullYear()),4,"0")+ho(String(t.getUTCMonth()+1),2,"0")+ho(String(t.getUTCDate()),2,"0")+ho(String(t.getUTCHours()),2,"0")+ho(String(t.getUTCMinutes()),2,"0")+ho(String(t.getUTCSeconds()),2,"0")+"Z")},e}(ra);const ml=pl;var gl=function(){function t(t,e,i,n){var r=this;this.allGlyphsInFontSortedById=function(){for(var t=new Array(r.font.characterSet.length),e=0,i=t.length;e<i;e++){var n=r.font.characterSet[e];t[e]=r.font.glyphForCodePoint(n)}return function(t,e){for(var i=[],n=0,r=t.length;n<r;n++){var o=t[n],s=t[n-1];0!==n&&e(o)===e(s)||i.push(o)}return i}(t.sort(Co),function(t){return t.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=e,this.fontName=this.font.postscriptName||"Font",this.customName=i,this.fontFeatures=n,this.baseFontName="",this.glyphCache=Ts.populatedBy(this.allGlyphsInFontSortedById)}return t.for=function(e,i,n,r){return Yr(this,void 0,void 0,function(){return Zr(this,function(o){switch(o.label){case 0:return[4,e.create(i)];case 1:return[2,new t(o.sent(),i,n,r)]}})})},t.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,i=new Array(e.length),n=0,r=e.length;n<r;n++)i[n]=so(e[n].id,4);return al.of(i.join(""))},t.prototype.widthOfTextAtSize=function(t,e){for(var i=this.font.layout(t,this.fontFeatures).glyphs,n=0,r=0,o=i.length;r<o;r++)n+=i[r].advanceWidth*this.scale;return n*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var i=e.descender,n=void 0===i||i,r=this.font,o=r.ascent,s=r.descent,a=r.bbox,l=(o||a.maxY)*this.scale-(s||a.minY)*this.scale;return n||(l-=Math.abs(s)||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,i=e.ascent,n=e.descent,r=e.bbox;return 1e3*t/((i||r.maxY)*this.scale-(n||r.minY)*this.scale)},t.prototype.embedIntoContext=function(t,e){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,e)},t.prototype.embedFontDict=function(t,e){return Yr(this,void 0,void 0,function(){var i,n,r;return Zr(this,function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return i=o.sent(),n=this.embedUnicodeCmap(t),r=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[i],ToUnicode:n}),e?(t.assign(e,r),[2,e]):[2,t.register(r)]}})})},t.prototype.isCFF=function(){return this.font.cff},t.prototype.embedCIDFontDict=function(t){return Yr(this,void 0,void 0,function(){var e,i;return Zr(this,function(n){switch(n.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return e=n.sent(),i=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:ml.of("Adobe"),Ordering:ml.of("Identity"),Supplement:0},FontDescriptor:e,W:this.computeWidths()}),[2,t.register(i)]}})})},t.prototype.embedFontDescriptor=function(t){return Yr(this,void 0,void 0,function(){var e,i,n,r,o,s,a,l,h,d,c,u,f,p,m;return Zr(this,function(g){switch(g.label){case 0:return[4,this.embedFontStream(t)];case 1:return e=g.sent(),i=this.scale,n=this.font,r=n.italicAngle,o=n.ascent,s=n.descent,a=n.capHeight,l=n.xHeight,h=this.font.bbox,d=h.minX,c=h.minY,u=h.maxX,f=h.maxY,p=t.obj((m={Type:"FontDescriptor",FontName:this.baseFontName,Flags:(v=this.font,y=v["OS/2"]?v["OS/2"].sFamilyClass:0,b=function(t){var e=0,i=function(t){e|=1<<t-1};return t.fixedPitch&&i(1),t.serif&&i(2),t.symbolic&&i(3),t.script&&i(4),t.nonsymbolic&&i(6),t.italic&&i(7),t.allCap&&i(17),t.smallCap&&i(18),t.forceBold&&i(19),e}({fixedPitch:v.post.isFixedPitch,serif:1<=y&&y<=7,symbolic:!0,script:10===y,italic:v.head.macStyle.italic}),b),FontBBox:[d*i,c*i,u*i,f*i],ItalicAngle:r,Ascent:o*i,Descent:s*i,CapHeight:(a||o)*i,XHeight:(l||0)*i,StemV:0},m[this.isCFF()?"FontFile3":"FontFile2"]=e,m)),[2,t.register(p)]}var v,y,b})})},t.prototype.serializeFont=function(){return Yr(this,void 0,void 0,function(){return Zr(this,function(t){return[2,this.fontData]})})},t.prototype.embedFontStream=function(t){return Yr(this,void 0,void 0,function(){var e,i,n;return Zr(this,function(r){switch(r.label){case 0:return n=(i=t).flateStream,[4,this.serializeFont()];case 1:return e=n.apply(i,[r.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(e)]}})})},t.prototype.embedUnicodeCmap=function(t){var e=function(t,e){for(var i=new Array(t.length),n=0,r=t.length;n<r;n++){var o=t[n],s=cl(ul(e(o))),a=cl.apply(void 0,o.codePoints.map(fl));i[n]=[s,a]}return dl(i)}(this.glyphCache.access(),this.glyphId.bind(this)),i=t.flateStream(e);return t.register(i)},t.prototype.glyphId=function(t){return t?t.id:-1},t.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),e=[],i=[],n=0,r=t.length;n<r;n++){var o=t[n],s=t[n-1],a=this.glyphId(o),l=this.glyphId(s);0===n?e.push(a):a-l!==1&&(e.push(i),e.push(a),i=[]),i.push(o.advanceWidth*this.scale)}return e.push(i),e},t}();const vl=gl;var yl=function(t){function e(e,i,n,r){var o=t.call(this,e,i,n,r)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=Ts.populatedBy(function(){return o.glyphs}),o.glyphIdMap=new Map,o}return Gr(e,t),e.for=function(t,i,n,r){return Yr(this,void 0,void 0,function(){return Zr(this,function(o){switch(o.label){case 0:return[4,t.create(i)];case 1:return[2,new e(o.sent(),i,n,r)]}})})},e.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,i=new Array(e.length),n=0,r=e.length;n<r;n++){var o=e[n],s=this.subset.includeGlyph(o);this.glyphs[s-1]=o,this.glyphIdMap.set(o.id,s),i[n]=so(s,4)}return this.glyphCache.invalidate(),al.of(i.join(""))},e.prototype.isCFF=function(){return this.subset.cff},e.prototype.glyphId=function(t){return t?this.glyphIdMap.get(t.id):-1},e.prototype.serializeFont=function(){var t=this;return new Promise(function(e,i){var n=[];t.subset.encodeStream().on("data",function(t){return n.push(t)}).on("end",function(){return e(function(t){for(var e=0,i=0,n=t.length;i<n;i++)e+=t[i].length;var r=new Uint8Array(e),o=0;for(i=0,n=t.length;i<n;i++){var s=t[i];r.set(s,o),o+=s.length}return r}(n))}).on("error",function(t){return i(t)})})},e}(vl);const bl=yl;var xl;!function(t){t.Source="Source",t.Data="Data",t.Alternative="Alternative",t.Supplement="Supplement",t.EncryptedPayload="EncryptedPayload",t.FormData="EncryptedPayload",t.Schema="Schema",t.Unspecified="Unspecified"}(xl||(xl={}));var wl=function(){function t(t,e,i){void 0===i&&(i={}),this.fileData=t,this.fileName=e,this.options=i}return t.for=function(e,i,n){return void 0===n&&(n={}),new t(e,i,n)},t.prototype.embedIntoContext=function(t,e){return Yr(this,void 0,void 0,function(){var i,n,r,o,s,a,l,h,d;return Zr(this,function(c){return i=this.options,n=i.mimeType,r=i.description,o=i.creationDate,s=i.modificationDate,a=i.afRelationship,l=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=n?n:void 0,Params:{Size:this.fileData.length,CreationDate:o?ml.fromDate(o):void 0,ModDate:s?ml.fromDate(s):void 0}}),h=t.register(l),d=t.obj({Type:"Filespec",F:ml.of(this.fileName),UF:al.fromText(this.fileName),EF:{F:h},Desc:r?al.fromText(r):void 0,AFRelationship:null!=a?a:void 0}),e?(t.assign(e,d),[2,e]):[2,t.register(d)]})})},t}();const kl=wl;var El,Nl=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(t){t.DeviceGray="DeviceGray",t.DeviceRGB="DeviceRGB",t.DeviceCMYK="DeviceCMYK"}(El||(El={}));var Tl={1:El.DeviceGray,3:El.DeviceRGB,4:El.DeviceCMYK},_l=function(){function t(t,e,i,n,r){this.imageData=t,this.bitsPerComponent=e,this.width=i,this.height=n,this.colorSpace=r}return t.for=function(e){return Yr(this,void 0,void 0,function(){var i,n,r,o,s,a,l,h;return Zr(this,function(d){if(i=new DataView(e.buffer),65496!==i.getUint16(0))throw new Error("SOI not found in JPEG");for(n=2;n<i.byteLength&&(r=i.getUint16(n),n+=2,!Nl.includes(r));)n+=i.getUint16(n);if(!Nl.includes(r))throw new Error("Invalid JPEG");if(n+=2,o=i.getUint8(n++),s=i.getUint16(n),n+=2,a=i.getUint16(n),n+=2,l=i.getUint8(n++),!(h=Tl[l]))throw new Error("Unknown JPEG channel.");return[2,new t(e,o,a,s,h)]})})},t.prototype.embedIntoContext=function(t,e){return Yr(this,void 0,void 0,function(){var i;return Zr(this,function(n){return i=t.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===El.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]})})},t}();const Cl=_l;var Sl,Ml,Al,zl=i(79737),Ll=i.n(zl),Ol={};Ol.toRGBA8=function(t){var e=t.width,i=t.height;if(null==t.tabs.acTL)return[Ol.toRGBA8.decodeImage(t.data,e,i,t).buffer];var n=[];null==t.frames[0].data&&(t.frames[0].data=t.data);for(var r=e*i*4,o=new Uint8Array(r),s=new Uint8Array(r),a=new Uint8Array(r),l=0;l<t.frames.length;l++){var h=t.frames[l],d=h.rect.x,c=h.rect.y,u=h.rect.width,f=h.rect.height,p=Ol.toRGBA8.decodeImage(h.data,u,f,t);if(0!=l)for(var m=0;m<r;m++)a[m]=o[m];if(0==h.blend?Ol._copyTile(p,u,f,o,e,i,d,c,0):1==h.blend&&Ol._copyTile(p,u,f,o,e,i,d,c,1),n.push(o.buffer.slice(0)),0==h.dispose);else if(1==h.dispose)Ol._copyTile(s,u,f,o,e,i,d,c,0);else if(2==h.dispose)for(m=0;m<r;m++)o[m]=a[m]}return n},Ol.toRGBA8.decodeImage=function(t,e,i,n){var r=e*i,o=Ol.decode._getBPP(n),s=Math.ceil(e*o/8),a=new Uint8Array(4*r),l=new Uint32Array(a.buffer),h=n.ctype,d=n.depth,c=Ol._bin.readUshort;Date.now();if(6==h){var u=r<<2;if(8==d)for(var f=0;f<u;f+=4)a[f]=t[f],a[f+1]=t[f+1],a[f+2]=t[f+2],a[f+3]=t[f+3];if(16==d)for(f=0;f<u;f++)a[f]=t[f<<1]}else if(2==h){var p=n.tabs.tRNS;if(null==p){if(8==d)for(f=0;f<r;f++){var m=3*f;l[f]=255<<24|t[m+2]<<16|t[m+1]<<8|t[m]}if(16==d)for(f=0;f<r;f++){m=6*f;l[f]=255<<24|t[m+4]<<16|t[m+2]<<8|t[m]}}else{var g=p[0],v=p[1],y=p[2];if(8==d)for(f=0;f<r;f++){var b=f<<2;m=3*f;l[f]=255<<24|t[m+2]<<16|t[m+1]<<8|t[m],t[m]==g&&t[m+1]==v&&t[m+2]==y&&(a[b+3]=0)}if(16==d)for(f=0;f<r;f++){b=f<<2,m=6*f;l[f]=255<<24|t[m+4]<<16|t[m+2]<<8|t[m],c(t,m)==g&&c(t,m+2)==v&&c(t,m+4)==y&&(a[b+3]=0)}}}else if(3==h){var x=n.tabs.PLTE,w=n.tabs.tRNS,k=w?w.length:0;if(1==d)for(var E=0;E<i;E++){var N=E*s,T=E*e;for(f=0;f<e;f++){b=T+f<<2;var _=3*(C=t[N+(f>>3)]>>7-(7&f)&1);a[b]=x[_],a[b+1]=x[_+1],a[b+2]=x[_+2],a[b+3]=C<k?w[C]:255}}if(2==d)for(E=0;E<i;E++)for(N=E*s,T=E*e,f=0;f<e;f++){b=T+f<<2,_=3*(C=t[N+(f>>2)]>>6-((3&f)<<1)&3);a[b]=x[_],a[b+1]=x[_+1],a[b+2]=x[_+2],a[b+3]=C<k?w[C]:255}if(4==d)for(E=0;E<i;E++)for(N=E*s,T=E*e,f=0;f<e;f++){b=T+f<<2,_=3*(C=t[N+(f>>1)]>>4-((1&f)<<2)&15);a[b]=x[_],a[b+1]=x[_+1],a[b+2]=x[_+2],a[b+3]=C<k?w[C]:255}if(8==d)for(f=0;f<r;f++){var C;b=f<<2,_=3*(C=t[f]);a[b]=x[_],a[b+1]=x[_+1],a[b+2]=x[_+2],a[b+3]=C<k?w[C]:255}}else if(4==h){if(8==d)for(f=0;f<r;f++){b=f<<2;var S=t[M=f<<1];a[b]=S,a[b+1]=S,a[b+2]=S,a[b+3]=t[M+1]}if(16==d)for(f=0;f<r;f++){var M;b=f<<2,S=t[M=f<<2];a[b]=S,a[b+1]=S,a[b+2]=S,a[b+3]=t[M+2]}}else if(0==h)for(g=n.tabs.tRNS?n.tabs.tRNS:-1,E=0;E<i;E++){var A=E*s,z=E*e;if(1==d)for(var L=0;L<e;L++){var O=(S=255*(t[A+(L>>>3)]>>>7-(7&L)&1))==255*g?0:255;l[z+L]=O<<24|S<<16|S<<8|S}else if(2==d)for(L=0;L<e;L++){O=(S=85*(t[A+(L>>>2)]>>>6-((3&L)<<1)&3))==85*g?0:255;l[z+L]=O<<24|S<<16|S<<8|S}else if(4==d)for(L=0;L<e;L++){O=(S=17*(t[A+(L>>>1)]>>>4-((1&L)<<2)&15))==17*g?0:255;l[z+L]=O<<24|S<<16|S<<8|S}else if(8==d)for(L=0;L<e;L++){O=(S=t[A+L])==g?0:255;l[z+L]=O<<24|S<<16|S<<8|S}else if(16==d)for(L=0;L<e;L++){S=t[A+(L<<1)],O=c(t,A+(L<<f))==g?0:255;l[z+L]=O<<24|S<<16|S<<8|S}}return a},Ol.decode=function(t){for(var e,i=new Uint8Array(t),n=8,r=Ol._bin,o=r.readUshort,s=r.readUint,a={tabs:{},frames:[]},l=new Uint8Array(i.length),h=0,d=0,c=[137,80,78,71,13,10,26,10],u=0;u<8;u++)if(i[u]!=c[u])throw"The input is not a PNG file!";for(;n<i.length;){var f=r.readUint(i,n);n+=4;var p=r.readASCII(i,n,4);if(n+=4,"IHDR"==p)Ol.decode._IHDR(i,n,a);else if("IDAT"==p){for(u=0;u<f;u++)l[h+u]=i[n+u];h+=f}else if("acTL"==p)a.tabs[p]={num_frames:s(i,n),num_plays:s(i,n+4)},e=new Uint8Array(i.length);else if("fcTL"==p){var m;if(0!=d)(m=a.frames[a.frames.length-1]).data=Ol.decode._decompress(a,e.slice(0,d),m.rect.width,m.rect.height),d=0;var g={x:s(i,n+12),y:s(i,n+16),width:s(i,n+4),height:s(i,n+8)},v=o(i,n+22);v=o(i,n+20)/(0==v?100:v);var y={rect:g,delay:Math.round(1e3*v),dispose:i[n+24],blend:i[n+25]};a.frames.push(y)}else if("fdAT"==p){for(u=0;u<f-4;u++)e[d+u]=i[n+u+4];d+=f-4}else if("pHYs"==p)a.tabs[p]=[r.readUint(i,n),r.readUint(i,n+4),i[n+8]];else if("cHRM"==p){a.tabs[p]=[];for(u=0;u<8;u++)a.tabs[p].push(r.readUint(i,n+4*u))}else if("tEXt"==p){null==a.tabs[p]&&(a.tabs[p]={});var b=r.nextZero(i,n),x=r.readASCII(i,n,b-n),w=r.readASCII(i,b+1,n+f-b-1);a.tabs[p][x]=w}else if("iTXt"==p){null==a.tabs[p]&&(a.tabs[p]={});b=0;var k=n;b=r.nextZero(i,k);x=r.readASCII(i,k,b-k),i[k=b+1],i[k+1];k+=2,b=r.nextZero(i,k);r.readASCII(i,k,b-k);k=b+1,b=r.nextZero(i,k);r.readUTF8(i,k,b-k);k=b+1;w=r.readUTF8(i,k,f-(k-n));a.tabs[p][x]=w}else if("PLTE"==p)a.tabs[p]=r.readBytes(i,n,f);else if("hIST"==p){var E=a.tabs.PLTE.length/3;a.tabs[p]=[];for(u=0;u<E;u++)a.tabs[p].push(o(i,n+2*u))}else if("tRNS"==p)3==a.ctype?a.tabs[p]=r.readBytes(i,n,f):0==a.ctype?a.tabs[p]=o(i,n):2==a.ctype&&(a.tabs[p]=[o(i,n),o(i,n+2),o(i,n+4)]);else if("gAMA"==p)a.tabs[p]=r.readUint(i,n)/1e5;else if("sRGB"==p)a.tabs[p]=i[n];else if("bKGD"==p)0==a.ctype||4==a.ctype?a.tabs[p]=[o(i,n)]:2==a.ctype||6==a.ctype?a.tabs[p]=[o(i,n),o(i,n+2),o(i,n+4)]:3==a.ctype&&(a.tabs[p]=i[n]);else if("IEND"==p)break;n+=f;r.readUint(i,n);n+=4}0!=d&&((m=a.frames[a.frames.length-1]).data=Ol.decode._decompress(a,e.slice(0,d),m.rect.width,m.rect.height),d=0);return a.data=Ol.decode._decompress(a,l,a.width,a.height),delete a.compress,delete a.interlace,delete a.filter,a},Ol.decode._decompress=function(t,e,i,n){Date.now();var r=Ol.decode._getBPP(t),o=Math.ceil(i*r/8),s=new Uint8Array((o+1+t.interlace)*n);e=Ol.decode._inflate(e,s);Date.now();return 0==t.interlace?e=Ol.decode._filterZero(e,t,0,i,n):1==t.interlace&&(e=Ol.decode._readInterlace(e,t)),e},Ol.decode._inflate=function(t,e){return Ol.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},Ol.inflateRaw=((Al={}).H={},Al.H.N=function(t,e){var i,n,r=Uint8Array,o=0,s=0,a=0,l=0,h=0,d=0,c=0,u=0,f=0;if(3==t[0]&&0==t[1])return e||new r(0);var p=Al.H,m=p.b,g=p.e,v=p.R,y=p.n,b=p.A,x=p.Z,w=p.m,k=null==e;for(k&&(e=new r(t.length>>>2<<3));0==o;)if(o=m(t,f,1),s=m(t,f+1,2),f+=3,0!=s){if(k&&(e=Al.H.W(e,u+(1<<17))),1==s&&(i=w.J,n=w.h,d=511,c=31),2==s){a=g(t,f,5)+257,l=g(t,f+5,5)+1,h=g(t,f+10,4)+4,f+=14;for(var E=1,N=0;N<38;N+=2)w.Q[N]=0,w.Q[N+1]=0;for(N=0;N<h;N++){var T=g(t,f+3*N,3);w.Q[1+(w.X[N]<<1)]=T,T>E&&(E=T)}f+=3*h,y(w.Q,E),b(w.Q,E,w.u),i=w.w,n=w.d,f=v(w.u,(1<<E)-1,a+l,t,f,w.v);var _=p.V(w.v,0,a,w.C);d=(1<<_)-1;var C=p.V(w.v,a,l,w.D);c=(1<<C)-1,y(w.C,_),b(w.C,_,i),y(w.D,C),b(w.D,C,n)}for(;;){var S=i[x(t,f)&d];f+=15&S;var M=S>>>4;if(M>>>8==0)e[u++]=M;else{if(256==M)break;var A=u+M-254;if(M>264){var z=w.q[M-257];A=u+(z>>>3)+g(t,f,7&z),f+=7&z}var L=n[x(t,f)&c];f+=15&L;var O=L>>>4,F=w.c[O],D=(F>>>4)+m(t,f,15&F);for(f+=15&F;u<A;)e[u]=e[u++-D],e[u]=e[u++-D],e[u]=e[u++-D],e[u]=e[u++-D];u=A}}}else{7&f&&(f+=8-(7&f));var R=(f>>>3)+4,I=t[R-4]|t[R-3]<<8;k&&(e=Al.H.W(e,u+I)),e.set(new r(t.buffer,t.byteOffset+R,I),u),f=R+I<<3,u+=I}return e.length==u?e:e.slice(0,u)},Al.H.W=function(t,e){var i=t.length;if(e<=i)return t;var n=new Uint8Array(i<<1);return n.set(t,0),n},Al.H.R=function(t,e,i,n,r,o){for(var s=Al.H.e,a=Al.H.Z,l=0;l<i;){var h=t[a(n,r)&e];r+=15&h;var d=h>>>4;if(d<=15)o[l]=d,l++;else{var c=0,u=0;16==d?(u=3+s(n,r,2),r+=2,c=o[l-1]):17==d?(u=3+s(n,r,3),r+=3):18==d&&(u=11+s(n,r,7),r+=7);for(var f=l+u;l<f;)o[l]=c,l++}}return r},Al.H.V=function(t,e,i,n){for(var r=0,o=0,s=n.length>>>1;o<i;){var a=t[o+e];n[o<<1]=0,n[1+(o<<1)]=a,a>r&&(r=a),o++}for(;o<s;)n[o<<1]=0,n[1+(o<<1)]=0,o++;return r},Al.H.n=function(t,e){for(var i,n,r,o,s=Al.H.m,a=t.length,l=s.j,h=0;h<=e;h++)l[h]=0;for(h=1;h<a;h+=2)l[t[h]]++;var d=s.K;for(i=0,l[0]=0,n=1;n<=e;n++)i=i+l[n-1]<<1,d[n]=i;for(r=0;r<a;r+=2)0!=(o=t[r+1])&&(t[r]=d[o],d[o]++)},Al.H.A=function(t,e,i){for(var n=t.length,r=Al.H.m.r,o=0;o<n;o+=2)if(0!=t[o+1])for(var s=o>>1,a=t[o+1],l=s<<4|a,h=e-a,d=t[o]<<h,c=d+(1<<h);d!=c;)i[r[d]>>>15-e]=l,d++},Al.H.l=function(t,e){for(var i=Al.H.m.r,n=15-e,r=0;r<t.length;r+=2){var o=t[r]<<e-t[r+1];t[r]=i[o]>>>n}},Al.H.M=function(t,e,i){i<<=7&e;var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8},Al.H.I=function(t,e,i){i<<=7&e;var n=e>>>3;t[n]|=i,t[n+1]|=i>>>8,t[n+2]|=i>>>16},Al.H.e=function(t,e,i){return(t[e>>>3]|t[(e>>>3)+1]<<8)>>>(7&e)&(1<<i)-1},Al.H.b=function(t,e,i){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)&(1<<i)-1},Al.H.Z=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16)>>>(7&e)},Al.H.i=function(t,e){return(t[e>>>3]|t[(e>>>3)+1]<<8|t[(e>>>3)+2]<<16|t[(e>>>3)+3]<<24)>>>(7&e)},Al.H.m=(Sl=Uint16Array,Ml=Uint32Array,{K:new Sl(16),j:new Sl(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 Sl(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 Ml(32),J:new Sl(512),_:[],h:new Sl(32),$:[],w:new Sl(32768),C:[],v:[],d:new Sl(32768),D:[],u:new Sl(512),Q:[],r:new Sl(32768),s:new Ml(286),Y:new Ml(30),a:new Ml(19),t:new Ml(15e3),k:new Sl(65536),g:new Sl(32768)}),function(){for(var t=Al.H.m,e=0;e<32768;e++){var i=e;i=(4278255360&(i=(4042322160&(i=(3435973836&(i=(2863311530&i)>>>1|(1431655765&i)<<1))>>>2|(858993459&i)<<2))>>>4|(252645135&i)<<4))>>>8|(16711935&i)<<8,t.r[e]=(i>>>16|i<<16)>>>17}function n(t,e,i){for(;0!=e--;)t.push(0,i)}for(e=0;e<32;e++)t.q[e]=t.S[e]<<3|t.T[e],t.c[e]=t.p[e]<<4|t.z[e];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),Al.H.n(t._,9),Al.H.A(t._,9,t.J),Al.H.l(t._,9),n(t.$,32,5),Al.H.n(t.$,5),Al.H.A(t.$,5,t.h),Al.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),Al.H.N),Ol.decode._readInterlace=function(t,e){for(var i=e.width,n=e.height,r=Ol.decode._getBPP(e),o=r>>3,s=Math.ceil(i*r/8),a=new Uint8Array(n*s),l=0,h=[0,0,4,0,2,0,1],d=[0,4,0,2,0,1,0],c=[8,8,8,4,4,2,2],u=[8,8,4,4,2,2,1],f=0;f<7;){for(var p=c[f],m=u[f],g=0,v=0,y=h[f];y<n;)y+=p,v++;for(var b=d[f];b<i;)b+=m,g++;var x=Math.ceil(g*r/8);Ol.decode._filterZero(t,e,l,g,v);for(var w=0,k=h[f];k<n;){for(var E=d[f],N=l+w*x<<3;E<i;){var T;if(1==r)T=(T=t[N>>3])>>7-(7&N)&1,a[k*s+(E>>3)]|=T<<7-(7&E);if(2==r)T=(T=t[N>>3])>>6-(7&N)&3,a[k*s+(E>>2)]|=T<<6-((3&E)<<1);if(4==r)T=(T=t[N>>3])>>4-(7&N)&15,a[k*s+(E>>1)]|=T<<4-((1&E)<<2);if(r>=8)for(var _=k*s+E*o,C=0;C<o;C++)a[_+C]=t[(N>>3)+C];N+=r,E+=m}w++,k+=p}g*v!=0&&(l+=v*(1+x)),f+=1}return a},Ol.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},Ol.decode._filterZero=function(t,e,i,n,r){var o=Ol.decode._getBPP(e),s=Math.ceil(n*o/8),a=Ol.decode._paeth;o=Math.ceil(o/8);var l=0,h=1,d=t[i],c=0;if(d>1&&(t[i]=[0,0,1][d-2]),3==d)for(c=o;c<s;c++)t[c+1]=t[c+1]+(t[c+1-o]>>>1)&255;for(var u=0;u<r;u++)if(c=0,0==(d=t[(h=(l=i+u*s)+u+1)-1]))for(;c<s;c++)t[l+c]=t[h+c];else if(1==d){for(;c<o;c++)t[l+c]=t[h+c];for(;c<s;c++)t[l+c]=t[h+c]+t[l+c-o]}else if(2==d)for(;c<s;c++)t[l+c]=t[h+c]+t[l+c-s];else if(3==d){for(;c<o;c++)t[l+c]=t[h+c]+(t[l+c-s]>>>1);for(;c<s;c++)t[l+c]=t[h+c]+(t[l+c-s]+t[l+c-o]>>>1)}else{for(;c<o;c++)t[l+c]=t[h+c]+a(0,t[l+c-s],0);for(;c<s;c++)t[l+c]=t[h+c]+a(t[l+c-o],t[l+c-s],t[l+c-o-s])}return t},Ol.decode._paeth=function(t,e,i){var n=t+e-i,r=n-t,o=n-e,s=n-i;return r*r<=o*o&&r*r<=s*s?t:o*o<=s*s?e:i},Ol.decode._IHDR=function(t,e,i){var n=Ol._bin;i.width=n.readUint(t,e),e+=4,i.height=n.readUint(t,e),e+=4,i.depth=t[e],e++,i.ctype=t[e],e++,i.compress=t[e],e++,i.filter=t[e],e++,i.interlace=t[e],e++},Ol._bin={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,i){t[e]=i>>8&255,t[e+1]=255&i},readUint:function(t,e){return 16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,i){t[e]=i>>24&255,t[e+1]=i>>16&255,t[e+2]=i>>8&255,t[e+3]=255&i},readASCII:function(t,e,i){for(var n="",r=0;r<i;r++)n+=String.fromCharCode(t[e+r]);return n},writeASCII:function(t,e,i){for(var n=0;n<i.length;n++)t[e+n]=i.charCodeAt(n)},readBytes:function(t,e,i){for(var n=[],r=0;r<i;r++)n.push(t[e+r]);return n},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,i){for(var n,r="",o=0;o<i;o++)r+="%"+Ol._bin.pad(t[e+o].toString(16));try{n=decodeURIComponent(r)}catch(n){return Ol._bin.readASCII(t,e,i)}return n}},Ol._copyTile=function(t,e,i,n,r,o,s,a,l){for(var h=Math.min(e,r),d=Math.min(i,o),c=0,u=0,f=0;f<d;f++)for(var p=0;p<h;p++)if(s>=0&&a>=0?(c=f*e+p<<2,u=(a+f)*r+s+p<<2):(c=(-a+f)*e-s+p<<2,u=f*r+p<<2),0==l)n[u]=t[c],n[u+1]=t[c+1],n[u+2]=t[c+2],n[u+3]=t[c+3];else if(1==l){var m=t[c+3]*(1/255),g=t[c]*m,v=t[c+1]*m,y=t[c+2]*m,b=n[u+3]*(1/255),x=n[u]*b,w=n[u+1]*b,k=n[u+2]*b,E=1-m,N=m+b*E,T=0==N?0:1/N;n[u+3]=255*N,n[u+0]=(g+x*E)*T,n[u+1]=(v+w*E)*T,n[u+2]=(y+k*E)*T}else if(2==l){m=t[c+3],g=t[c],v=t[c+1],y=t[c+2],b=n[u+3],x=n[u],w=n[u+1],k=n[u+2];m==b&&g==x&&v==w&&y==k?(n[u]=0,n[u+1]=0,n[u+2]=0,n[u+3]=0):(n[u]=g,n[u+1]=v,n[u+2]=y,n[u+3]=m)}else if(3==l){m=t[c+3],g=t[c],v=t[c+1],y=t[c+2],b=n[u+3],x=n[u],w=n[u+1],k=n[u+2];if(m==b&&g==x&&v==w&&y==k)continue;if(m<220&&b>20)return!1}return!0},Ol.encode=function(t,e,i,n,r,o,s){null==n&&(n=0),null==s&&(s=!1);var a=Ol.encode.compress(t,e,i,n,[!1,!1,!1,0,s]);return Ol.encode.compressPNG(a,-1),Ol.encode._main(a,e,i,r,o)},Ol.encodeLL=function(t,e,i,n,r,o,s,a){for(var l={ctype:0+(1==n?0:2)+(0==r?0:4),depth:o,frames:[]},h=(Date.now(),(n+r)*o),d=h*e,c=0;c<t.length;c++)l.frames.push({rect:{x:0,y:0,width:e,height:i},img:new Uint8Array(t[c]),blend:0,dispose:1,bpp:Math.ceil(h/8),bpl:Math.ceil(d/8)});return Ol.encode.compressPNG(l,0,!0),Ol.encode._main(l,e,i,s,a)},Ol.encode._main=function(t,e,i,n,r){null==r&&(r={});var o=Ol.crc.crc,s=Ol._bin.writeUint,a=Ol._bin.writeUshort,l=Ol._bin.writeASCII,h=8,d=t.frames.length>1,c=!1,u=33+(d?20:0);if(null!=r.sRGB&&(u+=13),null!=r.pHYs&&(u+=21),3==t.ctype){for(var f=t.plte.length,p=0;p<f;p++)t.plte[p]>>>24!=255&&(c=!0);u+=8+3*f+4+(c?8+1*f+4:0)}for(var m=0;m<t.frames.length;m++){d&&(u+=38),u+=(N=t.frames[m]).cimg.length+12,0!=m&&(u+=4)}u+=12;var g=new Uint8Array(u),v=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)g[p]=v[p];if(s(g,h,13),l(g,h+=4,"IHDR"),s(g,h+=4,e),s(g,h+=4,i),g[h+=4]=t.depth,g[++h]=t.ctype,g[++h]=0,g[++h]=0,g[++h]=0,s(g,++h,o(g,h-17,17)),h+=4,null!=r.sRGB&&(s(g,h,1),l(g,h+=4,"sRGB"),g[h+=4]=r.sRGB,s(g,++h,o(g,h-5,5)),h+=4),null!=r.pHYs&&(s(g,h,9),l(g,h+=4,"pHYs"),s(g,h+=4,r.pHYs[0]),s(g,h+=4,r.pHYs[1]),g[h+=4]=r.pHYs[2],s(g,++h,o(g,h-13,13)),h+=4),d&&(s(g,h,8),l(g,h+=4,"acTL"),s(g,h+=4,t.frames.length),s(g,h+=4,null!=r.loop?r.loop:0),s(g,h+=4,o(g,h-12,12)),h+=4),3==t.ctype){s(g,h,3*(f=t.plte.length)),l(g,h+=4,"PLTE"),h+=4;for(p=0;p<f;p++){var y=3*p,b=t.plte[p],x=255&b,w=b>>>8&255,k=b>>>16&255;g[h+y+0]=x,g[h+y+1]=w,g[h+y+2]=k}if(s(g,h+=3*f,o(g,h-3*f-4,3*f+4)),h+=4,c){s(g,h,f),l(g,h+=4,"tRNS"),h+=4;for(p=0;p<f;p++)g[h+p]=t.plte[p]>>>24&255;s(g,h+=f,o(g,h-f-4,f+4)),h+=4}}var E=0;for(m=0;m<t.frames.length;m++){var N=t.frames[m];d&&(s(g,h,26),l(g,h+=4,"fcTL"),s(g,h+=4,E++),s(g,h+=4,N.rect.width),s(g,h+=4,N.rect.height),s(g,h+=4,N.rect.x),s(g,h+=4,N.rect.y),a(g,h+=4,n[m]),a(g,h+=2,1e3),g[h+=2]=N.dispose,g[++h]=N.blend,s(g,++h,o(g,h-30,30)),h+=4);var T=N.cimg;s(g,h,(f=T.length)+(0==m?0:4));var _=h+=4;l(g,h,0==m?"IDAT":"fdAT"),h+=4,0!=m&&(s(g,h,E++),h+=4),g.set(T,h),s(g,h+=f,o(g,_,h-_)),h+=4}return s(g,h,0),l(g,h+=4,"IEND"),s(g,h+=4,o(g,h-4,4)),h+=4,g.buffer},Ol.encode.compressPNG=function(t,e,i){for(var n=0;n<t.frames.length;n++){var r=t.frames[n],o=(r.rect.width,r.rect.height),s=new Uint8Array(o*r.bpl+o);r.cimg=Ol.encode._filterZero(r.img,o,r.bpp,r.bpl,s,e,i)}},Ol.encode.compress=function(t,e,i,n,r){for(var o=r[0],s=r[1],a=r[2],l=r[3],h=r[4],d=6,c=8,u=255,f=0;f<t.length;f++)for(var p=new Uint8Array(t[f]),m=p.length,g=0;g<m;g+=4)u&=p[g+3];var v=255!=u,y=Ol.encode.framize(t,e,i,o,s,a),b={},x=[],w=[];if(0!=n){var k=[];for(g=0;g<y.length;g++)k.push(y[g].img.buffer);var E=Ol.encode.concatRGBA(k),N=Ol.quantize(E,n),T=0,_=new Uint8Array(N.abuf);for(g=0;g<y.length;g++){var C=(V=y[g].img).length;w.push(new Uint8Array(N.inds.buffer,T>>2,C>>2));for(f=0;f<C;f+=4)V[f]=_[T+f],V[f+1]=_[T+f+1],V[f+2]=_[T+f+2],V[f+3]=_[T+f+3];T+=C}for(g=0;g<N.plte.length;g++)x.push(N.plte[g].est.rgba)}else for(f=0;f<y.length;f++){var S=y[f],M=new Uint32Array(S.img.buffer),A=S.rect.width,z=(m=M.length,new Uint8Array(m));w.push(z);for(g=0;g<m;g++){var L=M[g];if(0!=g&&L==M[g-1])z[g]=z[g-1];else if(g>A&&L==M[g-A])z[g]=z[g-A];else{var O=b[L];if(null==O&&(b[L]=O=x.length,x.push(L),x.length>=300))break;z[g]=O}}}var F=x.length;F<=256&&0==h&&(c=F<=2?1:F<=4?2:F<=16?4:8,c=Math.max(c,l));for(f=0;f<y.length;f++){(S=y[f]).rect.x,S.rect.y,A=S.rect.width;var D=S.rect.height,R=S.img,I=(new Uint32Array(R.buffer),4*A),q=4;if(F<=256&&0==h){I=Math.ceil(c*A/8);for(var B=new Uint8Array(I*D),P=w[f],U=0;U<D;U++){g=U*I;var j=U*A;if(8==c)for(var H=0;H<A;H++)B[g+H]=P[j+H];else if(4==c)for(H=0;H<A;H++)B[g+(H>>1)]|=P[j+H]<<4-4*(1&H);else if(2==c)for(H=0;H<A;H++)B[g+(H>>2)]|=P[j+H]<<6-2*(3&H);else if(1==c)for(H=0;H<A;H++)B[g+(H>>3)]|=P[j+H]<<7-1*(7&H)}R=B,d=3,q=1}else if(0==v&&1==y.length){B=new Uint8Array(A*D*3);var W=A*D;for(g=0;g<W;g++){var V,K=4*g;B[V=3*g]=R[K],B[V+1]=R[K+1],B[V+2]=R[K+2]}R=B,d=2,q=3,I=3*A}S.img=R,S.bpl=I,S.bpp=q}return{ctype:d,depth:c,plte:x,frames:y}},Ol.encode.framize=function(t,e,i,n,r,o){for(var s=[],a=0;a<t.length;a++){var l,h=new Uint8Array(t[a]),d=new Uint32Array(h.buffer),c=0,u=0,f=e,p=i,m=n?1:0;if(0!=a){for(var g=o||n||1==a||0!=s[a-2].dispose?1:2,v=0,y=1e9,b=0;b<g;b++){for(var x=new Uint8Array(t[a-1-b]),w=new Uint32Array(t[a-1-b]),k=e,E=i,N=-1,T=-1,_=0;_<i;_++)for(var C=0;C<e;C++){d[F=_*e+C]!=w[F]&&(C<k&&(k=C),C>N&&(N=C),_<E&&(E=_),_>T&&(T=_))}-1==N&&(k=E=N=T=0),r&&(1&~k||k--,1&~E||E--);var S=(N-k+1)*(T-E+1);S<y&&(y=S,v=b,c=k,u=E,f=N-k+1,p=T-E+1)}x=new Uint8Array(t[a-1-v]);1==v&&(s[a-1].dispose=2),l=new Uint8Array(f*p*4),Ol._copyTile(x,e,i,l,f,p,-c,-u,0),1==(m=Ol._copyTile(h,e,i,l,f,p,-c,-u,3)?1:0)?Ol.encode._prepareDiff(h,e,i,l,{x:c,y:u,width:f,height:p}):Ol._copyTile(h,e,i,l,f,p,-c,-u,0)}else l=h.slice(0);s.push({rect:{x:c,y:u,width:f,height:p},img:l,blend:m,dispose:0})}if(n)for(a=0;a<s.length;a++){if(1!=(D=s[a]).blend){var M=D.rect,A=s[a-1].rect,z=Math.min(M.x,A.x),L=Math.min(M.y,A.y),O={x:z,y:L,width:Math.max(M.x+M.width,A.x+A.width)-z,height:Math.max(M.y+M.height,A.y+A.height)-L};s[a-1].dispose=1,a-1!=0&&Ol.encode._updateFrame(t,e,i,s,a-1,O,r),Ol.encode._updateFrame(t,e,i,s,a,O,r)}}if(1!=t.length)for(var F=0;F<s.length;F++){var D;(D=s[F]).rect.width*D.rect.height}return s},Ol.encode._updateFrame=function(t,e,i,n,r,o,s){for(var a=Uint8Array,l=Uint32Array,h=new a(t[r-1]),d=new l(t[r-1]),c=r+1<t.length?new a(t[r+1]):null,u=new a(t[r]),f=new l(u.buffer),p=e,m=i,g=-1,v=-1,y=0;y<o.height;y++)for(var b=0;b<o.width;b++){var x=o.x+b,w=o.y+y,k=w*e+x,E=f[k];0==E||0==n[r-1].dispose&&d[k]==E&&(null==c||0!=c[4*k+3])||(x<p&&(p=x),x>g&&(g=x),w<m&&(m=w),w>v&&(v=w))}-1==g&&(p=m=g=v=0),s&&(1&~p||p--,1&~m||m--),o={x:p,y:m,width:g-p+1,height:v-m+1};var N=n[r];N.rect=o,N.blend=1,N.img=new Uint8Array(o.width*o.height*4),0==n[r-1].dispose?(Ol._copyTile(h,e,i,N.img,o.width,o.height,-o.x,-o.y,0),Ol.encode._prepareDiff(u,e,i,N.img,o)):Ol._copyTile(u,e,i,N.img,o.width,o.height,-o.x,-o.y,0)},Ol.encode._prepareDiff=function(t,e,i,n,r){Ol._copyTile(t,e,i,n,r.width,r.height,-r.x,-r.y,2)},Ol.encode._filterZero=function(t,e,i,n,r,o,s){var a,l=[],h=[0,1,2,3,4];-1!=o?h=[o]:(e*n>5e5||1==i)&&(h=[0]),s&&(a={level:0});for(var d=s&&null!=UZIP?UZIP:Ll(),c=0;c<h.length;c++){for(var u=0;u<e;u++)Ol.encode._filterLine(r,t,u,n,i,h[c]);l.push(d.deflate(r,a))}var f,p=1e9;for(c=0;c<l.length;c++)l[c].length<p&&(f=c,p=l[c].length);return l[f]},Ol.encode._filterLine=function(t,e,i,n,r,o){var s=i*n,a=s+i,l=Ol.decode._paeth;if(t[a]=o,a++,0==o)if(n<500)for(var h=0;h<n;h++)t[a+h]=e[s+h];else t.set(new Uint8Array(e.buffer,s,n),a);else if(1==o){for(h=0;h<r;h++)t[a+h]=e[s+h];for(h=r;h<n;h++)t[a+h]=e[s+h]-e[s+h-r]+256&255}else if(0==i){for(h=0;h<r;h++)t[a+h]=e[s+h];if(2==o)for(h=r;h<n;h++)t[a+h]=e[s+h];if(3==o)for(h=r;h<n;h++)t[a+h]=e[s+h]-(e[s+h-r]>>1)+256&255;if(4==o)for(h=r;h<n;h++)t[a+h]=e[s+h]-l(e[s+h-r],0,0)+256&255}else{if(2==o)for(h=0;h<n;h++)t[a+h]=e[s+h]+256-e[s+h-n]&255;if(3==o){for(h=0;h<r;h++)t[a+h]=e[s+h]+256-(e[s+h-n]>>1)&255;for(h=r;h<n;h++)t[a+h]=e[s+h]+256-(e[s+h-n]+e[s+h-r]>>1)&255}if(4==o){for(h=0;h<r;h++)t[a+h]=e[s+h]+256-l(0,e[s+h-n],0)&255;for(h=r;h<n;h++)t[a+h]=e[s+h]+256-l(e[s+h-r],e[s+h-n],e[s+h-r-n])&255}}},Ol.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var i=e,n=0;n<8;n++)1&i?i=3988292384^i>>>1:i>>>=1;t[e]=i}return t}(),update:function(t,e,i,n){for(var r=0;r<n;r++)t=Ol.crc.table[255&(t^e[i+r])]^t>>>8;return t},crc:function(t,e,i){return 4294967295^Ol.crc.update(4294967295,t,e,i)}},Ol.quantize=function(t,e){for(var i=new Uint8Array(t),n=i.slice(0),r=new Uint32Array(n.buffer),o=Ol.quantize.getKDtree(n,e),s=o[0],a=o[1],l=(Ol.quantize.planeDst,i),h=r,d=l.length,c=new Uint8Array(i.length>>2),u=0;u<d;u+=4){var f=l[u]*(1/255),p=l[u+1]*(1/255),m=l[u+2]*(1/255),g=l[u+3]*(1/255),v=Ol.quantize.getNearest(s,f,p,m,g);c[u>>2]=v.ind,h[u>>2]=v.est.rgba}return{abuf:n.buffer,inds:c,plte:a}},Ol.quantize.getKDtree=function(t,e,i){null==i&&(i=1e-4);var n=new Uint32Array(t.buffer),r={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=Ol.quantize.stats(t,r.i0,r.i1),r.est=Ol.quantize.estats(r.bst);for(var o=[r];o.length<e;){for(var s=0,a=0,l=0;l<o.length;l++)o[l].est.L>s&&(s=o[l].est.L,a=l);if(s<i)break;var h=o[a],d=Ol.quantize.splitPixels(t,n,h.i0,h.i1,h.est.e,h.est.eMq255);if(h.i0>=d||h.i1<=d)h.est.L=0;else{var c={i0:h.i0,i1:d,bst:null,est:null,tdst:0,left:null,right:null};c.bst=Ol.quantize.stats(t,c.i0,c.i1),c.est=Ol.quantize.estats(c.bst);var u={i0:d,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};u.bst={R:[],m:[],N:h.bst.N-c.bst.N};for(l=0;l<16;l++)u.bst.R[l]=h.bst.R[l]-c.bst.R[l];for(l=0;l<4;l++)u.bst.m[l]=h.bst.m[l]-c.bst.m[l];u.est=Ol.quantize.estats(u.bst),h.left=c,h.right=u,o[a]=c,o.push(u)}}o.sort(function(t,e){return e.bst.N-t.bst.N});for(l=0;l<o.length;l++)o[l].ind=l;return[r,o]},Ol.quantize.getNearest=function(t,e,i,n,r){if(null==t.left)return t.tdst=Ol.quantize.dist(t.est.q,e,i,n,r),t;var o=Ol.quantize.planeDst(t.est,e,i,n,r),s=t.left,a=t.right;o>0&&(s=t.right,a=t.left);var l=Ol.quantize.getNearest(s,e,i,n,r);if(l.tdst<=o*o)return l;var h=Ol.quantize.getNearest(a,e,i,n,r);return h.tdst<l.tdst?h:l},Ol.quantize.planeDst=function(t,e,i,n,r){var o=t.e;return o[0]*e+o[1]*i+o[2]*n+o[3]*r-t.eMq},Ol.quantize.dist=function(t,e,i,n,r){var o=e-t[0],s=i-t[1],a=n-t[2],l=r-t[3];return o*o+s*s+a*a+l*l},Ol.quantize.splitPixels=function(t,e,i,n,r,o){var s=Ol.quantize.vecDot;n-=4;for(;i<n;){for(;s(t,i,r)<=o;)i+=4;for(;s(t,n,r)>o;)n-=4;if(i>=n)break;var a=e[i>>2];e[i>>2]=e[n>>2],e[n>>2]=a,i+=4,n-=4}for(;s(t,i,r)>o;)i-=4;return i+4},Ol.quantize.vecDot=function(t,e,i){return t[e]*i[0]+t[e+1]*i[1]+t[e+2]*i[2]+t[e+3]*i[3]},Ol.quantize.stats=function(t,e,i){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],o=i-e>>2,s=e;s<i;s+=4){var a=t[s]*(1/255),l=t[s+1]*(1/255),h=t[s+2]*(1/255),d=t[s+3]*(1/255);r[0]+=a,r[1]+=l,r[2]+=h,r[3]+=d,n[0]+=a*a,n[1]+=a*l,n[2]+=a*h,n[3]+=a*d,n[5]+=l*l,n[6]+=l*h,n[7]+=l*d,n[10]+=h*h,n[11]+=h*d,n[15]+=d*d}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:r,N:o}},Ol.quantize.estats=function(t){var e=t.R,i=t.m,n=t.N,r=i[0],o=i[1],s=i[2],a=i[3],l=0==n?0:1/n,h=[e[0]-r*r*l,e[1]-r*o*l,e[2]-r*s*l,e[3]-r*a*l,e[4]-o*r*l,e[5]-o*o*l,e[6]-o*s*l,e[7]-o*a*l,e[8]-s*r*l,e[9]-s*o*l,e[10]-s*s*l,e[11]-s*a*l,e[12]-a*r*l,e[13]-a*o*l,e[14]-a*s*l,e[15]-a*a*l],d=h,c=Ol.M4,u=[.5,.5,.5,.5],f=0,p=0;if(0!=n)for(var m=0;m<10&&(u=c.multVec(d,u),p=Math.sqrt(c.dot(u,u)),u=c.sml(1/p,u),!(Math.abs(p-f)<1e-9));m++)f=p;var g=[r*l,o*l,s*l,a*l];return{Cov:h,q:g,e:u,L:f,eMq255:c.dot(c.sml(255,g),u),eMq:c.dot(u,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}},Ol.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},Ol.encode.concatRGBA=function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i].byteLength;var n=new Uint8Array(e),r=0;for(i=0;i<t.length;i++){for(var o=new Uint8Array(t[i]),s=o.length,a=0;a<s;a+=4){var l=o[a],h=o[a+1],d=o[a+2],c=o[a+3];0==c&&(l=h=d=0),n[r+a]=l,n[r+a+1]=h,n[r+a+2]=d,n[r+a+3]=c}r+=s}return n.buffer};const Fl=Ol;var Dl;!function(t){t.Greyscale="Greyscale",t.Truecolour="Truecolour",t.IndexedColour="IndexedColour",t.GreyscaleWithAlpha="GreyscaleWithAlpha",t.TruecolourWithAlpha="TruecolourWithAlpha"}(Dl||(Dl={}));var Rl=function(){function t(t){var e=Fl.decode(t),i=Fl.toRGBA8(e);if(i.length>1)throw new Error("Animated PNGs are not supported");var n=function(t){for(var e=Math.floor(t.length/4),i=new Uint8Array(3*e),n=new Uint8Array(1*e),r=0,o=0,s=0;r<t.length;)i[o++]=t[r++],i[o++]=t[r++],i[o++]=t[r++],n[s++]=t[r++];return{rgbChannel:i,alphaChannel:n}}(new Uint8Array(i[0])),r=n.rgbChannel,o=n.alphaChannel;this.rgbChannel=r,o.some(function(t){return t<255})&&(this.alphaChannel=o),this.type=function(t){if(0===t)return Dl.Greyscale;if(2===t)return Dl.Truecolour;if(3===t)return Dl.IndexedColour;if(4===t)return Dl.GreyscaleWithAlpha;if(6===t)return Dl.TruecolourWithAlpha;throw new Error("Unknown color type: "+t)}(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}();const Il=function(){function t(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return t.for=function(e){return Yr(this,void 0,void 0,function(){return Zr(this,function(i){return[2,new t(Rl.load(e))]})})},t.prototype.embedIntoContext=function(t,e){return Yr(this,void 0,void 0,function(){var i,n;return Zr(this,function(r){return i=this.embedAlphaChannel(t),n=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:i}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]})})},t.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var e=t.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return t.register(e)}},t}();const ql=function(){function t(t,e,i){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&i?e+i:this.bytes.length}return Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var i=this.bytes,n=this.pos,r=this.end;if(t){var o=n+t;o>r&&(o=r),this.pos=o;s=i.subarray(n,o);return e?new Uint8ClampedArray(s):s}var s=i.subarray(n,r);return e?new Uint8ClampedArray(s):s},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var i=this.getBytes(t,e);return this.pos-=i.length,i},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,i){return new t(this.bytes,e,i)},t.prototype.decode=function(){return this.bytes},t}();var Bl=new Uint8Array(0),Pl=function(){function t(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=Bl,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){var i;void 0===e&&(e=!1);var n=this.pos;if(t){for(this.ensureBuffer(n+t),i=n+t;!this.eof&&this.bufferLength<i;)this.readBlock();var r=this.bufferLength;i>r&&(i=r)}else{for(;!this.eof;)this.readBlock();i=this.bufferLength}this.pos=i;var o=this.buffer.subarray(n,i);return!e||o instanceof Uint8ClampedArray?o:new Uint8ClampedArray(o)},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var i=this.getBytes(t,e);return this.pos-=i.length,i},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=0},t.prototype.makeSubStream=function(t,e){for(var i=t+e;this.bufferLength<=i&&!this.eof;)this.readBlock();return new ql(this.buffer,t,e)},t.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},t.prototype.readBlock=function(){throw new Cs(this.constructor.name,"readBlock")},t.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var i=this.minBufferLength;i<t;)i*=2;var n=new Uint8Array(i);return n.set(e),this.buffer=n},t}();const Ul=Pl;var jl=function(t){return 32===t||9===t||13===t||10===t},Hl=function(t){function e(e,i){var n=t.call(this,i)||this;return n.stream=e,n.input=new Uint8Array(5),i&&(i*=.8),n}return Gr(e,t),e.prototype.readBlock=function(){for(var t=this.stream,e=t.getByte();jl(e);)e=t.getByte();if(-1!==e&&126!==e){var i,n,r=this.bufferLength;if(122===e){for(i=this.ensureBuffer(r+4),n=0;n<4;++n)i[r+n]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=e,n=1;n<5;++n){for(e=t.getByte();jl(e);)e=t.getByte();if(o[n]=e,-1===e||126===e)break}if(i=this.ensureBuffer(r+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)o[n]=117;this.eof=!0}var s=0;for(n=0;n<5;++n)s=85*s+(o[n]-33);for(n=3;n>=0;--n)i[r+n]=255&s,s>>=8}}else this.eof=!0},e}(Ul);const Wl=Hl;var Vl=function(t){function e(e,i){var n=t.call(this,i)||this;return n.stream=e,n.firstDigit=-1,i&&(i*=.5),n}return Gr(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(8e3);if(t.length){for(var e=t.length+1>>1,i=this.ensureBuffer(this.bufferLength+e),n=this.bufferLength,r=this.firstDigit,o=0,s=t.length;o<s;o++){var a=t[o],l=void 0;if(a>=48&&a<=57)l=15&a;else{if(!(a>=65&&a<=70||a>=97&&a<=102)){if(62===a){this.eof=!0;break}continue}l=9+(15&a)}r<0?r=l:(i[n++]=r<<4|l,r=-1)}r>=0&&this.eof&&(i[n++]=r<<4,r=-1),this.firstDigit=r,this.bufferLength=n}else this.eof=!0},e}(Ul);const Kl=Vl;var Gl=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xl=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),Yl=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),Zl=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Ql=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],Jl=function(t){function e(e,i){var n=t.call(this,i)||this;n.stream=e;var r=e.getByte(),o=e.getByte();if(-1===r||-1===o)throw new Error("Invalid header in flate stream: "+r+", "+o);if(8!=(15&r))throw new Error("Unknown compression method in flate stream: "+r+", "+o);if(((r<<8)+o)%31!=0)throw new Error("Bad FCHECK in flate stream: "+r+", "+o);if(32&o)throw new Error("FDICT bit set in flate stream: "+r+", "+o);return n.codeSize=0,n.codeBuf=0,n}return Gr(e,t),e.prototype.readBlock=function(){var t,e,i=this.stream,n=this.getBits(3);if(1&n&&(this.eof=!0),0!==(n>>=1)){var r,o;if(1===n)r=Zl,o=Ql;else{if(2!==n)throw new Error("Unknown block type in flate stream");var s=this.getBits(5)+257,a=this.getBits(5)+1,l=this.getBits(4)+4,h=new Uint8Array(Gl.length),d=void 0;for(d=0;d<l;++d)h[Gl[d]]=this.getBits(3);var c=this.generateHuffmanTable(h);e=0,d=0;for(var u=s+a,f=new Uint8Array(u),p=void 0,m=void 0,g=void 0;d<u;){var v=this.getCode(c);if(16===v)p=2,m=3,g=e;else if(17===v)p=3,m=3,g=e=0;else{if(18!==v){f[d++]=e=v;continue}p=7,m=11,g=e=0}for(var y=this.getBits(p)+m;y-- >0;)f[d++]=g}r=this.generateHuffmanTable(f.subarray(0,s)),o=this.generateHuffmanTable(f.subarray(s,u))}for(var b=(t=this.buffer)?t.length:0,x=this.bufferLength;;){var w=this.getCode(r);if(w<256)x+1>=b&&(b=(t=this.ensureBuffer(x+1)).length),t[x++]=w;else{if(256===w)return void(this.bufferLength=x);var k=(w=Xl[w-=257])>>16;k>0&&(k=this.getBits(k)),e=(65535&w)+k,w=this.getCode(o),(k=(w=Yl[w])>>16)>0&&(k=this.getBits(k));var E=(65535&w)+k;x+e>=b&&(b=(t=this.ensureBuffer(x+e)).length);for(var N=0;N<e;++N,++x)t[x]=t[x-E]}}}else{var T=void 0;if(-1===(T=i.getByte()))throw new Error("Bad block header in flate stream");var _=T;if(-1===(T=i.getByte()))throw new Error("Bad block header in flate stream");if(_|=T<<8,-1===(T=i.getByte()))throw new Error("Bad block header in flate stream");var C=T;if(-1===(T=i.getByte()))throw new Error("Bad block header in flate stream");if((C|=T<<8)!==(65535&~_)&&(0!==_||0!==C))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var S=this.bufferLength;t=this.ensureBuffer(S+_);var M=S+_;if(this.bufferLength=M,0===_)-1===i.peekByte()&&(this.eof=!0);else for(var A=S;A<M;++A){if(-1===(T=i.getByte())){this.eof=!0;break}t[A]=T}}},e.prototype.getBits=function(t){for(var e,i=this.stream,n=this.codeSize,r=this.codeBuf;n<t;){if(-1===(e=i.getByte()))throw new Error("Bad encoding in flate stream");r|=e<<n,n+=8}return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,e},e.prototype.getCode=function(t){for(var e,i=this.stream,n=t[0],r=t[1],o=this.codeSize,s=this.codeBuf;o<r&&-1!==(e=i.getByte());)s|=e<<o,o+=8;var a=n[s&(1<<r)-1];"number"==typeof n&&console.log("FLATE:",a);var l=a>>16,h=65535&a;if(l<1||o<l)throw new Error("Bad encoding in flate stream");return this.codeBuf=s>>l,this.codeSize=o-l,h},e.prototype.generateHuffmanTable=function(t){var e,i=t.length,n=0;for(e=0;e<i;++e)t[e]>n&&(n=t[e]);for(var r=1<<n,o=new Int32Array(r),s=1,a=0,l=2;s<=n;++s,a<<=1,l<<=1)for(var h=0;h<i;++h)if(t[h]===s){var d=0,c=a;for(e=0;e<s;++e)d=d<<1|1&c,c>>=1;for(e=d;e<r;e+=l)o[e]=s<<16|h;++a}return[o,n]},e}(Ul);const $l=Jl;var th=function(t){function e(e,i,n){var r=t.call(this,i)||this;r.stream=e,r.cachedData=0,r.bitsCached=0;for(var o=4096,s={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},a=0;a<256;++a)s.dictionaryValues[a]=a,s.dictionaryLengths[a]=1;return r.lzwState=s,r}return Gr(e,t),e.prototype.readBlock=function(){var t,e,i,n=1024,r=this.lzwState;if(r){var o=r.earlyChange,s=r.nextCode,a=r.dictionaryValues,l=r.dictionaryLengths,h=r.dictionaryPrevCodes,d=r.codeLength,c=r.prevCode,u=r.currentSequence,f=r.currentSequenceLength,p=0,m=this.bufferLength,g=this.ensureBuffer(this.bufferLength+n);for(t=0;t<512;t++){var v=this.readBits(d),y=f>0;if(!v||v<256)u[0]=v,f=1;else{if(!(v>=258)){if(256===v){d=9,s=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(v<s)for(e=(f=l[v])-1,i=v;e>=0;e--)u[e]=a[i],i=h[i];else u[f++]=u[0]}if(y&&(h[s]=c,l[s]=l[c]+1,a[s]=u[0],d=++s+o&s+o-1?d:0|Math.min(Math.log(s+o)/.6931471805599453+1,12)),c=v,n<(p+=f)){do{n+=512}while(n<p);g=this.ensureBuffer(this.bufferLength+n)}for(e=0;e<f;e++)g[m++]=u[e]}r.nextCode=s,r.codeLength=d,r.prevCode=c,r.currentSequenceLength=f,this.bufferLength=m}},e.prototype.readBits=function(t){for(var e=this.bitsCached,i=this.cachedData;e<t;){var n=this.stream.getByte();if(-1===n)return this.eof=!0,null;i=i<<8|n,e+=8}return this.bitsCached=e-=t,this.cachedData=i,i>>>e&(1<<t)-1},e}(Ul);const eh=th;var ih=function(t){function e(e,i){var n=t.call(this,i)||this;return n.stream=e,n}return Gr(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var e,i=this.bufferLength,n=t[0];if(n<128){if((e=this.ensureBuffer(i+n+1))[i++]=t[1],n>0){var r=this.stream.getBytes(n);e.set(r,i),i+=n}}else{n=257-n;var o=t[1];e=this.ensureBuffer(i+n+1);for(var s=0;s<n;s++)e[i++]=o}this.bufferLength=i}},e}(Ul);const nh=ih;var rh=function(t,e,i){if(e===ba.of("FlateDecode"))return new $l(t);if(e===ba.of("LZWDecode")){var n=1;if(i instanceof Ea){var r=i.lookup(ba.of("EarlyChange"));r instanceof oa&&(n=r.asNumber())}return new eh(t,void 0,n)}if(e===ba.of("ASCII85Decode"))return new Wl(t);if(e===ba.of("ASCIIHexDecode"))return new Kl(t);if(e===ba.of("RunLengthDecode"))return new nh(t);throw new As(e.asString())},oh=function(t){var e=t.dict,i=t.contents,n=new ql(i),r=e.lookup(ba.of("Filter")),o=e.lookup(ba.of("DecodeParms"));if(r instanceof ba)n=rh(n,r,o);else if(r instanceof aa)for(var s=0,a=r.size();s<a;s++)n=rh(n,r.lookup(s,ba),o&&o.lookupMaybe(s,Ea));else if(r)throw new Ms([ba,aa],r);return n},sh=function(){function t(t,e,i){this.page=t;var n=null!=e?e:function(t){var e=t.MediaBox();return{left:0,bottom:0,right:e.lookup(2,oa).asNumber()-e.lookup(0,oa).asNumber(),top:e.lookup(3,oa).asNumber()-e.lookup(1,oa).asNumber()}}(t);this.width=n.right-n.left,this.height=n.top-n.bottom,this.boundingBox=n,this.transformationMatrix=null!=i?i:function(t){return[1,0,0,1,-t.left,-t.bottom]}(n)}return t.for=function(e,i,n){return Yr(this,void 0,void 0,function(){return Zr(this,function(r){return[2,new t(e,i,n)]})})},t.prototype.embedIntoContext=function(t,e){return Yr(this,void 0,void 0,function(){var i,n,r,o,s,a,l,h,d,c;return Zr(this,function(u){if(i=this.page.normalizedEntries(),n=i.Contents,r=i.Resources,!n)throw new Ls;return o=this.decodeContents(n),s=this.boundingBox,a=s.left,l=s.bottom,h=s.right,d=s.top,c=t.flateStream(o,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[a,l,h,d],Matrix:this.transformationMatrix,Resources:r}),e?(t.assign(e,c),[2,e]):[2,t.register(c)]})})},t.prototype.decodeContents=function(t){for(var e=Uint8Array.of(ta.Newline),i=[],n=0,r=t.size();n<r;n++){var o=t.lookup(n,Ta),s=void 0;if(o instanceof _a)s=oh(o).decode();else{if(!(o instanceof Ra))throw new Os(o);s=o.getUnencodedContents()}i.push(s,e)}return To.apply(void 0,i)},t}();const ah=sh;var lh,hh,dh,ch,uh=function(t,e){if(void 0!==t)return e[t]};!function(t){t.UseNone="UseNone",t.UseOutlines="UseOutlines",t.UseThumbs="UseThumbs",t.UseOC="UseOC"}(lh||(lh={})),function(t){t.L2R="L2R",t.R2L="R2L"}(hh||(hh={})),function(t){t.None="None",t.AppDefault="AppDefault"}(dh||(dh={})),function(t){t.Simplex="Simplex",t.DuplexFlipShortEdge="DuplexFlipShortEdge",t.DuplexFlipLongEdge="DuplexFlipLongEdge"}(ch||(ch={}));var fh=function(){function t(t){this.dict=t}return t.prototype.lookupBool=function(t){var e=this.dict.lookup(ba.of(t));if(e instanceof ha)return e},t.prototype.lookupName=function(t){var e=this.dict.lookup(ba.of(t));if(e instanceof ba)return e},t.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},t.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},t.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},t.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},t.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},t.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},t.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},t.prototype.Direction=function(){return this.lookupName("Direction")},t.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},t.prototype.Duplex=function(){return this.lookupName("Duplex")},t.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},t.prototype.PrintPageRange=function(){var t=this.dict.lookup(ba.of("PrintPageRange"));if(t instanceof aa)return t},t.prototype.NumCopies=function(){var t=this.dict.lookup(ba.of("NumCopies"));if(t instanceof oa)return t},t.prototype.getHideToolbar=function(){var t,e;return null!==(e=null===(t=this.HideToolbar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getHideMenubar=function(){var t,e;return null!==(e=null===(t=this.HideMenubar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getHideWindowUI=function(){var t,e;return null!==(e=null===(t=this.HideWindowUI())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getFitWindow=function(){var t,e;return null!==(e=null===(t=this.FitWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getCenterWindow=function(){var t,e;return null!==(e=null===(t=this.CenterWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getDisplayDocTitle=function(){var t,e;return null!==(e=null===(t=this.DisplayDocTitle())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},t.prototype.getNonFullScreenPageMode=function(){var t,e,i=null===(t=this.NonFullScreenPageMode())||void 0===t?void 0:t.decodeText();return null!==(e=uh(i,lh))&&void 0!==e?e:lh.UseNone},t.prototype.getReadingDirection=function(){var t,e,i=null===(t=this.Direction())||void 0===t?void 0:t.decodeText();return null!==(e=uh(i,hh))&&void 0!==e?e:hh.L2R},t.prototype.getPrintScaling=function(){var t,e,i=null===(t=this.PrintScaling())||void 0===t?void 0:t.decodeText();return null!==(e=uh(i,dh))&&void 0!==e?e:dh.AppDefault},t.prototype.getDuplex=function(){var t,e=null===(t=this.Duplex())||void 0===t?void 0:t.decodeText();return uh(e,ch)},t.prototype.getPickTrayByPDFSize=function(){var t;return null===(t=this.PickTrayByPDFSize())||void 0===t?void 0:t.asBoolean()},t.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var e=[],i=0;i<t.size();i+=2){var n=t.lookup(i,oa).asNumber(),r=t.lookup(i+1,oa).asNumber();e.push({start:n,end:r})}return e},t.prototype.getNumCopies=function(){var t,e;return null!==(e=null===(t=this.NumCopies())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setHideToolbar=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("HideToolbar"),e)},t.prototype.setHideMenubar=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("HideMenubar"),e)},t.prototype.setHideWindowUI=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("HideWindowUI"),e)},t.prototype.setFitWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("FitWindow"),e)},t.prototype.setCenterWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("CenterWindow"),e)},t.prototype.setDisplayDocTitle=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("DisplayDocTitle"),e)},t.prototype.setNonFullScreenPageMode=function(t){cs(t,"nonFullScreenPageMode",lh);var e=ba.of(t);this.dict.set(ba.of("NonFullScreenPageMode"),e)},t.prototype.setReadingDirection=function(t){cs(t,"readingDirection",hh);var e=ba.of(t);this.dict.set(ba.of("Direction"),e)},t.prototype.setPrintScaling=function(t){cs(t,"printScaling",dh);var e=ba.of(t);this.dict.set(ba.of("PrintScaling"),e)},t.prototype.setDuplex=function(t){cs(t,"duplex",ch);var e=ba.of(t);this.dict.set(ba.of("Duplex"),e)},t.prototype.setPickTrayByPDFSize=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("PickTrayByPDFSize"),e)},t.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0,n=t.length;i<n;i++)e.push(t[i].start),e.push(t[i].end);vs(e,"printPageRange",["number"]);var r=this.dict.context.obj(e);this.dict.set(ba.of("PrintPageRange"),r)},t.prototype.setNumCopies=function(t){ys(t,"numCopies",1,Number.MAX_VALUE),function(t,e){if(!Number.isInteger(t))throw new Error(hs(e)+" must be an integer, but was actually "+t)}(t,"numCopies");var e=this.dict.context.obj(t);this.dict.set(ba.of("NumCopies"),e)},t.fromDict=function(e){return new t(e)},t.create=function(e){return new t(e.obj({}))},t}();const ph=fh;var mh=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,gh=function(){function t(t,e){this.dict=t,this.ref=e}return t.prototype.T=function(){return this.dict.lookupMaybe(ba.of("T"),ml,al)},t.prototype.Ff=function(){var t=this.getInheritableAttribute(ba.of("Ff"));return this.dict.context.lookupMaybe(t,oa)},t.prototype.V=function(){var t=this.getInheritableAttribute(ba.of("V"));return this.dict.context.lookup(t)},t.prototype.Kids=function(){return this.dict.lookupMaybe(ba.of("Kids"),aa)},t.prototype.DA=function(){var t=this.dict.lookup(ba.of("DA"));if(t instanceof ml||t instanceof al)return t},t.prototype.setKids=function(t){this.dict.set(ba.of("Kids"),this.dict.context.obj(t))},t.prototype.getParent=function(){var e=this.dict.get(ba.of("Parent"));if(e instanceof Ma)return new t(this.dict.lookup(ba.of("Parent"),Ea),e)},t.prototype.setParent=function(t){t?this.dict.set(ba.of("Parent"),t):this.dict.delete(ba.of("Parent"))},t.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},t.prototype.getPartialName=function(){var t;return null===(t=this.T())||void 0===t?void 0:t.decodeText()},t.prototype.setPartialName=function(t){t?this.dict.set(ba.of("T"),al.fromText(t)):this.dict.delete(ba.of("T"))},t.prototype.setDefaultAppearance=function(t){this.dict.set(ba.of("DA"),ml.of(t))},t.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof al?t.decodeText():null==t?void 0:t.asString()},t.prototype.setFontSize=function(t){var e,i=null!==(e=this.getFullyQualifiedName())&&void 0!==e?e:"",n=this.getDefaultAppearance();if(!n)throw new js(i);var r=ko(n,mh);if(!r.match)throw new Hs(i);var o=n.slice(0,r.pos-r.match[0].length),s=r.pos<=n.length?n.slice(r.pos):"",a=o+" /"+r.match[1]+" "+t+" Tf "+s;this.setDefaultAppearance(a)},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.Ff())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(ba.of("Ff"),oa.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(i){e||(e=i.dict.get(t))}),e},t.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},t}();const vh=gh;var yh=function(){function t(t){this.dict=t}return t.prototype.W=function(){var t=this.dict.lookup(ba.of("W"));if(t instanceof oa)return t},t.prototype.getWidth=function(){var t,e;return null!==(e=null===(t=this.W())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setWidth=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("W"),e)},t.fromDict=function(e){return new t(e)},t}();const bh=yh;var xh=function(){function t(t){this.dict=t}return t.prototype.Rect=function(){return this.dict.lookup(ba.of("Rect"),aa)},t.prototype.AP=function(){return this.dict.lookupMaybe(ba.of("AP"),Ea)},t.prototype.F=function(){var t=this.dict.lookup(ba.of("F"));return this.dict.context.lookupMaybe(t,oa)},t.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:{x:0,y:0,width:0,height:0}},t.prototype.setRectangle=function(t){var e=t.x,i=t.y,n=t.width,r=t.height,o=this.dict.context.obj([e,i,e+n,i+r]);this.dict.set(ba.of("Rect"),o)},t.prototype.getAppearanceState=function(){var t=this.dict.lookup(ba.of("AS"));if(t instanceof ba)return t},t.prototype.setAppearanceState=function(t){this.dict.set(ba.of("AS"),t)},t.prototype.setAppearances=function(t){this.dict.set(ba.of("AP"),t)},t.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(ba.of("AP"),t)),t},t.prototype.getNormalAppearance=function(){var t=this.ensureAP().get(ba.of("N"));if(t instanceof Ma||t instanceof Ea)return t;throw new Error("Unexpected N type: "+(null==t?void 0:t.constructor.name))},t.prototype.setNormalAppearance=function(t){this.ensureAP().set(ba.of("N"),t)},t.prototype.setRolloverAppearance=function(t){this.ensureAP().set(ba.of("R"),t)},t.prototype.setDownAppearance=function(t){this.ensureAP().set(ba.of("D"),t)},t.prototype.removeRolloverAppearance=function(){var t=this.AP();null==t||t.delete(ba.of("R"))},t.prototype.removeDownAppearance=function(){var t=this.AP();null==t||t.delete(ba.of("D"))},t.prototype.getAppearances=function(){var t=this.AP();if(t)return{normal:t.lookup(ba.of("N"),Ea,Ta),rollover:t.lookupMaybe(ba.of("R"),Ea,Ta),down:t.lookupMaybe(ba.of("D"),Ea,Ta)}},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.F())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(ba.of("F"),oa.of(t))},t.prototype.hasFlag=function(t){return 0!==(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.fromDict=function(e){return new t(e)},t}();const wh=xh;var kh=function(){function t(t){this.dict=t}return t.prototype.R=function(){var t=this.dict.lookup(ba.of("R"));if(t instanceof oa)return t},t.prototype.BC=function(){var t=this.dict.lookup(ba.of("BC"));if(t instanceof aa)return t},t.prototype.BG=function(){var t=this.dict.lookup(ba.of("BG"));if(t instanceof aa)return t},t.prototype.CA=function(){var t=this.dict.lookup(ba.of("CA"));if(t instanceof al||t instanceof ml)return t},t.prototype.RC=function(){var t=this.dict.lookup(ba.of("RC"));if(t instanceof al||t instanceof ml)return t},t.prototype.AC=function(){var t=this.dict.lookup(ba.of("AC"));if(t instanceof al||t instanceof ml)return t},t.prototype.getRotation=function(){var t;return null===(t=this.R())||void 0===t?void 0:t.asNumber()},t.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var e=[],i=0,n=null==t?void 0:t.size();i<n;i++){var r=t.get(i);r instanceof oa&&e.push(r.asNumber())}return e}},t.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var e=[],i=0,n=null==t?void 0:t.size();i<n;i++){var r=t.get(i);r instanceof oa&&e.push(r.asNumber())}return e}},t.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),i=this.AC();return{normal:null==t?void 0:t.decodeText(),rollover:null==e?void 0:e.decodeText(),down:null==i?void 0:i.decodeText()}},t.prototype.setRotation=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("R"),e)},t.prototype.setBorderColor=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("BC"),e)},t.prototype.setBackgroundColor=function(t){var e=this.dict.context.obj(t);this.dict.set(ba.of("BG"),e)},t.prototype.setCaptions=function(t){var e=al.fromText(t.normal);if(this.dict.set(ba.of("CA"),e),t.rollover){var i=al.fromText(t.rollover);this.dict.set(ba.of("RC"),i)}else this.dict.delete(ba.of("RC"));if(t.down){var n=al.fromText(t.down);this.dict.set(ba.of("AC"),n)}else this.dict.delete(ba.of("AC"))},t.fromDict=function(e){return new t(e)},t}();const Eh=kh;var Nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.MK=function(){var t=this.dict.lookup(ba.of("MK"));if(t instanceof Ea)return t},e.prototype.BS=function(){var t=this.dict.lookup(ba.of("BS"));if(t instanceof Ea)return t},e.prototype.DA=function(){var t=this.dict.lookup(ba.of("DA"));if(t instanceof ml||t instanceof al)return t},e.prototype.P=function(){var t=this.dict.get(ba.of("P"));if(t instanceof Ma)return t},e.prototype.setP=function(t){this.dict.set(ba.of("P"),t)},e.prototype.setDefaultAppearance=function(t){this.dict.set(ba.of("DA"),ml.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof al?t.decodeText():null==t?void 0:t.asString()},e.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return Eh.fromDict(t)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return Eh.fromDict(t);var e=Eh.fromDict(this.dict.context.obj({}));return this.dict.set(ba.of("MK"),e.dict),e},e.prototype.getBorderStyle=function(){var t=this.BS();if(t)return bh.fromDict(t)},e.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return bh.fromDict(t);var e=bh.fromDict(this.dict.context.obj({}));return this.dict.set(ba.of("BS"),e.dict),e},e.prototype.getOnValue=function(){var t,e=null===(t=this.getAppearances())||void 0===t?void 0:t.normal;if(e instanceof Ea)for(var i=e.keys(),n=0,r=i.length;n<r;n++){var o=i[n];if(o!==ba.of("Off"))return o}},e.fromDict=function(t){return new e(t)},e.create=function(t,i){return new e(t.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:i}))},e}(wh);const Th=Nh;var _h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.FT=function(){var t=this.getInheritableAttribute(ba.of("FT"));return this.dict.context.lookup(t,ba)},e.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[Th.fromDict(this.dict)];for(var e=new Array(t.size()),i=0,n=t.size();i<n;i++){var r=t.lookup(i,Ea);e[i]=Th.fromDict(r)}return e},e.prototype.addWidget=function(t){this.normalizedEntries().Kids.push(t)},e.prototype.removeWidget=function(t){var e=this.Kids();if(e){if(t<0||t>e.size())throw new Bs(t,0,e.size());e.remove(t)}else{if(0!==t)throw new Bs(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(ba.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e}(vh);const Ch=_h;var Sh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(ba.of("Opt"),ml,al,aa)},e.prototype.setOpt=function(t){this.dict.set(ba.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof ml||t instanceof al)return[t];for(var e=[],i=0,n=t.size();i<n;i++){var r=t.lookup(i);(r instanceof ml||r instanceof al)&&e.push(r)}return e}},e.prototype.removeExportValue=function(t){var e=this.Opt();if(e)if(e instanceof ml||e instanceof al){if(0!==t)throw new Bs(t,0,0);this.setOpt([])}else{if(t<0||t>e.size())throw new Bs(t,0,e.size());e.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,e,i,n,r=null!==(t=this.getExportValues())&&void 0!==t?t:[],o=[],s=this.getWidgets(),a=0,l=s.length;a<l;a++){var h=s[a],d=null!==(e=r[a])&&void 0!==e?e:al.fromText(null!==(n=null===(i=h.getOnValue())||void 0===i?void 0:i.decodeText())&&void 0!==n?n:"");o.push(d)}this.setOpt(o)},e.prototype.addOpt=function(t,e){var i;this.normalizeExportValues();var n,r=t.decodeText();if(e)for(var o=null!==(i=this.getExportValues())&&void 0!==i?i:[],s=0,a=o.length;s<a;s++){o[s].decodeText()===r&&(n=s)}var l=this.Opt();return l.push(t),null!=n?n:l.size()-1},e.prototype.addWidgetWithOpt=function(t,e,i){var n=this.addOpt(e,i),r=ba.of(String(n));return this.addWidget(t),r},e}(Ch);const Mh=Sh;var Ah=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.setValue=function(t){var e;if(t!==(null!==(e=this.getOnValue())&&void 0!==e?e:ba.of("Yes"))&&t!==ba.of("Off"))throw new Ps;this.dict.set(ba.of("V"),t);for(var i=this.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n],s=o.getOnValue()===t?t:ba.of("Off");o.setAppearanceState(s)}},e.prototype.getValue=function(){var t=this.V();return t instanceof ba?t:ba.of("Off")},e.prototype.getOnValue=function(){var t=this.getWidgets()[0];return null==t?void 0:t.getOnValue()},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Btn",Kids:[]});return new e(i,t.register(i))},e}(Mh);const zh=Ah;var Lh,Oh,Fh,Dh,Rh=function(t){return 1<<t};!function(t){t[t.ReadOnly=Rh(0)]="ReadOnly",t[t.Required=Rh(1)]="Required",t[t.NoExport=Rh(2)]="NoExport"}(Lh||(Lh={})),function(t){t[t.NoToggleToOff=Rh(14)]="NoToggleToOff",t[t.Radio=Rh(15)]="Radio",t[t.PushButton=Rh(16)]="PushButton",t[t.RadiosInUnison=Rh(25)]="RadiosInUnison"}(Oh||(Oh={})),function(t){t[t.Multiline=Rh(12)]="Multiline",t[t.Password=Rh(13)]="Password",t[t.FileSelect=Rh(20)]="FileSelect",t[t.DoNotSpellCheck=Rh(22)]="DoNotSpellCheck",t[t.DoNotScroll=Rh(23)]="DoNotScroll",t[t.Comb=Rh(24)]="Comb",t[t.RichText=Rh(25)]="RichText"}(Fh||(Fh={})),function(t){t[t.Combo=Rh(17)]="Combo",t[t.Edit=Rh(18)]="Edit",t[t.Sort=Rh(19)]="Sort",t[t.MultiSelect=Rh(21)]="MultiSelect",t[t.DoNotSpellCheck=Rh(22)]="DoNotSpellCheck",t[t.CommitOnSelChange=Rh(26)]="CommitOnSelChange"}(Dh||(Dh={}));var Ih=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.setValues=function(t){if(this.hasFlag(Dh.Combo)&&!this.hasFlag(Dh.Edit)&&!this.valuesAreValid(t))throw new Ps;if(0===t.length&&this.dict.delete(ba.of("V")),1===t.length&&this.dict.set(ba.of("V"),t[0]),t.length>1){if(!this.hasFlag(Dh.MultiSelect))throw new Us;this.dict.set(ba.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),i=function(i,n){var r=t[i].decodeText();if(!e.find(function(t){return r===(t.display||t.value).decodeText()}))return{value:!1}},n=0,r=t.length;n<r;n++){var o=i(n);if("object"==typeof o)return o.value}return!0},e.prototype.updateSelectedIndices=function(t){if(t.length>1){for(var e=new Array(t.length),i=this.getOptions(),n=function(n,r){var o=t[n].decodeText();e[n]=i.findIndex(function(t){return o===(t.display||t.value).decodeText()})},r=0,o=t.length;r<o;r++)n(r);this.dict.set(ba.of("I"),this.dict.context.obj(e.sort()))}else this.dict.delete(ba.of("I"))},e.prototype.getValues=function(){var t=this.V();if(t instanceof ml||t instanceof al)return[t];if(t instanceof aa){for(var e=[],i=0,n=t.size();i<n;i++){var r=t.lookup(i);(r instanceof ml||r instanceof al)&&e.push(r)}return e}return[]},e.prototype.Opt=function(){return this.dict.lookupMaybe(ba.of("Opt"),ml,al,aa)},e.prototype.setOptions=function(t){for(var e=new Array(t.length),i=0,n=t.length;i<n;i++){var r=t[i],o=r.value,s=r.display;e[i]=this.dict.context.obj([o,s||o])}this.dict.set(ba.of("Opt"),this.dict.context.obj(e))},e.prototype.getOptions=function(){var t=this.Opt();if(t instanceof ml||t instanceof al)return[{value:t,display:t}];if(t instanceof aa){for(var e=[],i=0,n=t.size();i<n;i++){var r=t.lookup(i);if((r instanceof ml||r instanceof al)&&e.push({value:r,display:r}),r instanceof aa&&r.size()>0){var o=r.lookup(0,ml,al),s=r.lookupMaybe(1,ml,al);e.push({value:o,display:s||o})}}return e}return[]},e}(Ch);const qh=Ih;var Bh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Ch",Ff:Dh.Combo,Kids:[]});return new e(i,t.register(i))},e}(qh);const Ph=Bh;var Uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.addField=function(t){var e=this.normalizedEntries().Kids;null==e||e.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(ba.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({});return new e(i,t.register(i))},e}(vh);const jh=Uh;var Hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.fromDict=function(t,i){return new e(t,i)},e}(Ch);const Wh=Hh;var Vh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(ba.of("MaxLen"));if(t instanceof oa)return t},e.prototype.Q=function(){var t=this.dict.lookup(ba.of("Q"));if(t instanceof oa)return t},e.prototype.setMaxLength=function(t){this.dict.set(ba.of("MaxLen"),oa.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(ba.of("MaxLen"))},e.prototype.getMaxLength=function(){var t;return null===(t=this.MaxLen())||void 0===t?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(ba.of("Q"),oa.of(t))},e.prototype.getQuadding=function(){var t;return null===(t=this.Q())||void 0===t?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(ba.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(ba.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof ml||t instanceof al)return t},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Tx",Kids:[]});return new e(i,t.register(i))},e}(Ch);const Kh=Vh;var Gh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Btn",Ff:Oh.PushButton,Kids:[]});return new e(i,t.register(i))},e}(Mh);const Xh=Gh;var Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==ba.of("Off"))throw new Ps;this.dict.set(ba.of("V"),t);for(var e=this.getWidgets(),i=0,n=e.length;i<n;i++){var r=e[i],o=r.getOnValue()===t?t:ba.of("Off");r.setAppearanceState(o)}},e.prototype.getValue=function(){var t=this.V();return t instanceof ba?t:ba.of("Off")},e.prototype.getOnValues=function(){for(var t=this.getWidgets(),e=[],i=0,n=t.length;i<n;i++){var r=t[i].getOnValue();r&&e.push(r)}return e},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Btn",Ff:Oh.Radio,Kids:[]});return new e(i,t.register(i))},e}(Mh);const Zh=Yh;var Qh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Ch",Kids:[]});return new e(i,t.register(i))},e}(qh);const Jh=Qh;var $h=function(t){if(!t)return[];for(var e=[],i=0,n=t.size();i<n;i++){var r=t.get(i),o=t.lookup(i);r instanceof Ma&&o instanceof Ea&&e.push([td(o,r),r])}return e},td=function(t,e){return ed(t)?jh.fromDict(t,e):id(t,e)},ed=function(t){var e=t.lookup(ba.of("Kids"));if(e instanceof aa)for(var i=0,n=e.size();i<n;i++){var r=e.lookup(i);if(r instanceof Ea&&r.has(ba.of("T")))return!0}return!1},id=function(t,e){var i=sd(t,ba.of("FT")),n=t.context.lookup(i,ba);return n===ba.of("Btn")?nd(t,e):n===ba.of("Ch")?rd(t,e):n===ba.of("Tx")?Kh.fromDict(t,e):n===ba.of("Sig")?Wh.fromDict(t,e):Ch.fromDict(t,e)},nd=function(t,e){var i,n=sd(t,ba.of("Ff")),r=t.context.lookupMaybe(n,oa),o=null!==(i=null==r?void 0:r.asNumber())&&void 0!==i?i:0;return od(o,Oh.PushButton)?Xh.fromDict(t,e):od(o,Oh.Radio)?Zh.fromDict(t,e):zh.fromDict(t,e)},rd=function(t,e){var i,n=sd(t,ba.of("Ff")),r=t.context.lookupMaybe(n,oa),o=null!==(i=null==r?void 0:r.asNumber())&&void 0!==i?i:0;return od(o,Dh.Combo)?Ph.fromDict(t,e):Jh.fromDict(t,e)},od=function(t,e){return 0!==(t&e)},sd=function(t,e){var i;return ad(t,function(t){i||(i=t.get(e))}),i},ad=function(t,e){e(t);var i=t.lookupMaybe(ba.of("Parent"),Ea);i&&ad(i,e)},ld=function(){function t(t){this.dict=t}return t.prototype.Fields=function(){var t=this.dict.lookup(ba.of("Fields"));if(t instanceof aa)return t},t.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,e=new Array(t.size()),i=0,n=t.size();i<n;i++){var r=t.get(i),o=t.lookup(i,Ea);e[i]=[td(o,r),r]}return e},t.prototype.getAllFields=function(){var t=[],e=function(i){if(i)for(var n=0,r=i.length;n<r;n++){var o=i[n];t.push(o);var s=o[0];s instanceof jh&&e($h(s.Kids()))}};return e(this.getFields()),t},t.prototype.addField=function(t){var e=this.normalizedEntries().Fields;null==e||e.push(t)},t.prototype.removeField=function(t){var e=t.getParent(),i=void 0===e?this.normalizedEntries().Fields:e.Kids(),n=null==i?void 0:i.indexOf(t.ref);if(void 0===i||void 0===n)throw new Error("Tried to remove inexistent field "+t.getFullyQualifiedName());i.remove(n),void 0!==e&&0===i.size()&&this.removeField(e)},t.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(ba.of("Fields"),t)),{Fields:t}},t.fromDict=function(e){return new t(e)},t.create=function(e){return new t(e.obj({Fields:[]}))},t}();const hd=ld;var dd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.Pages=function(){return this.lookup(ba.of("Pages"),Ea)},e.prototype.AcroForm=function(){return this.lookupMaybe(ba.of("AcroForm"),Ea)},e.prototype.getAcroForm=function(){var t=this.AcroForm();if(t)return hd.fromDict(t)},e.prototype.getOrCreateAcroForm=function(){var t=this.getAcroForm();if(!t){t=hd.create(this.context);var e=this.context.register(t.dict);this.set(ba.of("AcroForm"),e)}return t},e.prototype.ViewerPreferences=function(){return this.lookupMaybe(ba.of("ViewerPreferences"),Ea)},e.prototype.getViewerPreferences=function(){var t=this.ViewerPreferences();if(t)return ph.fromDict(t)},e.prototype.getOrCreateViewerPreferences=function(){var t=this.getViewerPreferences();if(!t){t=ph.create(this.context);var e=this.context.register(t.dict);this.set(ba.of("ViewerPreferences"),e)}return t},e.prototype.insertLeafNode=function(t,e){var i=this.get(ba.of("Pages"));return this.Pages().insertLeafNode(t,e)||i},e.prototype.removeLeafNode=function(t){this.Pages().removeLeafNode(t)},e.withContextAndPages=function(t,i){var n=new Map;return n.set(ba.of("Type"),ba.of("Catalog")),n.set(ba.of("Pages"),i),new e(n,t)},e.fromMapWithContext=function(t,i){return new e(t,i)},e}(Ea);const cd=dd;var ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.Parent=function(){return this.lookup(ba.of("Parent"))},e.prototype.Kids=function(){return this.lookup(ba.of("Kids"),aa)},e.prototype.Count=function(){return this.lookup(ba.of("Count"),oa)},e.prototype.pushTreeNode=function(t){this.Kids().push(t)},e.prototype.pushLeafNode=function(t){var e=this.Kids();this.insertLeafKid(e.size(),t)},e.prototype.insertLeafNode=function(t,i){var n=this.Kids(),r=this.Count().asNumber();if(i>r)throw new Is(i,r);for(var o=i,s=0,a=n.size();s<a;s++){if(0===o)return void this.insertLeafKid(s,t);var l=n.get(s),h=this.context.lookup(l);if(h instanceof e){if(h.Count().asNumber()>o)return h.insertLeafNode(t,o)||l;o-=h.Count().asNumber()}h instanceof ja&&(o-=1)}if(0!==o)throw new qs(i,"insertLeafNode");this.insertLeafKid(n.size(),t)},e.prototype.removeLeafNode=function(t,i){void 0===i&&(i=!0);var n=this.Kids(),r=this.Count().asNumber();if(t>=r)throw new Is(t,r);for(var o=t,s=0,a=n.size();s<a;s++){var l=n.get(s),h=this.context.lookup(l);if(h instanceof e){if(h.Count().asNumber()>o)return h.removeLeafNode(o,i),void(i&&0===h.Kids().size()&&n.remove(s));o-=h.Count().asNumber()}if(h instanceof ja){if(0===o)return void this.removeKid(s);o-=1}}throw new qs(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.traverse=function(t){for(var i=this.Kids(),n=0,r=i.size();n<r;n++){var o=i.get(n),s=this.context.lookup(o);s instanceof e&&s.traverse(t),t(s,o)}},e.prototype.insertLeafKid=function(t,e){var i=this.Kids();this.ascend(function(t){var e=t.Count().asNumber()+1;t.set(ba.of("Count"),oa.of(e))}),i.insert(t,e)},e.prototype.removeKid=function(t){var e=this.Kids();e.lookup(t)instanceof ja&&this.ascend(function(t){var e=t.Count().asNumber()-1;t.set(ba.of("Count"),oa.of(e))}),e.remove(t)},e.withContext=function(t,i){var n=new Map;return n.set(ba.of("Type"),ba.of("Pages")),n.set(ba.of("Kids"),t.obj([])),n.set(ba.of("Count"),t.obj(0)),i&&n.set(ba.of("Parent"),i),new e(n,t)},e.fromMapWithContext=function(t,i){return new e(t,i)},e}(Ea);const fd=ud;var pd=new Uint8Array(256);pd[ta.Zero]=1,pd[ta.One]=1,pd[ta.Two]=1,pd[ta.Three]=1,pd[ta.Four]=1,pd[ta.Five]=1,pd[ta.Six]=1,pd[ta.Seven]=1,pd[ta.Eight]=1,pd[ta.Nine]=1;var md=new Uint8Array(256);md[ta.Period]=1,md[ta.Plus]=1,md[ta.Minus]=1;for(var gd=new Uint8Array(256),vd=0;vd<256;vd++)gd[vd]=pd[vd]||md[vd]?1:0;var yd=ta.Newline,bd=ta.CarriageReturn,xd=function(){function t(t,e){void 0===e&&(e=!1),this.bytes=t,this.capNumbers=e}return t.prototype.parseRawInt=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!pd[e])break;t+=lo(this.bytes.next())}var i=Number(t);if(!t||!isFinite(i))throw new Ws(this.bytes.position(),t);return i},t.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(!gd[e])break;if(t+=lo(this.bytes.next()),e===ta.Period)break}for(;!this.bytes.done();){e=this.bytes.peek();if(!pd[e])break;t+=lo(this.bytes.next())}var i=Number(t);if(!t||!isFinite(i))throw new Ws(this.bytes.position(),t);if(i>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var n="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(n),Number.MAX_SAFE_INTEGER}n="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(n)}return i},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&ca[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===yd||t===bd)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==ta.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===yd||t===bd)return!0;this.bytes.next()}return!0},t.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},t.prototype.matchKeyword=function(t){for(var e=this.bytes.offset(),i=0,n=t.length;i<n;i++)if(this.bytes.done()||this.bytes.next()!==t[i])return this.bytes.moveTo(e),!1;return!0},t}();const wd=xd;const kd=function(){function t(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return t.prototype.moveTo=function(t){this.idx=t},t.prototype.next=function(){var t=this.bytes[this.idx++];return t===ta.Newline?(this.line+=1,this.column=0):this.column+=1,t},t.prototype.assertNext=function(t){if(this.peek()!==t)throw new Ks(this.position(),t,this.peek());return this.next()},t.prototype.peek=function(){return this.bytes[this.idx]},t.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},t.prototype.peekAt=function(t){return this.bytes[t]},t.prototype.done=function(){return this.idx>=this.length},t.prototype.offset=function(){return this.idx},t.prototype.slice=function(t,e){return this.bytes.slice(t,e)},t.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},t.of=function(e){return new t(e)},t.fromPDFRawStream=function(e){return t.of(oh(e).decode())},t}();var Ed=ta.Space,Nd=ta.CarriageReturn,Td=ta.Newline,_d=[ta.s,ta.t,ta.r,ta.e,ta.a,ta.m],Cd=[ta.e,ta.n,ta.d,ta.s,ta.t,ta.r,ta.e,ta.a,ta.m],Sd={header:[ta.Percent,ta.P,ta.D,ta.F,ta.Dash],eof:[ta.Percent,ta.Percent,ta.E,ta.O,ta.F],obj:[ta.o,ta.b,ta.j],endobj:[ta.e,ta.n,ta.d,ta.o,ta.b,ta.j],xref:[ta.x,ta.r,ta.e,ta.f],trailer:[ta.t,ta.r,ta.a,ta.i,ta.l,ta.e,ta.r],startxref:[ta.s,ta.t,ta.a,ta.r,ta.t,ta.x,ta.r,ta.e,ta.f],true:[ta.t,ta.r,ta.u,ta.e],false:[ta.f,ta.a,ta.l,ta.s,ta.e],null:[ta.n,ta.u,ta.l,ta.l],stream:_d,streamEOF1:Qr(_d,[Ed,Nd,Td]),streamEOF2:Qr(_d,[Nd,Td]),streamEOF3:Qr(_d,[Nd]),streamEOF4:Qr(_d,[Td]),endstream:Cd,EOF1endstream:Qr([Nd,Td],Cd),EOF2endstream:Qr([Nd],Cd),EOF3endstream:Qr([Td],Cd)};const Md=function(t){function e(e,i,n){void 0===n&&(n=!1);var r=t.call(this,e,n)||this;return r.context=i,r}return Gr(e,t),e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sd.true))return ha.True;if(this.matchKeyword(Sd.false))return ha.False;if(this.matchKeyword(Sd.null))return wa;var t=this.bytes.peek();if(t===ta.LessThan&&this.bytes.peekAhead(1)===ta.LessThan)return this.parseDictOrStream();if(t===ta.LessThan)return this.parseHexString();if(t===ta.LeftParen)return this.parseString();if(t===ta.ForwardSlash)return this.parseName();if(t===ta.LeftSquareBracket)return this.parseArray();if(gd[t])return this.parseNumberOrRef();throw new Gs(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var e=this.bytes.offset();if(pd[this.bytes.peek()]){var i=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===ta.R)return this.bytes.assertNext(ta.R),Ma.of(t,i)}return this.bytes.moveTo(e),oa.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(ta.LessThan);!this.bytes.done()&&this.bytes.peek()!==ta.GreaterThan;)t+=lo(this.bytes.next());return this.bytes.assertNext(ta.GreaterThan),al.of(t)},e.prototype.parseString=function(){for(var t=0,e=!1,i="";!this.bytes.done();){var n=this.bytes.next();if(i+=lo(n),e||(n===ta.LeftParen&&(t+=1),n===ta.RightParen&&(t-=1)),n===ta.BackSlash?e=!e:e&&(e=!1),0===t)return ml.of(i.substring(1,i.length-1))}throw new Zs(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(ta.ForwardSlash);for(var t="";!this.bytes.done();){var e=this.bytes.peek();if(ca[e]||da[e])break;t+=lo(e),this.bytes.next()}return ba.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(ta.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=aa.withContext(this.context);this.bytes.peek()!==ta.RightSquareBracket;){var e=this.parseObject();t.push(e),this.skipWhitespaceAndComments()}return this.bytes.assertNext(ta.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(ta.LessThan),this.bytes.assertNext(ta.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==ta.GreaterThan&&this.bytes.peekAhead(1)!==ta.GreaterThan;){var e=this.parseName(),i=this.parseObject();t.set(e,i),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(ta.GreaterThan),this.bytes.assertNext(ta.GreaterThan);var n=t.get(ba.of("Type"));return n===ba.of("Catalog")?cd.fromMapWithContext(t,this.context):n===ba.of("Pages")?fd.fromMapWithContext(t,this.context):n===ba.of("Page")?ja.fromMapWithContext(t,this.context):Ea.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t=this.bytes.position(),e=this.parseDict();if(this.skipWhitespaceAndComments(),!(this.matchKeyword(Sd.streamEOF1)||this.matchKeyword(Sd.streamEOF2)||this.matchKeyword(Sd.streamEOF3)||this.matchKeyword(Sd.streamEOF4)||this.matchKeyword(Sd.stream)))return e;var i,n=this.bytes.offset(),r=e.get(ba.of("Length"));r instanceof oa?(i=n+r.asNumber(),this.bytes.moveTo(i),this.skipWhitespaceAndComments(),this.matchKeyword(Sd.endstream)||(this.bytes.moveTo(n),i=this.findEndOfStreamFallback(t))):i=this.findEndOfStreamFallback(t);var o=this.bytes.slice(n,i);return _a.of(e,o)},e.prototype.findEndOfStreamFallback=function(t){for(var e=1,i=this.bytes.offset();!this.bytes.done()&&(i=this.bytes.offset(),this.matchKeyword(Sd.stream)?e+=1:this.matchKeyword(Sd.EOF1endstream)||this.matchKeyword(Sd.EOF2endstream)||this.matchKeyword(Sd.EOF3endstream)||this.matchKeyword(Sd.endstream)?e-=1:this.bytes.next(),0!==e););if(0!==e)throw new Ys(t);return i},e.forBytes=function(t,i,n){return new e(kd.of(t),i,n)},e.forByteStream=function(t,i,n){return void 0===n&&(n=!1),new e(t,i,n)},e}(wd);var Ad=function(t){function e(e,i){var n=t.call(this,kd.fromPDFRawStream(e),e.dict.context)||this,r=e.dict;return n.alreadyParsed=!1,n.shouldWaitForTick=i||function(){return!1},n.firstOffset=r.lookup(ba.of("First"),oa).asNumber(),n.objectCount=r.lookup(ba.of("N"),oa).asNumber(),n}return Gr(e,t),e.prototype.parseIntoContext=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n,r,o,s,a;return Zr(this,function(l){switch(l.label){case 0:if(this.alreadyParsed)throw new zs("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),e=0,i=t.length,l.label=1;case 1:return e<i?(n=t[e],r=n.objectNumber,o=n.offset,this.bytes.moveTo(this.firstOffset+o),s=this.parseObject(),a=Ma.of(r,0),this.context.assign(a,s),this.shouldWaitForTick()?[4,Ao()]:[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},e.prototype.parseOffsetsAndObjectNumbers=function(){for(var t=[],e=0,i=this.objectCount;e<i;e++){this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.parseRawInt();t.push({objectNumber:n,offset:r})}return t},e.forStream=function(t,i){return new e(t,i)},e}(Md);const zd=Ad;var Ld=function(){function t(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=kd.fromPDFRawStream(t),this.context=this.dict.context;var e=this.dict.lookup(ba.of("Size"),oa),i=this.dict.lookup(ba.of("Index"));if(i instanceof aa){this.subsections=[];for(var n=0,r=i.size();n<r;n+=2){var o=i.lookup(n+0,oa).asNumber(),s=i.lookup(n+1,oa).asNumber();this.subsections.push({firstObjectNumber:o,length:s})}}else this.subsections=[{firstObjectNumber:0,length:e.asNumber()}];var a=this.dict.lookup(ba.of("W"),aa);this.byteWidths=[-1,-1,-1];for(n=0,r=a.size();n<r;n++)this.byteWidths[n]=a.lookup(n,oa).asNumber()}return t.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new zs("PDFXRefStreamParser","parseIntoContext");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(ba.of("Root")),Encrypt:this.dict.get(ba.of("Encrypt")),Info:this.dict.get(ba.of("Info")),ID:this.dict.get(ba.of("ID"))},this.parseEntries()},t.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,i=e[0],n=e[1],r=e[2],o=0,s=this.subsections.length;o<s;o++)for(var a=this.subsections[o],l=a.firstObjectNumber,h=a.length,d=0;d<h;d++){for(var c=0,u=0,f=i;u<f;u++)c=c<<8|this.bytes.next();var p=0;for(u=0,f=n;u<f;u++)p=p<<8|this.bytes.next();var m=0;for(u=0,f=r;u<f;u++)m=m<<8|this.bytes.next();0===i&&(c=1);var g=l+d,v={ref:Ma.of(g,m),offset:p,deleted:0===c,inObjectStream:2===c};t.push(v)}return t},t.forStream=function(e){return new t(e)},t}();const Od=Ld;var Fd=function(t){function e(e,i,n,r){void 0===i&&(i=1/0),void 0===n&&(n=!1),void 0===r&&(r=!1);var o=t.call(this,kd.of(e),Pa.create(),r)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick===0},o.objectsPerTick=i,o.throwOnInvalidObject=n,o}return Gr(e,t),e.prototype.parseDocument=function(){return Yr(this,void 0,void 0,function(){var t,e;return Zr(this,function(i){switch(i.label){case 0:if(this.alreadyParsed)throw new zs("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),i.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(i.sent(),(e=this.bytes.offset())===t)throw new Qs(this.bytes.position());return t=e,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Ma.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(Ma.of(0))),[2,this.context]}})})},e.prototype.maybeRecoverRoot=function(){var t=function(t){return t instanceof Ea&&t.lookup(ba.of("Type"))===ba.of("Catalog")};if(!t(this.context.lookup(this.context.trailerInfo.Root)))for(var e=this.context.enumerateIndirectObjects(),i=0,n=e.length;i<n;i++){var r=e[i],o=r[0];t(r[1])&&(this.context.trailerInfo.Root=o)}},e.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(Sd.header)){var t=this.parseRawInt();this.bytes.assertNext(ta.Period);var e=this.parseRawInt(),i=na.forVersion(t,e);return this.skipBinaryHeaderComment(),i}this.bytes.next()}throw new Js(this.bytes.position())},e.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var t=this.parseRawInt();this.skipWhitespaceAndComments();var e=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Sd.obj))throw new $s(this.bytes.position(),Sd.obj);return Ma.of(t,e)},e.prototype.matchIndirectObjectHeader=function(){var t=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch(e){return this.bytes.moveTo(t),!1}},e.prototype.parseIndirectObject=function(){return Yr(this,void 0,void 0,function(){var t,e;return Zr(this,function(i){switch(i.label){case 0:return t=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),e=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(Sd.endobj),e instanceof _a&&e.dict.lookup(ba.of("Type"))===ba.of("ObjStm")?[4,zd.forStream(e,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return i.sent(),[3,3];case 2:e instanceof _a&&e.dict.lookup(ba.of("Type"))===ba.of("XRef")?Od.forStream(e).parseIntoContext():this.context.assign(t,e),i.label=3;case 3:return[2,t]}})})},e.prototype.tryToParseInvalidIndirectObject=function(){var t=this.bytes.position(),e="Trying to parse invalid object: "+JSON.stringify(t)+")";if(this.throwOnInvalidObject)throw new Error(e);console.warn(e);var i=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+i),this.skipWhitespaceAndComments();for(var n=this.bytes.offset(),r=!0;!this.bytes.done()&&(this.matchKeyword(Sd.endobj)&&(r=!1),r);)this.bytes.next();if(r)throw new Xs(t);var o=this.bytes.offset()-Sd.endobj.length,s=tl.of(this.bytes.slice(n,o));return this.context.assign(i,s),i},e.prototype.parseIndirectObjects=function(){return Yr(this,void 0,void 0,function(){var t;return Zr(this,function(e){switch(e.label){case 0:this.skipWhitespaceAndComments(),e.label=1;case 1:if(this.bytes.done()||!pd[this.bytes.peek()])return[3,8];t=this.bytes.offset(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return e.sent(),[3,5];case 4:return e.sent(),this.bytes.moveTo(t),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,Ao()]:[3,7];case 6:e.sent(),e.label=7;case 7:return[3,1];case 8:return[2]}})})},e.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sd.xref)){this.skipWhitespaceAndComments();for(var t=-1,e=Ka.createEmpty();!this.bytes.done()&&pd[this.bytes.peek()];){var i=this.parseRawInt();this.skipWhitespaceAndComments();var n=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.bytes.peek();if(r===ta.n||r===ta.f){var o=Ma.of(t,n);this.bytes.next()===ta.n?e.addEntry(o,i):e.addDeletedEntry(o,i),t+=1}else t=i;this.skipWhitespaceAndComments()}return e}},e.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sd.trailer)){this.skipWhitespaceAndComments();var t=this.parseDict(),e=this.context;e.trailerInfo={Root:t.get(ba.of("Root"))||e.trailerInfo.Root,Encrypt:t.get(ba.of("Encrypt"))||e.trailerInfo.Encrypt,Info:t.get(ba.of("Info"))||e.trailerInfo.Info,ID:t.get(ba.of("ID"))||e.trailerInfo.ID}}},e.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sd.startxref)){this.skipWhitespaceAndComments();var t=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(Sd.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Sd.eof),this.skipWhitespaceAndComments(),Ga.forLastCrossRefSectionOffset(t)}},e.prototype.parseDocumentSection=function(){return Yr(this,void 0,void 0,function(){return Zr(this,function(t){switch(t.label){case 0:return[4,this.parseIndirectObjects()];case 1:return t.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}})})},e.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var t=this.bytes.offset(),e=this.bytes.peek();if(e>=ta.Space&&e<=ta.Tilde&&(this.matchKeyword(Sd.xref)||this.matchKeyword(Sd.trailer)||this.matchKeyword(Sd.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch(t){this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,i,n,r){return new e(t,i,n,r)},e}(Md);const Dd=Fd;var Rd,Id=function(t){return 1<<t};!function(t){t[t.Invisible=Id(0)]="Invisible",t[t.Hidden=Id(1)]="Hidden",t[t.Print=Id(2)]="Print",t[t.NoZoom=Id(3)]="NoZoom",t[t.NoRotate=Id(4)]="NoRotate",t[t.NoView=Id(5)]="NoView",t[t.ReadOnly=Id(6)]="ReadOnly",t[t.Locked=Id(7)]="Locked",t[t.ToggleNoView=Id(8)]="ToggleNoView",t[t.LockedContents=Id(9)]="LockedContents"}(Rd||(Rd={}));var qd,Bd=function(t){return t instanceof ba?t:ba.of(t)},Pd=function(t){return t instanceof oa?t:oa.of(t)},Ud=function(t){return t instanceof oa?t.asNumber():t};!function(t){t.Degrees="degrees",t.Radians="radians"}(qd||(qd={}));var jd,Hd=function(t){return ms(t,"degreeAngle",["number"]),{type:qd.Degrees,angle:t}},Wd=qd.Radians,Vd=qd.Degrees,Kd=function(t){return t*Math.PI/180},Gd=function(t){return t.type===Wd?t.angle:t.type===Vd?Kd(t.angle):Wo("Invalid rotation: "+JSON.stringify(t))},Xd=function(t){return t.type===Wd?180*t.angle/Math.PI:t.type===Vd?t.angle:Wo("Invalid rotation: "+JSON.stringify(t))},Yd=function(t){void 0===t&&(t=0);var e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},Zd=function(t,e){void 0===e&&(e=0);var i=Yd(e);return 90===i||270===i?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Qd=function(){return za.of(Oa.ClipNonZero)},Jd=Math.cos,$d=Math.sin,tc=Math.tan,ec=function(t,e,i,n,r,o){return za.of(Oa.ConcatTransformationMatrix,[Pd(t),Pd(e),Pd(i),Pd(n),Pd(r),Pd(o)])},ic=function(t,e){return ec(1,0,0,1,t,e)},nc=function(t,e){return ec(t,0,0,e,0,0)},rc=function(t){return ec(Jd(Ud(t)),$d(Ud(t)),-$d(Ud(t)),Jd(Ud(t)),0,0)},oc=function(t){return rc(Kd(Ud(t)))},sc=function(t,e){return ec(1,tc(Ud(t)),tc(Ud(e)),1,0,0)},ac=function(t,e){return za.of(Oa.SetLineDashPattern,["["+t.map(Pd).join(" ")+"]",Pd(e)])};!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"}(jd||(jd={}));var lc,hc=function(t){return za.of(Oa.SetLineCapStyle,[Pd(t)])};!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(lc||(lc={}));var dc,cc=function(t){return za.of(Oa.SetGraphicsStateParams,[Bd(t)])},uc=function(){return za.of(Oa.PushGraphicsState)},fc=function(){return za.of(Oa.PopGraphicsState)},pc=function(t){return za.of(Oa.SetLineWidth,[Pd(t)])},mc=function(t,e,i,n,r,o){return za.of(Oa.AppendBezierCurve,[Pd(t),Pd(e),Pd(i),Pd(n),Pd(r),Pd(o)])},gc=function(t,e,i,n){return za.of(Oa.CurveToReplicateInitialPoint,[Pd(t),Pd(e),Pd(i),Pd(n)])},vc=function(){return za.of(Oa.ClosePath)},yc=function(t,e){return za.of(Oa.MoveTo,[Pd(t),Pd(e)])},bc=function(t,e){return za.of(Oa.LineTo,[Pd(t),Pd(e)])},xc=function(){return za.of(Oa.StrokePath)},wc=function(){return za.of(Oa.FillNonZero)},kc=function(){return za.of(Oa.FillNonZeroAndStroke)},Ec=function(){return za.of(Oa.EndPath)},Nc=function(){return za.of(Oa.NextLine)},Tc=function(t){return za.of(Oa.ShowText,[t])},_c=function(){return za.of(Oa.BeginText)},Cc=function(){return za.of(Oa.EndText)},Sc=function(t,e){return za.of(Oa.SetFontAndSize,[Bd(t),Pd(e)])};!function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"}(dc||(dc={}));var Mc,Ac=function(t,e,i,n,r){return o=Jd(Ud(t)),s=$d(Ud(t))+tc(Ud(e)),a=-$d(Ud(t))+tc(Ud(i)),l=Jd(Ud(t)),h=n,d=r,za.of(Oa.SetTextMatrix,[Pd(o),Pd(s),Pd(a),Pd(l),Pd(h),Pd(d)]);var o,s,a,l,h,d},zc=function(t){return za.of(Oa.DrawObject,[Bd(t)])},Lc=function(t){return za.of(Oa.BeginMarkedContent,[Bd(t)])},Oc=function(){return za.of(Oa.EndMarkedContent)};!function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"}(Mc||(Mc={}));var Fc,Dc=function(t){return ys(t,"gray",0,1),{type:Mc.Grayscale,gray:t}},Rc=function(t,e,i){return ys(t,"red",0,1),ys(e,"green",0,1),ys(i,"blue",0,1),{type:Mc.RGB,red:t,green:e,blue:i}},Ic=function(t,e,i,n){return ys(t,"cyan",0,1),ys(e,"magenta",0,1),ys(i,"yellow",0,1),ys(n,"key",0,1),{type:Mc.CMYK,cyan:t,magenta:e,yellow:i,key:n}},qc=Mc.Grayscale,Bc=Mc.RGB,Pc=Mc.CMYK,Uc=function(t){return t.type===qc?(l=t.gray,za.of(Oa.NonStrokingColorGray,[Pd(l)])):t.type===Bc?(o=t.red,s=t.green,a=t.blue,za.of(Oa.NonStrokingColorRgb,[Pd(o),Pd(s),Pd(a)])):t.type===Pc?(e=t.cyan,i=t.magenta,n=t.yellow,r=t.key,za.of(Oa.NonStrokingColorCmyk,[Pd(e),Pd(i),Pd(n),Pd(r)])):Wo("Invalid color: "+JSON.stringify(t));var e,i,n,r,o,s,a,l},jc=function(t){return t.type===qc?(l=t.gray,za.of(Oa.StrokingColorGray,[Pd(l)])):t.type===Bc?(o=t.red,s=t.green,a=t.blue,za.of(Oa.StrokingColorRgb,[Pd(o),Pd(s),Pd(a)])):t.type===Pc?(e=t.cyan,i=t.magenta,n=t.yellow,r=t.key,za.of(Oa.StrokingColorCmyk,[Pd(e),Pd(i),Pd(n),Pd(r)])):Wo("Invalid color: "+JSON.stringify(t));var e,i,n,r,o,s,a,l},Hc=function(t,e){return void 0===e&&(e=1),1===(null==t?void 0:t.length)?Dc(t[0]*e):3===(null==t?void 0:t.length)?Rc(t[0]*e,t[1]*e,t[2]*e):4===(null==t?void 0:t.length)?Ic(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},Wc=function(t){return t.type===qc?[t.gray]:t.type===Bc?[t.red,t.green,t.blue]:t.type===Pc?[t.cyan,t.magenta,t.yellow,t.key]:Wo("Invalid color: "+JSON.stringify(t))},Vc=0,Kc=0,Gc=0,Xc=0,Yc=0,Zc=0,Qc=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),Jc={M:function(t){return Vc=t[0],Kc=t[1],Gc=Xc=null,Yc=Vc,Zc=Kc,yc(Vc,Kc)},m:function(t){return Vc+=t[0],Kc+=t[1],Gc=Xc=null,Yc=Vc,Zc=Kc,yc(Vc,Kc)},C:function(t){return Vc=t[4],Kc=t[5],Gc=t[2],Xc=t[3],mc(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=mc(t[0]+Vc,t[1]+Kc,t[2]+Vc,t[3]+Kc,t[4]+Vc,t[5]+Kc);return Gc=Vc+t[2],Xc=Kc+t[3],Vc+=t[4],Kc+=t[5],e},S:function(t){null!==Gc&&null!==Xc||(Gc=Vc,Xc=Kc);var e=mc(Vc-(Gc-Vc),Kc-(Xc-Kc),t[0],t[1],t[2],t[3]);return Gc=t[0],Xc=t[1],Vc=t[2],Kc=t[3],e},s:function(t){null!==Gc&&null!==Xc||(Gc=Vc,Xc=Kc);var e=mc(Vc-(Gc-Vc),Kc-(Xc-Kc),Vc+t[0],Kc+t[1],Vc+t[2],Kc+t[3]);return Gc=Vc+t[0],Xc=Kc+t[1],Vc+=t[2],Kc+=t[3],e},Q:function(t){return Gc=t[0],Xc=t[1],Vc=t[2],Kc=t[3],gc(t[0],t[1],Vc,Kc)},q:function(t){var e=gc(t[0]+Vc,t[1]+Kc,t[2]+Vc,t[3]+Kc);return Gc=Vc+t[0],Xc=Kc+t[1],Vc+=t[2],Kc+=t[3],e},T:function(t){null===Gc||null===Xc?(Gc=Vc,Xc=Kc):(Gc=Vc-(Gc-Vc),Xc=Kc-(Xc-Kc));var e=gc(Gc,Xc,t[0],t[1]);return Gc=Vc-(Gc-Vc),Xc=Kc-(Xc-Kc),Vc=t[0],Kc=t[1],e},t:function(t){null===Gc||null===Xc?(Gc=Vc,Xc=Kc):(Gc=Vc-(Gc-Vc),Xc=Kc-(Xc-Kc));var e=gc(Gc,Xc,Vc+t[0],Kc+t[1]);return Vc+=t[0],Kc+=t[1],e},A:function(t){var e=$c(Vc,Kc,t);return Vc=t[5],Kc=t[6],e},a:function(t){t[5]+=Vc,t[6]+=Kc;var e=$c(Vc,Kc,t);return Vc=t[5],Kc=t[6],e},L:function(t){return Vc=t[0],Kc=t[1],Gc=Xc=null,bc(Vc,Kc)},l:function(t){return Vc+=t[0],Kc+=t[1],Gc=Xc=null,bc(Vc,Kc)},H:function(t){return Vc=t[0],Gc=Xc=null,bc(Vc,Kc)},h:function(t){return Vc+=t[0],Gc=Xc=null,bc(Vc,Kc)},V:function(t){return Kc=t[0],Gc=Xc=null,bc(Vc,Kc)},v:function(t){return Kc+=t[0],Gc=Xc=null,bc(Vc,Kc)},Z:function(){var t=vc();return Vc=Yc,Kc=Zc,t},z:function(){var t=vc();return Vc=Yc,Kc=Zc,t}},$c=function(t,e,i){for(var n=i[0],r=i[1],o=i[2],s=i[3],a=i[4],l=i[5],h=i[6],d=[],c=0,u=tu(l,h,n,r,s,a,o,t,e);c<u.length;c++){var f=u[c],p=eu.apply(void 0,f);d.push(mc.apply(void 0,p))}return d},tu=function(t,e,i,n,r,o,s,a,l){var h=s*(Math.PI/180),d=Math.sin(h),c=Math.cos(h);i=Math.abs(i),n=Math.abs(n);var u=(Gc=c*(a-t)*.5+d*(l-e)*.5)*Gc/(i*i)+(Xc=c*(l-e)*.5-d*(a-t)*.5)*Xc/(n*n);u>1&&(i*=u=Math.sqrt(u),n*=u);var f=c/i,p=d/i,m=-d/n,g=c/n,v=f*a+p*l,y=m*a+g*l,b=f*t+p*e,x=m*t+g*e,w=1/((b-v)*(b-v)+(x-y)*(x-y))-.25;w<0&&(w=0);var k=Math.sqrt(w);o===r&&(k=-k);var E=.5*(v+b)-k*(x-y),N=.5*(y+x)+k*(b-v),T=Math.atan2(y-N,v-E),_=Math.atan2(x-N,b-E)-T;_<0&&1===o?_+=2*Math.PI:_>0&&0===o&&(_-=2*Math.PI);for(var C=Math.ceil(Math.abs(_/(.5*Math.PI+.001))),S=[],M=0;M<C;M++){var A=T+M*_/C,z=T+(M+1)*_/C;S[M]=[E,N,A,z,i,n,d,c]}return S},eu=function(t,e,i,n,r,o,s,a){var l=a*r,h=-s*o,d=s*r,c=a*o,u=.5*(n-i),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=t+Math.cos(i)-f*Math.sin(i),m=e+Math.sin(i)+f*Math.cos(i),g=t+Math.cos(n),v=e+Math.sin(n),y=g+f*Math.sin(n),b=v-f*Math.cos(n);return[l*p+h*m,d*p+c*m,l*y+h*b,d*y+c*b,l*g+h*v,d*g+c*v]},iu=function(t){return function(t){Vc=Kc=Gc=Xc=Yc=Zc=0;for(var e=[],i=0;i<t.length;i++){var n=t[i];if(n.cmd&&"function"==typeof Jc[n.cmd]){var r=Jc[n.cmd](n.args);Array.isArray(r)?e=e.concat(r):e.push(r)}}return e}(function(t){for(var e,i=[],n=[],r="",o=!1,s=0,a=0,l=t;a<l.length;a++){var h=l[a];if(Qc.has(h))s=Qc.get(h),e&&(r.length>0&&(n[n.length]=+r),i[i.length]={cmd:e,args:n},n=[],r="",o=!1),e=h;else if([" ",","].includes(h)||"-"===h&&r.length>0&&"e"!==r[r.length-1]||"."===h&&o){if(0===r.length)continue;n.length===s?(i[i.length]={cmd:e,args:n},n=[+r],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+r,o="."===h,r=["-","."].includes(h)?h:""}else r+=h,"."===h&&(o=!0)}return r.length>0&&(n.length===s?(i[i.length]={cmd:e,args:n},n=[+r],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+r),i[i.length]={cmd:e,args:n},i}(t))},nu=function(t,e){return[uc(),e.graphicsState&&cc(e.graphicsState),ic(e.x,e.y),rc(Gd(e.rotate)),nc(e.width,e.height),sc(Gd(e.xSkew),Gd(e.ySkew)),zc(t),fc()].filter(Boolean)},ru=function(t){var e,i;return[uc(),t.graphicsState&&cc(t.graphicsState),t.color&&Uc(t.color),t.borderColor&&jc(t.borderColor),pc(t.borderWidth),t.borderLineCap&&hc(t.borderLineCap),ac(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(i=t.borderDashPhase)&&void 0!==i?i:0),ic(t.x,t.y),rc(Gd(t.rotate)),sc(Gd(t.xSkew),Gd(t.ySkew)),yc(0,0),bc(0,t.height),bc(t.width,t.height),bc(t.width,0),vc(),t.color&&t.borderWidth?kc():t.color?wc():t.borderColor?xc():vc(),fc()].filter(Boolean)},ou=(Math.sqrt(2)-1)/3*4,su=function(t){var e,i,n;return Qr([uc(),t.graphicsState&&cc(t.graphicsState),t.color&&Uc(t.color),t.borderColor&&jc(t.borderColor),pc(t.borderWidth),t.borderLineCap&&hc(t.borderLineCap),ac(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(i=t.borderDashPhase)&&void 0!==i?i:0)],void 0===t.rotate?function(t){var e=Ud(t.x),i=Ud(t.y),n=Ud(t.xScale),r=Ud(t.yScale),o=n*ou,s=r*ou,a=(e-=n)+2*n,l=(i-=r)+2*r,h=e+n,d=i+r;return[uc(),yc(e,d),mc(e,d-s,h-o,i,h,i),mc(h+o,i,a,d-s,a,d),mc(a,d+s,h+o,l,h,l),mc(h-o,l,e,d+s,e,d),fc()]}({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale}):function(t){var e=Ud(t.x),i=Ud(t.y),n=Ud(t.xScale),r=Ud(t.yScale),o=-n,s=-r,a=n*ou,l=r*ou,h=o+2*n,d=s+2*r,c=o+n,u=s+r;return[ic(e,i),rc(Gd(t.rotate)),yc(o,u),mc(o,u-l,c-a,s,c,s),mc(c+a,s,h,u-l,h,u),mc(h,u+l,c+a,d,c,d),mc(c-a,d,o,u+l,o,u)]}({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale,rotate:null!==(n=t.rotate)&&void 0!==n?n:Hd(0)}),[t.color&&t.borderWidth?kc():t.color?wc():t.borderColor?xc():vc(),fc()]).filter(Boolean)},au=function(t){return 0===t.rotation?[ic(0,0),oc(0)]:90===t.rotation?[ic(t.width,0),oc(90)]:180===t.rotation?[ic(t.width,t.height),oc(180)]:270===t.rotation?[ic(0,t.height),oc(270)]:[]},lu=function(t){var e=ru({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)});if(!t.filled)return e;var i=Ud(t.width),n=Ud(t.height),r=function(t){var e=Ud(t.size),i=-.25,n=-.49,r=-.675,o=.3995/.965+n;return[uc(),t.color&&jc(t.color),pc(t.thickness),ic(t.x,t.y),yc(r*e,o*e),bc(i*e,n*e),bc(.69*e,.475*e),xc(),fc()].filter(Boolean)}({x:i/2,y:n/2,size:Math.min(i,n)/2,thickness:t.thickness,color:t.markColor});return Qr([uc()],e,r,[fc()])},hu=function(t){var e=Ud(t.width),i=Ud(t.height),n=Math.min(e,i)/2,r=su({x:t.x,y:t.y,xScale:n,yScale:n,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return r;var o=su({x:t.x,y:t.y,xScale:.45*n,yScale:.45*n,color:t.dotColor,borderColor:void 0,borderWidth:0});return Qr([uc()],r,o,[fc()])},du=function(t){var e=Ud(t.x),i=Ud(t.y),n=Ud(t.width),r=Ud(t.height),o=ru({x:e,y:i,width:n,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}),s=cu(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)});return Qr([uc()],o,s,[fc()])},cu=function(t,e){for(var i=[_c(),Uc(e.color),Sc(e.font,e.size)],n=0,r=t.length;n<r;n++){var o=t[n],s=o.encoded,a=o.x,l=o.y;i.push(Ac(Gd(e.rotate),Gd(e.xSkew),Gd(e.ySkew),a,l),Tc(s))}return i.push(Cc()),i},uu=function(t){var e=Ud(t.x),i=Ud(t.y),n=Ud(t.width),r=Ud(t.height),o=Ud(t.borderWidth),s=Ud(t.padding),a=e+o/2+s,l=i+o/2+s,h=n-2*(o/2+s),d=r-2*(o/2+s),c=[yc(a,l),bc(a,l+d),bc(a+h,l+d),bc(a+h,l),vc(),Qd(),Ec()],u=ru({x:e,y:i,width:n,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}),f=cu(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}),p=Qr([Lc("Tx"),uc()],f,[fc(),Oc()]);return Qr([uc()],u,c,p,[fc()])},fu=function(t){function e(){return t.call(this,"Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")||this}return Gr(e,t),e}(Error),pu=function(t){function e(){return t.call(this,"Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")||this}return Gr(e,t),e}(Error),mu=function(t){function e(){return t.call(this,"A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")||this}return Gr(e,t),e}(Error),gu=function(t){function e(){return t.call(this,"PDFDocument has no pages so `PDFDocument.removePage` cannot be called")||this}return Gr(e,t),e}(Error),vu=function(t){function e(e){var i='PDFDocument has no form field with the name "'+e+'"';return t.call(this,i)||this}return Gr(e,t),e}(Error),yu=function(t){function e(e,i,n){var r,o,s='Expected field "'+e+'" to be of type '+(null==i?void 0:i.name)+", but it is actually of type "+(null!==(o=null===(r=null==n?void 0:n.constructor)||void 0===r?void 0:r.name)&&void 0!==o?o:n);return t.call(this,s)||this}return Gr(e,t),e}(Error),bu=(function(t){function e(e){var i='Failed to select check box due to missing onValue: "'+e+'"';return t.call(this,i)||this}Gr(e,t)}(Error),function(t){function e(e){var i='A field already exists with the specified name: "'+e+'"';return t.call(this,i)||this}return Gr(e,t),e}(Error)),xu=function(t){function e(e){var i='Field name contains invalid component: "'+e+'"';return t.call(this,i)||this}return Gr(e,t),e}(Error),wu=(function(t){function e(e){var i='A non-terminal field already exists with the specified name: "'+e+'"';return t.call(this,i)||this}Gr(e,t)}(Error),function(t){function e(e){var i="Reading rich text fields is not supported: Attempted to read rich text field: "+e;return t.call(this,i)||this}return Gr(e,t),e}(Error)),ku=function(t){function e(e,i){var n="Failed to layout combed text as lineLength="+e+" is greater than cellCount="+i;return t.call(this,n)||this}return Gr(e,t),e}(Error),Eu=function(t){function e(e,i,n){var r="Attempted to set text with length="+e+" for TextField with maxLength="+i+" and name="+n;return t.call(this,r)||this}return Gr(e,t),e}(Error),Nu=function(t){function e(e,i,n){var r="Attempted to set maxLength="+i+", which is less than "+e+", the length of this field's current value (name="+n+")";return t.call(this,r)||this}return Gr(e,t),e}(Error);!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Fc||(Fc={}));var Tu=function(t,e,i,n){void 0===n&&(n=!1);for(var r=4;r<500;){for(var o=0,s=0,a=t.length;s<a;s++){o+=1;for(var l=t[s].split(" "),h=i.width,d=0,c=l.length;d<c;d++){var u=d===c-1?l[d]:l[d]+" ",f=e.widthOfTextAtSize(u,r);(h-=f)<=0&&(o+=1,h=i.width-f)}}if(!n&&o>t.length)return r-1;var p=e.heightAtSize(r);if((p+.2*p)*o>Math.abs(i.height))return r-1;r+=1}return r},_u=function(t,e,i,n){for(var r=i.width/n,o=i.height,s=4,a=function(t){for(var e=[],i=0,n=t.length;i<n;){var r=yo(t,i),o=r[0],s=r[1];e.push(o),i+=s}return e}(t);s<500;){for(var l=0,h=a.length;l<h;l++){var d=a[l];if(e.widthOfTextAtSize(d,s)>.75*r)return s-1}if(e.heightAtSize(s,{descender:!1})>o)return s-1;s+=1}return s},Cu=function(t){for(var e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},Su=function(t,e,i,n){for(var r,o=t.length;o>0;){var s=t.substring(0,o),a=i.encodeText(s),l=i.widthOfTextAtSize(s,n);if(l<e)return{line:s,encoded:a,width:l,remainder:t.substring(o)||void 0};o=null!==(r=Cu(s))&&void 0!==r?r:0}return{line:t,encoded:i.encodeText(t),width:i.widthOfTextAtSize(t,n),remainder:void 0}},Mu=function(t,e){var i=e.alignment,n=e.fontSize,r=e.font,o=e.bounds,s=go(fo(t));void 0!==n&&0!==n||(n=Tu(s,r,o,!0));for(var a=r.heightAtSize(n),l=a+.2*a,h=[],d=o.x,c=o.y,u=o.x+o.width,f=o.y+o.height,p=o.y+o.height,m=0,g=s.length;m<g;m++)for(var v=s[m];void 0!==v;){var y=Su(v,o.width,r,n),b=y.line,x=y.encoded,w=y.width,k=y.remainder,E=i===Fc.Left?o.x:i===Fc.Center?o.x+o.width/2-w/2:i===Fc.Right?o.x+o.width-w:o.x;E<d&&(d=E),(p-=l)<c&&(c=p),E+w>u&&(u=E+w),p+a>f&&(f=p+a),h.push({text:b,encoded:x,width:w,height:a,x:E,y:p}),v=null==k?void 0:k.trim()}return{fontSize:n,lineHeight:l,lines:h,bounds:{x:d,y:c,width:u-d,height:f-c}}},Au=function(t,e){var i=e.alignment,n=e.fontSize,r=e.font,o=e.bounds,s=vo(fo(t));void 0!==n&&0!==n||(n=Tu([s],r,o));var a=r.encodeText(s),l=r.widthOfTextAtSize(s,n),h=r.heightAtSize(n,{descender:!1}),d=i===Fc.Left?o.x:i===Fc.Center?o.x+o.width/2-l/2:i===Fc.Right?o.x+o.width-l:o.x,c=o.y+(o.height/2-h/2);return{fontSize:n,line:{text:s,encoded:a,width:l,height:h,x:d,y:c},bounds:{x:d,y:c,width:l,height:h}}},zu=function(t){return"normal"in t?t:{normal:t}},Lu=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,Ou=function(t){var e,i,n=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",r=null!==(i=ko(n,Lu).match)&&void 0!==i?i:[],o=Number(r[2]);return isFinite(o)?o:void 0},Fu=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,Du=function(t){var e,i=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",n=ko(i,Fu).match,r=null!=n?n:[],o=r[1],s=r[2],a=r[3],l=r[4],h=r[5];return"g"===h&&o?Dc(Number(o)):"rg"===h&&o&&s&&a?Rc(Number(o),Number(s),Number(a)):"k"===h&&o&&s&&a&&l?Ic(Number(o),Number(s),Number(a),Number(l)):void 0},Ru=function(t,e,i,n){var r;void 0===n&&(n=0);var o=[Uc(e).toString(),Sc(null!==(r=null==i?void 0:i.name)&&void 0!==r?r:"dummy__noop",n).toString()].join("\n");t.setDefaultAppearance(o)},Iu=function(t,e){var i,n,r,o=Du(e),s=Du(t.acroField),a=e.getRectangle(),l=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),d=null!==(i=null==h?void 0:h.getWidth())&&void 0!==i?i:0,c=Yd(null==l?void 0:l.getRotation()),u=Zd(a,c),f=u.width,p=u.height,m=au(Xr(Xr({},a),{rotation:c})),g=Rc(0,0,0),v=null!==(n=Hc(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:g,y=Hc(null==l?void 0:l.getBackgroundColor()),b=Hc(null==l?void 0:l.getBackgroundColor(),.8),x=null!==(r=null!=o?o:s)&&void 0!==r?r:g;Ru(o?e:t.acroField,x);var w={x:0+d/2,y:0+d/2,width:f-d,height:p-d,thickness:1.5,borderWidth:d,borderColor:v,markColor:x};return{normal:{on:Qr(m,lu(Xr(Xr({},w),{color:y,filled:!0}))),off:Qr(m,lu(Xr(Xr({},w),{color:y,filled:!1})))},down:{on:Qr(m,lu(Xr(Xr({},w),{color:b,filled:!0}))),off:Qr(m,lu(Xr(Xr({},w),{color:b,filled:!1})))}}},qu=function(t,e){var i,n,r,o=Du(e),s=Du(t.acroField),a=e.getRectangle(),l=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),d=null!==(i=null==h?void 0:h.getWidth())&&void 0!==i?i:0,c=Yd(null==l?void 0:l.getRotation()),u=Zd(a,c),f=u.width,p=u.height,m=au(Xr(Xr({},a),{rotation:c})),g=Rc(0,0,0),v=null!==(n=Hc(null==l?void 0:l.getBorderColor()))&&void 0!==n?n:g,y=Hc(null==l?void 0:l.getBackgroundColor()),b=Hc(null==l?void 0:l.getBackgroundColor(),.8),x=null!==(r=null!=o?o:s)&&void 0!==r?r:g;Ru(o?e:t.acroField,x);var w={x:f/2,y:p/2,width:f-d,height:p-d,borderWidth:d,borderColor:v,dotColor:x};return{normal:{on:Qr(m,hu(Xr(Xr({},w),{color:y,filled:!0}))),off:Qr(m,hu(Xr(Xr({},w),{color:y,filled:!1})))},down:{on:Qr(m,hu(Xr(Xr({},w),{color:b,filled:!0}))),off:Qr(m,hu(Xr(Xr({},w),{color:b,filled:!1})))}}},Bu=function(t,e,i){var n,r,o,s,a,l=Du(e),h=Du(t.acroField),d=Ou(e),c=Ou(t.acroField),u=e.getRectangle(),f=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),m=null==f?void 0:f.getCaptions(),g=null!==(n=null==m?void 0:m.normal)&&void 0!==n?n:"",v=null!==(o=null!==(r=null==m?void 0:m.down)&&void 0!==r?r:g)&&void 0!==o?o:"",y=null!==(s=null==p?void 0:p.getWidth())&&void 0!==s?s:0,b=Yd(null==f?void 0:f.getRotation()),x=Zd(u,b),w=x.width,k=x.height,E=au(Xr(Xr({},u),{rotation:b})),N=Rc(0,0,0),T=Hc(null==f?void 0:f.getBorderColor()),_=Hc(null==f?void 0:f.getBackgroundColor()),C=Hc(null==f?void 0:f.getBackgroundColor(),.8),S={x:y,y,width:w-2*y,height:k-2*y},M=Au(g,{alignment:Fc.Center,fontSize:null!=d?d:c,font:i,bounds:S}),A=Au(v,{alignment:Fc.Center,fontSize:null!=d?d:c,font:i,bounds:S}),z=Math.min(M.fontSize,A.fontSize),L=null!==(a=null!=l?l:h)&&void 0!==a?a:N;Ru(l||void 0!==d?e:t.acroField,L,i,z);var O={x:0+y/2,y:0+y/2,width:w-y,height:k-y,borderWidth:y,borderColor:T,textColor:L,font:i.name,fontSize:z};return{normal:Qr(E,du(Xr(Xr({},O),{color:_,textLines:[M.line]}))),down:Qr(E,du(Xr(Xr({},O),{color:C,textLines:[A.line]})))}},Pu=function(t,e,i){var n,r,o,s,a,l,h=Du(e),d=Du(t.acroField),c=Ou(e),u=Ou(t.acroField),f=e.getRectangle(),p=e.getAppearanceCharacteristics(),m=e.getBorderStyle(),g=null!==(n=t.getText())&&void 0!==n?n:"",v=null!==(r=null==m?void 0:m.getWidth())&&void 0!==r?r:0,y=Yd(null==p?void 0:p.getRotation()),b=Zd(f,y),x=b.width,w=b.height,k=au(Xr(Xr({},f),{rotation:y})),E=Rc(0,0,0),N=Hc(null==p?void 0:p.getBorderColor()),T=Hc(null==p?void 0:p.getBackgroundColor()),_=t.isCombed()?0:1,C={x:v+_,y:v+_,width:x-2*(v+_),height:w-2*(v+_)};if(t.isMultiline())a=(S=Mu(g,{alignment:t.getAlignment(),fontSize:null!=c?c:u,font:i,bounds:C})).lines,l=S.fontSize;else if(t.isCombed()){var S=function(t,e){var i=e.fontSize,n=e.font,r=e.bounds,o=e.cellCount,s=vo(fo(t));if(s.length>o)throw new ku(s.length,o);void 0!==i&&0!==i||(i=_u(s,n,r,o));for(var a=r.width/o,l=n.heightAtSize(i,{descender:!1}),h=r.y+(r.height/2-l/2),d=[],c=r.x,u=r.y,f=r.x+r.width,p=r.y+r.height,m=0,g=0;m<o;){var v=yo(s,g),y=v[0],b=v[1],x=n.encodeText(y),w=n.widthOfTextAtSize(y,i),k=r.x+(a*m+a/2)-w/2;k<c&&(c=k),h<u&&(u=h),k+w>f&&(f=k+w),h+l>p&&(p=h+l),d.push({text:s,encoded:x,width:w,height:l,x:k,y:h}),m+=1,g+=b}return{fontSize:i,cells:d,bounds:{x:c,y:u,width:f-c,height:p-u}}}(g,{fontSize:null!=c?c:u,font:i,bounds:C,cellCount:null!==(o=t.getMaxLength())&&void 0!==o?o:0});a=S.cells,l=S.fontSize}else{a=[(S=Au(g,{alignment:t.getAlignment(),fontSize:null!=c?c:u,font:i,bounds:C})).line],l=S.fontSize}var M=null!==(s=null!=h?h:d)&&void 0!==s?s:E;Ru(h||void 0!==c?e:t.acroField,M,i,l);var A={x:0+v/2,y:0+v/2,width:x-v,height:w-v,borderWidth:null!=v?v:0,borderColor:N,textColor:M,font:i.name,fontSize:l,color:T,textLines:a,padding:_};return Qr(k,uu(A))},Uu=function(t,e,i){var n,r,o,s=Du(e),a=Du(t.acroField),l=Ou(e),h=Ou(t.acroField),d=e.getRectangle(),c=e.getAppearanceCharacteristics(),u=e.getBorderStyle(),f=null!==(n=t.getSelected()[0])&&void 0!==n?n:"",p=null!==(r=null==u?void 0:u.getWidth())&&void 0!==r?r:0,m=Yd(null==c?void 0:c.getRotation()),g=Zd(d,m),v=g.width,y=g.height,b=au(Xr(Xr({},d),{rotation:m})),x=Rc(0,0,0),w=Hc(null==c?void 0:c.getBorderColor()),k=Hc(null==c?void 0:c.getBackgroundColor()),E={x:p+1,y:p+1,width:v-2*(p+1),height:y-2*(p+1)},N=Au(f,{alignment:Fc.Left,fontSize:null!=l?l:h,font:i,bounds:E}),T=N.line,_=N.fontSize,C=null!==(o=null!=s?s:a)&&void 0!==o?o:x;Ru(s||void 0!==l?e:t.acroField,C,i,_);var S={x:0+p/2,y:0+p/2,width:v-p,height:y-p,borderWidth:null!=p?p:0,borderColor:w,textColor:C,font:i.name,fontSize:_,color:k,textLines:[T],padding:1};return Qr(b,uu(S))},ju=function(t,e,i){var n,r,o=Du(e),s=Du(t.acroField),a=Ou(e),l=Ou(t.acroField),h=e.getRectangle(),d=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),u=null!==(n=null==c?void 0:c.getWidth())&&void 0!==n?n:0,f=Yd(null==d?void 0:d.getRotation()),p=Zd(h,f),m=p.width,g=p.height,v=au(Xr(Xr({},h),{rotation:f})),y=Rc(0,0,0),b=Hc(null==d?void 0:d.getBorderColor()),x=Hc(null==d?void 0:d.getBackgroundColor()),w=t.getOptions(),k=t.getSelected();t.isSorted()&&w.sort();for(var E="",N=0,T=w.length;N<T;N++)E+=w[N],N<T-1&&(E+="\n");var _={x:u+1,y:u+1,width:m-2*(u+1),height:g-2*(u+1)},C=Mu(E,{alignment:Fc.Left,fontSize:null!=a?a:l,font:i,bounds:_}),S=C.lines,M=C.fontSize,A=C.lineHeight,z=[];for(N=0,T=S.length;N<T;N++){var L=S[N];k.includes(L.text)&&z.push(N)}var O=Rc(.6,193/255,218/255),F=null!==(r=null!=o?o:s)&&void 0!==r?r:y;return Ru(o||void 0!==a?e:t.acroField,F,i,M),Qr(v,function(t){for(var e=Ud(t.x),i=Ud(t.y),n=Ud(t.width),r=Ud(t.height),o=Ud(t.lineHeight),s=Ud(t.borderWidth),a=Ud(t.padding),l=e+s/2+a,h=i+s/2+a,d=n-2*(s/2+a),c=r-2*(s/2+a),u=[yc(l,h),bc(l,h+c),bc(l+d,h+c),bc(l+d,h),vc(),Qd(),Ec()],f=ru({x:e,y:i,width:n,height:r,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}),p=[],m=0,g=t.selectedLines.length;m<g;m++){var v=t.textLines[t.selectedLines[m]];p.push.apply(p,ru({x:v.x-a,y:v.y-(o-v.height)/2,width:n-s,height:v.height+(o-v.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}))}var y=cu(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)}),b=Qr([Lc("Tx"),uc()],y,[fc(),Oc()]);return Qr([uc()],f,p,u,b,[fc()])}({x:0+u/2,y:0+u/2,width:m-u,height:g-u,borderWidth:null!=u?u:0,borderColor:b,textColor:F,font:i.name,fontSize:M,color:x,textLines:S,lineHeight:A,selectedColor:O,selectedLines:z,padding:1}))};const Hu=function(){function t(t,e,i){this.alreadyEmbedded=!1,ms(t,"ref",[[Ma,"PDFRef"]]),ms(e,"doc",[[Ef,"PDFDocument"]]),ms(i,"embedder",[[ah,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=i.width,this.height=i.height,this.embedder=i}return t.prototype.scale=function(t){return ms(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return Yr(this,void 0,void 0,function(){return Zr(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},t.of=function(e,i,n){return new t(e,i,n)},t}();var Wu=function(){function t(t,e,i){this.modified=!0,ms(t,"ref",[[Ma,"PDFRef"]]),ms(e,"doc",[[Ef,"PDFDocument"]]),ms(i,"embedder",[[vl,"CustomFontEmbedder"],[hl,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=i.fontName,this.embedder=i}return t.prototype.encodeText=function(t){return ms(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},t.prototype.widthOfTextAtSize=function(t,e){return ms(t,"text",["string"]),ms(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)},t.prototype.heightAtSize=function(t,e){var i;return ms(t,"size",["number"]),gs(null==e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(i=null==e?void 0:e.descender)||void 0===i||i})},t.prototype.sizeAtHeight=function(t){return ms(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},t.prototype.getCharacterSet=function(){return this.embedder instanceof hl?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return Yr(this,void 0,void 0,function(){return Zr(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},t.of=function(e,i,n){return new t(e,i,n)},t}();const Vu=Wu;var Ku=function(){function t(t,e,i){ms(t,"ref",[[Ma,"PDFRef"]]),ms(e,"doc",[[Ef,"PDFDocument"]]),ms(i,"embedder",[[Cl,"JpegEmbedder"],[Il,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=i.width,this.height=i.height,this.embedder=i}return t.prototype.scale=function(t){return ms(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.scaleToFit=function(t,e){ms(t,"width",["number"]),ms(e,"height",["number"]);var i=t/this.width,n=e/this.height,r=Math.min(i,n);return this.scale(r)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return Yr(this,void 0,void 0,function(){var t,e,i;return Zr(this,function(n){switch(n.label){case 0:return this.embedder?(this.embedTask||(e=(t=this).doc,i=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,i)),[4,this.embedTask]):[2];case 1:return n.sent(),this.embedder=void 0,[2]}})})},t.of=function(e,i,n){return new t(e,i,n)},t}();const Gu=Ku;var Xu;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Xu||(Xu={}));var Yu=function(t){gs(null==t?void 0:t.x,"options.x",["number"]),gs(null==t?void 0:t.y,"options.y",["number"]),gs(null==t?void 0:t.width,"options.width",["number"]),gs(null==t?void 0:t.height,"options.height",["number"]),gs(null==t?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),gs(null==t?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),gs(null==t?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),gs(null==t?void 0:t.borderWidth,"options.borderWidth",["number"]),gs(null==t?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])},Zu=function(){function t(t,e,i){ms(t,"acroField",[[Ch,"PDFAcroTerminal"]]),ms(e,"ref",[[Ma,"PDFRef"]]),ms(i,"doc",[[Ef,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=i}return t.prototype.getName=function(){var t;return null!==(t=this.acroField.getFullyQualifiedName())&&void 0!==t?t:""},t.prototype.isReadOnly=function(){return this.acroField.hasFlag(Lh.ReadOnly)},t.prototype.enableReadOnly=function(){this.acroField.setFlagTo(Lh.ReadOnly,!0)},t.prototype.disableReadOnly=function(){this.acroField.setFlagTo(Lh.ReadOnly,!1)},t.prototype.isRequired=function(){return this.acroField.hasFlag(Lh.Required)},t.prototype.enableRequired=function(){this.acroField.setFlagTo(Lh.Required,!0)},t.prototype.disableRequired=function(){this.acroField.setFlagTo(Lh.Required,!1)},t.prototype.isExported=function(){return!this.acroField.hasFlag(Lh.NoExport)},t.prototype.enableExporting=function(){this.acroField.setFlagTo(Lh.NoExport,!1)},t.prototype.disableExporting=function(){this.acroField.setFlagTo(Lh.NoExport,!0)},t.prototype.needsAppearancesUpdate=function(){throw new Cs(this.constructor.name,"needsAppearancesUpdate")},t.prototype.defaultUpdateAppearances=function(t){throw new Cs(this.constructor.name,"defaultUpdateAppearances")},t.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},t.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},t.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},t.prototype.createWidget=function(t){var e,i=t.textColor,n=t.backgroundColor,r=t.borderColor,o=t.borderWidth,s=Xd(t.rotate),a=t.caption,l=t.x,h=t.y,d=t.width+o,c=t.height+o,u=Boolean(t.hidden),f=t.page;xs(s,"degreesAngle",90);var p=Th.create(this.doc.context,this.ref),m=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var n=t.x,r=t.y,o=t.width,s=t.height,a=Yd(i),l=e/2;return 0===a?{x:n-l,y:r-l,width:o,height:s}:90===a?{x:n-s+l,y:r-l,width:s,height:o}:180===a?{x:n-o+l,y:r-s+l,width:o,height:s}:270===a?{x:n-l,y:r-o+l,width:s,height:o}:{x:n-l,y:r-l,width:o,height:s}}({x:l,y:h,width:d,height:c},o,s);p.setRectangle(m),f&&p.setP(f);var g=p.getOrCreateAppearanceCharacteristics();n&&g.setBackgroundColor(Wc(n)),g.setRotation(s),a&&g.setCaptions({normal:a}),r&&g.setBorderColor(Wc(r));var v=p.getOrCreateBorderStyle();if(void 0!==o&&v.setWidth(o),p.setFlagTo(Rd.Print,!0),p.setFlagTo(Rd.Hidden,u),p.setFlagTo(Rd.Invisible,!1),i){var y=(null!==(e=this.acroField.getDefaultAppearance())&&void 0!==e?e:"")+"\n"+Uc(i).toString();this.acroField.setDefaultAppearance(y)}return p},t.prototype.updateWidgetAppearanceWithFont=function(t,e,i){var n=i.normal,r=i.rollover,o=i.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,n,e),rollover:r&&this.createAppearanceStream(t,r,e),down:o&&this.createAppearanceStream(t,o,e)})},t.prototype.updateOnOffWidgetAppearance=function(t,e,i){var n=i.normal,r=i.rollover,o=i.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,n,e),rollover:r&&this.createAppearanceDict(t,r,e),down:o&&this.createAppearanceDict(t,o,e)})},t.prototype.updateWidgetAppearances=function(t,e){var i=e.normal,n=e.rollover,r=e.down;t.setNormalAppearance(i),n?t.setRolloverAppearance(n):t.removeRolloverAppearance(),r?t.setDownAppearance(r):t.removeDownAppearance()},t.prototype.createAppearanceStream=function(t,e,i){var n,r=this.acroField.dict.context,o=t.getRectangle(),s=o.width,a=o.height,l=i&&{Font:(n={},n[i.name]=i.ref,n)},h=r.formXObject(e,{Resources:l,BBox:r.obj([0,0,s,a]),Matrix:r.obj([1,0,0,1,0,0])});return r.register(h)},t.prototype.createImageAppearanceStream=function(t,e,i){var n,r,o=this.acroField.dict.context,s=t.getRectangle(),a=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Yd(null==a?void 0:a.getRotation()),c=au(Xr(Xr({},s),{rotation:d})),u=Zd(s,d),f=e.scaleToFit(u.width-2*h,u.height-2*h),p={x:h,y:h,width:f.width,height:f.height,rotate:Hd(0),xSkew:Hd(0),ySkew:Hd(0)};i===Xu.Center?(p.x+=(u.width-2*h)/2-f.width/2,p.y+=(u.height-2*h)/2-f.height/2):i===Xu.Right&&(p.x=u.width-h-f.width,p.y=u.height-h-f.height);var m=this.doc.context.addRandomSuffix("Image",10),g=Qr(c,nu(m,p)),v={XObject:(n={},n[m]=e.ref,n)},y=o.formXObject(g,{Resources:v,BBox:o.obj([0,0,s.width,s.height]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(y)},t.prototype.createAppearanceDict=function(t,e,i){var n=this.acroField.dict.context,r=this.createAppearanceStream(t,e.on),o=this.createAppearanceStream(t,e.off),s=n.obj({});return s.set(i,r),s.set(ba.of("Off"),o),s},t}();const Qu=Zu;var Ju=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroCheckBox",[[zh,"PDFAcroCheckBox"]]),r.acroField=e,r}return Gr(e,t),e.prototype.check=function(){var t,e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:ba.of("Yes");this.markAsDirty(),this.acroField.setValue(e)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(ba.of("Off"))},e.prototype.isChecked=function(){var t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()},e.prototype.addToPage=function(t,e){var i,n,r,o,s,a;ms(t,"page",[[Cf,"PDFPage"]]),Yu(e),e||(e={}),"textColor"in e||(e.textColor=Rc(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Rc(1,1,1)),"borderColor"in e||(e.borderColor=Rc(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var l=this.createWidget({x:null!==(i=e.x)&&void 0!==i?i:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(r=e.width)&&void 0!==r?r:50,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Hd(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h),l.setAppearanceState(ba.of("Off")),this.updateWidgetAppearance(l,ba.of("Yes")),t.node.addAnnot(h)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){var r=e[i],o=r.getAppearanceState(),s=null===(t=r.getAppearances())||void 0===t?void 0:t.normal;if(!(s instanceof Ea))return!0;if(o&&!s.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){var e;gs(t,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n],s=null!==(e=o.getOnValue())&&void 0!==e?e:ba.of("Yes");s&&this.updateWidgetAppearance(o,s,t)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:Iu)(this,t));this.updateOnOffWidgetAppearance(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const $u=Ju;var tf=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroComboBox",[[Ph,"PDFAcroComboBox"]]),r.acroField=e,r}return Gr(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),i=0,n=e.length;i<n;i++){var r=t[i],o=r.display,s=r.value;e[i]=(null!=o?o:s).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]=t[i].decodeText();return e},e.prototype.setOptions=function(t){ms(t,"options",[Array]);for(var e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]={value:al.fromText(t[i])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){ms(t,"options",["string",Array]);for(var e=Array.isArray(t)?t:[t],i=this.acroField.getOptions(),n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]={value:al.fromText(e[r])};this.acroField.setOptions(i.concat(n))},e.prototype.select=function(t,e){void 0===e&&(e=!1),ms(t,"options",["string",Array]),ms(e,"merge",["boolean"]);var i=Array.isArray(t)?t:[t],n=this.getOptions();i.find(function(t){return!n.includes(t)})&&this.enableEditing(),this.markAsDirty(),(i.length>1||1===i.length&&e)&&this.enableMultiselect();for(var r=new Array(i.length),o=0,s=i.length;o<s;o++)r[o]=al.fromText(i[o]);if(e){var a=this.acroField.getValues();this.acroField.setValues(a.concat(r))}else this.acroField.setValues(r)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){ws(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isEditable=function(){return this.acroField.hasFlag(Dh.Edit)},e.prototype.enableEditing=function(){this.acroField.setFlagTo(Dh.Edit,!0)},e.prototype.disableEditing=function(){this.acroField.setFlagTo(Dh.Edit,!1)},e.prototype.isSorted=function(){return this.acroField.hasFlag(Dh.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Dh.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Dh.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Dh.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Dh.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Dh.MultiSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Dh.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Dh.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Dh.DoNotSpellCheck,!0)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Dh.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Dh.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Dh.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){var i,n,r,o,s,a,l;ms(t,"page",[[Cf,"PDFPage"]]),Yu(e),e||(e={}),"textColor"in e||(e.textColor=Rc(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Rc(1,1,1)),"borderColor"in e||(e.borderColor=Rc(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(i=e.x)&&void 0!==i?i:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Hd(0),hidden:e.hidden,page:t.ref}),d=this.doc.context.register(h.dict);this.acroField.addWidget(d);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(d)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){if(!((null===(t=e[i].getAppearances())||void 0===t?void 0:t.normal)instanceof Ta))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){ms(t,"font",[[Vu,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){ms(t,"font",[[Vu,"PDFFont"]]),gs(e,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:Uu)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const ef=tf;var nf=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroListBox",[[Jh,"PDFAcroListBox"]]),r.acroField=e,r}return Gr(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),i=0,n=e.length;i<n;i++){var r=t[i],o=r.display,s=r.value;e[i]=(null!=o?o:s).decodeText()}return e},e.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]=t[i].decodeText();return e},e.prototype.setOptions=function(t){ms(t,"options",[Array]),this.markAsDirty();for(var e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]={value:al.fromText(t[i])};this.acroField.setOptions(e)},e.prototype.addOptions=function(t){ms(t,"options",["string",Array]),this.markAsDirty();for(var e=Array.isArray(t)?t:[t],i=this.acroField.getOptions(),n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]={value:al.fromText(e[r])};this.acroField.setOptions(i.concat(n))},e.prototype.select=function(t,e){void 0===e&&(e=!1),ms(t,"options",["string",Array]),ms(e,"merge",["boolean"]);var i=Array.isArray(t)?t:[t];!function(t,e,i){Array.isArray(i)||(i=os(i));for(var n=0,r=t.length;n<r;n++)cs(t[n],e,i)}(i,"option",this.getOptions()),this.markAsDirty(),(i.length>1||1===i.length&&e)&&this.enableMultiselect();for(var n=new Array(i.length),r=0,o=i.length;r<o;r++)n[r]=al.fromText(i[r]);if(e){var s=this.acroField.getValues();this.acroField.setValues(s.concat(n))}else this.acroField.setValues(n)},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},e.prototype.setFontSize=function(t){ws(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isSorted=function(){return this.acroField.hasFlag(Dh.Sort)},e.prototype.enableSorting=function(){this.acroField.setFlagTo(Dh.Sort,!0)},e.prototype.disableSorting=function(){this.acroField.setFlagTo(Dh.Sort,!1)},e.prototype.isMultiselect=function(){return this.acroField.hasFlag(Dh.MultiSelect)},e.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Dh.MultiSelect,!0)},e.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Dh.MultiSelect,!1)},e.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Dh.CommitOnSelChange)},e.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Dh.CommitOnSelChange,!0)},e.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Dh.CommitOnSelChange,!1)},e.prototype.addToPage=function(t,e){var i,n,r,o,s,a,l;ms(t,"page",[[Cf,"PDFPage"]]),Yu(e),e||(e={}),"textColor"in e||(e.textColor=Rc(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Rc(1,1,1)),"borderColor"in e||(e.borderColor=Rc(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(i=e.x)&&void 0!==i?i:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Hd(0),hidden:e.hidden,page:t.ref}),d=this.doc.context.register(h.dict);this.acroField.addWidget(d);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(d)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){if(!((null===(t=e[i].getAppearances())||void 0===t?void 0:t.normal)instanceof Ta))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){ms(t,"font",[[Vu,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){ms(t,"font",[[Vu,"PDFFont"]]),gs(e,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:ju)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const rf=nf;var of=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroRadioButton",[[Zh,"PDFAcroRadioButton"]]),r.acroField=e,r}return Gr(e,t),e.prototype.getOptions=function(){var t=this.acroField.getExportValues();if(t){for(var e=new Array(t.length),i=0,n=t.length;i<n;i++)e[i]=t[i].decodeText();return e}var r=this.acroField.getOnValues(),o=new Array(r.length);for(i=0,n=o.length;i<n;i++)o[i]=r[i].decodeText();return o},e.prototype.getSelected=function(){var t=this.acroField.getValue();if(t!==ba.of("Off")){var e=this.acroField.getExportValues();if(e)for(var i=this.acroField.getOnValues(),n=0,r=i.length;n<r;n++)if(i[n]===t)return e[n].decodeText();return t.decodeText()}},e.prototype.select=function(t){ms(t,"option",["string"]);var e=this.getOptions();cs(t,"option",e),this.markAsDirty();var i=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(var r=0,o=n.length;r<o;r++)n[r].decodeText()===t&&this.acroField.setValue(i[r]);else for(r=0,o=i.length;r<o;r++){var s=i[r];s.decodeText()===t&&this.acroField.setValue(s)}},e.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(ba.of("Off"))},e.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(Oh.NoToggleToOff)},e.prototype.enableOffToggling=function(){this.acroField.setFlagTo(Oh.NoToggleToOff,!1)},e.prototype.disableOffToggling=function(){this.acroField.setFlagTo(Oh.NoToggleToOff,!0)},e.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(Oh.RadiosInUnison)},e.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(Oh.RadiosInUnison,!1)},e.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(Oh.RadiosInUnison,!0)},e.prototype.addOptionToPage=function(t,e,i){var n,r,o,s,a,l,h,d,c;ms(t,"option",["string"]),ms(e,"page",[[Cf,"PDFPage"]]),Yu(i);var u=this.createWidget({x:null!==(n=null==i?void 0:i.x)&&void 0!==n?n:0,y:null!==(r=null==i?void 0:i.y)&&void 0!==r?r:0,width:null!==(o=null==i?void 0:i.width)&&void 0!==o?o:50,height:null!==(s=null==i?void 0:i.height)&&void 0!==s?s:50,textColor:null!==(a=null==i?void 0:i.textColor)&&void 0!==a?a:Rc(0,0,0),backgroundColor:null!==(l=null==i?void 0:i.backgroundColor)&&void 0!==l?l:Rc(1,1,1),borderColor:null!==(h=null==i?void 0:i.borderColor)&&void 0!==h?h:Rc(0,0,0),borderWidth:null!==(d=null==i?void 0:i.borderWidth)&&void 0!==d?d:1,rotate:null!==(c=null==i?void 0:i.rotate)&&void 0!==c?c:Hd(0),hidden:null==i?void 0:i.hidden,page:e.ref}),f=this.doc.context.register(u.dict),p=this.acroField.addWidgetWithOpt(f,al.fromText(t),!this.isMutuallyExclusive());u.setAppearanceState(ba.of("Off")),this.updateWidgetAppearance(u,p),e.node.addAnnot(f)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){var r=e[i],o=r.getAppearanceState(),s=null===(t=r.getAppearances())||void 0===t?void 0:t.normal;if(!(s instanceof Ea))return!0;if(o&&!s.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){gs(t,"provider",[Function]);for(var e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){var r=e[i],o=r.getOnValue();o&&this.updateWidgetAppearance(r,o,t)}},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:qu)(this,t));this.updateOnOffWidgetAppearance(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const sf=of;const af=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroSignature",[[Wh,"PDFAcroSignature"]]),r.acroField=e,r}return Gr(e,t),e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);var lf=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroText",[[Kh,"PDFAcroText"]]),r.acroField=e,r}return Gr(e,t),e.prototype.getText=function(){var t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new wu(this.getName());return null==t?void 0:t.decodeText()},e.prototype.setText=function(t){gs(t,"text",["string"]);var e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new Eu(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(al.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return 0===t?Fc.Left:1===t?Fc.Center:2===t?Fc.Right:Fc.Left},e.prototype.setAlignment=function(t){cs(t,"alignment",Fc),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if(bs(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{var e=this.getText();if(e&&e.length>t)throw new Nu(e.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var e=this.getAlignment(),i=e===Fc.Center?Xu.Center:e===Fc.Right?Xu.Right:Xu.Left,n=this.acroField.getWidgets(),r=0,o=n.length;r<o;r++){var s=n[r],a=this.createImageAppearanceStream(s,t,i);this.updateWidgetAppearances(s,{normal:a})}this.markAsClean()},e.prototype.setFontSize=function(t){ws(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.isMultiline=function(){return this.acroField.hasFlag(Fh.Multiline)},e.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Fh.Multiline,!0)},e.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(Fh.Multiline,!1)},e.prototype.isPassword=function(){return this.acroField.hasFlag(Fh.Password)},e.prototype.enablePassword=function(){this.acroField.setFlagTo(Fh.Password,!0)},e.prototype.disablePassword=function(){this.acroField.setFlagTo(Fh.Password,!1)},e.prototype.isFileSelector=function(){return this.acroField.hasFlag(Fh.FileSelect)},e.prototype.enableFileSelection=function(){this.acroField.setFlagTo(Fh.FileSelect,!0)},e.prototype.disableFileSelection=function(){this.acroField.setFlagTo(Fh.FileSelect,!1)},e.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Fh.DoNotSpellCheck)},e.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Fh.DoNotSpellCheck,!1)},e.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Fh.DoNotSpellCheck,!0)},e.prototype.isScrollable=function(){return!this.acroField.hasFlag(Fh.DoNotScroll)},e.prototype.enableScrolling=function(){this.acroField.setFlagTo(Fh.DoNotScroll,!1)},e.prototype.disableScrolling=function(){this.acroField.setFlagTo(Fh.DoNotScroll,!0)},e.prototype.isCombed=function(){return this.acroField.hasFlag(Fh.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()},e.prototype.enableCombing=function(){if(void 0===this.getMaxLength()){console.warn("PDFTextFields must have a max length in order to be combed")}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(Fh.Comb,!0)},e.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(Fh.Comb,!1)},e.prototype.isRichFormatted=function(){return this.acroField.hasFlag(Fh.RichText)},e.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(Fh.RichText,!0)},e.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(Fh.RichText,!1)},e.prototype.addToPage=function(t,e){var i,n,r,o,s,a,l;ms(t,"page",[[Cf,"PDFPage"]]),Yu(e),e||(e={}),"textColor"in e||(e.textColor=Rc(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Rc(1,1,1)),"borderColor"in e||(e.borderColor=Rc(0,0,0)),"borderWidth"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(i=e.x)&&void 0!==i?i:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(r=e.width)&&void 0!==r?r:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Hd(0),hidden:e.hidden,page:t.ref}),d=this.doc.context.register(h.dict);this.acroField.addWidget(d);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(d)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){if(!((null===(t=e[i].getAppearances())||void 0===t?void 0:t.normal)instanceof Ta))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){ms(t,"font",[[Vu,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){ms(t,"font",[[Vu,"PDFFont"]]),gs(e,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:Pu)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const hf=lf;var df;!function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(df||(df={}));var cf=function(){function t(t,e){var i=this;this.embedDefaultFont=function(){return i.doc.embedStandardFont(df.Helvetica)},ms(t,"acroForm",[[hd,"PDFAcroForm"]]),ms(e,"doc",[[Ef,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=Ts.populatedBy(this.embedDefaultFont)}return t.prototype.hasXFA=function(){return this.acroForm.dict.has(ba.of("XFA"))},t.prototype.deleteXFA=function(){this.acroForm.dict.delete(ba.of("XFA"))},t.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),e=[],i=0,n=t.length;i<n;i++){var r=t[i],o=r[0],s=r[1],a=pf(o,s,this.doc);a&&e.push(a)}return e},t.prototype.getFieldMaybe=function(t){ms(t,"name",["string"]);for(var e=this.getFields(),i=0,n=e.length;i<n;i++){var r=e[i];if(r.getName()===t)return r}},t.prototype.getField=function(t){ms(t,"name",["string"]);var e=this.getFieldMaybe(t);if(e)return e;throw new vu(t)},t.prototype.getButton=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof Mf)return e;throw new yu(t,Mf,e)},t.prototype.getCheckBox=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof $u)return e;throw new yu(t,$u,e)},t.prototype.getDropdown=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof ef)return e;throw new yu(t,ef,e)},t.prototype.getOptionList=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof rf)return e;throw new yu(t,rf,e)},t.prototype.getRadioGroup=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof sf)return e;throw new yu(t,sf,e)},t.prototype.getSignature=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof af)return e;throw new yu(t,af,e)},t.prototype.getTextField=function(t){ms(t,"name",["string"]);var e=this.getField(t);if(e instanceof hf)return e;throw new yu(t,hf,e)},t.prototype.createButton=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=Xh.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),Mf.of(n,n.ref,this.doc)},t.prototype.createCheckBox=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=zh.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),$u.of(n,n.ref,this.doc)},t.prototype.createDropdown=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=Ph.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),ef.of(n,n.ref,this.doc)},t.prototype.createOptionList=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=Jh.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),rf.of(n,n.ref,this.doc)},t.prototype.createRadioGroup=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=Zh.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),sf.of(n,n.ref,this.doc)},t.prototype.createTextField=function(t){ms(t,"name",["string"]);var e=mf(t),i=this.findOrCreateNonTerminals(e.nonTerminal),n=Kh.create(this.doc.context);return n.setPartialName(e.terminal),gf(i,[n,n.ref],e.terminal),hf.of(n,n.ref,this.doc)},t.prototype.flatten=function(t){void 0===t&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var e=this.getFields(),i=0,n=e.length;i<n;i++){for(var r=e[i],o=r.acroField.getWidgets(),s=0,a=o.length;s<a;s++){var l=o[s],h=this.findWidgetPage(l),d=this.findWidgetAppearanceRef(r,l),c=h.node.newXObject("FlatWidget",d),u=l.getRectangle(),f=Qr([uc(),ic(u.x,u.y)],au(Xr(Xr({},u),{rotation:0})),[zc(c),fc()]).filter(Boolean);h.pushOperators.apply(h,f)}this.removeField(r)}},t.prototype.removeField=function(t){for(var e=t.acroField.getWidgets(),i=new Set,n=0,r=e.length;n<r;n++){var o=e[n],s=this.findWidgetAppearanceRef(t,o),a=this.findWidgetPage(o);i.add(a),a.node.removeAnnot(s)}i.forEach(function(e){return e.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var l=t.acroField.normalizedEntries().Kids,h=l.size(),d=0;d<h;d++){var c=l.get(d);c instanceof Ma&&this.doc.context.delete(c)}this.doc.context.delete(t.ref)},t.prototype.updateFieldAppearances=function(t){gs(t,"font",[[Vu,"PDFFont"]]),t=null!=t?t:this.getDefaultFont();for(var e=this.getFields(),i=0,n=e.length;i<n;i++){var r=e[i];r.needsAppearancesUpdate()&&r.defaultUpdateAppearances(t)}},t.prototype.markFieldAsDirty=function(t){gs(t,"fieldRef",[[Ma,"PDFRef"]]),this.dirtyFields.add(t)},t.prototype.markFieldAsClean=function(t){gs(t,"fieldRef",[[Ma,"PDFRef"]]),this.dirtyFields.delete(t)},t.prototype.fieldIsDirty=function(t){return gs(t,"fieldRef",[[Ma,"PDFRef"]]),this.dirtyFields.has(t)},t.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},t.prototype.findWidgetPage=function(t){var e=t.P(),i=this.doc.getPages().find(function(t){return t.ref===e});if(void 0===i){var n=this.doc.context.getObjectRef(t.dict);if(void 0===n)throw new Error("Could not find PDFRef for PDFObject");if(void 0===(i=this.doc.findPageForAnnotationRef(n)))throw new Error("Could not find page for PDFRef "+n)}return i},t.prototype.findWidgetAppearanceRef=function(t,e){var i,n=e.getNormalAppearance();if(n instanceof Ea&&(t instanceof $u||t instanceof sf)){var r=t.acroField.getValue(),o=null!==(i=n.get(r))&&void 0!==i?i:n.get(ba.of("Off"));o instanceof Ma&&(n=o)}if(!(n instanceof Ma)){var s=t.getName();throw new Error("Failed to extract appearance ref for: "+s)}return n},t.prototype.findOrCreateNonTerminals=function(t){for(var e=[this.acroForm],i=0,n=t.length;i<n;i++){var r=t[i];if(!r)throw new xu(r);var o=e[0],s=e[1],a=this.findNonTerminal(r,o);if(a)e=a;else{var l=jh.create(this.doc.context);l.setPartialName(r),l.setParent(s);var h=this.doc.context.register(l.dict);o.addField(h),e=[l,h]}}return e},t.prototype.findNonTerminal=function(t,e){for(var i=e instanceof hd?this.acroForm.getFields():$h(e.Kids()),n=0,r=i.length;n<r;n++){var o=i[n],s=o[0],a=o[1];if(s.getPartialName()===t){if(s instanceof jh)return[s,a];throw new bu(t)}}},t.of=function(e,i){return new t(e,i)},t}();const uf=cf;var ff,pf=function(t,e,i){return t instanceof Xh?Mf.of(t,e,i):t instanceof zh?$u.of(t,e,i):t instanceof Ph?ef.of(t,e,i):t instanceof Jh?rf.of(t,e,i):t instanceof Kh?hf.of(t,e,i):t instanceof Zh?sf.of(t,e,i):t instanceof Wh?af.of(t,e,i):void 0},mf=function(t){if(0===t.length)throw new Error("PDF field names must not be empty strings");for(var e=t.split("."),i=0,n=e.length;i<n;i++)if(""===e[i])throw new Error('Periods in PDF field names must be separated by at least one character: "'+t+'"');return 1===e.length?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},gf=function(t,e,i){for(var n=t[0],r=t[1],o=e[0],s=e[1],a=n.normalizedEntries(),l=($h("Kids"in a?a.Kids:a.Fields)),h=0,d=l.length;h<d;h++)if(l[h][0].getPartialName()===i)throw new bu(i);n.addField(s),o.setParent(r)},vf={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]};!function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"}(ff||(ff={}));const yf=function(){function t(t,e,i){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=i}return t.prototype.embed=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n;return Zr(this,function(r){switch(r.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=r.sent(),this.doc.catalog.has(ba.of("Names"))||this.doc.catalog.set(ba.of("Names"),this.doc.context.obj({})),(e=this.doc.catalog.lookup(ba.of("Names"),Ea)).has(ba.of("EmbeddedFiles"))||e.set(ba.of("EmbeddedFiles"),this.doc.context.obj({})),(i=e.lookup(ba.of("EmbeddedFiles"),Ea)).has(ba.of("Names"))||i.set(ba.of("Names"),this.doc.context.obj([])),(n=i.lookup(ba.of("Names"),aa)).push(al.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(ba.of("AF"))||this.doc.catalog.set(ba.of("AF"),this.doc.context.obj([])),this.doc.catalog.lookup(ba.of("AF"),aa).push(t),this.alreadyEmbedded=!0,r.label=2;case 2:return[2]}})})},t.of=function(e,i,n){return new t(e,i,n)},t}();const bf=function(){function t(t,e,i){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=i}return t.prototype.embed=function(){return Yr(this,void 0,void 0,function(){var t,e,i,n,r,o,s;return Zr(this,function(a){switch(a.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,e=t.catalog,i=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:n=a.sent(),e.has(ba.of("Names"))||e.set(ba.of("Names"),i.obj({})),(r=e.lookup(ba.of("Names"),Ea)).has(ba.of("JavaScript"))||r.set(ba.of("JavaScript"),i.obj({})),(o=r.lookup(ba.of("JavaScript"),Ea)).has(ba.of("Names"))||o.set(ba.of("Names"),i.obj([])),(s=o.lookup(ba.of("Names"),aa)).push(al.fromText(this.embedder.scriptName)),s.push(n),this.alreadyEmbedded=!0,a.label=2;case 2:return[2]}})})},t.of=function(e,i,n){return new t(e,i,n)},t}();var xf=function(){function t(t,e){this.script=t,this.scriptName=e}return t.for=function(e,i){return new t(e,i)},t.prototype.embedIntoContext=function(t,e){return Yr(this,void 0,void 0,function(){var i;return Zr(this,function(n){return i=t.obj({Type:"Action",S:"JavaScript",JS:al.fromText(this.script)}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]})})},t}();const wf=xf;var kf=function(){function t(t,e,i){var n=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var t=[];return n.catalog.Pages().traverse(function(e,i){if(e instanceof ja){var r=n.pageMap.get(e);r||(r=Cf.of(e,i,n),n.pageMap.set(e,r)),t.push(r)}}),t},this.getOrCreateForm=function(){var t=n.catalog.getOrCreateAcroForm();return uf.of(t,n)},ms(t,"context",[[Pa,"PDFContext"]]),ms(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=Ts.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=Ts.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new fu;i&&this.updateInfoDict()}return t.load=function(e,i){return void 0===i&&(i={}),Yr(this,void 0,void 0,function(){var n,r,o,s,a,l,h,d,c,u,f;return Zr(this,function(p){switch(p.label){case 0:return n=i.ignoreEncryption,r=void 0!==n&&n,o=i.parseSpeed,s=void 0===o?ff.Slow:o,a=i.throwOnInvalidObject,l=void 0!==a&&a,h=i.updateMetadata,d=void 0===h||h,c=i.capNumbers,u=void 0!==c&&c,ms(e,"pdf",["string",Uint8Array,ArrayBuffer]),ms(r,"ignoreEncryption",["boolean"]),ms(s,"parseSpeed",["number"]),ms(l,"throwOnInvalidObject",["boolean"]),f=Mo(e),[4,Dd.forBytesWithOptions(f,s,l,u).parseDocument()];case 1:return[2,new t(p.sent(),r,d)]}})})},t.create=function(e){return void 0===e&&(e={}),Yr(this,void 0,void 0,function(){var i,n,r,o,s,a;return Zr(this,function(l){return i=e.updateMetadata,n=void 0===i||i,r=Pa.create(),o=fd.withContext(r),s=r.register(o),a=cd.withContextAndPages(r,s),r.trailerInfo.Root=r.register(a),[2,new t(r,!1,n)]})})},t.prototype.registerFontkit=function(t){this.fontkit=t},t.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},t.prototype.getTitle=function(){var t=this.getInfoDict().lookup(ba.Title);if(t)return Nf(t),t.decodeText()},t.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(ba.Author);if(t)return Nf(t),t.decodeText()},t.prototype.getSubject=function(){var t=this.getInfoDict().lookup(ba.Subject);if(t)return Nf(t),t.decodeText()},t.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(ba.Keywords);if(t)return Nf(t),t.decodeText()},t.prototype.getCreator=function(){var t=this.getInfoDict().lookup(ba.Creator);if(t)return Nf(t),t.decodeText()},t.prototype.getProducer=function(){var t=this.getInfoDict().lookup(ba.Producer);if(t)return Nf(t),t.decodeText()},t.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(ba.CreationDate);if(t)return Nf(t),t.decodeDate()},t.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(ba.ModDate);if(t)return Nf(t),t.decodeDate()},t.prototype.setTitle=function(t,e){ms(t,"title",["string"]);var i=ba.of("Title");(this.getInfoDict().set(i,al.fromText(t)),null==e?void 0:e.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},t.prototype.setAuthor=function(t){ms(t,"author",["string"]);var e=ba.of("Author");this.getInfoDict().set(e,al.fromText(t))},t.prototype.setSubject=function(t){ms(t,"author",["string"]);var e=ba.of("Subject");this.getInfoDict().set(e,al.fromText(t))},t.prototype.setKeywords=function(t){ms(t,"keywords",[Array]);var e=ba.of("Keywords");this.getInfoDict().set(e,al.fromText(t.join(" ")))},t.prototype.setCreator=function(t){ms(t,"creator",["string"]);var e=ba.of("Creator");this.getInfoDict().set(e,al.fromText(t))},t.prototype.setProducer=function(t){ms(t,"creator",["string"]);var e=ba.of("Producer");this.getInfoDict().set(e,al.fromText(t))},t.prototype.setLanguage=function(t){ms(t,"language",["string"]);var e=ba.of("Lang");this.catalog.set(e,ml.of(t))},t.prototype.setCreationDate=function(t){ms(t,"creationDate",[[Date,"Date"]]);var e=ba.of("CreationDate");this.getInfoDict().set(e,ml.fromDate(t))},t.prototype.setModificationDate=function(t){ms(t,"modificationDate",[[Date,"Date"]]);var e=ba.of("ModDate");this.getInfoDict().set(e,ml.fromDate(t))},t.prototype.getPageCount=function(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount},t.prototype.getPages=function(){return this.pageCache.access()},t.prototype.getPage=function(t){var e=this.getPages();return ys(t,"index",0,e.length-1),e[t]},t.prototype.getPageIndices=function(){return function(t,e){for(var i=new Array(e-t),n=0,r=i.length;n<r;n++)i[n]=t+n;return i}(0,this.getPageCount())},t.prototype.removePage=function(t){var e=this.getPageCount();if(0===this.pageCount)throw new gu;ys(t,"index",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},t.prototype.addPage=function(t){return ms(t,"page",["undefined",[Cf,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},t.prototype.insertPage=function(t,e){var i=this.getPageCount();if(ys(t,"index",0,i),ms(e,"page",["undefined",[Cf,"PDFPage"],Array]),!e||Array.isArray(e)){var n=Array.isArray(e)?e:vf.A4;(e=Cf.create(this)).setSize.apply(e,n)}else if(e.doc!==this)throw new mu;var r=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(r),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=i+1,e},t.prototype.copyPages=function(e,i){return Yr(this,void 0,void 0,function(){var n,r,o,s,a,l,h,d;return Zr(this,function(c){switch(c.label){case 0:return ms(e,"srcDoc",[[t,"PDFDocument"]]),ms(i,"indices",[Array]),[4,e.flush()];case 1:for(c.sent(),n=Wa.for(e.context,this.context),r=e.getPages(),o=new Array(i.length),s=0,a=i.length;s<a;s++)l=r[i[s]],h=n.copy(l.node),d=this.context.register(h),o[s]=Cf.of(h,d,this);return[2,o]}})})},t.prototype.copy=function(){return Yr(this,void 0,void 0,function(){var e,i,n,r;return Zr(this,function(o){switch(o.label){case 0:return[4,t.create()];case 1:return[4,(e=o.sent()).copyPages(this,this.getPageIndices())];case 2:for(i=o.sent(),n=0,r=i.length;n<r;n++)e.addPage(i[n]);return void 0!==this.getAuthor()&&e.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&e.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&e.setCreator(this.getCreator()),void 0!==this.getModificationDate()&&e.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&e.setProducer(this.getProducer()),void 0!==this.getSubject()&&e.setSubject(this.getSubject()),void 0!==this.getTitle()&&e.setTitle(this.getTitle()),e.defaultWordBreaks=this.defaultWordBreaks,[2,e]}})})},t.prototype.addJavaScript=function(t,e){ms(t,"name",["string"]),ms(e,"script",["string"]);var i=wf.for(e,t),n=this.context.nextRef(),r=bf.of(n,this,i);this.javaScripts.push(r)},t.prototype.attach=function(t,e,i){return void 0===i&&(i={}),Yr(this,void 0,void 0,function(){var n,r,o,s;return Zr(this,function(a){return ms(t,"attachment",["string",Uint8Array,ArrayBuffer]),ms(e,"name",["string"]),gs(i.mimeType,"mimeType",["string"]),gs(i.description,"description",["string"]),gs(i.creationDate,"options.creationDate",[Date]),gs(i.modificationDate,"options.modificationDate",[Date]),us(i.afRelationship,"options.afRelationship",xl),n=Mo(t),r=kl.for(n,e,i),o=this.context.nextRef(),s=yf.of(o,this,r),this.embeddedFiles.push(s),[2]})})},t.prototype.embedFont=function(t,e){return void 0===e&&(e={}),Yr(this,void 0,void 0,function(){var i,n,r,o,s,a,l,h,d,c;return Zr(this,function(u){switch(u.label){case 0:return i=e.subset,n=void 0!==i&&i,r=e.customName,o=e.features,ms(t,"font",["string",Uint8Array,ArrayBuffer]),ms(n,"subset",["boolean"]),as(t)?(s=hl.for(t,r),[3,7]):[3,1];case 1:return function(t){return t instanceof Uint8Array||t instanceof ArrayBuffer||"string"==typeof t}(t)?(a=Mo(t),l=this.assertFontkit(),n?[4,bl.for(l,a,r,o)]:[3,3]):[3,6];case 2:return h=u.sent(),[3,5];case 3:return[4,vl.for(l,a,r,o)];case 4:h=u.sent(),u.label=5;case 5:return s=h,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return d=this.context.nextRef(),c=Vu.of(d,this,s),this.fonts.push(c),[2,c]}})})},t.prototype.embedStandardFont=function(t,e){if(ms(t,"font",["string"]),!as(t))throw new TypeError("`font` must be one of type `StandardFonts`");var i=hl.for(t,e),n=this.context.nextRef(),r=Vu.of(n,this,i);return this.fonts.push(r),r},t.prototype.embedJpg=function(t){return Yr(this,void 0,void 0,function(){var e,i,n,r;return Zr(this,function(o){switch(o.label){case 0:return ms(t,"jpg",["string",Uint8Array,ArrayBuffer]),e=Mo(t),[4,Cl.for(e)];case 1:return i=o.sent(),n=this.context.nextRef(),r=Gu.of(n,this,i),this.images.push(r),[2,r]}})})},t.prototype.embedPng=function(t){return Yr(this,void 0,void 0,function(){var e,i,n,r;return Zr(this,function(o){switch(o.label){case 0:return ms(t,"png",["string",Uint8Array,ArrayBuffer]),e=Mo(t),[4,Il.for(e)];case 1:return i=o.sent(),n=this.context.nextRef(),r=Gu.of(n,this,i),this.images.push(r),[2,r]}})})},t.prototype.embedPdf=function(e,i){return void 0===i&&(i=[0]),Yr(this,void 0,void 0,function(){var n,r;return Zr(this,function(o){switch(o.label){case 0:return ms(e,"pdf",["string",Uint8Array,ArrayBuffer,[t,"PDFDocument"]]),ms(i,"indices",[Array]),e instanceof t?(n=e,[3,3]):[3,1];case 1:return[4,t.load(e)];case 2:n=o.sent(),o.label=3;case 3:return r=function(t,e){for(var i=new Array(e.length),n=0,r=e.length;n<r;n++)i[n]=t[e[n]];return i}(n.getPages(),i),[2,this.embedPages(r)]}})})},t.prototype.embedPage=function(t,e,i){return Yr(this,void 0,void 0,function(){return Zr(this,function(n){switch(n.label){case 0:return ms(t,"page",[[Cf,"PDFPage"]]),[4,this.embedPages([t],[e],[i])];case 1:return[2,n.sent()[0]]}})})},t.prototype.embedPages=function(t,e,i){return void 0===e&&(e=[]),void 0===i&&(i=[]),Yr(this,void 0,void 0,function(){var n,r,o,s,a,l,h,d,c,u,f,p,m;return Zr(this,function(g){switch(g.label){case 0:if(0===t.length)return[2,[]];for(l=0,h=t.length-1;l<h;l++)if(n=t[l],r=t[l+1],n.node.context!==r.node.context)throw new Fs;o=t[0].node.context,s=o===this.context?function(t){return t}:Wa.for(o,this.context).copy,a=new Array(t.length),l=0,h=t.length,g.label=1;case 1:return l<h?(d=s(t[l].node),c=e[l],u=i[l],[4,ah.for(d,c,u)]):[3,4];case 2:f=g.sent(),p=this.context.nextRef(),a[l]=Hu.of(p,this,f),g.label=3;case 3:return l++,[3,1];case 4:return(m=this.embeddedPages).push.apply(m,a),[2,a]}})})},t.prototype.flush=function(){return Yr(this,void 0,void 0,function(){return Zr(this,function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}})})},t.prototype.save=function(t){return void 0===t&&(t={}),Yr(this,void 0,void 0,function(){var e,i,n,r,o,s,a,l,h;return Zr(this,function(d){switch(d.label){case 0:return e=t.useObjectStreams,i=void 0===e||e,n=t.addDefaultPage,r=void 0===n||n,o=t.objectsPerTick,s=void 0===o?50:o,a=t.updateFieldAppearances,l=void 0===a||a,ms(i,"useObjectStreams",["boolean"]),ms(r,"addDefaultPage",["boolean"]),ms(s,"objectsPerTick",["number"]),ms(l,"updateFieldAppearances",["boolean"]),r&&0===this.getPageCount()&&this.addPage(),l&&(h=this.formCache.getValue())&&h.updateFieldAppearances(),[4,this.flush()];case 1:return d.sent(),[2,(i?ol:Ja).forContext(this.context,s).serializeToBuffer()]}})})},t.prototype.saveAsBase64=function(t){return void 0===t&&(t={}),Yr(this,void 0,void 0,function(){var e,i,n,r,o;return Zr(this,function(s){switch(s.label){case 0:return e=t.dataUri,i=void 0!==e&&e,n=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}(t,["dataUri"]),ms(i,"dataUri",["boolean"]),[4,this.save(n)];case 1:return r=s.sent(),o=function(t){for(var e="",i=t.length,n=0;n<i;n+=3)e+=Jr[t[n]>>2],e+=Jr[(3&t[n])<<4|t[n+1]>>4],e+=Jr[(15&t[n+1])<<2|t[n+2]>>6],e+=Jr[63&t[n+2]];return i%3==2?e=e.substring(0,e.length-1)+"=":i%3==1&&(e=e.substring(0,e.length-2)+"=="),e}(r),[2,i?"data:application/pdf;base64,"+o:o]}})})},t.prototype.findPageForAnnotationRef=function(t){for(var e=this.getPages(),i=0,n=e.length;i<n;i++){var r=e[i],o=r.node.Annots();if(void 0!==(null==o?void 0:o.indexOf(t)))return r}},t.prototype.embedAll=function(t){return Yr(this,void 0,void 0,function(){var e,i;return Zr(this,function(n){switch(n.label){case 0:e=0,i=t.length,n.label=1;case 1:return e<i?[4,t[e].embed()]:[3,4];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},t.prototype.updateInfoDict=function(){var t="pdf-lib (https://github.com/Hopding/pdf-lib)",e=new Date,i=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),i.get(ba.of("Creator"))||this.setCreator(t),i.get(ba.of("CreationDate"))||this.setCreationDate(e)},t.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof Ea)return t;var e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e},t.prototype.assertFontkit=function(){if(!this.fontkit)throw new pu;return this.fontkit},t}();const Ef=kf;function Nf(t){if(!(t instanceof al||t instanceof ml))throw new Ms([al,ml],t)}var Tf;!function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"}(Tf||(Tf={}));var _f=function(){function t(t,e,i){this.fontSize=24,this.fontColor=Rc(0,0,0),this.lineHeight=24,this.x=0,this.y=0,ms(t,"leafNode",[[ja,"PDFPageLeaf"]]),ms(e,"ref",[[Ma,"PDFRef"]]),ms(i,"doc",[[Ef,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=i}return t.prototype.setRotation=function(t){var e=Xd(t);xs(e,"degreesAngle",90),this.node.set(ba.of("Rotate"),this.doc.context.obj(e))},t.prototype.getRotation=function(){var t=this.node.Rotate();return Hd(t?t.asNumber():0)},t.prototype.setSize=function(t,e){ms(t,"width",["number"]),ms(e,"height",["number"]);var i=this.getMediaBox();this.setMediaBox(i.x,i.y,t,e);var n=this.getCropBox(),r=this.getBleedBox(),o=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),l=this.node.BleedBox(),h=this.node.TrimBox(),d=this.node.ArtBox();a&&ls(n,i)&&this.setCropBox(i.x,i.y,t,e),l&&ls(r,i)&&this.setBleedBox(i.x,i.y,t,e),h&&ls(o,i)&&this.setTrimBox(i.x,i.y,t,e),d&&ls(s,i)&&this.setArtBox(i.x,i.y,t,e)},t.prototype.setWidth=function(t){ms(t,"width",["number"]),this.setSize(t,this.getSize().height)},t.prototype.setHeight=function(t){ms(t,"height",["number"]),this.setSize(this.getSize().width,t)},t.prototype.setMediaBox=function(t,e,i,n){ms(t,"x",["number"]),ms(e,"y",["number"]),ms(i,"width",["number"]),ms(n,"height",["number"]);var r=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(ba.MediaBox,r)},t.prototype.setCropBox=function(t,e,i,n){ms(t,"x",["number"]),ms(e,"y",["number"]),ms(i,"width",["number"]),ms(n,"height",["number"]);var r=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(ba.CropBox,r)},t.prototype.setBleedBox=function(t,e,i,n){ms(t,"x",["number"]),ms(e,"y",["number"]),ms(i,"width",["number"]),ms(n,"height",["number"]);var r=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(ba.BleedBox,r)},t.prototype.setTrimBox=function(t,e,i,n){ms(t,"x",["number"]),ms(e,"y",["number"]),ms(i,"width",["number"]),ms(n,"height",["number"]);var r=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(ba.TrimBox,r)},t.prototype.setArtBox=function(t,e,i,n){ms(t,"x",["number"]),ms(e,"y",["number"]),ms(i,"width",["number"]),ms(n,"height",["number"]);var r=this.doc.context.obj([t,e,t+i,e+n]);this.node.set(ba.ArtBox,r)},t.prototype.getSize=function(){var t=this.getMediaBox();return{width:t.width,height:t.height}},t.prototype.getWidth=function(){return this.getSize().width},t.prototype.getHeight=function(){return this.getSize().height},t.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},t.prototype.getCropBox=function(){var t,e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()},t.prototype.getBleedBox=function(){var t,e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getTrimBox=function(){var t,e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getArtBox=function(){var t,e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.translateContent=function(t,e){ms(t,"x",["number"]),ms(e,"y",["number"]),this.node.normalize(),this.getContentStream();var i=this.createContentStream(uc(),ic(t,e)),n=this.doc.context.register(i),r=this.createContentStream(fc()),o=this.doc.context.register(r);this.node.wrapContentStreams(n,o)},t.prototype.scale=function(t,e){ms(t,"x",["number"]),ms(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)},t.prototype.scaleContent=function(t,e){ms(t,"x",["number"]),ms(e,"y",["number"]),this.node.normalize(),this.getContentStream();var i=this.createContentStream(uc(),nc(t,e)),n=this.doc.context.register(i),r=this.createContentStream(fc()),o=this.doc.context.register(r);this.node.wrapContentStreams(n,o)},t.prototype.scaleAnnotations=function(t,e){ms(t,"x",["number"]),ms(e,"y",["number"]);var i=this.node.Annots();if(i)for(var n=0;n<i.size();n++){var r=i.lookup(n);r instanceof Ea&&this.scaleAnnot(r,t,e)}},t.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},t.prototype.setFont=function(t){ms(t,"font",[[Vu,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},t.prototype.setFontSize=function(t){ms(t,"fontSize",["number"]),this.fontSize=t},t.prototype.setFontColor=function(t){ms(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},t.prototype.setLineHeight=function(t){ms(t,"lineHeight",["number"]),this.lineHeight=t},t.prototype.getPosition=function(){return{x:this.x,y:this.y}},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.moveTo=function(t,e){ms(t,"x",["number"]),ms(e,"y",["number"]),this.x=t,this.y=e},t.prototype.moveDown=function(t){ms(t,"yDecrease",["number"]),this.y-=t},t.prototype.moveUp=function(t){ms(t,"yIncrease",["number"]),this.y+=t},t.prototype.moveLeft=function(t){ms(t,"xDecrease",["number"]),this.x-=t},t.prototype.moveRight=function(t){ms(t,"xIncrease",["number"]),this.x+=t},t.prototype.pushOperators=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];vs(t,"operator",[[za,"PDFOperator"]]);var i=this.getContentStream();i.push.apply(i,t)},t.prototype.drawText=function(t,e){var i,n,r,o,s,a,l;void 0===e&&(e={}),ms(t,"text",["string"]),gs(e.color,"options.color",[[Object,"Color"]]),bs(e.opacity,"opacity.opacity",0,1),gs(e.font,"options.font",[[Vu,"PDFFont"]]),gs(e.size,"options.size",["number"]),gs(e.rotate,"options.rotate",[[Object,"Rotation"]]),gs(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),gs(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),gs(e.x,"options.x",["number"]),gs(e.y,"options.y",["number"]),gs(e.lineHeight,"options.lineHeight",["number"]),gs(e.maxWidth,"options.maxWidth",["number"]),gs(e.wordBreaks,"options.wordBreaks",[Array]),us(e.blendMode,"options.blendMode",Tf);for(var h=this.setOrEmbedFont(e.font),d=h.oldFont,c=h.newFont,u=h.newFontKey,f=e.size||this.fontSize,p=e.wordBreaks||this.doc.defaultWordBreaks,m=void 0===e.maxWidth?go(fo(t)):bo(t,p,e.maxWidth,function(t){return c.widthOfTextAtSize(t,f)}),g=new Array(m.length),v=0,y=m.length;v<y;v++)g[v]=c.encodeText(m[v]);var b=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),x=this.getContentStream();x.push.apply(x,function(t,e){for(var i,n=[uc(),e.graphicsState&&cc(e.graphicsState),_c(),Uc(e.color),Sc(e.font,e.size),(i=e.lineHeight,za.of(Oa.SetTextLineHeight,[Pd(i)])),Ac(Gd(e.rotate),Gd(e.xSkew),Gd(e.ySkew),e.x,e.y)].filter(Boolean),r=0,o=t.length;r<o;r++)n.push(Tc(t[r]),Nc());return n.push(Cc(),fc()),n}(g,{color:null!==(i=e.color)&&void 0!==i?i:this.fontColor,font:u,size:f,rotate:null!==(n=e.rotate)&&void 0!==n?n:Hd(0),xSkew:null!==(r=e.xSkew)&&void 0!==r?r:Hd(0),ySkew:null!==(o=e.ySkew)&&void 0!==o?o:Hd(0),x:null!==(s=e.x)&&void 0!==s?s:this.x,y:null!==(a=e.y)&&void 0!==a?a:this.y,lineHeight:null!==(l=e.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:b})),e.font&&(d?this.setFont(d):this.resetFont())},t.prototype.drawImage=function(t,e){var i,n,r,o,s,a,l;void 0===e&&(e={}),ms(t,"image",[[Gu,"PDFImage"]]),gs(e.x,"options.x",["number"]),gs(e.y,"options.y",["number"]),gs(e.width,"options.width",["number"]),gs(e.height,"options.height",["number"]),gs(e.rotate,"options.rotate",[[Object,"Rotation"]]),gs(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),gs(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),bs(e.opacity,"opacity.opacity",0,1),us(e.blendMode,"options.blendMode",Tf);var h=this.node.newXObject("Image",t.ref),d=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),c=this.getContentStream();c.push.apply(c,nu(h,{x:null!==(i=e.x)&&void 0!==i?i:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,width:null!==(r=e.width)&&void 0!==r?r:t.size().width,height:null!==(o=e.height)&&void 0!==o?o:t.size().height,rotate:null!==(s=e.rotate)&&void 0!==s?s:Hd(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:Hd(0),ySkew:null!==(l=e.ySkew)&&void 0!==l?l:Hd(0),graphicsState:d}))},t.prototype.drawPage=function(t,e){var i,n,r,o,s;void 0===e&&(e={}),ms(t,"embeddedPage",[[Hu,"PDFEmbeddedPage"]]),gs(e.x,"options.x",["number"]),gs(e.y,"options.y",["number"]),gs(e.xScale,"options.xScale",["number"]),gs(e.yScale,"options.yScale",["number"]),gs(e.width,"options.width",["number"]),gs(e.height,"options.height",["number"]),gs(e.rotate,"options.rotate",[[Object,"Rotation"]]),gs(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),gs(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),bs(e.opacity,"opacity.opacity",0,1),us(e.blendMode,"options.blendMode",Tf);var a=this.node.newXObject("EmbeddedPdfPage",t.ref),l=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),h=void 0!==e.width?e.width/t.width:void 0!==e.xScale?e.xScale:1,d=void 0!==e.height?e.height/t.height:void 0!==e.yScale?e.yScale:1,c=this.getContentStream();c.push.apply(c,function(t,e){return[uc(),e.graphicsState&&cc(e.graphicsState),ic(e.x,e.y),rc(Gd(e.rotate)),nc(e.xScale,e.yScale),sc(Gd(e.xSkew),Gd(e.ySkew)),zc(t),fc()].filter(Boolean)}(a,{x:null!==(i=e.x)&&void 0!==i?i:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,xScale:h,yScale:d,rotate:null!==(r=e.rotate)&&void 0!==r?r:Hd(0),xSkew:null!==(o=e.xSkew)&&void 0!==o?o:Hd(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:Hd(0),graphicsState:l}))},t.prototype.drawSvgPath=function(t,e){var i,n,r,o,s,a,l,h,d;void 0===e&&(e={}),ms(t,"path",["string"]),gs(e.x,"options.x",["number"]),gs(e.y,"options.y",["number"]),gs(e.scale,"options.scale",["number"]),gs(e.rotate,"options.rotate",[[Object,"Rotation"]]),gs(e.borderWidth,"options.borderWidth",["number"]),gs(e.color,"options.color",[[Object,"Color"]]),bs(e.opacity,"opacity.opacity",0,1),gs(e.borderColor,"options.borderColor",[[Object,"Color"]]),gs(e.borderDashArray,"options.borderDashArray",[Array]),gs(e.borderDashPhase,"options.borderDashPhase",["number"]),us(e.borderLineCap,"options.borderLineCap",jd),bs(e.borderOpacity,"options.borderOpacity",0,1),us(e.blendMode,"options.blendMode",Tf);var c=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.borderColor=Rc(0,0,0));var u=this.getContentStream();u.push.apply(u,function(t,e){var i,n,r;return Qr([uc(),e.graphicsState&&cc(e.graphicsState),ic(e.x,e.y),rc(Gd(null!==(i=e.rotate)&&void 0!==i?i:Hd(0))),e.scale?nc(e.scale,-e.scale):nc(1,-1),e.color&&Uc(e.color),e.borderColor&&jc(e.borderColor),e.borderWidth&&pc(e.borderWidth),e.borderLineCap&&hc(e.borderLineCap),ac(null!==(n=e.borderDashArray)&&void 0!==n?n:[],null!==(r=e.borderDashPhase)&&void 0!==r?r:0)],iu(t),[e.color&&e.borderWidth?kc():e.color?wc():e.borderColor?xc():vc(),fc()]).filter(Boolean)}(t,{x:null!==(i=e.x)&&void 0!==i?i:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,scale:e.scale,rotate:null!==(r=e.rotate)&&void 0!==r?r:Hd(0),color:null!==(o=e.color)&&void 0!==o?o:void 0,borderColor:null!==(s=e.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,borderDashArray:null!==(l=e.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(h=e.borderDashPhase)&&void 0!==h?h:void 0,borderLineCap:null!==(d=e.borderLineCap)&&void 0!==d?d:void 0,graphicsState:c}))},t.prototype.drawLine=function(t){var e,i,n,r,o;ms(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),ms(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),ms(t.start.x,"options.start.x",["number"]),ms(t.start.y,"options.start.y",["number"]),ms(t.end.x,"options.end.x",["number"]),ms(t.end.y,"options.end.y",["number"]),gs(t.thickness,"options.thickness",["number"]),gs(t.color,"options.color",[[Object,"Color"]]),gs(t.dashArray,"options.dashArray",[Array]),gs(t.dashPhase,"options.dashPhase",["number"]),us(t.lineCap,"options.lineCap",jd),bs(t.opacity,"opacity.opacity",0,1),us(t.blendMode,"options.blendMode",Tf);var s=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=Rc(0,0,0));var a=this.getContentStream();a.push.apply(a,function(t){var e,i;return[uc(),t.graphicsState&&cc(t.graphicsState),t.color&&jc(t.color),pc(t.thickness),ac(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(i=t.dashPhase)&&void 0!==i?i:0),yc(t.start.x,t.start.y),t.lineCap&&hc(t.lineCap),yc(t.start.x,t.start.y),bc(t.end.x,t.end.y),xc(),fc()].filter(Boolean)}({start:t.start,end:t.end,thickness:null!==(e=t.thickness)&&void 0!==e?e:1,color:null!==(i=t.color)&&void 0!==i?i:void 0,dashArray:null!==(n=t.dashArray)&&void 0!==n?n:void 0,dashPhase:null!==(r=t.dashPhase)&&void 0!==r?r:void 0,lineCap:null!==(o=t.lineCap)&&void 0!==o?o:void 0,graphicsState:s}))},t.prototype.drawRectangle=function(t){var e,i,n,r,o,s,a,l,h,d,c,u,f;void 0===t&&(t={}),gs(t.x,"options.x",["number"]),gs(t.y,"options.y",["number"]),gs(t.width,"options.width",["number"]),gs(t.height,"options.height",["number"]),gs(t.rotate,"options.rotate",[[Object,"Rotation"]]),gs(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),gs(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),gs(t.borderWidth,"options.borderWidth",["number"]),gs(t.color,"options.color",[[Object,"Color"]]),bs(t.opacity,"opacity.opacity",0,1),gs(t.borderColor,"options.borderColor",[[Object,"Color"]]),gs(t.borderDashArray,"options.borderDashArray",[Array]),gs(t.borderDashPhase,"options.borderDashPhase",["number"]),us(t.borderLineCap,"options.borderLineCap",jd),bs(t.borderOpacity,"options.borderOpacity",0,1),us(t.blendMode,"options.blendMode",Tf);var p=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Rc(0,0,0));var m=this.getContentStream();m.push.apply(m,ru({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(i=t.y)&&void 0!==i?i:this.y,width:null!==(n=t.width)&&void 0!==n?n:150,height:null!==(r=t.height)&&void 0!==r?r:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:Hd(0),xSkew:null!==(s=t.xSkew)&&void 0!==s?s:Hd(0),ySkew:null!==(a=t.ySkew)&&void 0!==a?a:Hd(0),borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,color:null!==(h=t.color)&&void 0!==h?h:void 0,borderColor:null!==(d=t.borderColor)&&void 0!==d?d:void 0,borderDashArray:null!==(c=t.borderDashArray)&&void 0!==c?c:void 0,borderDashPhase:null!==(u=t.borderDashPhase)&&void 0!==u?u:void 0,graphicsState:p,borderLineCap:null!==(f=t.borderLineCap)&&void 0!==f?f:void 0}))},t.prototype.drawSquare=function(t){void 0===t&&(t={});var e=t.size;gs(e,"size",["number"]),this.drawRectangle(Xr(Xr({},t),{width:e,height:e}))},t.prototype.drawEllipse=function(t){var e,i,n,r,o,s,a,l,h,d,c;void 0===t&&(t={}),gs(t.x,"options.x",["number"]),gs(t.y,"options.y",["number"]),gs(t.xScale,"options.xScale",["number"]),gs(t.yScale,"options.yScale",["number"]),gs(t.rotate,"options.rotate",[[Object,"Rotation"]]),gs(t.color,"options.color",[[Object,"Color"]]),bs(t.opacity,"opacity.opacity",0,1),gs(t.borderColor,"options.borderColor",[[Object,"Color"]]),bs(t.borderOpacity,"options.borderOpacity",0,1),gs(t.borderWidth,"options.borderWidth",["number"]),gs(t.borderDashArray,"options.borderDashArray",[Array]),gs(t.borderDashPhase,"options.borderDashPhase",["number"]),us(t.borderLineCap,"options.borderLineCap",jd),us(t.blendMode,"options.blendMode",Tf);var u=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Rc(0,0,0));var f=this.getContentStream();f.push.apply(f,su({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(i=t.y)&&void 0!==i?i:this.y,xScale:null!==(n=t.xScale)&&void 0!==n?n:100,yScale:null!==(r=t.yScale)&&void 0!==r?r:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:void 0,color:null!==(s=t.color)&&void 0!==s?s:void 0,borderColor:null!==(a=t.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(h=t.borderDashArray)&&void 0!==h?h:void 0,borderDashPhase:null!==(d=t.borderDashPhase)&&void 0!==d?d:void 0,borderLineCap:null!==(c=t.borderLineCap)&&void 0!==c?c:void 0,graphicsState:u}))},t.prototype.drawCircle=function(t){void 0===t&&(t={});var e=t.size,i=void 0===e?100:e;gs(i,"size",["number"]),this.drawEllipse(Xr(Xr({},t),{xScale:i,yScale:i}))},t.prototype.setOrEmbedFont=function(t){var e=this.font,i=this.fontKey;return t?this.setFont(t):this.getFont(),{oldFont:e,oldFontKey:i,newFont:this.font,newFontKey:this.fontKey}},t.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(df.Helvetica);this.setFont(t)}return[this.font,this.fontKey]},t.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},t.prototype.getContentStream=function(t){return void 0===t&&(t=!0),t&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream},t.prototype.createContentStream=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.doc.context.obj({});return Ra.of(i,t)},t.prototype.maybeEmbedGraphicsState=function(t){var e=t.opacity,i=t.borderOpacity,n=t.blendMode;if(void 0!==e||void 0!==i||void 0!==n){var r=this.doc.context.obj({Type:"ExtGState",ca:e,CA:i,BM:n});return this.node.newExtGState("GS",r)}},t.prototype.scaleAnnot=function(t,e,i){for(var n=["RD","CL","Vertices","QuadPoints","L","Rect"],r=0,o=n.length;r<o;r++){var s=t.lookup(ba.of(n[r]));s instanceof aa&&s.scalePDFNumbers(e,i)}var a=t.lookup(ba.of("InkList"));if(a instanceof aa)for(r=0,o=a.size();r<o;r++){var l=a.lookup(r);l instanceof aa&&l.scalePDFNumbers(e,i)}},t.of=function(e,i,n){return new t(e,i,n)},t.create=function(e){ms(e,"doc",[[Ef,"PDFDocument"]]);var i=Ma.of(-1),n=ja.withContextAndParent(e.context,i);return new t(n,e.context.register(n),e)},t}();const Cf=_f;var Sf=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return ms(e,"acroButton",[[Xh,"PDFAcroPushButton"]]),r.acroField=e,r}return Gr(e,t),e.prototype.setImage=function(t,e){void 0===e&&(e=Xu.Center);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n],s=this.createImageAppearanceStream(o,t,e);this.updateWidgetAppearances(o,{normal:s})}this.markAsClean()},e.prototype.setFontSize=function(t){ws(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()},e.prototype.addToPage=function(t,e,i){var n,r,o,s,a,l,h,d,c,u,f;gs(t,"text",["string"]),gs(e,"page",[[Cf,"PDFPage"]]),Yu(i);var p=this.createWidget({x:(null!==(n=null==i?void 0:i.x)&&void 0!==n?n:0)-(null!==(r=null==i?void 0:i.borderWidth)&&void 0!==r?r:0)/2,y:(null!==(o=null==i?void 0:i.y)&&void 0!==o?o:0)-(null!==(s=null==i?void 0:i.borderWidth)&&void 0!==s?s:0)/2,width:null!==(a=null==i?void 0:i.width)&&void 0!==a?a:100,height:null!==(l=null==i?void 0:i.height)&&void 0!==l?l:50,textColor:null!==(h=null==i?void 0:i.textColor)&&void 0!==h?h:Rc(0,0,0),backgroundColor:null!==(d=null==i?void 0:i.backgroundColor)&&void 0!==d?d:Rc(.75,.75,.75),borderColor:null==i?void 0:i.borderColor,borderWidth:null!==(c=null==i?void 0:i.borderWidth)&&void 0!==c?c:0,rotate:null!==(u=null==i?void 0:i.rotate)&&void 0!==u?u:Hd(0),caption:t,hidden:null==i?void 0:i.hidden,page:e.ref}),m=this.doc.context.register(p.dict);this.acroField.addWidget(m);var g=null!==(f=null==i?void 0:i.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,g),e.node.addAnnot(m)},e.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),i=0,n=e.length;i<n;i++){if(!((null===(t=e[i].getAppearances())||void 0===t?void 0:t.normal)instanceof Ta))return!0}return!1},e.prototype.defaultUpdateAppearances=function(t){ms(t,"font",[[Vu,"PDFFont"]]),this.updateAppearances(t)},e.prototype.updateAppearances=function(t,e){ms(t,"font",[[Vu,"PDFFont"]]),gs(e,"provider",[Function]);for(var i=this.acroField.getWidgets(),n=0,r=i.length;n<r;n++){var o=i[n];this.updateWidgetAppearance(o,t,e)}},e.prototype.updateWidgetAppearance=function(t,e,i){var n=zu((null!=i?i:Bu)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)},e.of=function(t,i,n){return new e(t,i,n)},e}(Qu);const Mf=Sf;class Af{constructor(t){this.mindMap=t.mindMap}async pdf(t){return new Promise((e,i)=>{const n=new Image;n.onload=async()=>{const i=n.width,r=n.height,o=await Ef.create(),s=o.addPage();s.setSize(i,r);const a=await o.embedPng(t);s.drawImage(a,{x:0,y:0,width:i,height:r});const l=await o.save(),h=new Blob([l]),d=await Ki(h);e(d)},n.onerror=t=>{i(t)},n.src=t})}}Af.instanceName="doExportPDF";const zf=Af,Lf=t=>String(t).split(/\s+/).map(t=>{if(/^[\d.]+/.test(t)){let e=/^([\d.]+)(.*)$/.exec(t);return[Number(e[1]),e[2]]}return t}),Of=(t,e)=>t*e,Ff=(t,e)=>e/t,Df={left:0,top:0,center:50,bottom:100,right:100},Rf=(t,e,i)=>{t.drawImage(e,i.sx,i.sy,i.swidth,i.sheight,i.x,i.y,i.width,i.height)},If=(t,e,i,n,{backgroundSize:r,backgroundPosition:o,backgroundRepeat:s},a=()=>{})=>{let l=e/i,h=new Image;h.src=n,h.onload=()=>{let n=h.width,d=h.height,c=n/d,u={sx:0,sy:0,swidth:n,sheight:d,x:0,y:0,width:n,height:d};(({backgroundSize:t,drawOpt:e,imageRatio:i,canvasWidth:n,canvasHeight:r,canvasRatio:o})=>{if(t){let s=Lf(t);if("auto"===s[0]&&"auto"===s[1])return;if("cover"===s[0])return void(i>o?(e.height=r,e.width=Of(i,r)):(e.width=n,e.height=Ff(i,n)));if("contain"===s[0])return void(i>o?(e.width=n,e.height=Ff(i,n)):(e.height=r,e.width=Of(i,r)));let a=-1;s[0]&&(Array.isArray(s[0])?"%"===s[0][1]?(e.width=s[0][0]/100*n,a=e.width):(e.width=s[0][0],a=s[0][0]):"auto"===s[0]&&s[1]&&("%"===s[1][1]?e.width=Of(i,s[1][0]/100*r):e.width=Of(i,s[1][0]))),s[1]&&Array.isArray(s[1])?"%"===s[1][1]?e.height=s[1][0]/100*r:e.height=s[1][0]:-1!==a&&(e.height=Ff(i,a))}})({backgroundSize:r,drawOpt:u,imageRatio:c,canvasWidth:e,canvasHeight:i,canvasRatio:l}),(({backgroundPosition:t,drawOpt:e,imgWidth:i,imgHeight:n,canvasWidth:r,canvasHeight:o})=>{if(t){let s=Lf(t);if(s=s.map(t=>"string"==typeof t&&void 0!==Df[t]?[Df[t],"%"]:t),Array.isArray(s[0])){if(1===s.length&&s.push([50,"%"]),"%"===s[0][1]){let t=s[0][0]/100*r,n=s[0][0]/100*i;e.x=t-n}else e.x=s[0][0];if("%"===s[1][1]){let t=s[1][0]/100*o,i=s[1][0]/100*n;e.y=t-i}else e.y=s[1][0]}}})({backgroundPosition:o,drawOpt:u,imgWidth:u.width,imgHeight:u.height,imageRatio:c,canvasWidth:e,canvasHeight:i,canvasRatio:l});let f=(({ctx:t,image:e,backgroundRepeat:i,drawOpt:n,imgWidth:r,imgHeight:o,canvasWidth:s,canvasHeight:a})=>{if(i){let l=n.x,h=n.y,d=l-Math.ceil(l/r)*r,c=h-Math.ceil(h/o)*o,u=Lf(i);if("no-repeat"===u[0]||r>=s&&o>=a)return;if("repeat-x"===u[0]&&s>r){let i=d;for(;i<s;)Rf(t,e,{...n,x:i}),i+=r;return!0}if("repeat-y"===u[0]&&a>o){let i=c;for(;i<a;)Rf(t,e,{...n,y:i}),i+=o;return!0}if("repeat"===u[0]){let i=d;for(;i<s;){if(a>o){let r=c;for(;r<a;)Rf(t,e,{...n,x:i,y:r}),r+=o}i+=r}return!0}}})({ctx:t,image:h,backgroundRepeat:s,drawOpt:u,imgWidth:u.width,imgHeight:u.height,imageRatio:c,canvasWidth:e,canvasHeight:i,canvasRatio:l});f||Rf(t,h,u),a()},h.onerror=t=>{a(t)}},qf=t=>t.richText?on(t.text):t.text,Bf=t=>{let e="";return Li(t,null,(t,i,n,r)=>{const o=r+1;e+=o<=6?(t=>new Array(t).fill("#").join(""))(o):(t=>new Array(t-6).fill(" ").join("")+"*")(o),e+=" "+qf(t.data);const s=t.data.generalization;if(Array.isArray(s))e+=s.map(t=>` [${qf(t)}]`);else if(s&&s.text){const t=qf(s);e+=` [${t}]`}e+="\n\n",t.data.note&&(e+=t.data.note+"\n\n")},()=>{},!0),e},Pf=t=>t.richText?on(t.text):t.text,Uf=t=>{let e="";return Li(t,null,(t,i,n,r)=>{e+=(t=>new Array(t).fill(" ").join(""))(r),e+=" "+Pf(t.data);const o=t.data.generalization;Array.isArray(o)?e+=o.map(t=>` [${Pf(t)}]`):o&&o.text&&(e+=` [${Pf(o)}]`),e+="\n\n"},()=>{},!0),e};class jf{constructor(t){this.mindMap=t.mindMap}async export(t,e=!0,i="思维导图",...n){if(this[t]){const r=await this[t](i,...n);return e&&((t,e)=>{let i=document.createElement("a");i.href=t,i.download=e,i.click()})(r,i+"."+t),r}return null}createTransformImgTaskList(t,e,i,n){return t.find(e).map(async t=>{const e=n(t);if(/^data:/.test(e)||"none"===e)return;const r=await Bi(e);t.attr(i,r)})}async getSvgData(t){let{exportPaddingX:e,exportPaddingY:i,errorHandler:n,resetCss:r,addContentToHeader:o,addContentToFooter:s,handleBeingExportSvg:a}=this.mindMap.opt,{svg:l,svgHTML:h,clipData:d}=this.mindMap.getSvgData({paddingX:e,paddingY:i,addContentToHeader:o,addContentToFooter:s,node:t});d&&(d.paddingX=e,d.paddingY=i);let c=!1;const f=[...this.createTransformImgTaskList(l,"image","href",t=>t.attr("href")||t.attr("xlink:href")),...this.createTransformImgTaskList(l,"img","src",t=>t.attr("src"))];try{await Promise.all(f)}catch(t){n(u.EXPORT_LOAD_IMAGE_ERROR,t)}if(this.mindMap.richText){const t=l.find("foreignObject");if(t.length>0&&(t[0].add(Ci(`<style>${r}</style>`)),c=!0),this.mindMap.formula){if(l.find(".ql-formula").length>0){const e=this.mindMap.formula.getStyleText();if(e){const i=document.createElement("style");i.innerHTML=e,An(i),t[0].add(i),c=!0}}}}return"function"==typeof a&&(c=!0,l=a(l)),(f.length>0||c)&&(h=l.svg()),{node:l,str:h,clipData:d}}svgToPng(t,e,i=null,n=!1,r="image/png"){const{maxCanvasSize:o,minExportImgCanvasScale:s}=this.mindMap.opt;return new Promise((a,l)=>{const h=new Image;h.setAttribute("crossOrigin","anonymous"),h.onload=async()=>{try{const t=document.createElement("canvas"),l=Math.max(window.devicePixelRatio,s);let d=h.width,c=h.height,u=0,f=0;i&&(u=i.paddingX,f=i.paddingY,d=i.width+2*u,c=i.height+2*f);let p=0,m=0;const{backgroundImage:g}=this.mindMap.themeConfig;if(n&&g&&!e){const t=await new Promise(t=>{const e=new Image;e.onload=()=>{t([e.width,e.height])},e.onerror=()=>{t(null)},e.src=g});if(t){const e=d/c,i=t[0]/t[1];e>i?(p=d,m=d/i):(m=c,p=c*i)}}let v=1,y=1,b=(p||d)*l,x=(m||c)*l;if(b>o||x>o){let t=null,e=null;b>o?t=o:x>o&&(e=o);const i=Fi(b,x,t,e);v=i[0]/b,y=i[1]/x,b=i[0],x=i[1]}t.width=b,t.height=x;const w=b/l,k=x/l;t.style.width=w+"px",t.style.height=k+"px";const E=t.getContext("2d");E.scale(l,l),e||await this.drawBackgroundToCanvas(E,w,k);const N=(p>0?(p-d)/2:0)*v,T=(m>0?(m-c)/2:0)*y;i?E.drawImage(h,i.left,i.top,i.width,i.height,u*v+N,f*y+T,i.width*v,i.height*y):E.drawImage(h,N,T,d*v,c*y),a(t.toDataURL(r))}catch(t){l(t)}},h.onerror=t=>{l(t)},h.src=t})}drawBackgroundToCanvas(t,e,i){return new Promise((n,r)=>{const{backgroundColor:o="#fff",backgroundImage:s,backgroundRepeat:a="no-repeat",backgroundPosition:l="center center",backgroundSize:h="cover"}=this.mindMap.themeConfig;t.save(),t.rect(0,0,e,i),t.fillStyle=o,t.fill(),t.restore(),s&&"none"!==s?(t.save(),If(t,e,i,s,{backgroundRepeat:a,backgroundPosition:l,backgroundSize:h},e=>{e?r(e):n(),t.restore()})):n()})}drawBackgroundToSvg(t){return new Promise(async e=>{const{backgroundColor:i="#fff",backgroundImage:n,backgroundRepeat:r="repeat"}=this.mindMap.themeConfig;if(t.css("background-color",i),n&&"none"!==n){const i=await Bi(n);t.css("background-image",`url(${i})`),t.css("background-repeat",r),e()}else e()})}async _image(t,e,i=!1,n=null,r=!1){this.mindMap.renderer.textEdit.hideEditTextBox(),this.handleNodeExport(n);const{str:o,clipData:s}=await this.getSvgData(n),a=await this.fixSvgStrAndToBlob(o);return await this.svgToPng(a,i,s,r,t)}async png(...t){return await this._image("image/png",...t)}async jpg(...t){return await this._image("image/jpg",...t)}handleNodeExport(t){if(t&&t.getData("isActive")){t.deactivate();const{alwaysShowExpandBtn:e,notShowExpandBtn:i}=this.mindMap.opt;e||i||!t.getData("expand")||t.removeExpandBtn()}}async pdf(t,e=!1,i=!1){if(!this.mindMap.doExportPDF)throw new Error("请注册ExportPDF插件");const n=await this.png(t,e,null,i);return await this.mindMap.doExportPDF.pdf(n)}async xmind(t){if(!this.mindMap.doExportXMind)throw new Error("请注册ExportXMind插件");const e=this.mindMap.getData(),i=await this.mindMap.doExportXMind.xmind(e,t);return await Ki(i)}async svg(t){this.mindMap.renderer.textEdit.hideEditTextBox();const{node:e}=await this.getSvgData();e.first().before(Ci(`<title>${t}</title>`)),await this.drawBackgroundToSvg(e);const i=e.svg();return await this.fixSvgStrAndToBlob(i)}async fixSvgStrAndToBlob(t){t=(t=>(p.forEach(e=>{t=t.replace(new RegExp(`<${e}([^>]*)>`,"g"),`<${e} $1 />`)}),t))(t=(t=>([[" "," "]].forEach(e=>{t=t.replace(new RegExp(e[0],"g"),e[1])}),t))(t));const e=new Blob([t],{type:"image/svg+xml"});return await Ki(e)}async json(t,e=!0){const i=this.mindMap.getData(e),n=JSON.stringify(i),r=new Blob([n]);return await Ki(r)}async smm(t,e){return await this.json(t,e)}async md(){const t=this.mindMap.getData(),e=Bf(t),i=new Blob([e]);return await Ki(i)}async txt(){const t=this.mindMap.getData(),e=Uf(t),i=new Blob([e]);return await Ki(i)}}jf.instanceName="doExport";const Hf=jf;const Wf=class{constructor(t){this.mindMap=t,this.autoMoveTimer=null}onMove(t,e,i=()=>{},n=()=>{}){i();let r=this.mindMap.opt.selectTranslateStep,o=this.mindMap.opt.selectTranslateLimit,s=0;t<=this.mindMap.elRect.left+o&&(n("left",r),this.mindMap.view.translateX(r),s++),t>=this.mindMap.elRect.right-o&&(n("right",r),this.mindMap.view.translateX(-r),s++),e<=this.mindMap.elRect.top+o&&(n("top",r),this.mindMap.view.translateY(r),s++),e>=this.mindMap.elRect.bottom-o&&(n("bottom",r),this.mindMap.view.translateY(-r),s++),s>0&&this.startAutoMove(t,e,i,n)}startAutoMove(t,e,i,n){this.autoMoveTimer=setTimeout(()=>{this.onMove(t,e,i,n)},20)}clearAutoMoveTimer(){clearTimeout(this.autoMoveTimer)}};class Vf extends nr{constructor({mindMap:t}){super(t.renderer),this.mindMap=t,this.autoMove=new Wf(t),this.reset(),this.bindEvent()}reset(){this.isDragging=!1,this.mousedownNode=null,this.beingDragNodeList=[],this.nodeList=[],this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.drawTransform=null,this.clone=null,this.placeholder=null,this.placeholderWidth=50,this.placeholderHeight=10,this.placeHolderLine=null,this.placeHolderExtraLines=[],this.offsetX=0,this.offsetY=0,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.checkDragOffset=10,this.minOffset=10}bindEvent(){this.onNodeMousedown=this.onNodeMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.checkOverlapNode=Pi(this.checkOverlapNode,300,this),this.mindMap.on("node_mousedown",this.onNodeMousedown),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("mouseup",this.onMouseup)}unBindEvent(){this.mindMap.off("node_mousedown",this.onNodeMousedown),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("node_mouseup",this.onMouseup),this.mindMap.off("mouseup",this.onMouseup)}onNodeMousedown(t,e){if(this.mindMap.opt.readonly||1!==e.which||t.isGeneralization||t.isRoot)return;this.isMousedown=!0,this.mousedownNode=t;const{x:i,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseDownX=i,this.mouseDownY=n}onMousemove(t){if(this.mindMap.opt.readonly||!this.isMousedown)return;t.preventDefault();const{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=i,!this.isDragging&&Math.abs(e-this.mouseDownX)<=this.checkDragOffset&&Math.abs(i-this.mouseDownY)<=this.checkDragOffset||(this.mindMap.emit("node_dragging",this.mousedownNode),this.handleStartMove(),this.onMove(e,i,t))}async onMouseup(t){if(!this.isMousedown)return;const{autoMoveWhenMouseInEdgeOnDrag:e,enableFreeDrag:i,beforeDragEnd:n}=this.mindMap.opt;e&&this.mindMap.select&&this.autoMove.clearAutoMoveTimer(),this.isMousedown=!1,this.beingDragNodeList.forEach(t=>{t.setOpacity(1),t.showChildren(),t.endDrag()}),this.removeCloneNode();let r=this.overlapNode?this.overlapNode.getData("uid"):"",o=this.prevNode?this.prevNode.getData("uid"):"",s=this.nextNode?this.nextNode.getData("uid"):"";if(this.isDragging&&"function"==typeof n){if(await n({overlapNodeUid:r,prevNodeUid:o,nextNodeUid:s,beingDragNodeList:[...this.beingDragNodeList]}))return void this.reset()}if(this.overlapNode)this.removeNodeActive(this.overlapNode),this.mindMap.execCommand("MOVE_NODE_TO",this.beingDragNodeList,this.overlapNode);else if(this.prevNode)this.removeNodeActive(this.prevNode),this.mindMap.execCommand("INSERT_AFTER",this.beingDragNodeList,this.prevNode);else if(this.nextNode)this.removeNodeActive(this.nextNode),this.mindMap.execCommand("INSERT_BEFORE",this.beingDragNodeList,this.nextNode);else if(this.clone&&i&&1===this.beingDragNodeList.length){let{x:e,y:i}=this.mindMap.toPos(t.clientX-this.offsetX,t.clientY-this.offsetY),{scaleX:n,scaleY:r,translateX:o,translateY:s}=this.drawTransform;e=(e-o)/n,i=(i-s)/r,this.mousedownNode.left=e,this.mousedownNode.top=i,this.mousedownNode.customLeft=e,this.mousedownNode.customTop=i,this.mindMap.execCommand("SET_NODE_CUSTOM_POSITION",this.mousedownNode,e,i),this.mindMap.render()}this.isDragging&&this.mindMap.emit("node_dragend",{overlapNodeUid:r,prevNodeUid:o,nextNodeUid:s}),this.reset()}removeNodeActive(t){t.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1)}onMove(t,e,i){if(!this.isMousedown||!this.isDragging)return;let{scaleX:n,scaleY:r,translateX:o,translateY:s}=this.drawTransform;t=(t-this.offsetX-o)/n,e=(e-this.offsetY-s)/r;let a=this.clone.transform();this.clone.translate(t-a.translateX,e-a.translateY),this.checkOverlapNode(),this.drawTransform=this.mindMap.draw.transform(),this.autoMove.clearAutoMoveTimer(),this.autoMove.onMove(i.clientX,i.clientY)}async handleStartMove(){if(!this.isDragging){let t=this.mousedownNode;this.drawTransform=this.mindMap.draw.transform();let{scaleX:e,scaleY:i,translateX:n,translateY:r}=this.drawTransform;this.offsetX=this.mouseDownX-(t.left*e+n),this.offsetY=this.mouseDownY-(t.top*i+r),t.getData("isActive")?this.beingDragNodeList=zn(ln(this.mindMap.renderer.activeNodeList.filter(t=>!t.isRoot&&!t.isGeneralization))):this.beingDragNodeList=[t];const{beforeDragStart:o}=this.mindMap.opt;if("function"==typeof o){if(await o([...this.beingDragNodeList]))return}this.nodeTreeToList(),this.createCloneNode(),this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.isDragging=!0}}nodeTreeToList(){const t=[];Oi(this.mindMap.renderer.root,e=>{this.checkIsInBeingDragNodeList(e)||(t[e.layerIndex]||(t[e.layerIndex]=[]),t[e.layerIndex].push(e))}),this.nodeList=t.reduceRight((t,e)=>[...t,...e],[])}createCloneNode(){if(!this.clone){const{dragMultiNodeRectConfig:t,dragPlaceholderRectFill:e,dragPlaceholderLineConfig:i,dragOpacityConfig:n,handleDragCloneNode:r}=this.mindMap.opt,{width:o,height:s,fill:a}=t,l=this.beingDragNodeList[0],h=l.style.merge("lineColor",!0);if(this.beingDragNodeList.length>1)this.clone=this.mindMap.otherDraw.rect().size(o,s).radius(s/2).fill({color:a||h}),this.offsetX=o/2,this.offsetY=s/2;else{this.clone=l.group.clone();const t=this.clone.findOne(".smm-expand-btn");t&&t.remove(),this.mindMap.otherDraw.add(this.clone),"function"==typeof r&&r(this.clone)}this.clone.opacity(n.cloneNodeOpacity),this.clone.css("z-index",99999),this.placeholder=this.mindMap.otherDraw.rect().fill({color:e||h}).radius(5),this.placeHolderLine=this.mindMap.otherDraw.path().stroke({color:i.color||h,width:i.width}).fill({color:"none"}),this.beingDragNodeList.forEach(t=>{t.setOpacity(n.beingDragNodeOpacity),t.hideChildren(),t.startDrag()})}}removeCloneNode(){this.clone&&(this.clone.remove(),this.placeholder.remove(),this.placeHolderLine.remove(),this.removeExtraLines())}removeExtraLines(){this.placeHolderExtraLines.forEach(t=>{t.remove()}),this.placeHolderExtraLines=[]}checkOverlapNode(){if(!this.drawTransform||!this.placeholder)return;const{LOGICAL_STRUCTURE:t,LOGICAL_STRUCTURE_LEFT:e,MIND_MAP:i,ORGANIZATION_STRUCTURE:n,CATALOG_ORGANIZATION:r,TIMELINE:o,TIMELINE2:s,VERTICAL_TIMELINE:l,VERTICAL_TIMELINE2:h,VERTICAL_TIMELINE3:d,FISHBONE:c,FISHBONE2:u,RIGHT_FISHBONE:f,RIGHT_FISHBONE2:p}=a.LAYOUT;this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.placeholder.size(0,0),this.placeHolderLine.hide(),this.removeExtraLines(),this.nodeList.forEach(a=>{if(a.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",a,!1),!(this.overlapNode||this.prevNode&&this.nextNode))switch(this.mindMap.opt.layout){case t:case e:this.handleLogicalStructure(a);break;case i:this.handleMindMap(a);break;case n:this.handleOrganizationStructure(a);break;case r:this.handleCatalogOrganization(a);break;case o:this.handleTimeLine(a);break;case s:this.handleTimeLine2(a);break;case l:case h:case d:this.handleLogicalStructure(a);break;case c:case u:case f:case p:this.handleFishbone(a);break;default:this.handleLogicalStructure(a)}}),this.overlapNode&&this.handleOverlapNode()}handleOverlapNode(){const{LOGICAL_STRUCTURE:t,LOGICAL_STRUCTURE_LEFT:e,MIND_MAP:i,ORGANIZATION_STRUCTURE:n,CATALOG_ORGANIZATION:r,TIMELINE:o,TIMELINE2:s,VERTICAL_TIMELINE:l,VERTICAL_TIMELINE2:h,VERTICAL_TIMELINE3:d,FISHBONE:c,FISHBONE2:u,RIGHT_FISHBONE:f,RIGHT_FISHBONE2:p}=a.LAYOUT,{LEFT:m,TOP:g,RIGHT:v,BOTTOM:y}=a.LAYOUT_GROW_DIR,b=this.overlapNode.layerIndex,x=this.overlapNode.children,w=this.mindMap.renderer.layout.getMarginX(b+1),k=this.mindMap.renderer.layout.getMarginY(b+1),E=this.placeholderWidth/2,N=this.placeholderHeight/2;let T="",_="",C="",S=!1,M=!1;if(x.length>0){const a=x[x.length-1],y=this.getNodeRect(a);switch(T=this.getNewChildNodeDir(a),this.mindMap.opt.layout){case t:case i:_=T===m?y.originRight-this.placeholderWidth:y.originLeft,C=y.originBottom+this.minOffset-N;break;case e:_=y.originRight-this.placeholderWidth,C=y.originBottom+this.minOffset-N;break;case n:S=!0,_=y.originRight+this.minOffset-N,C=y.originTop;break;case r:0===b?(S=!0,_=y.originRight+this.minOffset-N,C=y.originTop):(_=y.originLeft,C=y.originBottom+this.minOffset-N);break;case o:0===b?(S=!0,_=y.originRight+this.minOffset-N,C=y.originTop+y.originHeight/2-E):(_=y.originLeft,C=y.originBottom+this.minOffset-N);break;case s:0===b?(S=!0,_=y.originRight+this.minOffset-N,C=y.originTop+y.originHeight/2-E):(_=y.originLeft,C=1===b&&T===g?y.originTop-this.placeholderHeight-this.minOffset+N:y.originBottom+this.minOffset-N);break;case l:case h:case d:0===b?(_=y.originLeft+y.originWidth/2-E,C=y.originBottom+this.minOffset-N):(_=T===v?y.originLeft:y.originRight-this.placeholderWidth,C=y.originBottom+this.minOffset-N);break;case c:case u:case f:case p:b<=1?(M=!0,this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)):(_=y.originLeft,C=T===g?y.originBottom+this.minOffset-N:y.originTop-this.placeholderHeight-this.minOffset+N)}}else{const a=this.getNodeRect(this.overlapNode);switch(T=this.getNewChildNodeDir(this.overlapNode),this.mindMap.opt.layout){case t:case i:_=T===v?a.originRight+w:a.originLeft-this.placeholderWidth-w,C=a.originTop+(a.originHeight-this.placeholderHeight)/2;break;case e:_=a.originLeft-this.placeholderWidth-w,C=a.originTop+(a.originHeight-this.placeholderHeight)/2;break;case n:S=!0,_=a.originLeft+(a.originWidth-this.placeholderHeight)/2,C=a.originBottom+w;break;case r:0===b&&(S=!0),_=a.originLeft+.5*a.originWidth,C=a.originBottom+w;break;case o:0===b&&(S=!0),_=a.originLeft+.5*a.originWidth,C=a.originBottom+k;break;case s:0===b&&(S=!0),_=a.originLeft+.5*a.originWidth,C=1===b&&T===g?a.originTop-this.placeholderHeight-w:a.originBottom+w;break;case l:case h:case d:0===b&&(S=!0),_=T===v?a.originRight+w:a.originLeft-this.placeholderWidth-w,C=a.originTop+a.originHeight/2-N;break;case c:case u:case f:case p:b<=1?(M=!0,this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)):(_=a.originLeft+.5*a.originWidth,C=T===y?a.originTop-this.placeholderHeight-this.minOffset+N:a.originBottom+this.minOffset-N)}}M||this.setPlaceholderRect({x:_,y:C,dir:T,rotate:S})}getNewChildNodeDir(t){const{LOGICAL_STRUCTURE:e,LOGICAL_STRUCTURE_LEFT:i,MIND_MAP:n,TIMELINE2:r,VERTICAL_TIMELINE:o,VERTICAL_TIMELINE2:s,VERTICAL_TIMELINE3:l,FISHBONE:h,FISHBONE2:d,RIGHT_FISHBONE:c,RIGHT_FISHBONE2:u}=a.LAYOUT;switch(this.mindMap.opt.layout){case e:return a.LAYOUT_GROW_DIR.RIGHT;case i:return a.LAYOUT_GROW_DIR.LEFT;case n:case r:case o:case s:case l:case h:case d:case c:case u:return t.dir;default:return""}}handleVerticalCheck(t,e,i=!1){const{layout:n}=this.mindMap.opt,{LAYOUT:r,LAYOUT_GROW_DIR:o}=a,{VERTICAL_TIMELINE:s,VERTICAL_TIMELINE2:l,VERTICAL_TIMELINE3:h,FISHBONE:d,FISHBONE2:c,RIGHT_FISHBONE:u,RIGHT_FISHBONE2:f}=r,{LEFT:p}=o,m=this.mouseMoveX,g=this.mouseMoveY,v=this.getNodeRect(t),y=this.getNewChildNodeDir(t),b=t.layerIndex;i&&(e=e.reverse());let x=v.originHeight/4,{prevBrotherOffset:w,nextBrotherOffset:k}=this.getNodeDistanceToSiblingNode(e,t,v,"v");if(v.left<=m&&v.right>=m){if(!(this.overlapNode||this.prevNode||this.nextNode||t.isRoot)){let e=k>0?g>v.bottom&&g<=v.bottom+k:g>=v.bottom-x&&g<=v.bottom,r=w>0?g<v.top&&g>=v.top-w:g>=v.top&&g<=v.top+x;const{scaleY:o}=this.drawTransform;let a=y===p?v.originRight-this.placeholderWidth:v.originLeft,m=!1;switch(n){case s:case l:case h:1===b&&(a=v.originLeft+v.originWidth/2-this.placeholderWidth/2);break;case u:case f:a=v.originLeft+v.originWidth-this.placeholderWidth}if(e){i?this.nextNode=t:this.prevNode=t;let e=v.originBottom+k/o-this.placeholderHeight/2;switch(n){case d:case c:case u:case f:2===b&&(m=!0,e=v.originBottom+this.minOffset-this.placeholderHeight/2)}this.setPlaceholderRect({x:a,y:e,dir:y,notRenderLine:m})}else if(r){i?this.prevNode=t:this.nextNode=t;let e=v.originTop-this.placeholderHeight-w/o+this.placeholderHeight/2;switch(n){case d:case c:case u:case f:2===b&&(m=!0,e=v.originTop-this.placeholderHeight-this.minOffset+this.placeholderHeight/2)}this.setPlaceholderRect({x:a,y:e,dir:y,notRenderLine:m})}}this.checkIsOverlap({node:t,dir:"v",prevBrotherOffset:w,nextBrotherOffset:k,size:x,pos:g,nodeRect:v})}}handleHorizontalCheck(t,e){const{layout:i}=this.mindMap.opt,{LAYOUT:n}=a,{FISHBONE:r,FISHBONE2:o,RIGHT_FISHBONE:s,RIGHT_FISHBONE2:l,TIMELINE:h,TIMELINE2:d}=n;let c=this.mouseMoveX,u=this.mouseMoveY,f=this.getNodeRect(t),p=f.originWidth/4,{prevBrotherOffset:m,nextBrotherOffset:g}=this.getNodeDistanceToSiblingNode(e,t,f,"h");if(f.top<=u&&f.bottom>=u){if(!(this.overlapNode||this.prevNode||this.nextNode||t.isRoot)){let e=g>0?c<f.right+g&&c>=f.right:c<=f.right&&c>=f.right-p,n=m>0?c>f.left-m&&c<=f.left:c<=f.left+p&&c>=f.left;const{scaleX:a}=this.drawTransform,u=t.layerIndex;let v=f.originTop,y=!1;switch(i){case h:case d:v=f.originTop+f.originHeight/2-this.placeholderWidth/2;break;case r:case o:case s:case l:1===u&&(y=!0,v=f.originTop+f.originHeight/2-this.placeholderWidth/2)}e?([s,l].includes(i)?this.nextNode=t:this.prevNode=t,this.setPlaceholderRect({x:f.originRight+g/a-this.placeholderHeight/2,y:v,rotate:!0,notRenderLine:y})):n&&([s,l].includes(i)?this.prevNode=t:this.nextNode=t,this.setPlaceholderRect({x:f.originLeft-this.placeholderHeight-m/a+this.placeholderHeight/2,y:v,rotate:!0,notRenderLine:y}))}this.checkIsOverlap({node:t,dir:"h",prevBrotherOffset:m,nextBrotherOffset:g,size:p,pos:c,nodeRect:f})}}getNodeDistanceToSiblingNode(t,e,i,n){const{TOP:r,LEFT:o,BOTTOM:s,RIGHT:l}=a.LAYOUT_GROW_DIR;let{scaleX:h,scaleY:d}=this.drawTransform,c="v"===n?r:o,u="v"===n?s:l,f="v"===n?d:h,p=this.minOffset*f,m=mn(e,t),g=null,v=null;-1!==m&&(m-1>=0&&(g=t[m-1]),m+1<=t.length-1&&(v=t[m+1]));let y=0;if(g){let t=this.getNodeRect(g);y=i[c]-t[u],y=y>=p?y/2:0}else y=p;let b=0;if(v){b=this.getNodeRect(v)[c]-i[u],b=b>=p?b/2:0}else b=p;return{prevBrother:g,prevBrotherOffset:y,nextBrother:v,nextBrotherOffset:b}}setPlaceholderRect({x:t,y:e,dir:i,rotate:n,notRenderLine:r}){let o=this.placeholderWidth,s=this.placeholderHeight;if(n){const t=o;o=s,s=t}if(this.placeholder.size(o,s).move(t,e),r)return;const{dragPlaceholderLineConfig:a}=this.mindMap.opt;let l=null,h=null;this.overlapNode?(l=this.overlapNode,h=this.overlapNode):(l=this.prevNode||this.nextNode,h=l.parent),h=h.fakeClone(),l=l.fakeClone();const d=this.beingDragNodeList[0].fakeClone();d.dir=i,d.left=t,d.top=e,d.width=o,d.height=s,h.children=[d],h._lines=[],this.placeHolderLine.show(),this.mindMap.renderer.layout.renderLine(h,[this.placeHolderLine],(...t)=>{},l.style.getStyle("lineStyle",!0)),this.placeHolderExtraLines=[...h._lines],this.placeHolderExtraLines.forEach(t=>{this.mindMap.otherDraw.add(t),t.stroke({color:a.color,width:a.width}).fill({color:"none"})})}checkIsOverlap({node:t,dir:e,prevBrotherOffset:i,nextBrotherOffset:n,size:r,pos:o,nodeRect:s}){const{TOP:l,LEFT:h,BOTTOM:d,RIGHT:c}=a.LAYOUT_GROW_DIR;let u="v"===e?l:h,f="v"===e?d:c;this.overlapNode||this.prevNode||this.nextNode||s[u]+(i>0?0:r)<=o&&s[f]-(n>0?0:r)>=o&&(this.overlapNode=t)}handleLogicalStructure(t){const e=this.commonGetNodeCheckList(t);this.handleVerticalCheck(t,e)}handleMindMap(t){const e=t.parent?t.parent.children.filter(e=>{let i=!0;return 1===t.layerIndex&&(i=e.dir===t.dir),i&&!this.checkIsInBeingDragNodeList(e)}):[];this.handleVerticalCheck(t,e)}handleOrganizationStructure(t){const e=this.commonGetNodeCheckList(t);this.handleHorizontalCheck(t,e)}handleCatalogOrganization(t){const e=this.commonGetNodeCheckList(t);1===t.layerIndex?this.handleHorizontalCheck(t,e):this.handleVerticalCheck(t,e)}handleTimeLine(t){let e=this.commonGetNodeCheckList(t);1===t.layerIndex?this.handleHorizontalCheck(t,e):this.handleVerticalCheck(t,e)}handleTimeLine2(t){let e=this.commonGetNodeCheckList(t);1===t.layerIndex?this.handleHorizontalCheck(t,e):t.dir===a.LAYOUT_GROW_DIR.TOP&&2===t.layerIndex?this.handleVerticalCheck(t,e,!0):this.handleVerticalCheck(t,e)}handleFishbone(t){let e=t.parent?t.parent.children.filter(t=>t.layerIndex>1&&!this.checkIsInBeingDragNodeList(t)):[];if(1===t.layerIndex)this.handleHorizontalCheck(t,e);else{const i=t.dir===a.LAYOUT_GROW_DIR.TOP&&2===t.layerIndex,n=t.dir===a.LAYOUT_GROW_DIR.BOTTOM&&t.layerIndex>=3;i||n?this.handleVerticalCheck(t,e,!0):this.handleVerticalCheck(t,e)}}commonGetNodeCheckList(t){return t.parent?[...t.parent.children].filter(t=>!this.checkIsInBeingDragNodeList(t)):[]}getNodeRect(t){let{scaleX:e,scaleY:i,translateX:n,translateY:r}=this.drawTransform,{left:o,top:s,width:a,height:l}=t,h=o,d=s,c=s+l,u=o+a,f=(o+a)*e+n,p=(s+l)*i+r;return o=o*e+n,s=s*i+r,{left:o,top:s,right:f,bottom:p,originWidth:a,originHeight:l,originLeft:h,originTop:d,originBottom:c,originRight:u}}checkIsInBeingDragNodeList(t){return!!this.beingDragNodeList.find(e=>e.uid===t.uid||e.isAncestor(t))}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Vf.instanceName="drag";const Kf=Vf;class Gf{constructor({mindMap:t}){this.mindMap=t,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.isSelecting=!1,this.cacheActiveList=[],this.autoMove=new Wf(t),this.bindEvent()}bindEvent(){this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.checkInNodes=Pi(this.checkInNodes,300,this),this.mindMap.on("mousedown",this.onMousedown),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup)}unBindEvent(){this.mindMap.off("mousedown",this.onMousedown),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_mouseup",this.onMouseup)}onMousedown(t){const{readonly:e,mousedownEventPreventDefault:i}=this.mindMap.opt;if(e)return;let{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if(!t.ctrlKey&&!t.metaKey&&(n?1!==t.which:3!==t.which))return;i&&t.preventDefault(),this.isMousedown=!0,this.cacheActiveList=[...this.mindMap.renderer.activeNodeList];let{x:r,y:o}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=r,this.mouseDownY=o,this.createRect(r,o)}onMousemove(t){if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=i,Math.abs(e-this.mouseDownX)<=10&&Math.abs(i-this.mouseDownY)<=10||(this.autoMove.clearAutoMoveTimer(),this.autoMove.onMove(t.clientX,t.clientY,()=>{this.isSelecting=!0,this.rect&&this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes()},(t,e)=>{switch(t){case"left":this.mouseDownX+=e;break;case"top":this.mouseDownY+=e;break;case"right":this.mouseDownX-=e;break;case"bottom":this.mouseDownY-=e}}))}onMouseup(){this.mindMap.opt.readonly||this.isMousedown&&(this.checkTriggerNodeActiveEvent(),this.autoMove.clearAutoMoveTimer(),this.isMousedown=!1,this.cacheActiveList=[],this.rect&&this.rect.remove(),this.rect=null,setTimeout(()=>{this.isSelecting=!1},0))}checkTriggerNodeActiveEvent(){let t=this.cacheActiveList.length!==this.mindMap.renderer.activeNodeList.length,e=!1;if(!t)for(let t=0;t<this.cacheActiveList.length;t++){let i=this.cacheActiveList[t];if(!this.mindMap.renderer.activeNodeList.find(t=>t.getData("uid")===i.getData("uid"))){e=!0;break}}(t||e)&&this.mindMap.renderer.emitNodeActiveEvent()}createRect(t,e){this.rect&&this.rect.remove(),this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[t,e]])}checkInNodes(){let{scaleX:t,scaleY:e,translateX:i,translateY:n}=this.mindMap.draw.transform(),r=Math.min(this.mouseDownX,this.mouseMoveX),o=Math.min(this.mouseDownY,this.mouseMoveY),s=Math.max(this.mouseDownX,this.mouseMoveX),a=Math.max(this.mouseDownY,this.mouseMoveY);const l=l=>{let{left:h,top:d,width:c,height:u}=l,f=(h+c)*t+i,p=(d+u)*e+n;if(h=h*t+i,d=d*e+n,m=r,g=o,v=a,y=f,b=d,x=p,s>h&&y>m&&v>b&&x>g){if(l.getData("isActive"))return;this.mindMap.renderer.addNodeToActiveList(l),this.mindMap.renderer.emitNodeActiveEvent()}else if(l.getData("isActive")){if(!l.getData("isActive"))return;this.mindMap.renderer.removeNodeFromActiveList(l),this.mindMap.renderer.emitNodeActiveEvent()}var m,g,v,y,b,x};Oi(this.mindMap.renderer.root,t=>{l(t),t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach(t=>{l(t.generalizationNode)})})}hasSelectRange(){return this.isSelecting}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Gf.instanceName="select";const Xf=Gf,Yf=(t,e)=>t.getData("associativeLineTargets").findIndex(t=>t===e.getData("uid")),Zf=(t,e,i,n)=>{let r=t+(i-t)/2,o=e,s=r,a=n;return Math.abs(t-i)<=5&&(r=t+(n-e)/2,s=r),Math.abs(e-n)<=5&&(r=t,o=e-(i-t)/2,s=i,a=o),[{x:r,y:o},{x:s,y:a}]},Qf=(t,e,i,n)=>`M ${t.x},${t.y} C ${i.x},${i.y} ${n.x},${n.y} ${e.x},${e.y}`,Jf=t=>{let{left:e,top:i,width:n,height:r}=t;return{right:e+n,bottom:i+r,left:e,top:i,width:n,height:r}},$f=(t,e="right",i=0,n=null)=>{let{left:r,top:o,width:s,height:a}=t;if(n)return((t,e)=>{const{left:i,top:n,translateLeft:r,translateTop:o,width:s,height:a}=t,l=e.clientX,h=e.clientY,d=r+s/2,c=o+a/2,u=i+s/2,f=n+a/2,p=Math.atan(a/s),m=l-d,g=c-h,v=Math.atan2(g,m);let y=i+s,b=n+a;if(v<p&&v>=-p){const t=v*(s/2);return(v<p&&v>=0||v>=-p&&v<0)&&(b=f-t),{x:y,y:b,dir:"right",range:t}}if(v>=p&&v<Math.PI-p){b=n;let t=0;if(v<Math.PI/2-p&&v>=p){const e=a/2/v;t=-e,y=u+e}else if(v>=Math.PI/2-p&&v<Math.PI-p){const e=a/2*((d-l)/(c-h));t=e,y=u-e}return{x:y,y:b,dir:"top",range:t}}if(v<-p&&v>=p-Math.PI){let t=0;if(v>=p-Math.PI/2&&v<-p){const e=a/2/v;t=e,y=u-e}else if(v<p-Math.PI/2&&v>=p-Math.PI){const e=a/2*((d-l)/(c-h));t=-e,y=u+e}return{x:y,y:b,dir:"bottom",range:t}}y=i;const x=(c-h)/(d-l)*(s/2);return(v>=-Math.PI&&v<p-Math.PI||v<Math.PI&&v>=Math.PI-p)&&(b=f-x),{x:y,y:b,dir:"left",range:x}})(t,n);switch(e){case"left":return{x:r,y:o+a/2-i,dir:e};case"right":return{x:r+s,y:o+a/2-i,dir:e};case"top":return{x:r+s/2-i,y:o,dir:e};case"bottom":return{x:r+s/2-i,y:o+a,dir:e}}},tp=(t,e)=>{const i=Jf(t),n=Jf(e);let r="",o="";switch(((t,e)=>{const i=t.x+t.width/2,n=t.y+t.height/2,r=e.x+e.width/2,o=e.y+e.height/2;return i<r&&n<o?"left-top":i>r&&n<o?"right-top":i>r&&n>o?"right-bottom":i<r&&n>o?"left-bottom":i<r&&n===o?"left":i>r&&n===o?"right":i===r&&n<o?"top":i===r&&n>o?"bottom":"overlap"})({x:i.left,y:i.top,width:i.width,height:i.height},{x:n.left,y:n.top,width:n.width,height:n.height})){case"left-top":r="right",o="top";break;case"right-top":r="left",o="top";break;case"right-bottom":r="left",o="bottom";break;case"left-bottom":r="right",o="bottom";break;case"left":r="right",o="left";break;case"right":r="left",o="right";break;case"top":case"overlap":r="right",o="right";break;case"bottom":r="left",o="left"}return[$f(t,r),$f(e,o)]},ep=(t,e)=>{let i=Zf(t.x,t.y,e.x,e.y);return[{x:i[0].x-t.x,y:i[0].y-t.y},{x:i[1].x-e.x,y:i[1].y-e.y}]};const ip={createControlNodes:function(t,e){let{associativeLineActiveColor:i}=this.getStyleConfig(t,e);this.controlLine1=this.associativeLineDraw.line().stroke({color:i,width:2}),this.controlLine2=this.associativeLineDraw.line().stroke({color:i,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1",t,e),this.controlPoint2=this.createOneControlNode("controlPoint2",t,e)},createOneControlNode:function(t,e,i){let{associativeLineActiveColor:n}=this.getStyleConfig(e,i);return this.associativeLineDraw.circle(this.controlPointDiameter).stroke({color:n}).fill({color:"#fff"}).click(t=>{t.stopPropagation()}).mousedown(e=>{this.onControlPointMousedown(e,t)})},onControlPointMousedown:function(t,e){t.stopPropagation(),t.preventDefault(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=e},onControlPointMousemove:function(t){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;t.stopPropagation(),t.preventDefault();let e=this.controlPointDiameter/2,{x:i,y:n}=this.getTransformedEventPos(t);this.controlPointMousemoveState.pos={x:i,y:n},this[this.mousedownControlPointKey].x(i-e).y(n-e);let[,,,r,o]=this.activeLine,s=Yf(r,o),{associativeLinePoint:a,associativeLineTargetControlOffsets:l}=r.getData();a=a||[];const h=this.getNodePos(r),d=this.getNodePos(o);let[c,u]=this.updateAllLinesPos(r,o,a[s]);this.controlPointMousemoveState.startPoint=c,this.controlPointMousemoveState.endPoint=u,this.controlPointMousemoveState.targetIndex=s;let f=[];f=l?l[s]:ep(c,u);let p=null,m=null;const{x:g,y:v}=this.mindMap.toPos(t.clientX,t.clientY),y={clientX:g,clientY:v};"controlPoint1"===this.mousedownControlPointKey?(c=$f(h,"",0,y),p={x:i,y:n},m={x:u.x+f[1].x,y:u.y+f[1].y},c&&(this.controlPointMousemoveState.startPoint=c,this.controlLine1.plot(c.x,c.y,p.x,p.y))):(u=$f(d,"",0,y),p={x:c.x+f[0].x,y:c.y+f[0].y},m={x:i,y:n},u&&(this.controlPointMousemoveState.endPoint=u,this.controlLine2.plot(u.x,u.y,m.x,m.y))),this.updataAassociativeLine(c,u,p,m,this.activeLine)},onControlPointMouseup:function(t){if(!this.isControlPointMousedown)return;t.stopPropagation(),t.preventDefault();let{pos:e,startPoint:i,endPoint:n,targetIndex:r}=this.controlPointMousemoveState,[,,,o]=this.activeLine,s=[],{associativeLinePoint:a,associativeLineTargetControlOffsets:l}=o.getData();a||(a=[]),a[r]=a[r]||{startPoint:i,endPoint:n},l?s=l:s[r]=ep(i,n);let h=null,d=null;"controlPoint1"===this.mousedownControlPointKey?(h={x:e.x-i.x,y:e.y-i.y},d=s[r][1],a[r].startPoint=i):(h=s[r][0],d={x:e.x-n.x,y:e.y-n.y},a[r].endPoint=n),s[r]=[h,d],this.mindMap.execCommand("SET_NODE_DATA",o,{associativeLineTargetControlOffsets:s,associativeLinePoint:a}),this.isNotRenderAllLines=!0,setTimeout(()=>{this.resetControlPoint()},0)},resetControlPoint:function(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}},renderControls:function(t,e,i,n,r,o){if(!this.mindMap.opt.enableAdjustAssociativeLinePoints)return;this.controlLine1||this.createControlNodes(r,o);let s=this.controlPointDiameter/2;this.controlLine1.plot(t.x,t.y,i.x,i.y),this.controlLine2.plot(e.x,e.y,n.x,n.y),this.controlPoint1.x(i.x-s).y(i.y-s),this.controlPoint2.x(n.x-s).y(n.y-s)},removeControls:function(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)},hideControls:function(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.hide()})},showControls:function(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.show()})},updataAassociativeLine:function(t,e,i,n,r){const[o,s,a]=r,l=Qf(t,e,i,n);o.plot(l),s.plot(l),this.updateTextPos(o,a),this.updateTextEditBoxPos(a)}};function np(t,e){let i=t.length(),n=t.pointAt(i/2),{width:r,height:o}=e.bbox();e.x(n.x-r/2),e.y(n.y-o/2)}const rp={getText:function(t,e){let i=t.getData("associativeLineText");return i&&i[e.getData("uid")]||""},createText:function(t){let e=this.associativeLineDraw.group();const i=()=>{this.activeLine&&this.activeLine[3]===t.node&&this.activeLine[4]===t.toNode||this.setActiveLine({...t,text:e})};return e.click(t=>{t.stopPropagation(),i()}),e.on("dblclick",t=>{t.stopPropagation(),i(),this.activeLine&&this.showEditTextBox(e)}),e},styleText:function(t,e,i){let{associativeLineTextColor:n,associativeLineTextFontSize:r,associativeLineTextFontFamily:o}=this.getStyleConfig(e,i);t.fill({color:n}).css({"font-family":o,"font-size":r+"px"})},onScale:function(){this.hideEditTextBox()},showEditTextBox:function(t){if(this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.className="associative-line-text-edit-warp",this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()});(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode)}let[,,,e,i]=this.activeLine,{associativeLineTextFontSize:n,associativeLineTextFontFamily:r,associativeLineTextLineHeight:o}=this.getStyleConfig(e,i),{defaultAssociativeLineText:s,nodeTextEditZIndex:a}=this.mindMap.opt,l=this.mindMap.view.scale,h=this.getText(e,i),d=(h||s).split(/\n/gim);this.textEditNode.style.fontFamily=r,this.textEditNode.style.fontSize=n*l+"px",this.textEditNode.style.lineHeight=d.length>1?o:"normal",this.textEditNode.style.zIndex=a,this.textEditNode.innerHTML=d.join("<br>"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(t),this.setIsShowTextEdit(!0),""===h||h===s?dn(this.textEditNode):hn(this.textEditNode)},setIsShowTextEdit:function(t){this.showTextEdit=t,t?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()},removeTextEditEl:function(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)},hideEditTextBox:function(){if(!this.showTextEdit)return;let[t,,e,i,n]=this.activeLine,r=Di(this.textEditNode.innerHTML);r=r===this.mindMap.opt.defaultAssociativeLineText?"":r,this.mindMap.execCommand("SET_NODE_DATA",i,{associativeLineText:{...i.getData("associativeLineText")||{},[n.getData("uid")]:r}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.setIsShowTextEdit(!1),this.renderText(r,t,e,i,n),this.mindMap.emit("hide_text_edit")},updateTextEditBoxPos:function(t){let e=t.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=`${e.width+10}px`,this.textEditNode.style.minHeight=`${e.height+6}px`,this.textEditNode.style.left=`${e.left}px`,this.textEditNode.style.top=`${e.top}px`)},renderText:function(t,e,i,n,r){if(!t)return;let{associativeLineTextFontSize:o,associativeLineTextLineHeight:s}=this.getStyleConfig(n,r);i.clear(),t.replace(/\n$/g,"").split(/\n/gim).forEach((t,e)=>{""===t&&(t="\ufeff");let a=(new pi).text(t);a.y(o*s*e),this.styleText(a,n,r),i.add(a)}),np(e,i)},updateTextPos:np},op=["associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineDasharray","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily"],sp="associative-line-text-edit-warp";class ap{constructor(t={}){this.mindMap=t.mindMap,this.associativeLineDraw=this.mindMap.associativeLineDraw,this.isNotRenderAllLines=!1,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=Pi(this.checkOverlapNode,100,this),Object.keys(ip).forEach(t=>{this[t]=ip[t].bind(this)}),this.showTextEdit=!1,Object.keys(rp).forEach(t=>{this[t]=rp[t].bind(this)}),this.mindMap.addEditNodeClass(sp),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onNodeClick=this.onNodeClick.bind(this),this.removeLine=this.removeLine.bind(this),this.addLine=this.addLine.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onNodeDragging=this.onNodeDragging.bind(this),this.onNodeDragend=this.onNodeDragend.bind(this),this.onControlPointMouseup=this.onControlPointMouseup.bind(this),this.onBeforeDestroy=this.onBeforeDestroy.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",this.onDrawClick),this.mindMap.on("node_click",this.onNodeClick),this.mindMap.on("contextmenu",this.onDrawClick),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("node_dragging",this.onNodeDragging),this.mindMap.on("node_dragend",this.onNodeDragend),this.mindMap.on("mouseup",this.onControlPointMouseup),this.mindMap.on("scale",this.onScale),this.mindMap.on("beforeDestroy",this.onBeforeDestroy)}unBindEvent(){this.mindMap.off("node_tree_render_end",this.renderAllLines),this.mindMap.off("data_change",this.renderAllLines),this.mindMap.off("draw_click",this.onDrawClick),this.mindMap.off("node_click",this.onNodeClick),this.mindMap.off("contextmenu",this.onDrawClick),this.mindMap.keyCommand.removeShortcut("Del|Backspace",this.removeLine),this.mindMap.command.remove("ADD_ASSOCIATIVE_LINE",this.addLine),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("node_dragging",this.onNodeDragging),this.mindMap.off("node_dragend",this.onNodeDragend),this.mindMap.off("mouseup",this.onControlPointMouseup),this.mindMap.off("scale",this.onScale),this.mindMap.off("beforeDestroy",this.onBeforeDestroy)}getStyleConfig(t,e){let i={};if(e){const n=t.getData("associativeLineStyle")||{};i=n[e.getData("uid")]||{}}const n={};return op.forEach(e=>{void 0!==i[e]?n[e]=i[e]:n[e]=t.getStyle(e)}),n}onBeforeDestroy(){this.hideEditTextBox(),this.removeTextEditEl()}onDrawClick(){this.isCreatingLine&&this.cancelCreateLine(),this.isControlPointMousedown||(this.clearActiveLine(),this.renderAllLines())}onNodeClick(t){this.isCreatingLine?this.completeCreateLine(t):(this.clearActiveLine(),this.renderAllLines())}createMarker(t=()=>{}){return this.associativeLineDraw.marker(20,20,e=>{e.ref(12,5),e.size(10,10),e.attr("orient","auto-start-reverse"),t(e.path("M0,0 L2,5 L0,10 L10,5 Z"))})}updateAllLinesPos(t,e,i){i=i||{};let[n,r]=tp(t,e),o=0,s="",a=0,l="";return i.startPoint&&(o=i.startPoint.range||0,s=i.startPoint.dir||"right",n=$f(t,s,o)),i.endPoint&&(a=i.endPoint.range||0,l=i.endPoint.dir||"right",r=$f(e,l,a)),[n,r]}renderAllLines(){if(this.isNotRenderAllLines)return void(this.isNotRenderAllLines=!1);this.removeAllLines(),this.removeControls(),this.clearActiveLine();let t=this.mindMap.renderer.root;if(!t)return;let e=new Map,i=new Map;Li(t,null,t=>{if(!t)return;let n=t.getData();n.associativeLineTargets&&n.associativeLineTargets.length>0&&i.set(t,n.associativeLineTargets),n.uid&&e.set(n.uid,t)},()=>{},!0,0),i.forEach((t,i)=>{t.forEach((t,n)=>{let r=e.get(t);if(!i||!r)return;const o=(i.getData("associativeLinePoint")||[])[n],[s,a]=this.updateAllLinesPos(i,r,o);this.drawLine(s,a,i,r)})})}drawLine(t,e,i,n){let{associativeLineWidth:r,associativeLineColor:o,associativeLineActiveWidth:s,associativeLineDasharray:a}=this.getStyleConfig(i,n),l=null;const h=this.createMarker(t=>{l=t});l.stroke({color:o}).fill({color:o});let{path:d,controlPoints:c}=((t,e,i,n)=>{let r=Yf(i,n),o=[],s=i.getData("associativeLineTargetControlOffsets");if(s&&s[r]){let i=s[r];o=[{x:t.x+i[0].x,y:t.y+i[0].y},{x:e.x+i[1].x,y:e.y+i[1].y}]}else o=Zf(t.x,t.y,e.x,e.y);return{path:Qf(t,e,o[0],o[1]),controlPoints:o}})(t,e,i,n),u=this.associativeLineDraw.path();u.stroke({width:r,color:o,dasharray:a||"6,4"}).fill({color:"none"}),u.plot(d),u.marker("end",h);let f=this.associativeLineDraw.path();f.stroke({width:s,color:"transparent"}).fill({color:"none"}),f.plot(d);let p=this.createText({path:u,clickPath:f,markerPath:l,node:i,toNode:n,startPoint:t,endPoint:e,controlPoints:c});f.click(r=>{r.stopPropagation(),this.setActiveLine({path:u,clickPath:f,markerPath:l,text:p,node:i,toNode:n,startPoint:t,endPoint:e,controlPoints:c})}),f.dblclick(()=>{this.activeLine&&this.showEditTextBox(p)}),this.renderText(this.getText(i,n),u,p,i,n),this.lineList.push([u,f,p,i,n])}updateActiveLineStyle(){if(!this.activeLine)return;this.isNotRenderAllLines=!0;const[t,e,i,n,r,o]=this.activeLine,{associativeLineWidth:s,associativeLineColor:a,associativeLineDasharray:l,associativeLineActiveWidth:h,associativeLineActiveColor:d,associativeLineTextColor:c,associativeLineTextFontFamily:u,associativeLineTextFontSize:f}=this.getStyleConfig(n,r);t.stroke({width:s,color:a,dasharray:l||"6,4"}).fill({color:"none"}),e.stroke({width:h,color:d}).fill({color:"none"}),o.stroke({color:a}).fill({color:a}),i.find("text").forEach(t=>{t.fill({color:c}).css({"font-family":u,"font-size":f+"px"})}),this.controlLine1&&this.controlLine1.stroke({color:d}),this.controlLine2&&this.controlLine2.stroke({color:d}),this.controlPoint1&&this.controlPoint1.stroke({color:d}),this.controlPoint2&&this.controlPoint2.stroke({color:d}),this.updateTextPos(t,i)}setActiveLine({path:t,clickPath:e,markerPath:i,text:n,node:r,toNode:o,startPoint:s,endPoint:a,controlPoints:l}){let{associativeLineActiveColor:h}=this.getStyleConfig(r,o);this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveLine(),this.activeLine=[t,e,n,r,o,i],e.stroke({color:h}),this.getText(r,o)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,t,n,r,o),this.renderControls(s,a,l[0],l[1],r,o),this.mindMap.emit("associative_line_click",t,e,r,o),this.front()}removeAllLines(){this.lineList.forEach(t=>{t[0].remove(),t[1].remove(),t[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let t=this.mindMap.renderer.activeNodeList[0];this.createLine(t)}createLine(t){let{associativeLineWidth:e,associativeLineColor:i,associativeLineDasharray:n}=this.getStyleConfig(t);if(this.isCreatingLine||!t)return;this.front(),this.isCreatingLine=!0,this.creatingStartNode=t,this.creatingLine=this.associativeLineDraw.path(),this.creatingLine.stroke({width:e,color:i,dasharray:n||"6,4"}).fill({color:"none"});let r=null;const o=this.createMarker(t=>{r=t});r.stroke({color:i}).fill({color:i}),this.creatingLine.marker("end",o)}cancelCreateLine(){this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null,this.back()}onMousemove(t){this.onControlPointMousemove(t),this.updateCreatingLine(t)}updateCreatingLine(t){if(!this.isCreatingLine)return;let{x:e,y:i}=this.getTransformedEventPos(t),n=$f(this.creatingStartNode),r=e>n.x?-10:10,o=((t,e,i,n)=>{let r=Zf(t,e,i,n);return Qf({x:t,y:e},{x:i,y:n},r[0],r[1])})(n.x,n.y,e+r,i);this.creatingLine.plot(o),this.checkOverlapNode(e,i)}getTransformedEventPos(t){let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY),{scaleX:n,scaleY:r,translateX:o,translateY:s}=this.mindMap.draw.transform();return{x:(e-o)/n,y:(i-s)/r}}getNodePos(t){const{scaleX:e,scaleY:i,translateX:n,translateY:r}=this.mindMap.draw.transform(),{left:o,top:s,width:a,height:l}=t;return{left:o,top:s,translateLeft:o*e+n,translateTop:s*i+r,width:a,height:l}}checkOverlapNode(t,e){this.overlapNode=null,Oi(this.mindMap.renderer.root,i=>{if(i.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",i,!1),i.uid===this.creatingStartNode.uid||this.overlapNode)return;let{left:n,top:r,width:o,height:s}=i;t>=n&&t<=n+o&&e>=r&&e<=r+s&&(this.overlapNode=i)}),this.overlapNode&&!this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)}completeCreateLine(t){if(this.creatingStartNode.uid===t.uid)return;const{beforeAssociativeLineConnection:e}=this.mindMap.opt;let i=!1;"function"==typeof e&&(i=e(t)),i||(this.addLine(this.creatingStartNode,t),this.overlapNode&&this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.cancelCreateLine())}addLine(t,e){if(!t||!e)return;let i=e.getData("uid");i||(i=A(),this.mindMap.execCommand("SET_NODE_DATA",e,{uid:i}));let n=t.getData("associativeLineTargets")||[];if(n.some(t=>t===i))return;n.push(i);let[r,o]=tp(t,e),s=Zf(r.x,r.y,o.x,o.y);const{associativeLineInitPointsPosition:a}=this.mindMap.opt;if(a){const{from:t,to:e}=a;t&&(r.dir=t),e&&(o.dir=e)}let l=t.getData("associativeLineTargetControlOffsets")||[];l[n.length-1]=[{x:s[0].x-r.x,y:s[0].y-r.y},{x:s[1].x-o.x,y:s[1].y-o.y}];let h=t.getData("associativeLinePoint")||[];h[n.length-1]={startPoint:r,endPoint:o},this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:n,associativeLineTargetControlOffsets:l,associativeLinePoint:h})}removeLine(){if(!this.activeLine)return;let[,,,t,e]=this.activeLine;this.removeControls();let{associativeLineTargets:i,associativeLinePoint:n,associativeLineTargetControlOffsets:r,associativeLineText:o,associativeLineStyle:s}=t.getData();n=n||[];let a=Yf(t,e),l={};o&&Object.keys(o).forEach(t=>{t!==e.getData("uid")&&(l[t]=o[t])});let h={};s&&Object.keys(s).forEach(t=>{t!==e.getData("uid")&&(h[t]=s[t])}),this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:i.filter((t,e)=>e!==a),associativeLinePoint:n.filter((t,e)=>e!==a),associativeLineTargetControlOffsets:r?r.filter((t,e)=>e!==a):[],associativeLineText:l,associativeLineStyle:h})}clearActiveLine(){if(this.activeLine){let[,t,e,i,n]=this.activeLine;t.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(i,n)||e.clear(),this.activeLine=null,this.removeControls(),this.back(),this.mindMap.emit("associative_line_deactivate")}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(t=>{t[0].hide(),t[1].hide(),t[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(t=>{t[0].show(),t[1].show(),t[2].show()}),this.showControls(),this.isNodeDragging=!1)}front(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||this.associativeLineDraw.front()}back(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||(this.associativeLineDraw.back(),this.associativeLineDraw.forward())}beforePluginRemove(){this.mindMap.deleteEditNodeClass(sp),this.unBindEvent()}beforePluginDestroy(){this.mindMap.deleteEditNodeClass(sp),this.unBindEvent()}}ap.instanceName="associativeLine";const lp=ap;var hp=i(10419),dp=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(dp||{});class cp{constructor(t,e,i={}){this.attrName=t,this.keyName=e;const n=dp.TYPE&dp.ATTRIBUTE;this.scope=null!=i.scope?i.scope&dp.LEVEL|n:dp.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}static keys(t){return Array.from(t.attributes).map(t=>t.name)}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class up extends Error{constructor(t){super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}const fp=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let i=null;try{i=t.parentNode}catch{return null}return this.find(i,e)}return null}create(e,i,n){const r=this.query(i);if(null==r)throw new up(`Unable to create ${i} blot`);const o=r,s=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:o.create(n),a=new o(e,s,n);return t.blots.set(a.domNode,a),a}find(e,i=!1){return t.find(e,i)}query(t,e=dp.ANY){let i;return"string"==typeof t?i=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?i=this.types.text:"number"==typeof t?t&dp.LEVEL&dp.BLOCK?i=this.types.block:t&dp.LEVEL&dp.INLINE&&(i=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(t=>(i=this.classes[t],!!i)),i=i||this.tags[t.tagName]),null==i?null:"scope"in i&&e&dp.LEVEL&i.scope&&e&dp.TYPE&i.scope?i:null}register(...t){return t.map(t=>{const e="blotName"in t,i="attrName"in t;if(!e&&!i)throw new up("Invalid definition");if(e&&"abstract"===t.blotName)throw new up("Cannot register abstract class");const n=e?t.blotName:i?t.attrName:void 0;return this.types[n]=t,i?"string"==typeof t.keyName&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(t=>t.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(e=>{(null==this.tags[e]||null==t.className)&&(this.tags[e]=t)}))),t})}};fp.blots=new WeakMap;let pp=fp;function mp(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}const gp=class extends cp{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){mp(t,this.keyName).forEach(e=>{t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")}value(t){const e=(mp(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}};function vp(t){const e=t.split("-"),i=e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("");return e[0]+i}const yp=class extends cp{static keys(t){return(t.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(t,e){return!!this.canAdd(t,e)&&(t.style[vp(this.keyName)]=e,!0)}remove(t){t.style[vp(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[vp(this.keyName)];return this.canAdd(t,e)?e:""}};const bp=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=pp.find(this.domNode);if(null==t)return;const e=cp.keys(this.domNode),i=gp.keys(this.domNode),n=yp.keys(this.domNode);e.concat(i).concat(n).forEach(e=>{const i=t.scroll.query(e,dp.ATTRIBUTE);i instanceof cp&&(this.attributes[i.attrName]=i)})}copy(t){Object.keys(this.attributes).forEach(e=>{const i=this.attributes[e].value(this.domNode);t.format(e,i)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}},xp=class{constructor(t,e){this.scroll=t,this.domNode=e,pp.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(null==this.tagName)throw new up("Blot definition missing tagName");let e,i;return Array.isArray(this.tagName)?("string"==typeof t?(i=t.toUpperCase(),parseInt(i,10).toString()===i&&(i=parseInt(i,10))):"number"==typeof t&&(i=t),e="number"==typeof i?document.createElement(this.tagName[i-1]):i&&this.tagName.indexOf(i)>-1?document.createElement(i):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){null!=this.parent&&this.parent.removeChild(this),pp.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,i,n){const r=this.isolate(t,e);if(null!=this.scroll.query(i,dp.BLOT)&&n)r.wrap(i,n);else if(null!=this.scroll.query(i,dp.ATTRIBUTE)){const t=this.scroll.create(this.statics.scope);r.wrap(t),t.format(i,n)}}insertAt(t,e,i){const n=null==i?this.scroll.create("text",e):this.scroll.create(e,i),r=this.split(t);this.parent.insertBefore(n,r||void 0)}isolate(t,e){const i=this.split(t);if(null==i)throw new Error("Attempt to isolate at end");return i.split(e),i}length(){return 1}offset(t=this.parent){return null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const i="string"==typeof t?this.scroll.create(t,e):t;return null!=this.parent&&(this.parent.insertBefore(i,this.next||void 0),this.remove()),i}split(t,e){return 0===t?this:this.next}update(t,e){}wrap(t,e){const i="string"==typeof t?this.scroll.create(t,e):t;if(null!=this.parent&&this.parent.insertBefore(i,this.next||void 0),"function"!=typeof i.appendChild)throw new up(`Cannot wrap ${t}`);return i.appendChild(this),i}};xp.blotName="abstract";let wp=xp;const kp=class extends wp{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let i=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(i+=1),[this.parent.domNode,i]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};kp.scope=dp.INLINE_BLOT;const Ep=kp;class Np{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let i=e();for(;i&&t>0;)t-=1,i=e();return i}contains(t){const e=this.iterator();let i=e();for(;i;){if(i===t)return!0;i=e()}return!1}indexOf(t){const e=this.iterator();let i=e(),n=0;for(;i;){if(i===t)return n;n+=1,i=e()}return-1}insertBefore(t,e){null!=t&&(this.remove(t),t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,i=this.head;for(;null!=i;){if(i===t)return e;e+=i.length(),i=i.next}return-1}remove(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return null!=t&&(t=t.next),e}}find(t,e=!1){const i=this.iterator();let n=i();for(;n;){const r=n.length();if(t<r||e&&t===r&&(null==n.next||0!==n.next.length()))return[n,t];t-=r,n=i()}return[null,0]}forEach(t){const e=this.iterator();let i=e();for(;i;)t(i),i=e()}forEachAt(t,e,i){if(e<=0)return;const[n,r]=this.find(t);let o=t-r;const s=this.iterator(n);let a=s();for(;a&&o<t+e;){const n=a.length();t>o?i(a,t-o,Math.min(e,o+n-t)):i(a,0,Math.min(n,t+e-o)),o+=n,a=s()}}map(t){return this.reduce((e,i)=>(e.push(t(i)),e),[])}reduce(t,e){const i=this.iterator();let n=i();for(;n;)e=t(e,n),n=i();return e}}function Tp(t,e){const i=e.find(t);if(i)return i;try{return e.create(t)}catch{const i=e.create(dp.INLINE);return Array.from(t.childNodes).forEach(t=>{i.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(i.domNode,t),i.attach(),i}}const _p=class t extends wp{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(e){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Np,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Tp(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof up)return;throw t}})}deleteAt(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(t,e,i)=>{t.deleteAt(e,i)})}descendant(e,i=0){const[n,r]=this.children.find(i);return null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e?[n,r]:n instanceof t?n.descendant(e,r):[null,-1]}descendants(e,i=0,n=Number.MAX_VALUE){let r=[],o=n;return this.children.forEachAt(i,n,(i,n,s)=>{(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&r.push(i),i instanceof t&&(r=r.concat(i.descendants(e,n,o))),o-=s}),r}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(i=>{e||this.statics.allowedChildren.some(t=>i instanceof t)||(i.statics.scope===dp.BLOCK_BLOT?(null!=i.next&&this.splitAfter(i),null!=i.prev&&this.splitAfter(i.prev),i.parent.unwrap(),e=!0):i instanceof t?i.unwrap():i.remove())})}formatAt(t,e,i,n){this.children.forEachAt(t,e,(t,e,r)=>{t.formatAt(e,r,i,n)})}insertAt(t,e,i){const[n,r]=this.children.find(t);if(n)n.insertAt(r,e,i);else{const t=null==i?this.scroll.create("text",e):this.scroll.create(e,i);this.appendChild(t)}}insertBefore(t,e){null!=t.parent&&t.parent.children.remove(t);let i=null;this.children.insertBefore(t,e||null),t.parent=this,null!=e&&(i=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==i)&&this.domNode.insertBefore(t.domNode,i),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(i=>{t.insertBefore(i,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,i=!1){const[n,r]=this.children.find(e,i),o=[[this,e]];return n instanceof t?o.concat(n.path(r,i)):(null!=n&&o.push([n,r]),o)}removeChild(t){this.children.remove(t)}replaceWith(e,i){const n="string"==typeof e?this.scroll.create(e,i):e;return n instanceof t&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.clone();return this.parent&&this.parent.insertBefore(i,this.next||void 0),this.children.forEachAt(t,this.length(),(t,n,r)=>{const o=t.split(n,e);null!=o&&i.appendChild(o)}),i}splitAfter(t){const e=this.clone();for(;null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const i=[],n=[];t.forEach(t=>{t.target===this.domNode&&"childList"===t.type&&(i.push(...t.addedNodes),n.push(...t.removedNodes))}),n.forEach(t=>{if(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);null!=e&&(null==e.domNode.parentNode||e.domNode.parentNode===this.domNode)&&e.detach()}),i.filter(t=>t.parentNode===this.domNode&&t!==this.uiNode).sort((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));const i=Tp(t,this.scroll);(i.next!==e||null==i.next)&&(null!=i.parent&&i.parent.removeChild(this),this.insertBefore(i,e||void 0))}),this.enforceAllowedChildren()}};_p.uiClass="";const Cp=_p;const Sp=class t extends Cp{static create(t){return super.create(t)}static formats(e,i){const n=i.query(t.blotName);if(null==n||e.tagName!==n.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new bp(this.domNode)}format(e,i){if(e!==this.statics.blotName||i){const t=this.scroll.query(e,dp.INLINE);if(null==t)return;t instanceof cp?this.attributes.attribute(t,i):i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i)}else this.children.forEach(e=>{e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)}),this.unwrap()}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,n){null!=this.formats()[i]||this.scroll.query(i,dp.ATTRIBUTE)?this.isolate(t,e).format(i,n):super.formatAt(t,e,i,n)}optimize(e){super.optimize(e);const i=this.formats();if(0===Object.keys(i).length)return this.unwrap();const n=this.next;n instanceof t&&n.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(t[i]!==e[i])return!1;return!0}(i,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}wrap(e,i){const n=super.wrap(e,i);return n instanceof t&&this.attributes.move(n),n}};Sp.allowedChildren=[Sp,Ep],Sp.blotName="inline",Sp.scope=dp.INLINE_BLOT,Sp.tagName="SPAN";const Mp=Sp,Ap=class t extends Cp{static create(t){return super.create(t)}static formats(e,i){const n=i.query(t.blotName);if(null==n||e.tagName!==n.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new bp(this.domNode)}format(e,i){const n=this.scroll.query(e,dp.BLOCK);null!=n&&(n instanceof cp?this.attributes.attribute(n,i):e!==this.statics.blotName||i?i&&(e!==this.statics.blotName||this.formats()[e]!==i)&&this.replaceWith(e,i):this.replaceWith(t.blotName))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,i,n){null!=this.scroll.query(i,dp.BLOCK)?this.format(i,n):super.formatAt(t,e,i,n)}insertAt(t,e,i){if(null==i||null!=this.scroll.query(e,dp.INLINE))super.insertAt(t,e,i);else{const n=this.split(t);if(null==n)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,i);n.parent.insertBefore(t,n)}}}replaceWith(t,e){const i=super.replaceWith(t,e);return this.attributes.copy(i),i}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}};Ap.blotName="block",Ap.scope=dp.BLOCK_BLOT,Ap.tagName="P",Ap.allowedChildren=[Mp,Ap,Ep];const zp=Ap,Lp=class extends Cp{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,i,n){super.formatAt(t,e,i,n),this.enforceAllowedChildren()}insertAt(t,e,i){super.insertAt(t,e,i),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Lp.blotName="container",Lp.scope=dp.BLOCK_BLOT;const Op=Lp;const Fp=class extends Ep{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,i,n){0===t&&e===this.length()?this.format(i,n):super.formatAt(t,e,i,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},Dp={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Rp=class extends Cp{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,Dp),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const i=this.registry.find(t,e);return i?i.scroll===this?i:e?this.find(i.scroll.domNode.parentNode,!0):null:null}query(t,e=dp.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,i,n){this.update(),super.formatAt(t,e,i,n)}insertAt(t,e,i){this.update(),super.insertAt(t,e,i)}optimize(t=[],e={}){super.optimize(e);const i=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const r=(t,e=!0)=>{null==t||t===this||null!=t.domNode.parentNode&&(i.has(t.domNode)||i.set(t.domNode,[]),e&&r(t.parent))},o=t=>{i.has(t.domNode)&&(t instanceof Cp&&t.children.forEach(o),i.delete(t.domNode),t.optimize(e))};let s=t;for(let e=0;s.length>0;e+=1){if(e>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(t=>{const e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(r(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(t=>{const e=this.find(t,!1);r(e,!1),e instanceof Cp&&e.children.forEach(t=>{r(t,!1)})})):"attributes"===t.type&&r(e.prev)),r(e))}),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),n=s.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const i=new WeakMap;t.map(t=>{const e=this.find(t.target,!0);return null==e?null:i.has(e.domNode)?(i.get(e.domNode).push(t),null):(i.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&i.has(t.domNode)&&t.update(i.get(t.domNode)||[],e)}),e.mutationsMap=i,i.has(this.domNode)&&super.update(i.get(this.domNode),e),this.optimize(t,e)}};Rp.blotName="scroll",Rp.defaultChild=zp,Rp.allowedChildren=[zp,Op],Rp.scope=dp.BLOCK_BLOT,Rp.tagName="DIV";const Ip=Rp,qp=class t extends Ep{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,i){null==i?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,i)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const i=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next||void 0),this.text=this.statics.value(this.domNode),i}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};qp.blotName="text",qp.scope=dp.INLINE_BLOT;const Bp=qp;var Pp=i(12660),Up=i.n(Pp),jp=i(35758),Hp=i(22955);const Wp=function(t,e){return(0,Hp.A)(t,e)};class Vp extends Fp{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Vp.blotName="break",Vp.tagName="BR";const Kp=Vp;class Gp extends Bp{}const Xp={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yp(t){return t.replace(/[&<>"']/g,t=>Xp[t])}class Zp extends Mp{static allowedChildren=[Zp,Kp,Fp,Gp];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const i=Zp.order.indexOf(t),n=Zp.order.indexOf(e);return i>=0||n>=0?i-n:t===e?0:t<e?-1:1}formatAt(t,e,i,n){if(Zp.compare(this.statics.blotName,i)<0&&this.scroll.query(i,dp.BLOT)){const r=this.isolate(t,e);n&&r.wrap(i,n)}else super.formatAt(t,e,i,n)}optimize(t){if(super.optimize(t),this.parent instanceof Zp&&Zp.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const Qp=Zp;class Jp extends zp{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=tm(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,i,n){e<=0||(this.scroll.query(i,dp.BLOCK)?t+e===this.length()&&this.format(i,n):super.formatAt(t,Math.min(e,this.length()-t-1),i,n),this.cache={})}insertAt(t,e,i){if(null!=i)return super.insertAt(t,e,i),void(this.cache={});if(0===e.length)return;const n=e.split("\n"),r=n.shift();r.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),r):this.children.tail.insertAt(this.children.tail.length(),r),this.cache={});let o=this;n.reduce((t,e)=>(o=o.split(t,!0),o.insertAt(0,e),e.length),t+r.length)}insertBefore(t,e){const{head:i}=this.children;super.insertBefore(t,e),i instanceof Kp&&i.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){const e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}const i=super.split(t,e);return this.cache={},i}}Jp.blotName="block",Jp.tagName="P",Jp.defaultChild=Kp,Jp.allowedChildren=[Kp,Qp,Fp,Gp];class $p extends Fp{attach(){super.attach(),this.attributes=new bp(this.domNode)}delta(){return(new Pp).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const i=this.scroll.query(t,dp.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}formatAt(t,e,i,n){this.format(i,n)}insertAt(t,e,i){if(null!=i)return void super.insertAt(t,e,i);const n=e.split("\n"),r=n.pop(),o=n.map(t=>{const e=this.scroll.create(Jp.blotName);return e.insertAt(0,t),e}),s=this.split(t);o.forEach(t=>{this.parent.insertBefore(t,s)}),r&&this.parent.insertBefore(this.scroll.create("text",r),s)}}function tm(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(Ep).reduce((t,i)=>0===i.length()?t:t.insert(i.value(),em(i,{},e)),new Pp).insert("\n",em(t))}function em(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?e:("formats"in t&&"function"==typeof t.formats&&(e={...e,...t.formats()},i&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:em(t.parent,e,i))}$p.scope=dp.BLOCK_BLOT;class im extends Fp{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,e,i){super(t,e),this.selection=i,this.textNode=document.createTextNode(im.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let i=this,n=0;for(;null!=i&&i.statics.scope!==dp.BLOCK_BLOT;)n+=i.offset(i.parent),i=i.parent;null!=i&&(this.savedLength=im.CONTENTS.length,i.optimize(),i.formatAt(n,im.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof Gp?this.prev:null,i=e?e.length():0,n=this.next instanceof Gp?this.next:null,r=n?n.text:"",{textNode:o}=this,s=o.data.split(im.CONTENTS).join("");let a;if(o.data=im.CONTENTS,e)a=e,(s||n)&&(e.insertAt(e.length(),s+r),n&&n.remove());else if(n)a=n,n.insertAt(0,s);else{const t=document.createTextNode(s);a=this.scroll.create(t),this.parent.insertBefore(a,this)}if(this.remove(),t){const r=(t,r)=>e&&t===e.domNode?r:t===o?i+r-1:n&&t===n.domNode?i+s.length+r:null,l=r(t.start.node,t.start.offset),h=r(t.end.node,t.end.offset);if(null!==l&&null!==h)return{startNode:a.domNode,startOffset:l,endNode:a.domNode,endOffset:h}}return null}update(t,e){if(t.some(t=>"characterData"===t.type&&t.target===this.textNode)){const t=this.restore();t&&(e.range=t)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if("A"===e.domNode.tagName){this.savedLength=im.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}}const nm=im;var rm=i(23697);const om=new WeakMap,sm=["error","warn","log","info"];let am="warn";function lm(t){if(am&&sm.indexOf(t)<=sm.indexOf(am)){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];console[t](...i)}}function hm(t){return sm.reduce((e,i)=>(e[i]=lm.bind(console,i,t),e),{})}hm.level=t=>{am=t},lm.level=hm.level;const dm=hm,cm=dm("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(t=>{document.addEventListener(t,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];Array.from(document.querySelectorAll(".ql-container")).forEach(t=>{const i=om.get(t);i&&i.emitter&&i.emitter.handleDOM(...e)})})});const um=class extends rm{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",cm.error)}emit(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return cm.log.call(cm,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(this.domListeners[t.type]||[]).forEach(e=>{let{node:n,handler:r}=e;(t.target===n||n.contains(t.target))&&r(t,...i)})}listenDOM(t,e,i){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:i})}},fm=dm("quill:selection");class pm{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=e}}function mm(t,e){try{e.parentNode}catch(t){return!1}return t.contains(e)}const gm=class{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new pm(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,um.sources.USER),1)}),this.emitter.on(um.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const t=this.getNativeRange();null!=t&&t.start.node!==this.cursor.textNode&&this.emitter.once(um.events.SCROLL_UPDATE,(e,i)=>{try{this.root.contains(t.start.node)&&this.root.contains(t.end.node)&&this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset);const n=i.some(t=>"characterData"===t.type||"childList"===t.type||"attributes"===t.type&&t.target===this.root);this.update(n?um.sources.SILENT:e)}catch(t){}})}),this.emitter.on(um.events.SCROLL_OPTIMIZE,(t,e)=>{if(e.range){const{startNode:t,startOffset:i,endNode:n,endOffset:r}=e.range;this.setNativeRange(t,i,n,r),this.update(um.sources.SILENT)}}),this.update(um.sources.SILENT)}handleComposition(){this.emitter.on(um.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(um.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(um.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!this.scroll.query(t,dp.BLOCK)){if(i.start.node!==this.cursor.textNode){const t=this.scroll.find(i.start.node,!1);if(null==t)return;if(t instanceof Ep){const e=t.split(i.start.offset);t.parent.insertBefore(this.cursor,e)}else t.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=this.scroll.length();let n;t=Math.min(t,i-1),e=Math.min(t+e,i-1)-t;let[r,o]=this.scroll.leaf(t);if(null==r)return null;if(e>0&&o===r.length()){const[e]=this.scroll.leaf(t+1);if(e){const[i]=this.scroll.line(t),[n]=this.scroll.line(t+1);i===n&&(r=e,o=0)}}[n,o]=r.position(o,!0);const s=document.createRange();if(e>0)return s.setStart(n,o),[r,o]=this.scroll.leaf(t+e),null==r?null:([n,o]=r.position(o,!0),s.setEnd(n,o),s.getBoundingClientRect());let a,l="left";if(n instanceof Text){if(!n.data.length)return null;o<n.data.length?(s.setStart(n,o),s.setEnd(n,o+1)):(s.setStart(n,o-1),s.setEnd(n,o),l="right"),a=s.getBoundingClientRect()}else{if(!(r.domNode instanceof Element))return null;a=r.domNode.getBoundingClientRect(),o>0&&(l="right")}return{bottom:a.top+a.height,height:a.height,left:a[l],right:a[l],top:a.top,width:0}}getNativeRange(){const t=document.getSelection();if(null==t||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(null==e)return null;const i=this.normalizeNative(e);return fm.info("getNativeRange",i),i}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();if(null==e)return[null,null];return[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&mm(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const i=e.map(t=>{const[e,i]=t,n=this.scroll.find(e,!0),r=n.offset(this.scroll);return 0===i?r:n instanceof Ep?r+n.index(e,i):r+n.length()}),n=Math.min(Math.max(...i),this.scroll.length()-1),r=Math.min(n,...i);return new pm(r,n-r)}normalizeNative(t){if(!mm(this.root,t.startContainer)||!t.collapsed&&!mm(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(t=>{let{node:e,offset:i}=t;for(;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>i)e=e.childNodes[i],i=0;else{if(e.childNodes.length!==i)break;e=e.lastChild,i=e instanceof Text?e.data.length:e.childNodes.length>0?e.childNodes.length:e.childNodes.length+1}t.node=e,t.offset=i}),e}rangeToNative(t){const e=this.scroll.length(),i=(t,i)=>{t=Math.min(e-1,t);const[n,r]=this.scroll.leaf(t);return n?n.position(r,i):[null,-1]};return[...i(t.index,!1),...i(t.index+t.length,!0)]}setNativeRange(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(fm.info("setNativeRange",t,e,i,n),null!=t&&(null==this.root.parentNode||null==t.parentNode||null==i.parentNode))return;const o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(null==s||r||t!==s.startContainer||e!==s.startOffset||i!==s.endContainer||n!==s.endOffset){t instanceof Element&&"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),i instanceof Element&&"BR"===i.tagName&&(n=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode);const r=document.createRange();r.setStart(t,e),r.setEnd(i,n),o.removeAllRanges(),o.addRange(r)}}else o.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:um.sources.API;if("string"==typeof e&&(i=e,e=!1),fm.info("setRange",t),null!=t){const i=this.rangeToNative(t);this.setNativeRange(...i,e)}else this.setNativeRange(null);this.update(i)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:um.sources.USER;const e=this.lastRange,[i,n]=this.getRange();if(this.lastRange=i,this.lastNative=n,null!=this.lastRange&&(this.savedRange=this.lastRange),!Wp(e,this.lastRange)){if(!this.composing&&null!=n&&n.native.collapsed&&n.start.node!==this.cursor.textNode){const t=this.cursor.restore();t&&this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}const i=[um.events.SELECTION_CHANGE,(0,jp.A)(this.lastRange),(0,jp.A)(e),t];this.emitter.emit(um.events.EDITOR_CHANGE,...i),t!==um.sources.SILENT&&this.emitter.emit(...i)}}},vm=/^[ -~]*$/;function ym(t,e,i){if(0===t.length){const[t]=wm(i.pop());return e<=0?`</li></${t}>`:`</li></${t}>${ym([],e-1,i)}`}const[{child:n,offset:r,length:o,indent:s,type:a},...l]=t,[h,d]=wm(a);if(s>e)return i.push(a),s===e+1?`<${h}><li${d}>${bm(n,r,o)}${ym(l,s,i)}`:`<${h}><li>${ym(t,e+1,i)}`;const c=i[i.length-1];if(s===e&&a===c)return`</li><li${d}>${bm(n,r,o)}${ym(l,s,i)}`;const[u]=wm(i.pop());return`</li></${u}>${ym(t,e-1,i)}`}function bm(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in t&&"function"==typeof t.html)return t.html(e,i);if(t instanceof Gp){return Yp(t.value().slice(e,e+i)).replaceAll(" "," ")}if(t instanceof Cp){if("list-container"===t.statics.blotName){const n=[];return t.children.forEachAt(e,i,(t,e,i)=>{const r="formats"in t&&"function"==typeof t.formats?t.formats():{};n.push({child:t,offset:e,length:i,indent:r.indent||0,type:r.list})}),ym(n,-1,[])}const r=[];if(t.children.forEachAt(e,i,(t,e,i)=>{r.push(bm(t,e,i))}),n||"list"===t.statics.blotName)return r.join("");const{outerHTML:o,innerHTML:s}=t.domNode,[a,l]=o.split(`>${s}<`);return"<table"===a?`<table style="border: 1px solid #000;">${r.join("")}<${l}`:`${a}>${r.join("")}<${l}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function xm(t,e){return Object.keys(e).reduce((i,n)=>{if(null==t[n])return i;const r=e[n];return r===t[n]?i[n]=r:Array.isArray(r)?r.indexOf(t[n])<0?i[n]=r.concat([t[n]]):i[n]=r:i[n]=[r,t[n]],i},{})}function wm(t){const e="ordered"===t?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function km(t){return t.reduce((t,e)=>{if("string"==typeof e.insert){const i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)},new Pp)}function Em(t,e){let{index:i,length:n}=t;return new pm(i+e,n)}const Nm=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const i=km(t),n=new Pp,r=function(t){const e=[];return t.forEach(t=>{if("string"==typeof t.insert){t.insert.split("\n").forEach((i,n)=>{n&&e.push({insert:"\n",attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})})}else e.push(t)}),e}(i.ops.slice());return r.reduce((t,i)=>{const r=Pp.Op.length(i);let o=i.attributes||{},s=!1,a=!1;if(null!=i.insert){if(n.retain(r),"string"==typeof i.insert){const n=i.insert;a=!n.endsWith("\n")&&(e<=t||!!this.scroll.descendant($p,t)[0]),this.scroll.insertAt(t,n);const[r,s]=this.scroll.line(t);let l=(0,hp.A)({},em(r));if(r instanceof Jp){const[t]=r.descendant(Ep,s);t&&(l=(0,hp.A)(l,em(t)))}o=Pp.AttributeMap.diff(l,o)||{}}else if("object"==typeof i.insert){const n=Object.keys(i.insert)[0];if(null==n)return t;const r=null!=this.scroll.query(n,dp.INLINE);if(r)(e<=t||this.scroll.descendant($p,t)[0])&&(a=!0);else if(t>0){const[e,i]=this.scroll.descendant(Ep,t-1);if(e instanceof Gp){"\n"!==e.value()[i]&&(s=!0)}else e instanceof Fp&&e.statics.scope===dp.INLINE_BLOT&&(s=!0)}if(this.scroll.insertAt(t,n,i.insert[n]),r){const[e]=this.scroll.descendant(Ep,t);if(e){const t=(0,hp.A)({},em(e));o=Pp.AttributeMap.diff(t,o)||{}}}}e+=r}else if(n.push(i),null!==i.retain&&"object"==typeof i.retain){const e=Object.keys(i.retain)[0];if(null==e)return t;this.scroll.updateEmbedAt(t,e,i.retain[e])}Object.keys(o).forEach(e=>{this.scroll.formatAt(t,r,e,o[e])});const l=s?1:0,h=a?1:0;return e+=l+h,n.retain(l),n.delete(h),t+r+l+h},0),n.reduce((t,e)=>"number"==typeof e.delete?(this.scroll.deleteAt(t,e.delete),t):t+Pp.Op.length(e),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(i)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update((new Pp).retain(t).delete(e))}formatLine(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(i).forEach(n=>{this.scroll.lines(t,Math.max(e,1)).forEach(t=>{t.format(n,i[n])})}),this.scroll.optimize();const n=(new Pp).retain(t).retain(e,(0,jp.A)(i));return this.update(n)}formatText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(i).forEach(n=>{this.scroll.formatAt(t,e,n,i[n])});const n=(new Pp).retain(t).retain(e,(0,jp.A)(i));return this.update(n)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new Pp)}getFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[];0===e?this.scroll.path(t).forEach(t=>{const[e]=t;e instanceof Jp?i.push(e):e instanceof Ep&&n.push(e)}):(i=this.scroll.lines(t,e),n=this.scroll.descendants(Ep,t,e));const[r,o]=[i,n].map(t=>{const e=t.shift();if(null==e)return{};let i=em(e);for(;Object.keys(i).length>0;){const e=t.shift();if(null==e)return i;i=xm(em(e),i)}return i});return{...r,...o}}getHTML(t,e){const[i,n]=this.scroll.line(t);if(i){const r=i.length();return!(i.length()>=n+e)||0===n&&e===r?bm(this.scroll,t,e,!0):bm(i,n,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(t=>"string"==typeof t.insert).map(t=>t.insert).join("")}insertContents(t,e){const i=km(e),n=(new Pp).retain(t).concat(i);return this.scroll.insertContents(t,i),this.update(n)}insertEmbed(t,e,i){return this.scroll.insertAt(t,e,i),this.update((new Pp).retain(t).insert({[e]:i}))}insertText(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(i).forEach(n=>{this.scroll.formatAt(t,e.length,n,i[n])}),this.update((new Pp).retain(t).insert(e,(0,jp.A)(i)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if(t?.statics.blotName!==Jp.blotName)return!1;const e=t;return!(e.children.length>1)&&e.children.head instanceof Kp}removeFormat(t,e){const i=this.getText(t,e),[n,r]=this.scroll.line(t+e);let o=0,s=new Pp;null!=n&&(o=n.length()-r,s=n.delta().slice(r,r+o-1).insert("\n"));const a=this.getContents(t,e+o).diff((new Pp).insert(i).concat(s)),l=(new Pp).retain(t).concat(a);return this.applyDelta(l)}update(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(vm)&&this.scroll.find(e[0].target)){const r=this.scroll.find(e[0].target),o=em(r),s=r.offset(this.scroll),a=e[0].oldValue.replace(nm.CONTENTS,""),l=(new Pp).insert(a),h=(new Pp).insert(r.value()),d=i&&{oldRange:Em(i.oldRange,-s),newRange:Em(i.newRange,-s)};t=(new Pp).retain(s).concat(l.diff(h,d)).reduce((t,e)=>e.insert?t.insert(e.insert,o):t.push(e),new Pp),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&Wp(n.compose(t),this.delta)||(t=n.diff(this.delta,i));return t}};const Tm=class{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}},_m="\ufeff";const Cm=class extends Fp{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode(_m),this.rightGuard=document.createTextNode(_m),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,i=null;const n=t.data.split(_m).join("");if(t===this.leftGuard)if(this.prev instanceof Gp){const t=this.prev.length();this.prev.insertAt(t,n),i={startNode:this.prev.domNode,startOffset:t+n.length}}else e=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(e),this),i={startNode:e,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof Gp?(this.next.insertAt(0,n),i={startNode:this.next.domNode,startOffset:n.length}):(e=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(e),this.next),i={startNode:e,startOffset:n.length}));return t.data=_m,i}update(t,e){t.forEach(t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){const i=this.restore(t.target);i&&(e.range=i)}})}};const Sm=class{isComposing=!1;constructor(t,e){this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof Cm||(this.emitter.emit(um.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(um.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(um.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(um.events.COMPOSITION_END,t),this.isComposing=!1}};class Mm{static DEFAULTS={modules:{}};static themes={default:Mm};modules={};constructor(t,e){this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const Am=Mm,zm=t=>t.parentElement||t.getRootNode().host||null,Lm=t=>{const e=t.getBoundingClientRect(),i="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,n="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*i,bottom:e.top+t.clientHeight*n,left:e.left}},Om=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},Fm=(t,e,i,n,r,o)=>t<i&&e>n?0:t<i?-(i-t+r):e>n?e-t>n-i?t+r-i:e-n+o:0,Dm=(t,e)=>{const i=t.ownerDocument;let n=e,r=t;for(;r;){const t=r===i.body,e=t?{top:0,right:window.visualViewport?.width??i.documentElement.clientWidth,bottom:window.visualViewport?.height??i.documentElement.clientHeight,left:0}:Lm(r),o=getComputedStyle(r),s=Fm(n.left,n.right,e.left,e.right,Om(o.scrollPaddingLeft),Om(o.scrollPaddingRight)),a=Fm(n.top,n.bottom,e.top,e.bottom,Om(o.scrollPaddingTop),Om(o.scrollPaddingBottom));if(s||a)if(t)i.defaultView?.scrollBy(s,a);else{const{scrollLeft:t,scrollTop:e}=r;a&&(r.scrollTop+=a),s&&(r.scrollLeft+=s);const i=r.scrollLeft-t,o=r.scrollTop-e;n={left:n.left-i,top:n.top-o,right:n.right-i,bottom:n.bottom-o}}r=t||"fixed"===o.position?null:zm(r)}},Rm=["block","break","cursor","inline","scroll","text"],Im=(t,e,i)=>{const n=new pp;return Rm.forEach(t=>{const i=e.query(t);i&&n.register(i)}),t.forEach(t=>{let r=e.query(t);r||i.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;r;)if(n.register(r),r="blotName"in r?r.requiredContainer??null:null,o+=1,o>100){i.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}),n},qm=dm("quill"),Bm=new pp;Cp.uiClass="ql-ui";class Pm{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Bm,theme:"default"};static events=um.events;static sources=um.sources;static version="2.0.3";static imports={delta:Pp,parchment:o,"core/module":Tm,"core/theme":Am};static debug(t){!0===t&&(t="log"),dm.level(t)}static find(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return om.get(t)||Bm.find(t,e)}static import(t){return null==this.imports[t]&&qm.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),i="attrName"in t?t.attrName:t.blotName;"string"==typeof i?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(i=>{this.register(i,t[i],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],i=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[t]||i||qm.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&Bm.register(e),"function"==typeof e.register&&e.register(Bm)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=function(t,e){const i=Um(t);if(!i)throw new Error("Invalid Quill container");const n=!e.theme||e.theme===Pm.DEFAULTS.theme,r=n?Am:Pm.import(`themes/${e.theme}`);if(!r)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:o,...s}=Pm.DEFAULTS,{modules:a,...l}=r.DEFAULTS;let h=jm(e.modules);null!=h&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});const d=(0,hp.A)({},jm(o),jm(a),h),c={...s,...Hm(l),...Hm(e)};let u=e.registry;u?e.formats&&qm.warn('Ignoring "formats" option because "registry" is specified'):u=e.formats?Im(e.formats,c.registry,qm):c.registry;return{...c,registry:u,container:i,theme:r,modules:Object.entries(d).reduce((t,e)=>{let[i,n]=e;if(!n)return t;const r=Pm.import(`modules/${i}`);return null==r?(qm.error(`Cannot load ${i} module. Are you sure you registered it?`),t):{...t,[i]:(0,hp.A)({},r.DEFAULTS||{},n)}},{}),bounds:Um(c.bounds)}}(t,e),this.container=this.options.container,null==this.container)return void qm.error("Invalid Quill container",t);this.options.debug&&Pm.debug(this.options.debug);const i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",om.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new um;const n=Ip.blotName,r=this.options.registry.query(n);if(!r||!("blotName"in r))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new r(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Nm(this.scroll),this.selection=new gm(this.scroll,this.emitter),this.composition=new Sm(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(um.events.EDITOR_CHANGE,t=>{t===um.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(um.events.SCROLL_UPDATE,(t,e)=>{const i=this.selection.lastRange,[n]=this.selection.getRange(),r=i&&n?{oldRange:i,newRange:n}:void 0;Wm.call(this,()=>this.editor.update(null,e,r),t)}),this.emitter.on(um.events.SCROLL_EMBED_UPDATE,(t,e)=>{const i=this.selection.lastRange,[n]=this.selection.getRange(),r=i&&n?{oldRange:i,newRange:n}:void 0;Wm.call(this,()=>{const i=(new Pp).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(i,[],r)},Pm.sources.USER)}),i){const t=this.clipboard.convert({html:`${i}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,i){return[t,e,,i]=Vm(t,e,i),Wm.call(this,()=>this.editor.deleteText(t,e),i,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:um.sources.API;return Wm.call(this,()=>{const i=this.getSelection(!0);let n=new Pp;if(null==i)return n;if(this.scroll.query(t,dp.BLOCK))n=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(0===i.length)return this.selection.format(t,e),n;n=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,um.sources.SILENT),n},i)}formatLine(t,e,i,n,r){let o;return[t,e,o,r]=Vm(t,e,i,n,r),Wm.call(this,()=>this.editor.formatLine(t,e,o),r,t,0)}formatText(t,e,i,n,r){let o;return[t,e,o,r]=Vm(t,e,i,n,r),Wm.call(this,()=>this.editor.formatText(t,e,o),r,t,0)}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null;if(i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length),!i)return null;const n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}getContents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return[t,e]=Vm(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Vm(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Vm(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Pm.sources.API;return Wm.call(this,()=>this.editor.insertEmbed(t,e,i),n,t)}insertText(t,e,i,n,r){let o;return[t,,o,r]=Vm(t,0,i,n,r),Wm.call(this,()=>this.editor.insertText(t,e,o),r,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,i){return[t,e,,i]=Vm(t,e,i),Wm.call(this,()=>this.editor.removeFormat(t,e),i,t)}scrollRectIntoView(t){Dm(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:um.sources.API;return Wm.call(this,()=>{t=new Pp(t);const e=this.getLength(),i=this.editor.deleteText(0,e),n=this.editor.insertContents(0,t),r=this.editor.deleteText(this.getLength()-1,1);return i.compose(n).compose(r)},e)}setSelection(t,e,i){null==t?this.selection.setRange(null,e||Pm.sources.API):([t,e,,i]=Vm(t,e,i),this.selection.setRange(new pm(Math.max(0,t),e),i),i!==um.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:um.sources.API;const i=(new Pp).insert(t);return this.setContents(i,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:um.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:um.sources.API;return Wm.call(this,()=>(t=new Pp(t),this.editor.applyDelta(t)),e,!0)}}function Um(t){return"string"==typeof t?document.querySelector(t):t}function jm(t){return Object.entries(t??{}).reduce((t,e)=>{let[i,n]=e;return{...t,[i]:!0===n?{}:n}},{})}function Hm(t){return Object.fromEntries(Object.entries(t).filter(t=>void 0!==t[1]))}function Wm(t,e,i,n){if(!this.isEnabled()&&e===um.sources.USER&&!this.allowReadOnlyEdits)return new Pp;let r=null==i?null:this.getSelection();const o=this.editor.delta,s=t();if(null!=r&&(!0===i&&(i=r.index),null==n?r=Km(r,s,e):0!==n&&(r=Km(r,i,n,e)),this.setSelection(r,um.sources.SILENT)),s.length()>0){const t=[um.events.TEXT_CHANGE,s,o,e];this.emitter.emit(um.events.EDITOR_CHANGE,...t),e!==um.sources.SILENT&&this.emitter.emit(...t)}return s}function Vm(t,e,i,n,r){let o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(r=n,n=i,i=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(r=n,n=i,i=e,e=0),"object"==typeof i?(o=i,r=n):"string"==typeof i&&(null!=n?o[i]=n:r=i),[t,e,o,r=r||um.sources.API]}function Km(t,e,i,n){const r="number"==typeof i?i:0;if(null==t)return null;let o,s;return e&&"function"==typeof e.transformPosition?[o,s]=[t.index,t.index+t.length].map(t=>e.transformPosition(t,n!==um.sources.USER)):[o,s]=[t.index,t.index+t.length].map(t=>t<e||t===e&&n===um.sources.USER?t:r>=0?t+r:Math.max(e,t+r)),new pm(o,s-o)}const Gm=class extends Op{};function Xm(t){return t instanceof Jp||t instanceof $p}function Ym(t){return"function"==typeof t.updateContent}function Zm(t,e,i){i.reduce((e,i)=>{const n=Pp.Op.length(i);let r=i.attributes||{};if(null!=i.insert)if("string"==typeof i.insert){const n=i.insert;t.insertAt(e,n);const[o]=t.descendant(Ep,e),s=em(o);r=Pp.AttributeMap.diff(s,r)||{}}else if("object"==typeof i.insert){const n=Object.keys(i.insert)[0];if(null==n)return e;t.insertAt(e,n,i.insert[n]);if(null!=t.scroll.query(n,dp.INLINE)){const[i]=t.descendant(Ep,e),n=em(i);r=Pp.AttributeMap.diff(n,r)||{}}}return Object.keys(r).forEach(i=>{t.formatAt(e,n,i,r[i])}),e+n},e)}const Qm=class extends Ip{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Jp;static allowedChildren=[Jp,$p,Gm];constructor(t,e,i){let{emitter:n}=i;super(t,e),this.emitter=n,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(um.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(um.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(um.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[i,n]=this.line(t),[r]=this.line(t+e);if(super.deleteAt(t,e),null!=r&&i!==r&&n>0){if(i instanceof $p||r instanceof $p)return void this.optimize();const t=r.children.head instanceof Kp?null:r.children.head;i.moveChildren(r,t),i.remove()}this.optimize()}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,i,n){super.formatAt(t,e,i,n),this.optimize()}insertAt(t,e,i){if(t>=this.length())if(null==i||null==this.scroll.query(e,dp.BLOCK)){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==i&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),i):t.insertAt(0,e,i)}else{const t=this.scroll.create(e,i);this.appendChild(t)}else super.insertAt(t,e,i);this.optimize()}insertBefore(t,e){if(t.statics.scope===dp.INLINE_BLOT){const i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(t),super.insertBefore(i,e)}else super.insertBefore(t,e)}insertContents(t,e){const i=this.deltaToRenderBlocks(e.concat((new Pp).insert("\n"))),n=i.pop();if(null==n)return;this.batchStart();const r=i.shift();if(r){const e="block"===r.type&&(0===r.delta.length()||!this.descendant($p,t)[0]&&t<this.length()),i="block"===r.type?r.delta:(new Pp).insert({[r.key]:r.value});Zm(this,t,i);const n="block"===r.type?1:0,o=t+i.length()+n;e&&this.insertAt(o-1,"\n");const s=em(this.line(t)[0]),a=Pp.AttributeMap.diff(s,r.attributes)||{};Object.keys(a).forEach(t=>{this.formatAt(o-1,1,t,a[t])}),t=o}let[o,s]=this.children.find(t);if(i.length&&(o&&(o=o.split(s),s=0),i.forEach(t=>{if("block"===t.type){Zm(this.createBlock(t.attributes,o||void 0),0,t.delta)}else{const e=this.create(t.key,t.value);this.insertBefore(e,o||void 0),Object.keys(t.attributes).forEach(i=>{e.format(i,t.attributes[i])})}})),"block"===n.type&&n.delta.length()){Zm(this,o?o.offset(o.scroll)+s:this.length(),n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[i,n]=e;return i instanceof Ep?[i,n]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Xm,t)}lines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;const i=(t,e,n)=>{let r=[],o=n;return t.children.forEachAt(e,n,(t,e,n)=>{Xm(t)?r.push(t):t instanceof Op&&(r=r.concat(i(t,e,o))),o-=n}),r};return i(this,t,e)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(um.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let e=um.sources.USER;"string"==typeof t&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(t=>{let{target:e}=t;const i=this.find(e,!0);return i&&!Ym(i)})).length>0&&this.emitter.emit(um.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(um.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,i){const[n]=this.descendant(t=>t instanceof $p,t);n&&n.statics.blotName===e&&Ym(n)&&n.updateContent(i)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let i=new Pp;return t.forEach(t=>{const n=t?.insert;if(n)if("string"==typeof n){const r=n.split("\n");r.slice(0,-1).forEach(n=>{i.insert(n,t.attributes),e.push({type:"block",delta:i,attributes:t.attributes??{}}),i=new Pp});const o=r[r.length-1];o&&i.insert(o,t.attributes)}else{const r=Object.keys(n)[0];if(!r)return;this.query(r,dp.INLINE)?i.push(t):(i.length()&&e.push({type:"block",delta:i,attributes:{}}),i=new Pp,e.push({type:"blockEmbed",key:r,value:n[r],attributes:t.attributes??{}}))}}),i.length()&&e.push({type:"block",delta:i,attributes:{}}),e}createBlock(t,e){let i;const n={};Object.entries(t).forEach(t=>{let[e,r]=t;null!=this.query(e,dp.BLOCK&dp.BLOT)?i=e:n[e]=r});const r=this.create(i||this.statics.defaultChild.blotName,i?t[i]:void 0);this.insertBefore(r,e||void 0);const o=r.length();return Object.entries(n).forEach(t=>{let[e,i]=t;r.formatAt(0,o,e,i)}),r}},Jm={scope:dp.BLOCK,whitelist:["right","center","justify"]},$m=new cp("align","align",Jm),tg=new gp("align","ql-align",Jm),eg=new yp("align","text-align",Jm);class ig extends yp{value(t){let e=super.value(t);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return`#${e.split(",").map(t=>`00${parseInt(t,10).toString(16)}`.slice(-2)).join("")}`}}const ng=new gp("color","ql-color",{scope:dp.INLINE}),rg=new ig("color","color",{scope:dp.INLINE}),og=new gp("background","ql-bg",{scope:dp.INLINE}),sg=new ig("background","background-color",{scope:dp.INLINE});class ag extends Gm{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(t=>t.length()<=1?"":t.domNode.innerText).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${Yp(this.code(t,e))}\n</pre>`}}class lg extends Jp{static TAB=" ";static register(){Pm.register(ag)}}class hg extends Qp{}hg.blotName="code",hg.tagName="CODE",lg.blotName="code-block",lg.className="ql-code-block",lg.tagName="DIV",ag.blotName="code-block-container",ag.className="ql-code-block-container",ag.tagName="DIV",ag.allowedChildren=[lg],lg.allowedChildren=[Gp,Kp,nm],lg.requiredContainer=ag;const dg={scope:dp.BLOCK,whitelist:["rtl"]},cg=new cp("direction","dir",dg),ug=new gp("direction","ql-direction",dg),fg=new yp("direction","direction",dg),pg={scope:dp.INLINE,whitelist:["serif","monospace"]},mg=new gp("font","ql-font",pg);const gg=new class extends yp{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",pg),vg=new gp("size","ql-size",{scope:dp.INLINE,whitelist:["small","large","huge"]}),yg=new yp("size","font-size",{scope:dp.INLINE,whitelist:["10px","18px","32px"]}),bg=dm("quill:keyboard"),xg=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class wg extends Tm{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!e[i]!==t[i]&&null!==e[i])&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=(0,jp.A)(t)}t.shortKey&&(t[xg]=t.shortKey,delete t.shortKey);return t}(t);if(null==n)return void bg.warn("Attempted to add invalid keyboard binding",n);"function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i});(Array.isArray(n.key)?n.key:[n.key]).forEach(t=>{const r={...n,key:t,...e,...i};this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>wg.match(t,e));if(0===e.length)return;const i=Pm.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const n=this.quill.getSelection();if(null==n||!this.quill.hasFocus())return;const[r,o]=this.quill.getLine(n.index),[s,a]=this.quill.getLeaf(n.index),[l,h]=0===n.length?[s,a]:this.quill.getLeaf(n.index+n.length),d=s instanceof Bp?s.value().slice(0,a):"",c=l instanceof Bp?l.value().slice(h):"",u={collapsed:0===n.length,empty:0===n.length&&r.length()<=1,format:this.quill.getFormat(n),line:r,offset:o,prefix:d,suffix:c,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==u.collapsed)return!1;if(null!=t.empty&&t.empty!==u.empty)return!1;if(null!=t.offset&&t.offset!==u.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==u.format[t]))return!1}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=u.format[e]:!1===t.format[e]?null==u.format[e]:Wp(t.format[e],u.format[e])))return!1;return!(null!=t.prefix&&!t.prefix.test(u.prefix))&&(!(null!=t.suffix&&!t.suffix.test(u.suffix))&&!0!==t.handler.call(this,n,u,t))})&&t.preventDefault()})}handleBackspace(t,e){const i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let n={};const[r]=this.quill.getLine(t.index);let o=(new Pp).retain(t.index-i).delete(i);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e){if(!("block"===e.statics.blotName&&e.length()<=1)){const e=r.formats(),i=this.quill.getFormat(t.index-1,1);if(n=Pp.AttributeMap.diff(e,i)||{},Object.keys(n).length>0){const e=(new Pp).retain(t.index+r.length()-2).retain(1,n);o=o.compose(e)}}}}this.quill.updateContents(o,Pm.sources.USER),this.quill.focus()}handleDelete(t,e){const i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-i)return;let n={};const[r]=this.quill.getLine(t.index);let o=(new Pp).retain(t.index).delete(i);if(e.offset>=r.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const i=r.formats(),s=this.quill.getFormat(t.index,1);n=Pp.AttributeMap.diff(i,s)||{},Object.keys(n).length>0&&(o=o.retain(e.length()-1).retain(1,n))}}this.quill.updateContents(o,Pm.sources.USER),this.quill.focus()}handleDeleteRange(t){Cg({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,dp.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),n=(new Pp).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(n,Pm.sources.USER),this.quill.setSelection(t.index+1,Pm.sources.SILENT),this.quill.focus()}}const kg={bindings:{bold:Tg("bold"),italic:Tg("italic"),underline:Tg("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Pm.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Pm.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Pm.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Pm.sources.USER)}},"indent code-block":Eg(!0),"outdent code-block":Eg(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Pm.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const i=(new Pp).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(i,Pm.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Pm.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Pm.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const i={list:!1};e.format.indent&&(i.indent=!1),this.quill.formatLine(t.index,t.length,i,Pm.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,i]=this.quill.getLine(t.index),n={...e.formats(),list:"checked"},r=(new Pp).retain(t.index).insert("\n",n).retain(e.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,Pm.sources.USER),this.quill.setSelection(t.index+1,Pm.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[i,n]=this.quill.getLine(t.index),r=(new Pp).retain(t.index).insert("\n",e.format).retain(i.length()-n-1).retain(1,{header:null});this.quill.updateContents(r,Pm.sources.USER),this.quill.setSelection(t.index+1,Pm.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[i,n,r,o]=e.getTable(t),s=function(t,e,i,n){if(null==e.prev&&null==e.next)return null==i.prev&&null==i.next?0===n?-1:1:null==i.prev?-1:1;if(null==e.prev)return-1;if(null==e.next)return 1;return null}(0,n,r,o);if(null==s)return;let a=i.offset();if(s<0){const e=(new Pp).retain(a).insert("\n");this.quill.updateContents(e,Pm.sources.USER),this.quill.setSelection(t.index+1,t.length,Pm.sources.SILENT)}else if(s>0){a+=i.length();const t=(new Pp).retain(a).insert("\n");this.quill.updateContents(t,Pm.sources.USER),this.quill.setSelection(a,Pm.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:i,line:n}=e,r=n.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(r-1,Pm.sources.USER):this.quill.setSelection(r+n.length(),Pm.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:i}=e.prefix,[n,r]=this.quill.getLine(t.index);if(r>i)return!0;let o;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(t.index," ",Pm.sources.USER),this.quill.history.cutoff();const s=(new Pp).retain(t.index-r).delete(i+1).retain(n.length()-2-r).retain(1,{list:o});return this.quill.updateContents(s,Pm.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,Pm.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,i]=this.quill.getLine(t.index);let n=2,r=e;for(;null!=r&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,n-=1,n<=0){const n=(new Pp).retain(t.index+e.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(n,Pm.sources.USER),this.quill.setSelection(t.index-1,Pm.sources.SILENT),!1}return!0}},"embed left":Ng("ArrowLeft",!1),"embed left shift":Ng("ArrowLeft",!0),"embed right":Ng("ArrowRight",!1),"embed right shift":Ng("ArrowRight",!0),"table down":_g(!1),"table up":_g(!0)}};function Eg(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,i){let{event:n}=i;const r=this.quill.scroll.query("code-block"),{TAB:o}=r;if(0===e.length&&!n.shiftKey)return this.quill.insertText(e.index,o,Pm.sources.USER),void this.quill.setSelection(e.index+o.length,Pm.sources.SILENT);const s=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:a,length:l}=e;s.forEach((e,i)=>{t?(e.insertAt(0,o),0===i?a+=o.length:l+=o.length):e.domNode.textContent.startsWith(o)&&(e.deleteAt(0,o.length),0===i?a-=o.length:l-=o.length)}),this.quill.update(Pm.sources.USER),this.quill.setSelection(a,l,Pm.sources.SILENT)}}}function Ng(t,e){const i="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[i]:/^$/,handler(i){let{index:n}=i;"ArrowRight"===t&&(n+=i.length+1);const[r]=this.quill.getLeaf(n);return!(r instanceof Fp)||("ArrowLeft"===t?e?this.quill.setSelection(i.index-1,i.length+1,Pm.sources.USER):this.quill.setSelection(i.index-1,Pm.sources.USER):e?this.quill.setSelection(i.index,i.length+1,Pm.sources.USER):this.quill.setSelection(i.index+i.length+1,Pm.sources.USER),!1)}}}function Tg(t){return{key:t[0],shortKey:!0,handler(e,i){this.quill.format(t,!i.format[t],Pm.sources.USER)}}}function _g(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,i){const n=t?"prev":"next",r=i.line,o=r.parent[n];if(null!=o){if("table-row"===o.statics.blotName){let t=o.children.head,e=r;for(;null!=e.prev;)e=e.prev,t=t.next;const n=t.offset(this.quill.scroll)+Math.min(i.offset,t.length()-1);this.quill.setSelection(n,0,Pm.sources.USER)}}else{const e=r.table()[n];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Pm.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Pm.sources.USER))}return!1}}}function Cg(t){let{quill:e,range:i}=t;const n=e.getLines(i);let r={};if(n.length>1){const t=n[0].formats(),e=n[n.length-1].formats();r=Pp.AttributeMap.diff(e,t)||{}}e.deleteText(i,Pm.sources.USER),Object.keys(r).length>0&&e.formatLine(i.index,1,r,Pm.sources.USER),e.setSelection(i.index,Pm.sources.SILENT)}wg.DEFAULTS=kg;const Sg=/font-weight:\s*normal/,Mg=["P","OL","UL"],Ag=t=>t&&Mg.includes(t.tagName);const zg=/\bmso-list:[^;]*ignore/i,Lg=/\bmso-list:[^;]*\bl(\d+)/i,Og=/\bmso-list:[^;]*\blevel(\d+)/i,Fg=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),i=[],n=[];e.forEach(t=>{(t.getAttribute("style")||"").match(zg)?i.push(t):n.push(t)}),i.forEach(t=>t.parentNode?.removeChild(t));const r=t.documentElement.innerHTML,o=n.map(t=>((t,e)=>{const i=t.getAttribute("style"),n=i?.match(Lg);if(!n)return null;const r=Number(n[1]),o=i?.match(Og),s=o?Number(o[1]):1,a=new RegExp(`@list l${r}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(a);return{id:r,indent:s,type:l&&"bullet"===l[1]?"bullet":"ordered",element:t}})(t,r)).filter(t=>t);for(;o.length;){const t=[];let e=o.shift();for(;e;)t.push(e),e=o.length&&o[0]?.element===e.element.nextElementSibling&&o[0].id===e.id?o.shift():null;const i=document.createElement("ul");t.forEach(t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type),t.indent>1&&e.setAttribute("class","ql-indent-"+(t.indent-1)),e.innerHTML=t.element.innerHTML,i.appendChild(e)});const n=t[0]?.element,{parentNode:r}=n??{};n&&r?.replaceChild(i,n),t.slice(1).forEach(t=>{let{element:e}=t;r?.removeChild(e)})}};const Dg=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&Fg(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&((t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(Sg)).forEach(e=>{const i=t.createDocumentFragment();i.append(...e.childNodes),e.parentNode?.replaceChild(i,e)})})(t),(t=>{Array.from(t.querySelectorAll("br")).filter(t=>Ag(t.previousElementSibling)&&Ag(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)})})(t))}],Rg=t=>{t.documentElement&&Dg.forEach(e=>{e(t)})},Ig=dm("quill:clipboard"),qg=[[Node.TEXT_NODE,function(t,e,i){let n=t.data;if("O:P"===t.parentElement?.tagName)return e.insert(n.trim());if(!Vg(t)){if(0===n.trim().length&&n.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Hg(t.previousElementSibling,e)&&!Hg(t.nextElementSibling,e)}(t,i))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&Hg(t.parentElement,i)||t.previousSibling instanceof Element&&Hg(t.previousSibling,i))&&(n=n.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&Hg(t.parentElement,i)||t.nextSibling instanceof Element&&Hg(t.nextSibling,i))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return e.insert(n)}],[Node.TEXT_NODE,Xg],["br",function(t,e){jg(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,Xg],[Node.ELEMENT_NODE,function(t,e,i){const n=i.query(t);if(null==n)return e;if(n.prototype instanceof Fp){const e={},r=n.value(t);if(null!=r)return e[n.blotName]=r,(new Pp).insert(e,n.formats(t,i))}else if(n.prototype instanceof zp&&!jg(e,"\n")&&e.insert("\n"),"blotName"in n&&"formats"in n&&"function"==typeof n.formats)return Ug(e,n.blotName,n.formats(t,i),i);return e}],[Node.ELEMENT_NODE,function(t,e,i){const n=cp.keys(t),r=gp.keys(t),o=yp.keys(t),s={};return n.concat(r).concat(o).forEach(e=>{let n=i.query(e,dp.ATTRIBUTE);null!=n&&(s[n.attrName]=n.value(t),s[n.attrName])||(n=Bg[e],null==n||n.attrName!==e&&n.keyName!==e||(s[n.attrName]=n.value(t)||void 0),n=Pg[e],null==n||n.attrName!==e&&n.keyName!==e||(n=Pg[e],s[n.attrName]=n.value(t)||void 0))}),Object.entries(s).reduce((t,e)=>{let[n,r]=e;return Ug(t,n,r,i)},e)}],[Node.ELEMENT_NODE,function(t,e,i){const n={},r=t.style||{};"italic"===r.fontStyle&&(n.italic=!0);"underline"===r.textDecoration&&(n.underline=!0);"line-through"===r.textDecoration&&(n.strike=!0);(r.fontWeight?.startsWith("bold")||parseInt(r.fontWeight,10)>=700)&&(n.bold=!0);if(e=Object.entries(n).reduce((t,e)=>{let[n,r]=e;return Ug(t,n,r,i)},e),parseFloat(r.textIndent||0)>0)return(new Pp).insert("\t").concat(e);return e}],["li",function(t,e,i){const n=i.query(t);if(null==n||"list"!==n.blotName||!jg(e,"\n"))return e;let r=-1,o=t.parentNode;for(;null!=o;)["OL","UL"].includes(o.tagName)&&(r+=1),o=o.parentNode;return r<=0?e:e.reduce((t,e)=>e.insert?e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,{indent:r,...e.attributes||{}}):t,new Pp)}],["ol, ul",function(t,e,i){const n=t;let r="OL"===n.tagName?"ordered":"bullet";const o=n.getAttribute("data-checked");o&&(r="true"===o?"checked":"unchecked");return Ug(e,"list",r,i)}],["pre",function(t,e,i){const n=i.query("code-block"),r=!n||!("formats"in n)||"function"!=typeof n.formats||n.formats(t,i);return Ug(e,"code-block",r,i)}],["tr",function(t,e,i){const n="TABLE"===t.parentElement?.tagName?t.parentElement:t.parentElement?.parentElement;if(null!=n){return Ug(e,"table",Array.from(n.querySelectorAll("tr")).indexOf(t)+1,i)}return e}],["b",Gg("bold")],["i",Gg("italic")],["strike",Gg("strike")],["style",function(){return new Pp}]],Bg=[$m,cg].reduce((t,e)=>(t[e.keyName]=e,t),{}),Pg=[eg,sg,rg,fg,gg,yg].reduce((t,e)=>(t[e.keyName]=e,t),{});function Ug(t,e,i,n){return n.query(e)?t.reduce((t,n)=>{if(!n.insert)return t;if(n.attributes&&n.attributes[e])return t.push(n);const r=i?{[e]:i}:{};return t.insert(n.insert,{...r,...n.attributes})},new Pp):t}function jg(t,e){let i="";for(let n=t.ops.length-1;n>=0&&i.length<e.length;--n){const e=t.ops[n];if("string"!=typeof e.insert)break;i=e.insert+i}return i.slice(-1*e.length)===e}function Hg(t,e){if(!(t instanceof Element))return!1;const i=e.query(t);return!(i&&i.prototype instanceof Fp)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}const Wg=new WeakMap;function Vg(t){return null!=t&&(Wg.has(t)||("PRE"===t.tagName?Wg.set(t,!0):Wg.set(t,Vg(t.parentNode))),Wg.get(t))}function Kg(t,e,i,n,r){return e.nodeType===e.TEXT_NODE?n.reduce((i,n)=>n(e,i,t),new Pp):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((o,s)=>{let a=Kg(t,s,i,n,r);return s.nodeType===e.ELEMENT_NODE&&(a=i.reduce((e,i)=>i(s,e,t),a),a=(r.get(s)||[]).reduce((e,i)=>i(s,e,t),a)),o.concat(a)},new Pp):new Pp}function Gg(t){return(e,i,n)=>Ug(i,t,!0,n)}function Xg(t,e,i){if(!jg(e,"\n")){if(Hg(t,i)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let n=t.nextSibling;for(;null!=n;){if(Hg(n,i))return e.insert("\n");const t=i.query(n);if(t&&t.prototype instanceof $p)return e.insert("\n");n=n.firstChild}}}return e}function Yg(t,e){let i=e;for(let e=t.length-1;e>=0;e-=1){const n=t[e];t[e]={delta:i.transform(n.delta,!0),range:n.range&&Zg(n.range,i)},i=n.delta.transform(i),0===t[e].delta.length()&&t.splice(e,1)}}function Zg(t,e){if(!t)return t;const i=e.transformPosition(t.index);return{index:i,length:e.transformPosition(t.index+t.length)-i}}class Qg extends Tm{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{e.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(e.clientX,e.clientY);else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);i=document.createRange(),i.setStart(t.offsetNode,t.offset),i.setEnd(t.offsetNode,t.offset)}const n=i&&t.selection.normalizeNative(i);if(n){const i=t.selection.normalizedToRange(n);e.dataTransfer?.files&&this.upload(i,e.dataTransfer.files)}})}upload(t,e){const i=[];Array.from(e).forEach(t=>{t&&this.options.mimetypes?.includes(t.type)&&i.push(t)}),i.length>0&&this.options.handler.call(this,t,i)}}Qg.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const i=e.map(t=>new Promise(e=>{const i=new FileReader;i.onload=()=>{e(i.result)},i.readAsDataURL(t)}));Promise.all(i).then(e=>{const i=e.reduce((t,e)=>t.insert({image:e}),(new Pp).retain(t.index).delete(t.length));this.quill.updateContents(i,um.sources.USER),this.quill.setSelection(t.index+e.length,um.sources.SILENT)})}};const Jg=Qg,$g=["insertText","insertReplacementText"];const tv=class extends Tm{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",t=>{this.handleBeforeInput(t)}),/Android/i.test(navigator.userAgent)||t.on(Pm.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Cg({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const i=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new Pp).retain(t.index).insert(e,i),Pm.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,Pm.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!$g.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||!0===e.collapsed)return;const i=function(t){if("string"==typeof t.data)return t.data;if(t.dataTransfer?.types.includes("text/plain"))return t.dataTransfer.getData("text/plain");return null}(t);if(null==i)return;const n=this.quill.selection.normalizeNative(e),r=n?this.quill.selection.normalizedToRange(n):null;r&&this.replaceText(r,i)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}},ev=/Mac/i.test(navigator.platform);const iv=class extends Tm{isListening=!1;selectionChangeDeadline=0;constructor(t,e){super(t,e),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:i,event:n}=e;if(!(i instanceof Cp&&i.uiNode))return!0;const r="rtl"===getComputedStyle(i.domNode).direction;return!!(r&&"ArrowRight"!==n.key||!r&&"ArrowLeft"!==n.key)||(this.quill.setSelection(t.index-1,t.length+(n.shiftKey?1:0),Pm.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!ev||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+100,this.isListening)return;this.isListening=!0;document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const i=this.quill.scroll.find(e.startContainer);if(!(i instanceof Cp&&i.uiNode))return;const n=document.createRange();n.setStartAfter(i.uiNode),n.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(n)}};Pm.register({"blots/block":Jp,"blots/block/embed":$p,"blots/break":Kp,"blots/container":Gm,"blots/cursor":nm,"blots/embed":Cm,"blots/inline":Qp,"blots/scroll":Qm,"blots/text":Gp,"modules/clipboard":class extends Tm{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",t=>this.onCaptureCopy(t,!1)),this.quill.root.addEventListener("cut",t=>this.onCaptureCopy(t,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],qg.concat(this.options.matchers??[]).forEach(t=>{let[e,i]=t;this.addMatcher(e,i)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:i}=t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n[lg.blotName])return(new Pp).insert(i||"",{[lg.blotName]:n[lg.blotName]});if(!e)return(new Pp).insert(i||"",n);const r=this.convertHTML(e);return jg(r,"\n")&&(null==r.ops[r.ops.length-1].attributes||n.table)?r.compose((new Pp).retain(r.length()-1).delete(1)):r}normalizeHTML(t){Rg(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const i=e.body,n=new WeakMap,[r,o]=this.prepareMatching(i,n);return Kg(this.quill.scroll,i,r,o,n)}dangerouslyPasteHTML(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pm.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,Pm.sources.SILENT)}else{const n=this.convert({html:e,text:""});this.quill.updateContents((new Pp).retain(t).concat(n),i),this.quill.setSelection(t+n.length(),Pm.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[i]=this.quill.selection.getRange();if(null==i)return;const{html:n,text:r}=this.onCopy(i,e);t.clipboardData?.setData("text/plain",r),t.clipboardData?.setData("text/html",n),e&&Cg({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(t=>"#"!==t[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const i=t.clipboardData?.getData("text/html");let n=t.clipboardData?.getData("text/plain");if(!i&&!n){const e=t.clipboardData?.getData("text/uri-list");e&&(n=this.normalizeURIList(e))}const r=Array.from(t.clipboardData?.files||[]);if(!i&&r.length>0)this.quill.uploader.upload(e,r);else{if(i&&r.length>0){const t=(new DOMParser).parseFromString(i,"text/html");if(1===t.body.childElementCount&&"IMG"===t.body.firstElementChild?.tagName)return void this.quill.uploader.upload(e,r)}this.onPaste(e,{html:i,text:n})}}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:i,html:n}=e;const r=this.quill.getFormat(t.index),o=this.convert({text:i,html:n},r);Ig.log("onPaste",o,{text:i,html:n});const s=(new Pp).retain(t.index).delete(t.length).concat(o);this.quill.updateContents(s,Pm.sources.USER),this.quill.setSelection(s.length()-t.length,Pm.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const i=[],n=[];return this.matchers.forEach(r=>{const[o,s]=r;switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:i.push(s);break;default:Array.from(t.querySelectorAll(o)).forEach(t=>{if(e.has(t)){const i=e.get(t);i?.push(s)}else e.set(t,[s])})}}),[i,n]}},"modules/history":class extends Tm{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(Pm.events.EDITOR_CHANGE,(t,e,i,n)=>{t===Pm.events.SELECTION_CHANGE?e&&n!==Pm.sources.SILENT&&(this.currentRange=e):t===Pm.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&n!==Pm.sources.USER?this.transform(e):this.record(e,i)),this.currentRange=Zg(this.currentRange,e))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())})}change(t,e){if(0===this.stack[t].length)return;const i=this.stack[t].pop();if(!i)return;const n=this.quill.getContents(),r=i.delta.invert(n);this.stack[e].push({delta:r,range:Zg(i.range,r)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Pm.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let i=t.invert(e),n=this.currentRange;const r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(i=i.compose(t.delta),n=t.range)}else this.lastRecorded=r;0!==i.length()&&(this.stack.undo.push({delta:i,range:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Yg(this.stack.undo,t),Yg(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Pm.sources.USER);else{const e=function(t,e){const i=e.reduce((t,e)=>t+(e.delete||0),0);let n=e.length()-i;(function(t,e){const i=e.ops[e.ops.length-1];if(null==i)return!1;if(null!=i.insert)return"string"==typeof i.insert&&i.insert.endsWith("\n");if(null!=i.attributes)return Object.keys(i.attributes).some(e=>null!=t.query(e,dp.BLOCK));return!1})(t,e)&&(n-=1);return n}(this.quill.scroll,t.delta);this.quill.setSelection(e,Pm.sources.USER)}}},"modules/keyboard":wg,"modules/uploader":Jg,"modules/input":tv,"modules/uiNode":iv});const nv=Pm;const rv=new class extends gp{add(t,e){let i=0;if("+1"===e||"-1"===e){const n=this.value(t)||0;i="+1"===e?n+1:n-1}else"number"==typeof e&&(i=e);return 0===i?(this.remove(t),!0):super.add(t,i.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:dp.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),ov=rv;const sv=class extends Jp{static blotName="blockquote";static tagName="blockquote"};const av=class extends Jp{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}};class lv extends Gm{}lv.blotName="list-container",lv.tagName="OL";class hv extends Jp{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Pm.register(lv)}constructor(t,e){super(t,e);const i=e.ownerDocument.createElement("span"),n=i=>{if(!t.isEnabled())return;const n=this.statics.formats(e,t);"checked"===n?(this.format("list","unchecked"),i.preventDefault()):"unchecked"===n&&(this.format("list","checked"),i.preventDefault())};i.addEventListener("mousedown",n),i.addEventListener("touchstart",n),this.attachUI(i)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}hv.blotName="list",hv.tagName="LI",lv.allowedChildren=[hv],hv.requiredContainer=lv;const dv=class extends Qp{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};const cv=class extends dv{static blotName="italic";static tagName=["EM","I"]};class uv extends Qp{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return fv(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function fv(t,e){const i=document.createElement("a");i.href=t;const n=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(n)>-1}const pv=class extends Qp{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}};const mv=class extends dv{static blotName="strike";static tagName=["S","STRIKE"]};const gv=class extends Qp{static blotName="underline";static tagName="U"};const vv=class extends Cm{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}},yv=["alt","height","width"];const bv=class extends Fp{static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return yv.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return fv(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){yv.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},xv=["height","width"];const wv=class extends $p{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return xv.reduce((e,i)=>(t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e),{})}static sanitize(t){return uv.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){xv.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},kv=new gp("code-token","hljs",{scope:dp.INLINE});class Ev extends Qp{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(lg.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,i){super(t,e,i),kv.add(this.domNode,i)}format(t,e){t!==Ev.blotName?super.format(t,e):e?kv.add(this.domNode,e):(kv.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),kv.value(this.domNode)||this.unwrap()}}Ev.blotName="code-token",Ev.className="ql-token";class Nv extends lg{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),Ev.blotName,!1),super.replaceWith(t,e)}}class Tv extends ag{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===Nv.blotName&&(this.forceNext=!0,this.children.forEach(i=>{i.format(t,e)}))}formatAt(t,e,i,n){i===Nv.blotName&&(this.forceNext=!0),super.formatAt(t,e,i,n)}highlight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const i=Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode),n=`${i.map(t=>t.textContent).join("\n")}\n`,r=Nv.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==n){if(n.trim().length>0||null==this.cachedText){const e=this.children.reduce((t,e)=>t.concat(tm(e,!1)),new Pp),i=t(n,r);e.diff(i).reduce((t,e)=>{let{retain:i,attributes:n}=e;return i?(n&&Object.keys(n).forEach(e=>{[Nv.blotName,Ev.blotName].includes(e)&&this.formatAt(t,i,e,n[e])}),t+i):t},0)}this.cachedText=n,this.forceNext=!1}}html(t,e){const[i]=this.children.find(t);return`<pre data-language="${i?Nv.formats(i.domNode):"plain"}">\n${Yp(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=Nv.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Tv.allowedChildren=[Nv],Nv.requiredContainer=Tv,Nv.allowedChildren=[Ev,nm,Gp,Kp];class _v extends Tm{static register(){Pm.register(Ev,!0),Pm.register(Nv,!0),Pm.register(Tv,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,e)=>{let{key:i}=e;return t[i]=!0,t},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Pm.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Tv))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(t=>{let{key:i,label:n}=t;const r=e.ownerDocument.createElement("option");r.textContent=n,r.setAttribute("value",i),e.appendChild(r)}),e.addEventListener("change",()=>{t.format(Nv.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=Nv.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Pm.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(Pm.sources.USER);const i=this.quill.getSelection();(null==t?this.quill.scroll.descendants(Tv):[t]).forEach(t=>{t.highlight(this.highlightBlot,e)}),this.quill.update(Pm.sources.SILENT),null!=i&&this.quill.setSelection(i,Pm.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return Yp(t).split("\n").reduce((t,i,n)=>(0!==n&&t.insert("\n",{[lg.blotName]:e}),t.insert(i)),new Pp);const i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(lg.className),i.innerHTML=((t,e,i)=>{if("string"==typeof t.versionString){const n=t.versionString.split(".")[0];if(parseInt(n,10)>=11)return t.highlight(i,{language:e}).value}return t.highlight(e,i).value})(this.options.hljs,e,t),Kg(this.quill.scroll,i,[(t,e)=>{const i=kv.value(t);return i?e.compose((new Pp).retain(e.length(),{[Ev.blotName]:i})):e}],[(t,i)=>t.data.split("\n").reduce((t,i,n)=>(0!==n&&t.insert("\n",{[lg.blotName]:e}),t.insert(i)),i)],new WeakMap)}}_v.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class Cv extends Jp{static blotName="table";static tagName="TD";static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",zv()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===Cv.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class Sv extends Gm{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),e=this.children.tail.formats(),i=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.table===e.table&&t.table===i.table&&t.table===n.table}return!1}optimize(t){super.optimize(t),this.children.forEach(t=>{if(null==t.next)return;const e=t.formats(),i=t.next.formats();if(e.table!==i.table){const e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Mv extends Gm{static blotName="table-body";static tagName="TBODY"}class Av extends Gm{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(Sv),e=t.reduce((t,e)=>Math.max(e.children.length,t),0);t.forEach(t=>{new Array(e-t.children.length).fill(0).forEach(()=>{let e;null!=t.children.head&&(e=Cv.formats(t.children.head.domNode));const i=this.scroll.create(Cv.blotName,e);t.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(Mv);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t);null!=i&&i.remove()})}insertColumn(t){const[e]=this.descendant(Mv);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const i=e.children.at(t),n=Cv.formats(e.children.head.domNode),r=this.scroll.create(Cv.blotName,n);e.insertBefore(r,i)})}insertRow(t){const[e]=this.descendant(Mv);if(null==e||null==e.children.head)return;const i=zv(),n=this.scroll.create(Sv.blotName);e.children.head.children.forEach(()=>{const t=this.scroll.create(Cv.blotName,i);n.appendChild(t)});const r=e.children.at(t);e.insertBefore(n,r)}rows(){const t=this.children.head;return null==t?[]:t.children.map(t=>t)}}function zv(){return`row-${Math.random().toString(36).slice(2,6)}`}Av.allowedChildren=[Mv],Mv.requiredContainer=Av,Mv.allowedChildren=[Sv],Sv.requiredContainer=Mv,Sv.allowedChildren=[Cv],Cv.requiredContainer=Sv;const Lv=class extends Tm{static register(){Pm.register(Cv),Pm.register(Sv),Pm.register(Mv),Pm.register(Av)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Av).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Pm.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Pm.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Pm.sources.USER),this.quill.setSelection(e,Pm.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==t)return[null,null,null,-1];const[e,i]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==Cv.blotName)return[null,null,null,-1];const n=e.parent;return[n.parent.parent,n,e,i]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[i,n,r]=this.getTable(e);if(null==r)return;const o=r.cellOffset();i.insertColumn(o+t),this.quill.update(Pm.sources.USER);let s=n.rowOffset();0===t&&(s+=1),this.quill.setSelection(e.index+s,e.length,Pm.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[i,n,r]=this.getTable(e);if(null==r)return;const o=n.rowOffset();i.insertRow(o+t),this.quill.update(Pm.sources.USER),t>0?this.quill.setSelection(e,Pm.sources.SILENT):this.quill.setSelection(e.index+n.children.length,e.length,Pm.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const i=this.quill.getSelection();if(null==i)return;const n=new Array(t).fill(0).reduce(t=>{const i=new Array(e).fill("\n").join("");return t.insert(i,{table:zv()})},(new Pp).retain(i.index));this.quill.updateContents(n,Pm.sources.USER),this.quill.setSelection(i.index,Pm.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Pm.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Pm.events.TEXT_CHANGE,(t,e,i)=>{i===Pm.sources.USER&&this.balanceTables()}),!0))})}},Ov=dm("quill:toolbar");class Fv extends Tm{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar"),function(t,e){Array.isArray(e[0])||(e=[e]);e.forEach(e=>{const i=document.createElement("span");i.classList.add("ql-formats"),e.forEach(t=>{if("string"==typeof t)Dv(i,t);else{const e=Object.keys(t)[0],n=t[e];Array.isArray(n)?function(t,e,i){const n=document.createElement("select");n.classList.add(`ql-${e}`),i.forEach(t=>{const e=document.createElement("option");!1!==t?e.setAttribute("value",String(t)):e.setAttribute("selected","selected"),n.appendChild(e)}),t.appendChild(n)}(i,e,n):Dv(i,e,n)}}),t.appendChild(i)})}(e,this.options.container),t.container?.parentNode?.insertBefore(e,t.container),this.container=e}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Pm.events.EDITOR_CHANGE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})):Ov.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void Ov.warn("ignoring attaching to nonexistent format",e,t);const i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,i=>{let n;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];n=!e.hasAttribute("selected")&&(e.value||!1)}else n=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[r]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,n);else if(this.quill.scroll.query(e).prototype instanceof Fp){if(n=prompt(`Enter ${e}`),!n)return;this.quill.updateContents((new Pp).retain(r.index).delete(r.length).insert({[e]:n}),Pm.sources.USER)}else this.quill.format(e,n,Pm.sources.USER);this.update(r)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(i=>{const[n,r]=i;if("SELECT"===r.tagName){let i=null;if(null==t)i=null;else if(null==e[n])i=r.querySelector("option[selected]");else if(!Array.isArray(e[n])){let t=e[n];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),i=r.querySelector(`option[value="${t}"]`)}null==i?(r.value="",r.selectedIndex=-1):i.selected=!0}else if(null==t)r.classList.remove("ql-active"),r.setAttribute("aria-pressed","false");else if(r.hasAttribute("value")){const t=e[n],i=t===r.getAttribute("value")||null!=t&&t.toString()===r.getAttribute("value")||null==t&&!r.getAttribute("value");r.classList.toggle("ql-active",i),r.setAttribute("aria-pressed",i.toString())}else{const t=null!=e[n];r.classList.toggle("ql-active",t),r.setAttribute("aria-pressed",t.toString())}})}}function Dv(t,e,i){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),null!=i?(n.value=i,n.setAttribute("aria-label",`${e}: ${i}`)):n.setAttribute("aria-label",e),t.appendChild(n)}Fv.DEFAULTS={},Fv.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(null!=t)if(0===t.length){const t=this.quill.getFormat();Object.keys(t).forEach(t=>{null!=this.quill.scroll.query(t,dp.INLINE)&&this.quill.format(t,!1,Pm.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Pm.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Pm.sources.USER):t||"right"!==e||this.quill.format("align",!1,Pm.sources.USER),this.quill.format("direction",t,Pm.sources.USER)},indent(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e),n=parseInt(i.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===i.direction&&(e*=-1),this.quill.format("indent",n+e,Pm.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Pm.sources.USER)},list(t){const e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,Pm.sources.USER):this.quill.format("list","unchecked",Pm.sources.USER):this.quill.format("list",t,Pm.sources.USER)}}};const Rv='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Iv={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:Rv,"code-block":Rv,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let qv=0;function Bv(t,e){t.setAttribute(e,`${!("true"===t.getAttribute(e))}`)}const Pv=class{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Bv(this.label,"aria-expanded"),Bv(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const i=t.getAttribute("value");return i&&e.setAttribute("data-value",i),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.selectItem(e,!0),t.preventDefault();break;case"Escape":this.escape(),t.preventDefault()}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${qv}`,qv+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const i=this.buildItem(e);t.appendChild(i),!0===e.selected&&this.selectItem(i)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.container.querySelector(".ql-selected");t!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);const e=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}};const Uv=class extends Pv{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(t=>{t.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const i=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=n:i.style.fill=n)}};const jv=class extends Pv{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(t=>{t.innerHTML=e[t.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const i=t||this.defaultItem;if(null!=i){if(this.label.innerHTML===i.innerHTML)return;this.label.innerHTML=i.innerHTML}}};const Hv=class{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(t=>{const{overflowY:e}=getComputedStyle(t,null);return"visible"!==e&&"clip"!==e})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${i}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect();let o=0;if(r.right>n.right&&(o=n.right-r.right,this.root.style.left=`${e+o}px`),r.left<n.left&&(o=n.left-r.left,this.root.style.left=`${e+o}px`),r.bottom>n.bottom){const e=r.bottom-r.top,n=t.bottom-t.top+e;this.root.style.top=i-n+"px",this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},Wv=[!1,"center","right","justify"],Vv=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Kv=[!1,"serif","monospace"],Gv=["1","2","3",!1],Xv=["small",!1,"large","huge"];class Yv extends Am{constructor(t,e){super(t,e);const i=e=>{document.body.contains(t.root)?(null==this.tooltip||this.tooltip.root.contains(e.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach(t=>{t.container.contains(e.target)||t.close()})):document.body.removeEventListener("click",i)};t.emitter.listenDOM("click",document.body,i)}addModule(t){const e=super.addModule(t);return"toolbar"===t&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(t=>{(t.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),null!=e[i]))if("direction"===i)t.innerHTML=e[i][""]+e[i].rtl;else if("string"==typeof e[i])t.innerHTML=e[i];else{const n=t.value||"";null!=n&&e[i][n]&&(t.innerHTML=e[i][n])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(t=>{if(t.classList.contains("ql-align")&&(null==t.querySelector("option")&&Qv(t,Wv),"object"==typeof e.align))return new jv(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const i=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&Qv(t,Vv,"background"===i?"#ffffff":"#000000"),new Uv(t,e[i])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?Qv(t,Kv):t.classList.contains("ql-header")?Qv(t,Gv):t.classList.contains("ql-size")&&Qv(t,Xv)),new Pv(t)});this.quill.on(um.events.EDITOR_CHANGE,()=>{this.pickers.forEach(t=>{t.update()})})}}Yv.DEFAULTS=(0,hp.A)({},Am.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Zv extends Hv{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const i=this.quill.getBounds(this.quill.selection.savedRange);null!=i&&this.position(i),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,um.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,um.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=function(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e)return`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`;if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`;return t}(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(null!=e){const i=e.index+e.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,um.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",um.sources.USER),this.quill.setSelection(i+2,um.sources.USER)}break}}this.textbox.value="",this.hide()}}function Qv(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(e=>{const n=document.createElement("option");e===i?n.setAttribute("selected","selected"):n.setAttribute("value",String(e)),t.appendChild(n)})}const Jv=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class $v extends Zv{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e),this.quill.on(um.events.EDITOR_CHANGE,(t,e,i,n)=>{if(t===um.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&n===um.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(1===t.length){const t=this.quill.getBounds(e);null!=t&&this.position(t)}else{const i=t[t.length-1],n=this.quill.getIndex(i),r=Math.min(i.length()-1,e.index+e.length-n),o=this.quill.getBounds(new pm(n,r));null!=o&&this.position(o)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(um.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(null!=t){const e=this.quill.getBounds(t);null!=e&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),i=this.root.querySelector(".ql-tooltip-arrow");return i.style.marginLeft="",0!==e&&(i.style.marginLeft=-1*e-i.offsetWidth/2+"px"),e}}class ty extends Yv{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Jv),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new $v(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Iv),this.buildPickers(t.container.querySelectorAll("select"),Iv))}}ty.DEFAULTS=(0,hp.A)({},Yv.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Pm.sources.USER)}}}}});const ey=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class iy extends Zv{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,um.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(um.events.SELECTION_CHANGE,(t,e,i)=>{if(null!=t){if(0===t.length&&i===um.sources.USER){const[e,i]=this.quill.scroll.descendant(uv,t.index);if(null!=e){this.linkRange=new pm(t.index-i,e.length());const n=uv.formats(e.domNode);this.preview.textContent=n,this.preview.setAttribute("href",n),this.show();const r=this.quill.getBounds(this.linkRange);return void(null!=r&&this.position(r))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class ny extends Yv{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=ey),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Iv),this.buildPickers(t.container.querySelectorAll("select"),Iv),this.tooltip=new iy(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,i)=>{t.handlers.link.call(t,!i.format.link)}))}}ny.DEFAULTS=(0,hp.A)({},Yv.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:i}=this.quill.theme;i.edit("link",e)}else this.quill.format("link",!1,Pm.sources.USER)}}}}});const ry=ny;nv.register({"attributors/attribute/direction":cg,"attributors/class/align":tg,"attributors/class/background":og,"attributors/class/color":ng,"attributors/class/direction":ug,"attributors/class/font":mg,"attributors/class/size":vg,"attributors/style/align":eg,"attributors/style/background":sg,"attributors/style/color":rg,"attributors/style/direction":fg,"attributors/style/font":gg,"attributors/style/size":yg},!0),nv.register({"formats/align":tg,"formats/direction":ug,"formats/indent":ov,"formats/background":sg,"formats/color":rg,"formats/font":mg,"formats/size":vg,"formats/blockquote":sv,"formats/code-block":lg,"formats/header":av,"formats/list":hv,"formats/bold":dv,"formats/code":hg,"formats/italic":cv,"formats/link":uv,"formats/script":pv,"formats/strike":mv,"formats/underline":gv,"formats/formula":vv,"formats/image":bv,"formats/video":wv,"modules/syntax":_v,"modules/table":Lv,"modules/toolbar":Fv,"themes/bubble":ty,"themes/snow":ry,"ui/icons":Iv,"ui/picker":Pv,"ui/icon-picker":jv,"ui/color-picker":Uv,"ui/tooltip":Hv},!0);const oy=nv;var sy=i(85072),ay=i.n(sy),ly=i(97825),hy=i.n(ly),dy=i(77659),cy=i.n(dy),uy=i(55056),fy=i.n(uy),py=i(10540),my=i.n(py),gy=i(41113),vy=i.n(gy),yy=i(76878),by={};by.styleTagTransform=vy(),by.setAttributes=fy(),by.insert=cy().bind(null,"head"),by.domAPI=hy(),by.insertStyleElement=my();ay()(yy.A,by);yy.A&&yy.A.locals&&yy.A.locals;let xy=!1,wy=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],ky=new Array(100).fill(0).map((t,e)=>e+"px");const Ey="ql-editor";class Ny{constructor({mindMap:t,pluginOpt:e}){this.mindMap=t,this.pluginOpt=e,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.pasteUseRange=null,this.node=null,this.isInserting=!1,this.styleEl=null,this.cacheEditingText="",this.isCompositing=!1,this.textNodePaddingX=6,this.textNodePaddingY=4,this.mindMap.addEditNodeClass(Ey),this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.handleDataToRichTextOnInit()}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionUpdate=this.onCompositionUpdate.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),this.handleSetData=this.handleSetData.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionupdate",this.onCompositionUpdate),window.addEventListener("compositionend",this.onCompositionEnd),this.mindMap.on("before_update_data",this.handleSetData),this.mindMap.on("before_set_data",this.handleSetData)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionupdate",this.onCompositionUpdate),window.removeEventListener("compositionend",this.onCompositionEnd),this.mindMap.off("before_update_data",this.handleSetData),this.mindMap.off("before_set_data",this.handleSetData)}appendCss(){this.mindMap.appendCss("richText","\n .smm-richtext-node-wrap {\n word-break: break-all;\n user-select: none;\n }\n\n .ql-editor .ql-align-left, \n .smm-richtext-node-wrap .ql-align-left {\n text-align: left;\n }\n\n .smm-richtext-node-wrap .ql-align-right {\n text-align: right;\n }\n\n .smm-richtext-node-wrap .ql-align-center {\n text-align: center;\n }\n ");let t=`\n .${Ey} {\n overflow: hidden;\n padding: 0;\n height: auto;\n line-height: 1.2;\n -webkit-user-select: text;\n text-align: inherit;\n }\n \n .ql-container {\n height: auto;\n font-size: inherit;\n }\n\n .ql-container.ql-snow {\n border: none;\n }\n `;this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=t,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&(wy=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(ky=this.pluginOpt.fontSizeList)}extendQuill(){if(xy)return;xy=!0,this.extendFont([]),this.extendAlign();const t=oy.import("attributors/class/size");t.whitelist=ky,oy.register(t,!0);const e=oy.import("attributors/style/size");e.whitelist=ky,oy.register(e,!0)}extendFont(t=[],e=!1){wy=e?[...t]:[...wy,...t];const i=oy.import("attributors/class/font");i.whitelist=wy,oy.register(i,!0);const n=oy.import("attributors/style/font");n.whitelist=wy,oy.register(n,!0)}extendAlign(){const t=oy.import("formats/align");t.whitelist=["right","center","justify","left"],oy.register(t,!0)}showEditText({node:t,rect:e,isInserting:i,isFromKeyDown:n,isFromScale:r}){if(this.showTextEdit)return;let{customInnerElsAppendTo:o,nodeTextEditZIndex:s,textAutoWrapWidth:a,selectTextOnEnterEditText:l,transformRichTextOnEnterEdit:h,openRealtimeRenderOnNodeTextEdit:d,autoEmptyTextWhenKeydownEnterEdit:c}=this.mindMap.opt;a=t.hasCustomWidth()?t.customTextWidth:a,this.node=t,this.isInserting=i,e||(e=t._textData.node.node.getBoundingClientRect()),r||this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let u=t._textData.node,f=u.attr("data-width"),p=u.attr("data-height");const m=Math.ceil(e.width)/f,g=Math.ceil(e.height)/p;let v=this.textNodePaddingX,y=this.textNodePaddingY;if(!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`\n position:fixed;\n box-sizing: border-box;\n ${d?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}\n outline: none;\n word-break: break-all;\n padding: ${y}px ${v}px;\n line-height: 1.2;\n `,this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("mousedown",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("keydown",t=>{this.mindMap.renderer.textEdit.checkIsAutoEnterTextEditKey(t)&&t.stopPropagation()});(o||document.body).appendChild(this.textEditNode)}this.addNodeTextStyleToTextEditNode(t),this.textEditNode.style.marginLeft=`-${v*m}px`,this.textEditNode.style.marginTop=`-${y*g}px`,this.textEditNode.style.zIndex=s,d||(this.textEditNode.style.background=this.mindMap.renderer.textEdit.getBackground(t)),this.textEditNode.style.minWidth=f+2*v+"px",this.textEditNode.style.minHeight=p+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=a+2*v+"px",this.textEditNode.style.transform=`scale(${m}, ${g})`,this.textEditNode.style.transformOrigin="left top";let b=t.getData("text");"function"==typeof h&&(b=h(b));const x=Zi(b),w=!t.getData("richText")&&!x;if(n&&c)this.textEditNode.innerHTML="";else if(w){let t=`<p>${String(b).split(/\n/gim).join("<br>")}</p>`;this.textEditNode.innerHTML=this.cacheEditingText||t}else this.textEditNode.innerHTML=this.cacheEditingText||b;this.initQuillEditor(),this.setQuillContainerMinHeight(p),this.setIsShowTextEdit(!0),this.focus(i||l&&!n?0:null),this.cacheEditingText=""}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t){this.textEditNode&&(this.textEditNode.style.background=t?"transparent":this.node?this.mindMap.renderer.textEdit.getBackground(this.node):"",this.textEditNode.style.boxShadow=t?"none":"0 0 20px rgba(0,0,0,.5)")}addNodeTextStyleToTextEditNode(t){const e=On(t);Object.keys(e).forEach(t=>{this.textEditNode.style[t]=e[t]})}setQuillContainerMinHeight(t){document.querySelector("."+Ey).style.minHeight=t+"px"}updateTextEditNode(){if(!this.node)return;const t=this.node._textData.node,e=t.node.getBoundingClientRect(),i=t.attr("data-width"),n=t.attr("data-height");this.textEditNode.style.minWidth=i+2*this.textNodePaddingX+"px",this.textEditNode.style.minHeight=n+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.setQuillContainerMinHeight(n)}removeTextEditEl(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return this.quill.container.firstChild.innerHTML.replace(/ +/g,t=>" ".repeat(t.length))}hideEditText(t){if(!this.showTextEdit)return;const{beforeHideRichTextEdit:e}=this.mindMap.opt;"function"==typeof e&&e(this);const i=this.getEditText(),n=t&&t.length>0?t:[this.node],r=this.node;this.textEditNode.style.display="none",this.setIsShowTextEdit(!1),this.mindMap.emit("rich_text_selection_change",!1),this.node=null,this.isInserting=!1,n.forEach(t=>{this.mindMap.execCommand("SET_NODE_TEXT",t,i,!0),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n,r)}initQuillEditor(){this.quill=new oy(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:"Enter",handler:function(){}},shiftEnter:{key:"Enter",shiftKey:!0,handler:function(t,e){const i=Object.keys(e.format).reduce((t,i)=>(this.quill.scroll.query(i,dp.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t),{}),n=(new(Up())).retain(t.index).delete(t.length).insert("\n",i);this.quill.updateContents(n,oy.sources.USER),this.quill.setSelection(t.index+1,oy.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(t=>{null==i[t]&&(Array.isArray(e.format[t])||"code"!==t&&"link"!==t&&this.quill.format(t,e.format[t],oy.sources.USER))})}},tab:{key:9,handler:function(){}}}}},formats:["bold","italic","underline","strike","color","background","font","size","formula","align"],theme:"snow"}),this.quill.root.addEventListener("copy",t=>{t.preventDefault();const e=window.getSelection(),i=e.toString();try{const i=e.getRangeAt(0),n=document.createElement("div");n.appendChild(i.cloneContents());const r=on(n.innerHTML);t.clipboardData.setData("text/plain",r)}catch(e){t.clipboardData.setData("text/plain",i)}}),this.quill.on("selection-change",t=>{if(this.isInserting)this.isInserting=!1;else if(this.lastRange=this.range,this.range=null,t){this.pasteUseRange=t;let e=this.quill.getBounds(t.index,t.length),i=this.textEditNode.getBoundingClientRect(),n={left:e.left+i.left,top:e.top+i.top,right:e.right+i.left,bottom:e.bottom+i.top,width:e.width},r=this.quill.getFormat(t.index,t.length),o=!1;0==t.length?o=!1:(this.range=t,o=!0),this.mindMap.emit("rich_text_selection_change",o,n,r)}else this.mindMap.emit("rich_text_selection_change",!1,null,null)}),this.quill.on("text-change",()=>{this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,e)=>{let i=[],n=this.getPasteTextStyle();return e.ops.forEach(t=>{t.insert&&"string"==typeof t.insert&&i.push({attributes:{...n},insert:this.formatPasteText(t.insert)})}),e.ops=i,e}),this.quill.root.addEventListener("paste",t=>{t.clipboardData&&t.clipboardData.files&&t.clipboardData.files.length&&t.preventDefault()},!0)}getPasteTextStyle(){return this.pasteUseRange?this.quill.getFormat(this.pasteUseRange.index,this.pasteUseRange.length):{}}formatPasteText(t){const{isSmm:e,data:i}=En(t);return e&&i[0]&&i[0].data?Vi(i[0].data.text):t}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionUpdate(){this.showTextEdit&&this.node&&this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1)}setIsShowTextEdit(t){this.showTextEdit=t,t?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(t){const e=this.quill.getLength();this.quill.setSelection("number"==typeof t?t:e,e)}formatText(t={},e=!1){if(!this.range&&!this.lastRange)return;const i=!this.range,n=i?this.lastRange:this.range;if(e)this.quill.removeFormat(n.index,n.length);else{const{align:e,...i}=t;e&&this.quill.formatLine(n.index,n.length,"align",e),Object.keys(i).length>0&&this.quill.formatText(n.index,n.length,i)}i&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(t,e={}){t&&this.quill.formatText(t.index,t.length,e)}formatAllText(t={}){this.quill.formatText(0,this.quill.getLength(),t)}normalStyleToRichTextStyle(t){const e={};return Object.keys(t).forEach(i=>{const n=t[i];switch(i){case"fontFamily":e.font=n;break;case"fontSize":e.size=n+"px";break;case"fontWeight":e.bold="bold"===n;break;case"fontStyle":e.italic="italic"===n;break;case"textDecoration":e.underline="underline"===n,e.strike="line-through"===n;break;case"color":e.color=n;break;case"textAlign":e.align=n}}),e}richTextStyleToNormalStyle(t){const e={};return Object.keys(t).forEach(i=>{const n=t[i];switch(i){case"font":e.fontFamily=n;break;case"size":e.fontSize=parseFloat(n);break;case"bold":e.fontWeight=n?"bold":"normal";break;case"italic":e.fontStyle=n?"italic":"normal";break;case"underline":e.textDecoration=n?"underline":"none";break;case"strike":e.textDecoration=n?"line-through":"none";break;case"color":e.color=n;break;case"align":e.textAlign=n}}),e}isHasRichTextStyle(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const i=e[t];if(g.includes(i))return!0}return!1}checkNodeHasCustomRichTextStyle(t){const e=t instanceof er?t.getData():t;for(let t=0;t<g.length;t++)if(void 0!==e[g[t]])return!0;return!1}afterHandleData(){this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render()}handleDataToRichTextOnInit(){this.mindMap.renderer.renderTree?(this.handleSetData(this.mindMap.renderer.renderTree),this.afterHandleData()):this.mindMap.opt.data&&this.handleSetData(this.mindMap.opt.data)}transformAllNodesToNormalNode(){const t=this.mindMap.renderer.renderTree;t&&(Li(t,null,t=>{if(t.data.richText&&(t.data.richText=!1,t.data.text=Vi(t.data.text)),t.data){Mn(t.data).forEach(t=>{t.richText=!1,t.text=Vi(t.text)})}},null,!0,0,0),this.afterHandleData())}handleDataToRichText(t){const e=t.richText;t.richText=!0,t.resetRichText=!0,e||(t.text=vn(t.text))}handleSetData(t){if(!t)return;const e=!t.smmVersion||"<"===((t,e)=>{const i=String(t).split("."),n=String(e).split("."),r=Math.max(i.length,n.length);for(let t=0;t<r;t++){const e=i[t]||0,r=n[t]||0;if(e>r)return">";if(e<r)return"<"}return"="})(t.smmVersion,"0.13.0"),i=t=>{if(!t.data||t.data.richText&&!e||this.handleDataToRichText(t.data),t.data){Mn(t.data).forEach(t=>{t.richText&&!e||this.handleDataToRichText(t)})}t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{i(t)})};return i(t),t}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl),this.unbindEvent(),this.mindMap.removeAppendCss("richText"),this.mindMap.deleteEditNodeClass(Ey)}beforePluginDestroy(){document.head.removeChild(this.styleEl),this.unbindEvent(),this.mindMap.deleteEditNodeClass(Ey)}}Ny.instanceName="richText";const Ty=Ny;class _y{constructor({mindMap:t}){this.mindMap=t,this.handleEl=null,this.isShowHandleEl=!1,this.node=null,this.img=null,this.rect=null,this.isMousedown=!1,this.mousedownDrawTransform=null,this.mousedownOffset={x:0,y:0},this.currentImgWidth=0,this.currentImgHeight=0,this.isAdjusted=!1,this.bindEvent()}bindEvent(){this.onNodeImgMouseleave=this.onNodeImgMouseleave.bind(this),this.onNodeImgMousemove=this.onNodeImgMousemove.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onRenderEnd=this.onRenderEnd.bind(this),this.onScale=this.onScale.bind(this),this.mindMap.on("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.on("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.onRenderEnd),this.mindMap.on("scale",this.onScale)}unBindEvent(){this.mindMap.off("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.off("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.onRenderEnd),this.mindMap.off("scale",this.onScale)}onScale(){this.node&&this.img&&this.isShowHandleEl&&(this.rect=this.img.rbox(),this.setHandleElRect())}onNodeImgMousemove(t,e){this.isMousedown||this.isAdjusted||this.mindMap.opt.readonly||this.node&&this.node.uid===t.uid&&this.isShowHandleEl||(this.node=t,this.img=e,this.rect=this.img.rbox(),this.showHandleEl())}onNodeImgMouseleave(){this.isMousedown||this.hideHandleEl()}hideNodeImage(){this.img&&this.img.hide()}showNodeImage(){this.img&&this.img.show()}showHandleEl(){this.isShowHandleEl||(this.handleEl||this.createResizeBtnEl(),this.setHandleElRect(),this.handleEl.style.display="block",this.isShowHandleEl=!0)}hideHandleEl(){this.isShowHandleEl&&(this.isShowHandleEl=!1,this.handleEl.style.display="none",this.handleEl.style.backgroundImage="",this.handleEl.style.width=0,this.handleEl.style.height=0,this.handleEl.style.left=0,this.handleEl.style.top=0)}setHandleElRect(){let{width:t,height:e,x:i,y:n}=this.rect;this.handleEl.style.left=`${i}px`,this.handleEl.style.top=`${n}px`,this.currentImgWidth=t,this.currentImgHeight=e,this.updateHandleElSize()}updateHandleElSize(){this.handleEl.style.width=`${this.currentImgWidth}px`,this.handleEl.style.height=`${this.currentImgHeight}px`}createResizeBtnEl(){const{imgResizeBtnSize:t,customResizeBtnInnerHTML:e,customDeleteBtnInnerHTML:i}=this.mindMap.opt;this.handleEl=document.createElement("div"),this.handleEl.style.cssText="\n pointer-events: none;\n position: fixed;\n\t display:none;\n background-size: cover;\n ",this.handleEl.className="node-img-handle";const n=document.createElement("div");n.innerHTML=e||Un.imgAdjust,n.style.cssText=`\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${t}px;\n height: ${t}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: nwse-resize;\n `,n.className="node-image-resize",n.addEventListener("mouseenter",()=>{this.showHandleEl()}),n.addEventListener("mouseleave",()=>{this.isMousedown||this.hideHandleEl()}),n.addEventListener("mousedown",t=>{t.stopPropagation(),t.preventDefault(),this.onMousedown(t)}),n.addEventListener("mouseup",t=>{setTimeout(()=>{this.hideHandleEl(),this.isAdjusted=!1},0)}),n.addEventListener("click",t=>{t.stopPropagation()}),this.handleEl.appendChild(n);const r=document.createElement("div");this.handleEl.prepend(r),r.className="node-image-remove",r.innerHTML=i||Un.remove,r.style.cssText=`\n position: absolute;\n right: 0;top:0;color:#fff;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${t}px;\n height: ${t}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n `,r.addEventListener("mouseenter",t=>{this.showHandleEl()}),r.addEventListener("mouseleave",t=>{this.isMousedown||this.hideHandleEl()}),r.addEventListener("click",async t=>{let e=!1;"function"==typeof this.mindMap.opt.beforeDeleteNodeImg&&(e=await this.mindMap.opt.beforeDeleteNodeImg(this.node)),e||(this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:null}),this.mindMap.emit("delete_node_img_from_delete_btn",this.node))});(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.handleEl)}onMousedown(t){this.mindMap.emit("node_img_adjust_btn_mousedown",this.node),this.isMousedown=!0,this.mousedownDrawTransform=this.mindMap.draw.transform(),this.hideNodeImage(),this.mousedownOffset.x=t.clientX-this.rect.x2,this.mousedownOffset.y=t.clientY-this.rect.y2,this.handleEl.style.backgroundImage=`url(${this.node.getData("image")})`}onMousemove(t){if(!this.isMousedown)return;t.preventDefault();const{scaleX:e,scaleY:i}=this.mousedownDrawTransform,{width:n,height:r}=this.node.getData("imageSize");let{minImgResizeWidth:o,minImgResizeHeight:s,maxImgResizeWidthInheritTheme:a,maxImgResizeWidth:l,maxImgResizeHeight:h}=this.mindMap.opt;const d=n/r;let c,u;o/s>d?s=o/d:o=s*d,a?(c=this.mindMap.getThemeConfig("imgMaxWidth"),u=this.mindMap.getThemeConfig("imgMaxHeight")):(c=l,u=h),c*=e,u*=i;let f=Math.abs(t.clientX-this.rect.x-this.mousedownOffset.x),p=Math.abs(t.clientY-this.rect.y-this.mousedownOffset.y);f<o&&(f=o),p<s&&(p=s),f>c&&(f=c),p>u&&(p=u);const[m,g]=((t,e,i,n)=>{let r=[],o=t/e;return r=o>i/n?[i,i/o]:[o*n,n],r})(n,r,f,p);this.currentImgWidth=m,this.currentImgHeight=g,this.updateHandleElSize()}onMouseup(){if(!this.isMousedown)return;this.showNodeImage(),this.hideHandleEl();const{image:t,imageTitle:e}=this.node.getData(),{scaleX:i,scaleY:n}=this.mousedownDrawTransform,r=this.currentImgWidth/i,o=this.currentImgHeight/n;(Math.abs(r-this.rect.width)>1||Math.abs(o-this.rect.height)>1)&&(this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:t,title:e,width:r,height:o,custom:!0}),this.isAdjusted=!0),this.isMousedown=!1,this.mousedownDrawTransform=null,this.mousedownOffset.x=0,this.mousedownOffset.y=0}onRenderEnd(){this.isAdjusted?this.isAdjusted=!1:this.hideHandleEl()}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}_y.instanceName="nodeImgAdjust";const Cy=_y;class Sy{constructor({mindMap:t}){this.mindMap=t,this.touchesNum=0,this.singleTouchstartEvent=null,this.clickNum=0,this.touchStartScaleView=null,this.lastTouchStartPosition=null,this.lastTouchStartDistance=0,this.bindEvent()}bindEvent(){this.onTouchstart=this.onTouchstart.bind(this),this.onTouchmove=this.onTouchmove.bind(this),this.onTouchcancel=this.onTouchcancel.bind(this),this.onTouchend=this.onTouchend.bind(this),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("touchcancel",this.onTouchcancel,{passive:!1}),window.addEventListener("touchend",this.onTouchend,{passive:!1})}unBindEvent(){window.removeEventListener("touchstart",this.onTouchstart),window.removeEventListener("touchmove",this.onTouchmove),window.removeEventListener("touchcancel",this.onTouchcancel),window.removeEventListener("touchend",this.onTouchend)}onTouchstart(t){if(this.touchesNum=t.touches.length,this.touchStartScaleView=null,1===this.touchesNum){let o=t.touches[0];this.lastTouchStartPosition&&(this.lastTouchStartDistance=(e=this.lastTouchStartPosition.x,i=this.lastTouchStartPosition.y,n=o.clientX,r=o.clientY,Math.sqrt(Math.pow(e-n,2)+Math.pow(i-r,2)))),this.lastTouchStartPosition={x:o.clientX,y:o.clientY},this.singleTouchstartEvent=o,this.dispatchMouseEvent("mousedown",o.target,o)}var e,i,n,r}onTouchmove(t){let e=t.touches.length;if(1===e){let e=t.touches[0];this.dispatchMouseEvent("mousemove",e.target,e)}else if(2===e){let{disableTouchZoom:e,minTouchZoomScale:i,maxTouchZoomScale:n}=this.mindMap.opt;if(e)return;i=-1===i?-1/0:i/100,n=-1===n?1/0:n/100;let r=t.touches[0],o=t.touches[1],s=r.clientX-o.clientX,a=r.clientY-o.clientY,l=Math.sqrt(Math.pow(s,2)+Math.pow(a,2)),{x:h,y:d}=this.mindMap.toPos(r.clientX,r.clientY),{x:c,y:u}=this.mindMap.toPos(o.clientX,o.clientY),f=(h+c)/2,p=(d+u)/2;const m=this.mindMap.view;if(!this.touchStartScaleView)return void(this.touchStartScaleView={distance:l,scale:m.scale,x:m.x,y:m.y,cx:f,cy:p});const g=this.touchStartScaleView;let v=g.scale*(l/g.distance);Math.abs(l-g.distance)<=10&&(v=g.scale),v=v<i?i:v>n?n:v;const y=1-v/g.scale;m.scale=v,m.x=g.x+(f-g.x)*y+(f-g.cx)*v,m.y=g.y+(p-g.y)*y+(p-g.cy)*v,m.transform(),this.mindMap.emit("scale",v)}}onTouchcancel(t){}onTouchend(t){if(this.dispatchMouseEvent("mouseup",t.target),1===this.touchesNum){this.clickNum++,setTimeout(()=>{this.clickNum=0,this.lastTouchStartPosition=null,this.lastTouchStartDistance=0},300);let t=this.singleTouchstartEvent;this.clickNum>1&&this.lastTouchStartDistance<=5&&(this.clickNum=0,this.dispatchMouseEvent("dblclick",t.target,t))}this.touchesNum=0,this.singleTouchstartEvent=null,this.touchStartScaleView=null}dispatchMouseEvent(t,e,i){let n={};i&&(n={screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,which:1});let r=new MouseEvent(t,{view:document.defaultView,bubbles:!0,cancelable:!0,...n});e.dispatchEvent(r)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Sy.instanceName="touchEvent";const My=Sy;class Ay{constructor({mindMap:t}){this.mindMap=t,this.isSearching=!1,this.searchText="",this.matchNodeList=[],this.currentIndex=-1,this.notResetSearchText=!1,this.isJumpNext=!1,this.bindEvent()}bindEvent(){this.onDataChange=this.onDataChange.bind(this),this.onModeChange=this.onModeChange.bind(this),this.mindMap.on("data_change",this.onDataChange),this.mindMap.on("mode_change",this.onModeChange)}unBindEvent(){this.mindMap.off("data_change",this.onDataChange),this.mindMap.off("mode_change",this.onModeChange)}onDataChange(){if(this.isJumpNext)return this.isJumpNext=!1,void this.search(this.searchText);this.notResetSearchText?this.notResetSearchText=!1:this.searchText=""}onModeChange(t){!(t===a.MODE.READONLY)&&this.isSearching&&this.matchNodeList[this.currentIndex]&&this.matchNodeList[this.currentIndex].closeHighlight()}search(t,e=()=>{}){if(Zi(t))return this.endSearch();t=String(t),this.isSearching=!0,this.searchText===t||(this.searchText=t,this.doSearch()),this.searchNext(e),this.emitEvent()}updateMatchNodeList(t){this.matchNodeList=t,this.mindMap.emit("search_match_node_list_change",t)}endSearch(){this.isSearching&&(this.mindMap.opt.readonly&&this.matchNodeList[this.currentIndex]&&this.matchNodeList[this.currentIndex].closeHighlight(),this.searchText="",this.updateMatchNodeList([]),this.currentIndex=-1,this.notResetSearchText=!1,this.isSearching=!1,this.emitEvent())}doSearch(){this.clearHighlightOnReadonly(),this.updateMatchNodeList([]),this.currentIndex=-1;const{isOnlySearchCurrentRenderNodes:t}=this.mindMap.opt,e=t?this.mindMap.renderer.root:this.mindMap.renderer.renderTree;if(!e)return;const i=[];Oi(e,e=>{let{richText:n,text:r,generalization:o}=t?e.getData():e.data;n&&(r=Vi(r)),r.includes(this.searchText)&&i.push(e);Mn({generalization:o}).forEach(e=>{let{richText:n,text:r,uid:o}=e;t&&!this.mindMap.renderer.findNodeByUid(o)||(n&&(r=Vi(r)),r.includes(this.searchText)&&i.push({data:e}))})}),this.updateMatchNodeList(i)}isNodeInstance(t){return t instanceof er}searchNext(t,e){if(!this.isSearching||this.matchNodeList.length<=0)return;void 0!==e&&Number.isInteger(e)&&e>=0&&e<this.matchNodeList.length?this.currentIndex=e:this.currentIndex<this.matchNodeList.length-1?this.currentIndex++:this.currentIndex=0;const{readonly:i}=this.mindMap.opt;this.clearHighlightOnReadonly();const n=this.matchNodeList[this.currentIndex];this.notResetSearchText=!0;const r=this.isNodeInstance(n)?n.getData("uid"):n.data.uid;if(!r)return void t();const o=this.mindMap.renderer.findNodeByUid(r);this.mindMap.execCommand("GO_TARGET_NODE",r,e=>{this.isNodeInstance(n)||(this.matchNodeList[this.currentIndex]=e,this.updateMatchNodeList(this.matchNodeList)),t(),i&&e.highlight(),o&&(this.notResetSearchText=!1)})}clearHighlightOnReadonly(){const{readonly:t}=this.mindMap.opt;t&&this.matchNodeList.forEach(t=>{this.isNodeInstance(t)&&t.closeHighlight()})}jump(t,e=()=>{}){this.searchNext(e,t)}replace(t,e=!1){if(null==t||!this.isSearching||this.matchNodeList.length<=0)return;this.isJumpNext=e,t=String(t);let i=this.matchNodeList[this.currentIndex];if(!i)return;const n=t.includes(this.searchText),r=this.getReplacedText(i,this.searchText,t);if(this.notResetSearchText=!0,i.setText(r,i.getData("richText")),n)return void this.updateMatchNodeList(this.matchNodeList);const o=this.matchNodeList.filter(t=>i!==t);this.updateMatchNodeList(o),this.currentIndex>this.matchNodeList.length-1?this.currentIndex=-1:this.currentIndex--,this.emitEvent()}replaceAll(t){if(null==t||!this.isSearching||this.matchNodeList.length<=0)return;const e=(t=String(t)).includes(this.searchText);this.notResetSearchText=!0,this.matchNodeList.forEach(e=>{const i=this.getReplacedText(e,this.searchText,t);if(this.isNodeInstance(e)){const t={text:i};this.mindMap.renderer.setNodeDataRender(e,t,!0)}else e.data.text=i}),this.mindMap.render(),this.mindMap.command.addHistory(),e?this.updateMatchNodeList(this.matchNodeList):this.endSearch()}getReplacedText(t,e,i){let{richText:n,text:r}=this.isNodeInstance(t)?t.getData():t.data;return n?((t,e,i)=>{Ji||(Ji=document.createElement("div")),Ji.innerHTML=t;let n=t=>{t.childNodes.forEach(r=>{1===r.nodeType?n(r):3===r.nodeType&&t.replaceChild(document.createTextNode(r.nodeValue.replace(new RegExp(e,"g"),i)),r)})};return n(Ji),Ji.innerHTML})(r,e,i):r.replace(new RegExp(e,"g"),i)}emitEvent(){this.mindMap.emit("search_info_change",{currentIndex:this.currentIndex,total:this.matchNodeList.length})}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Ay.instanceName="search";const zy=Ay;class Ly{constructor({mindMap:t}){this.mindMap=t,this.isInPainter=!1,this.painterNode=null,this.bindEvent()}bindEvent(){this.painterOneNode=this.painterOneNode.bind(this),this.onEndPainter=this.onEndPainter.bind(this),this.mindMap.on("node_click",this.painterOneNode),this.mindMap.on("draw_click",this.onEndPainter)}unBindEvent(){this.mindMap.off("node_click",this.painterOneNode),this.mindMap.off("draw_click",this.onEndPainter)}startPainter(){if(this.mindMap.opt.readonly)return;let t=this.mindMap.renderer.activeNodeList;t.length<=0||(this.painterNode=t[0],this.isInPainter=!0,this.mindMap.emit("painter_start"))}endPainter(){this.painterNode=null,this.isInPainter=!1}onEndPainter(){this.isInPainter&&(this.endPainter(),this.mindMap.emit("painter_end"))}painterOneNode(t){if(!(t&&this.isInPainter&&this.painterNode&&t&&t.uid!==this.painterNode.uid))return;let e={};this.mindMap.opt.onlyPainterNodeCustomStyles||(e={...this.painterNode.effectiveStyles});const i=this.painterNode.getData();Object.keys(i).forEach(t=>{an(t)&&(e[t]=i[t])}),this.mindMap.renderer._handleRemoveCustomStyles(t.getData()),t.setStyles(e)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Ly.instanceName="painter";const Oy=Ly;class Fy{constructor(t){this.mindMap=t.mindMap,this.scrollbarWrapSize={width:0,height:0},this.chartHeight=0,this.chartWidth=0,this.reset(),this.bindEvent()}reset(){this.currentScrollType="",this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.mousedownScrollbarPos=0}bindEvent(){this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.updateScrollbar=this.updateScrollbar.bind(this),this.updateScrollbar=Pi(this.updateScrollbar,16,this),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.updateScrollbar),this.mindMap.on("view_data_change",this.updateScrollbar),this.mindMap.on("resize",this.updateScrollbar)}unBindEvent(){this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.updateScrollbar),this.mindMap.off("view_data_change",this.updateScrollbar),this.mindMap.off("resize",this.updateScrollbar)}updateScrollbar(){if(this.isMousedown)return;const t=this.calculationScrollbar();this.emitEvent(t)}emitEvent(t){this.mindMap.emit("scrollbar_change",t)}setScrollBarWrapSize(t,e){this.scrollbarWrapSize.width=t,this.scrollbarWrapSize.height=e}calculationScrollbar(){const t=this.mindMap.draw.rbox(),e=this.mindMap.elRect;t.x-=e.left,t.y-=e.top;const i=this.mindMap.height,n=i/2,r=t.height+2*n;this.chartHeight=r;const o=t.y-n,s=Math.min(i/r*100,100);let a=-o/r*100;a<0&&(a=0),a>100-s&&(a=100-s);const l=this.mindMap.width,h=l/2,d=t.width+2*h;this.chartWidth=d;const c=t.x-h,u=Math.min(l/d*100,100);let f=-c/d*100;f<0&&(f=0),f>100-u&&(f=100-u);return{vertical:{top:a,height:s},horizontal:{left:f,width:u}}}onMousedown(t,e){t.preventDefault(),t.stopPropagation(),this.currentScrollType=e,this.isMousedown=!0,this.mousedownPos={x:t.clientX,y:t.clientY};const i=window.getComputedStyle(t.target);e===a.SCROLL_BAR_DIR.VERTICAL?this.mousedownScrollbarPos=Number.parseFloat(i.top):this.mousedownScrollbarPos=Number.parseFloat(i.left)}onMousemove(t){if(this.isMousedown)if(t.preventDefault(),t.stopPropagation(),this.currentScrollType===a.SCROLL_BAR_DIR.VERTICAL){const e=t.clientY-this.mousedownPos.y+this.mousedownScrollbarPos;this.updateMindMapView(a.SCROLL_BAR_DIR.VERTICAL,e)}else{const e=t.clientX-this.mousedownPos.x+this.mousedownScrollbarPos;this.updateMindMapView(a.SCROLL_BAR_DIR.HORIZONTAL,e)}}onMouseup(){this.isMousedown=!1,this.reset()}updateMindMapView(t,e){const i=this.calculationScrollbar(),n=this.mindMap.draw.transform(),r=this.mindMap.draw.rbox(),o=this.mindMap.renderer.root.group.rbox(),s=this.mindMap.renderer.layout.getRootCenterOffset(o.width,o.height);if(t===a.SCROLL_BAR_DIR.VERTICAL){let t=e;t<=0&&(t=0);const a=(100-i.vertical.height)/100*this.scrollbarWrapSize.height;t>=a&&(t=a);const l=t/this.scrollbarWrapSize.height*100,h=-l/100*this.chartHeight,d=o.y-r.y,c=this.mindMap.height/2,u=h+d-c*n.scaleY+c-s.y*n.scaleY+(this.mindMap.height-this.mindMap.initHeight)/2*n.scaleY;this.mindMap.view.translateYTo(u),this.emitEvent({horizontal:i.horizontal,vertical:{top:l,height:i.vertical.height}})}else{let t=e;t<=0&&(t=0);const a=(100-i.horizontal.width)/100*this.scrollbarWrapSize.width;t>=a&&(t=a);const l=t/this.scrollbarWrapSize.width*100,h=-l/100*this.chartWidth,d=o.x-r.x,c=this.mindMap.width/2,u=h+d-c*n.scaleX+c-s.x*n.scaleX+(this.mindMap.width-this.mindMap.initWidth)/2*n.scaleX;this.mindMap.view.translateXTo(u),this.emitEvent({vertical:i.vertical,horizontal:{left:l,width:i.horizontal.width}})}}onClick(t,e){let i=0;i=e===a.SCROLL_BAR_DIR.VERTICAL?t.clientY-t.currentTarget.getBoundingClientRect().top:t.clientX-t.currentTarget.getBoundingClientRect().left,this.updateMindMapView(e,i)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Fy.instanceName="scrollbar";const Dy=Fy;var Ry=i(99749);let Iy=!1;const qy=oy.import("formats/formula");class By{constructor(t){this.opt=t,this.mindMap=t.mindMap,window.katex=Ry.default,this.init(),this.config=this.getKatexConfig(),this.cssEl=null,this.addStyle(),this.extendQuill(),this.onDestroy=this.onDestroy.bind(this),this.mindMap.on("beforeDestroy",this.onDestroy)}onDestroy(){Object.getPrototypeOf(this.mindMap).constructor.instanceCount<=1&&(Iy=!1,oy.register("formats/formula",qy,!0))}init(){this.mindMap.opt.enableEditFormulaInRichTextEdit&&(this.mindMap.opt.transformRichTextOnEnterEdit=this.latexRichToText.bind(this),this.mindMap.opt.beforeHideRichTextEdit=this.formatLatex.bind(this))}getKatexConfig(){const t={throwOnError:!1,errorColor:"#f00",output:"mathml"};let{getKatexOutputType:e}=this.mindMap.opt;e=e||function(){const t=(()=>{const t=navigator.userAgent.match(/\s+Chrome\/(.*)\s+/);return t&&t[1]?Number.parseFloat(t[1]):""})();if(t&&t<=100)return"html"};const i=e()||"mathml";return t.output=["mathml","html"].includes(i)?i:"mathml",t}extendQuill(){if(Iy)return;Iy=!0;const t=this;oy.register("formats/formula",class extends qy{static create(e){let i=super.create(e);return"string"==typeof e&&(Ry.default.render(e,i,t.config),i.setAttribute("data-value",vn(e))),i}},!0)}getStyleText(){const{katexFontPath:t}=this.mindMap.opt;let e="";var i;return"html"===this.config.output&&(e=`\n@font-face {\n font-family: 'KaTeX_AMS';\n src: url(${i=t}fonts/KaTeX_AMS-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_AMS-Regular.woff) format('woff'), url(${i}fonts/KaTeX_AMS-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Caligraphic';\n src: url(${i}fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'), url(${i}fonts/KaTeX_Caligraphic-Bold.woff) format('woff'), url(${i}fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');\n font-weight: bold;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Caligraphic';\n src: url(${i}fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Caligraphic-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Fraktur';\n src: url(${i}fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'), url(${i}fonts/KaTeX_Fraktur-Bold.woff) format('woff'), url(${i}fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');\n font-weight: bold;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Fraktur';\n src: url(${i}fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Fraktur-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Main';\n src: url(${i}fonts/KaTeX_Main-Bold.woff2) format('woff2'), url(${i}fonts/KaTeX_Main-Bold.woff) format('woff'), url(${i}fonts/KaTeX_Main-Bold.ttf) format('truetype');\n font-weight: bold;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Main';\n src: url(${i}fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'), url(${i}fonts/KaTeX_Main-BoldItalic.woff) format('woff'), url(${i}fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');\n font-weight: bold;\n font-style: italic;\n}\n@font-face {\n font-family: 'KaTeX_Main';\n src: url(${i}fonts/KaTeX_Main-Italic.woff2) format('woff2'), url(${i}fonts/KaTeX_Main-Italic.woff) format('woff'), url(${i}fonts/KaTeX_Main-Italic.ttf) format('truetype');\n font-weight: normal;\n font-style: italic;\n}\n@font-face {\n font-family: 'KaTeX_Main';\n src: url(${i}fonts/KaTeX_Main-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Main-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Main-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Math';\n src: url(${i}fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'), url(${i}fonts/KaTeX_Math-BoldItalic.woff) format('woff'), url(${i}fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');\n font-weight: bold;\n font-style: italic;\n}\n@font-face {\n font-family: 'KaTeX_Math';\n src: url(${i}fonts/KaTeX_Math-Italic.woff2) format('woff2'), url(${i}fonts/KaTeX_Math-Italic.woff) format('woff'), url(${i}fonts/KaTeX_Math-Italic.ttf) format('truetype');\n font-weight: normal;\n font-style: italic;\n}\n@font-face {\n font-family: 'KaTeX_SansSerif';\n src: url(${i}fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'), url(${i}fonts/KaTeX_SansSerif-Bold.woff) format('woff'), url(${i}fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');\n font-weight: bold;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_SansSerif';\n src: url(${i}fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'), url(${i}fonts/KaTeX_SansSerif-Italic.woff) format('woff'), url(${i}fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');\n font-weight: normal;\n font-style: italic;\n}\n@font-face {\n font-family: 'KaTeX_SansSerif';\n src: url(${i}fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_SansSerif-Regular.woff) format('woff'), url(${i}fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Script';\n src: url(${i}fonts/KaTeX_Script-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Script-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Script-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Size1';\n src: url(${i}fonts/KaTeX_Size1-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Size1-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Size1-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Size2';\n src: url(${i}fonts/KaTeX_Size2-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Size2-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Size2-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Size3';\n src: url(${i}fonts/KaTeX_Size3-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Size3-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Size3-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Size4';\n src: url(${i}fonts/KaTeX_Size4-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Size4-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Size4-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n@font-face {\n font-family: 'KaTeX_Typewriter';\n src: url(${i}fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'), url(${i}fonts/KaTeX_Typewriter-Regular.woff) format('woff'), url(${i}fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n `),e+='\n.katex {\n font: normal 1.21em KaTeX_Main, Times New Roman, serif;\n line-height: 1.2;\n text-indent: 0;\n text-rendering: auto;\n}\n.katex * {\n -ms-high-contrast-adjust: none !important;\n}\n.katex * {\n border-color: currentColor;\n}\n.katex .katex-version::after {\n content: "0.16.9";\n}\n.katex .katex-mathml {\n /* Accessibility hack to only show to screen readers\n Found at: http://a11yproject.com/posts/how-to-hide-content/ */\n position: absolute;\n clip: rect(1px, 1px, 1px, 1px);\n padding: 0;\n border: 0;\n height: 1px;\n width: 1px;\n overflow: hidden;\n}\n.katex .katex-html {\n /* \newline is an empty block at top level, between .base elements */\n}\n.katex .katex-html > .newline {\n display: block;\n}\n.katex .base {\n position: relative;\n display: inline-block;\n white-space: nowrap;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n}\n.katex .strut {\n display: inline-block;\n}\n.katex .textbf {\n font-weight: bold;\n}\n.katex .textit {\n font-style: italic;\n}\n.katex .textrm {\n font-family: KaTeX_Main;\n}\n.katex .textsf {\n font-family: KaTeX_SansSerif;\n}\n.katex .texttt {\n font-family: KaTeX_Typewriter;\n}\n.katex .mathnormal {\n font-family: KaTeX_Math;\n font-style: italic;\n}\n.katex .mathit {\n font-family: KaTeX_Main;\n font-style: italic;\n}\n.katex .mathrm {\n font-style: normal;\n}\n.katex .mathbf {\n font-family: KaTeX_Main;\n font-weight: bold;\n}\n.katex .boldsymbol {\n font-family: KaTeX_Math;\n font-weight: bold;\n font-style: italic;\n}\n.katex .amsrm {\n font-family: KaTeX_AMS;\n}\n.katex .mathbb,\n.katex .textbb {\n font-family: KaTeX_AMS;\n}\n.katex .mathcal {\n font-family: KaTeX_Caligraphic;\n}\n.katex .mathfrak,\n.katex .textfrak {\n font-family: KaTeX_Fraktur;\n}\n.katex .mathboldfrak,\n.katex .textboldfrak {\n font-family: KaTeX_Fraktur;\n font-weight: bold;\n}\n.katex .mathtt {\n font-family: KaTeX_Typewriter;\n}\n.katex .mathscr,\n.katex .textscr {\n font-family: KaTeX_Script;\n}\n.katex .mathsf,\n.katex .textsf {\n font-family: KaTeX_SansSerif;\n}\n.katex .mathboldsf,\n.katex .textboldsf {\n font-family: KaTeX_SansSerif;\n font-weight: bold;\n}\n.katex .mathitsf,\n.katex .textitsf {\n font-family: KaTeX_SansSerif;\n font-style: italic;\n}\n.katex .mainrm {\n font-family: KaTeX_Main;\n font-style: normal;\n}\n.katex .vlist-t {\n display: inline-table;\n table-layout: fixed;\n border-collapse: collapse;\n}\n.katex .vlist-r {\n display: table-row;\n}\n.katex .vlist {\n display: table-cell;\n vertical-align: bottom;\n position: relative;\n}\n.katex .vlist > span {\n display: block;\n height: 0;\n position: relative;\n}\n.katex .vlist > span > span {\n display: inline-block;\n}\n.katex .vlist > span > .pstrut {\n overflow: hidden;\n width: 0;\n}\n.katex .vlist-t2 {\n margin-right: -2px;\n}\n.katex .vlist-s {\n display: table-cell;\n vertical-align: bottom;\n font-size: 1px;\n width: 2px;\n min-width: 2px;\n}\n.katex .vbox {\n display: inline-flex;\n flex-direction: column;\n align-items: baseline;\n}\n.katex .hbox {\n display: inline-flex;\n flex-direction: row;\n width: 100%;\n}\n.katex .thinbox {\n display: inline-flex;\n flex-direction: row;\n width: 0;\n max-width: 0;\n}\n.katex .msupsub {\n text-align: left;\n}\n.katex .mfrac > span > span {\n text-align: center;\n}\n.katex .mfrac .frac-line {\n display: inline-block;\n width: 100%;\n border-bottom-style: solid;\n}\n.katex .mfrac .frac-line,\n.katex .overline .overline-line,\n.katex .underline .underline-line,\n.katex .hline,\n.katex .hdashline,\n.katex .rule {\n min-height: 1px;\n}\n.katex .mspace {\n display: inline-block;\n}\n.katex .llap,\n.katex .rlap,\n.katex .clap {\n width: 0;\n position: relative;\n}\n.katex .llap > .inner,\n.katex .rlap > .inner,\n.katex .clap > .inner {\n position: absolute;\n}\n.katex .llap > .fix,\n.katex .rlap > .fix,\n.katex .clap > .fix {\n display: inline-block;\n}\n.katex .llap > .inner {\n right: 0;\n}\n.katex .rlap > .inner,\n.katex .clap > .inner {\n left: 0;\n}\n.katex .clap > .inner > span {\n margin-left: -50%;\n margin-right: 50%;\n}\n.katex .rule {\n display: inline-block;\n border: solid 0;\n position: relative;\n}\n.katex .overline .overline-line,\n.katex .underline .underline-line,\n.katex .hline {\n display: inline-block;\n width: 100%;\n border-bottom-style: solid;\n}\n.katex .hdashline {\n display: inline-block;\n width: 100%;\n border-bottom-style: dashed;\n}\n.katex .sqrt > .root {\n margin-left: 0.27777778em;\n margin-right: -0.55555556em;\n}\n.katex .sizing.reset-size1.size1,\n.katex .fontsize-ensurer.reset-size1.size1 {\n font-size: 1em;\n}\n.katex .sizing.reset-size1.size2,\n.katex .fontsize-ensurer.reset-size1.size2 {\n font-size: 1.2em;\n}\n.katex .sizing.reset-size1.size3,\n.katex .fontsize-ensurer.reset-size1.size3 {\n font-size: 1.4em;\n}\n.katex .sizing.reset-size1.size4,\n.katex .fontsize-ensurer.reset-size1.size4 {\n font-size: 1.6em;\n}\n.katex .sizing.reset-size1.size5,\n.katex .fontsize-ensurer.reset-size1.size5 {\n font-size: 1.8em;\n}\n.katex .sizing.reset-size1.size6,\n.katex .fontsize-ensurer.reset-size1.size6 {\n font-size: 2em;\n}\n.katex .sizing.reset-size1.size7,\n.katex .fontsize-ensurer.reset-size1.size7 {\n font-size: 2.4em;\n}\n.katex .sizing.reset-size1.size8,\n.katex .fontsize-ensurer.reset-size1.size8 {\n font-size: 2.88em;\n}\n.katex .sizing.reset-size1.size9,\n.katex .fontsize-ensurer.reset-size1.size9 {\n font-size: 3.456em;\n}\n.katex .sizing.reset-size1.size10,\n.katex .fontsize-ensurer.reset-size1.size10 {\n font-size: 4.148em;\n}\n.katex .sizing.reset-size1.size11,\n.katex .fontsize-ensurer.reset-size1.size11 {\n font-size: 4.976em;\n}\n.katex .sizing.reset-size2.size1,\n.katex .fontsize-ensurer.reset-size2.size1 {\n font-size: 0.83333333em;\n}\n.katex .sizing.reset-size2.size2,\n.katex .fontsize-ensurer.reset-size2.size2 {\n font-size: 1em;\n}\n.katex .sizing.reset-size2.size3,\n.katex .fontsize-ensurer.reset-size2.size3 {\n font-size: 1.16666667em;\n}\n.katex .sizing.reset-size2.size4,\n.katex .fontsize-ensurer.reset-size2.size4 {\n font-size: 1.33333333em;\n}\n.katex .sizing.reset-size2.size5,\n.katex .fontsize-ensurer.reset-size2.size5 {\n font-size: 1.5em;\n}\n.katex .sizing.reset-size2.size6,\n.katex .fontsize-ensurer.reset-size2.size6 {\n font-size: 1.66666667em;\n}\n.katex .sizing.reset-size2.size7,\n.katex .fontsize-ensurer.reset-size2.size7 {\n font-size: 2em;\n}\n.katex .sizing.reset-size2.size8,\n.katex .fontsize-ensurer.reset-size2.size8 {\n font-size: 2.4em;\n}\n.katex .sizing.reset-size2.size9,\n.katex .fontsize-ensurer.reset-size2.size9 {\n font-size: 2.88em;\n}\n.katex .sizing.reset-size2.size10,\n.katex .fontsize-ensurer.reset-size2.size10 {\n font-size: 3.45666667em;\n}\n.katex .sizing.reset-size2.size11,\n.katex .fontsize-ensurer.reset-size2.size11 {\n font-size: 4.14666667em;\n}\n.katex .sizing.reset-size3.size1,\n.katex .fontsize-ensurer.reset-size3.size1 {\n font-size: 0.71428571em;\n}\n.katex .sizing.reset-size3.size2,\n.katex .fontsize-ensurer.reset-size3.size2 {\n font-size: 0.85714286em;\n}\n.katex .sizing.reset-size3.size3,\n.katex .fontsize-ensurer.reset-size3.size3 {\n font-size: 1em;\n}\n.katex .sizing.reset-size3.size4,\n.katex .fontsize-ensurer.reset-size3.size4 {\n font-size: 1.14285714em;\n}\n.katex .sizing.reset-size3.size5,\n.katex .fontsize-ensurer.reset-size3.size5 {\n font-size: 1.28571429em;\n}\n.katex .sizing.reset-size3.size6,\n.katex .fontsize-ensurer.reset-size3.size6 {\n font-size: 1.42857143em;\n}\n.katex .sizing.reset-size3.size7,\n.katex .fontsize-ensurer.reset-size3.size7 {\n font-size: 1.71428571em;\n}\n.katex .sizing.reset-size3.size8,\n.katex .fontsize-ensurer.reset-size3.size8 {\n font-size: 2.05714286em;\n}\n.katex .sizing.reset-size3.size9,\n.katex .fontsize-ensurer.reset-size3.size9 {\n font-size: 2.46857143em;\n}\n.katex .sizing.reset-size3.size10,\n.katex .fontsize-ensurer.reset-size3.size10 {\n font-size: 2.96285714em;\n}\n.katex .sizing.reset-size3.size11,\n.katex .fontsize-ensurer.reset-size3.size11 {\n font-size: 3.55428571em;\n}\n.katex .sizing.reset-size4.size1,\n.katex .fontsize-ensurer.reset-size4.size1 {\n font-size: 0.625em;\n}\n.katex .sizing.reset-size4.size2,\n.katex .fontsize-ensurer.reset-size4.size2 {\n font-size: 0.75em;\n}\n.katex .sizing.reset-size4.size3,\n.katex .fontsize-ensurer.reset-size4.size3 {\n font-size: 0.875em;\n}\n.katex .sizing.reset-size4.size4,\n.katex .fontsize-ensurer.reset-size4.size4 {\n font-size: 1em;\n}\n.katex .sizing.reset-size4.size5,\n.katex .fontsize-ensurer.reset-size4.size5 {\n font-size: 1.125em;\n}\n.katex .sizing.reset-size4.size6,\n.katex .fontsize-ensurer.reset-size4.size6 {\n font-size: 1.25em;\n}\n.katex .sizing.reset-size4.size7,\n.katex .fontsize-ensurer.reset-size4.size7 {\n font-size: 1.5em;\n}\n.katex .sizing.reset-size4.size8,\n.katex .fontsize-ensurer.reset-size4.size8 {\n font-size: 1.8em;\n}\n.katex .sizing.reset-size4.size9,\n.katex .fontsize-ensurer.reset-size4.size9 {\n font-size: 2.16em;\n}\n.katex .sizing.reset-size4.size10,\n.katex .fontsize-ensurer.reset-size4.size10 {\n font-size: 2.5925em;\n}\n.katex .sizing.reset-size4.size11,\n.katex .fontsize-ensurer.reset-size4.size11 {\n font-size: 3.11em;\n}\n.katex .sizing.reset-size5.size1,\n.katex .fontsize-ensurer.reset-size5.size1 {\n font-size: 0.55555556em;\n}\n.katex .sizing.reset-size5.size2,\n.katex .fontsize-ensurer.reset-size5.size2 {\n font-size: 0.66666667em;\n}\n.katex .sizing.reset-size5.size3,\n.katex .fontsize-ensurer.reset-size5.size3 {\n font-size: 0.77777778em;\n}\n.katex .sizing.reset-size5.size4,\n.katex .fontsize-ensurer.reset-size5.size4 {\n font-size: 0.88888889em;\n}\n.katex .sizing.reset-size5.size5,\n.katex .fontsize-ensurer.reset-size5.size5 {\n font-size: 1em;\n}\n.katex .sizing.reset-size5.size6,\n.katex .fontsize-ensurer.reset-size5.size6 {\n font-size: 1.11111111em;\n}\n.katex .sizing.reset-size5.size7,\n.katex .fontsize-ensurer.reset-size5.size7 {\n font-size: 1.33333333em;\n}\n.katex .sizing.reset-size5.size8,\n.katex .fontsize-ensurer.reset-size5.size8 {\n font-size: 1.6em;\n}\n.katex .sizing.reset-size5.size9,\n.katex .fontsize-ensurer.reset-size5.size9 {\n font-size: 1.92em;\n}\n.katex .sizing.reset-size5.size10,\n.katex .fontsize-ensurer.reset-size5.size10 {\n font-size: 2.30444444em;\n}\n.katex .sizing.reset-size5.size11,\n.katex .fontsize-ensurer.reset-size5.size11 {\n font-size: 2.76444444em;\n}\n.katex .sizing.reset-size6.size1,\n.katex .fontsize-ensurer.reset-size6.size1 {\n font-size: 0.5em;\n}\n.katex .sizing.reset-size6.size2,\n.katex .fontsize-ensurer.reset-size6.size2 {\n font-size: 0.6em;\n}\n.katex .sizing.reset-size6.size3,\n.katex .fontsize-ensurer.reset-size6.size3 {\n font-size: 0.7em;\n}\n.katex .sizing.reset-size6.size4,\n.katex .fontsize-ensurer.reset-size6.size4 {\n font-size: 0.8em;\n}\n.katex .sizing.reset-size6.size5,\n.katex .fontsize-ensurer.reset-size6.size5 {\n font-size: 0.9em;\n}\n.katex .sizing.reset-size6.size6,\n.katex .fontsize-ensurer.reset-size6.size6 {\n font-size: 1em;\n}\n.katex .sizing.reset-size6.size7,\n.katex .fontsize-ensurer.reset-size6.size7 {\n font-size: 1.2em;\n}\n.katex .sizing.reset-size6.size8,\n.katex .fontsize-ensurer.reset-size6.size8 {\n font-size: 1.44em;\n}\n.katex .sizing.reset-size6.size9,\n.katex .fontsize-ensurer.reset-size6.size9 {\n font-size: 1.728em;\n}\n.katex .sizing.reset-size6.size10,\n.katex .fontsize-ensurer.reset-size6.size10 {\n font-size: 2.074em;\n}\n.katex .sizing.reset-size6.size11,\n.katex .fontsize-ensurer.reset-size6.size11 {\n font-size: 2.488em;\n}\n.katex .sizing.reset-size7.size1,\n.katex .fontsize-ensurer.reset-size7.size1 {\n font-size: 0.41666667em;\n}\n.katex .sizing.reset-size7.size2,\n.katex .fontsize-ensurer.reset-size7.size2 {\n font-size: 0.5em;\n}\n.katex .sizing.reset-size7.size3,\n.katex .fontsize-ensurer.reset-size7.size3 {\n font-size: 0.58333333em;\n}\n.katex .sizing.reset-size7.size4,\n.katex .fontsize-ensurer.reset-size7.size4 {\n font-size: 0.66666667em;\n}\n.katex .sizing.reset-size7.size5,\n.katex .fontsize-ensurer.reset-size7.size5 {\n font-size: 0.75em;\n}\n.katex .sizing.reset-size7.size6,\n.katex .fontsize-ensurer.reset-size7.size6 {\n font-size: 0.83333333em;\n}\n.katex .sizing.reset-size7.size7,\n.katex .fontsize-ensurer.reset-size7.size7 {\n font-size: 1em;\n}\n.katex .sizing.reset-size7.size8,\n.katex .fontsize-ensurer.reset-size7.size8 {\n font-size: 1.2em;\n}\n.katex .sizing.reset-size7.size9,\n.katex .fontsize-ensurer.reset-size7.size9 {\n font-size: 1.44em;\n}\n.katex .sizing.reset-size7.size10,\n.katex .fontsize-ensurer.reset-size7.size10 {\n font-size: 1.72833333em;\n}\n.katex .sizing.reset-size7.size11,\n.katex .fontsize-ensurer.reset-size7.size11 {\n font-size: 2.07333333em;\n}\n.katex .sizing.reset-size8.size1,\n.katex .fontsize-ensurer.reset-size8.size1 {\n font-size: 0.34722222em;\n}\n.katex .sizing.reset-size8.size2,\n.katex .fontsize-ensurer.reset-size8.size2 {\n font-size: 0.41666667em;\n}\n.katex .sizing.reset-size8.size3,\n.katex .fontsize-ensurer.reset-size8.size3 {\n font-size: 0.48611111em;\n}\n.katex .sizing.reset-size8.size4,\n.katex .fontsize-ensurer.reset-size8.size4 {\n font-size: 0.55555556em;\n}\n.katex .sizing.reset-size8.size5,\n.katex .fontsize-ensurer.reset-size8.size5 {\n font-size: 0.625em;\n}\n.katex .sizing.reset-size8.size6,\n.katex .fontsize-ensurer.reset-size8.size6 {\n font-size: 0.69444444em;\n}\n.katex .sizing.reset-size8.size7,\n.katex .fontsize-ensurer.reset-size8.size7 {\n font-size: 0.83333333em;\n}\n.katex .sizing.reset-size8.size8,\n.katex .fontsize-ensurer.reset-size8.size8 {\n font-size: 1em;\n}\n.katex .sizing.reset-size8.size9,\n.katex .fontsize-ensurer.reset-size8.size9 {\n font-size: 1.2em;\n}\n.katex .sizing.reset-size8.size10,\n.katex .fontsize-ensurer.reset-size8.size10 {\n font-size: 1.44027778em;\n}\n.katex .sizing.reset-size8.size11,\n.katex .fontsize-ensurer.reset-size8.size11 {\n font-size: 1.72777778em;\n}\n.katex .sizing.reset-size9.size1,\n.katex .fontsize-ensurer.reset-size9.size1 {\n font-size: 0.28935185em;\n}\n.katex .sizing.reset-size9.size2,\n.katex .fontsize-ensurer.reset-size9.size2 {\n font-size: 0.34722222em;\n}\n.katex .sizing.reset-size9.size3,\n.katex .fontsize-ensurer.reset-size9.size3 {\n font-size: 0.40509259em;\n}\n.katex .sizing.reset-size9.size4,\n.katex .fontsize-ensurer.reset-size9.size4 {\n font-size: 0.46296296em;\n}\n.katex .sizing.reset-size9.size5,\n.katex .fontsize-ensurer.reset-size9.size5 {\n font-size: 0.52083333em;\n}\n.katex .sizing.reset-size9.size6,\n.katex .fontsize-ensurer.reset-size9.size6 {\n font-size: 0.5787037em;\n}\n.katex .sizing.reset-size9.size7,\n.katex .fontsize-ensurer.reset-size9.size7 {\n font-size: 0.69444444em;\n}\n.katex .sizing.reset-size9.size8,\n.katex .fontsize-ensurer.reset-size9.size8 {\n font-size: 0.83333333em;\n}\n.katex .sizing.reset-size9.size9,\n.katex .fontsize-ensurer.reset-size9.size9 {\n font-size: 1em;\n}\n.katex .sizing.reset-size9.size10,\n.katex .fontsize-ensurer.reset-size9.size10 {\n font-size: 1.20023148em;\n}\n.katex .sizing.reset-size9.size11,\n.katex .fontsize-ensurer.reset-size9.size11 {\n font-size: 1.43981481em;\n}\n.katex .sizing.reset-size10.size1,\n.katex .fontsize-ensurer.reset-size10.size1 {\n font-size: 0.24108004em;\n}\n.katex .sizing.reset-size10.size2,\n.katex .fontsize-ensurer.reset-size10.size2 {\n font-size: 0.28929605em;\n}\n.katex .sizing.reset-size10.size3,\n.katex .fontsize-ensurer.reset-size10.size3 {\n font-size: 0.33751205em;\n}\n.katex .sizing.reset-size10.size4,\n.katex .fontsize-ensurer.reset-size10.size4 {\n font-size: 0.38572806em;\n}\n.katex .sizing.reset-size10.size5,\n.katex .fontsize-ensurer.reset-size10.size5 {\n font-size: 0.43394407em;\n}\n.katex .sizing.reset-size10.size6,\n.katex .fontsize-ensurer.reset-size10.size6 {\n font-size: 0.48216008em;\n}\n.katex .sizing.reset-size10.size7,\n.katex .fontsize-ensurer.reset-size10.size7 {\n font-size: 0.57859209em;\n}\n.katex .sizing.reset-size10.size8,\n.katex .fontsize-ensurer.reset-size10.size8 {\n font-size: 0.69431051em;\n}\n.katex .sizing.reset-size10.size9,\n.katex .fontsize-ensurer.reset-size10.size9 {\n font-size: 0.83317261em;\n}\n.katex .sizing.reset-size10.size10,\n.katex .fontsize-ensurer.reset-size10.size10 {\n font-size: 1em;\n}\n.katex .sizing.reset-size10.size11,\n.katex .fontsize-ensurer.reset-size10.size11 {\n font-size: 1.19961427em;\n}\n.katex .sizing.reset-size11.size1,\n.katex .fontsize-ensurer.reset-size11.size1 {\n font-size: 0.20096463em;\n}\n.katex .sizing.reset-size11.size2,\n.katex .fontsize-ensurer.reset-size11.size2 {\n font-size: 0.24115756em;\n}\n.katex .sizing.reset-size11.size3,\n.katex .fontsize-ensurer.reset-size11.size3 {\n font-size: 0.28135048em;\n}\n.katex .sizing.reset-size11.size4,\n.katex .fontsize-ensurer.reset-size11.size4 {\n font-size: 0.32154341em;\n}\n.katex .sizing.reset-size11.size5,\n.katex .fontsize-ensurer.reset-size11.size5 {\n font-size: 0.36173633em;\n}\n.katex .sizing.reset-size11.size6,\n.katex .fontsize-ensurer.reset-size11.size6 {\n font-size: 0.40192926em;\n}\n.katex .sizing.reset-size11.size7,\n.katex .fontsize-ensurer.reset-size11.size7 {\n font-size: 0.48231511em;\n}\n.katex .sizing.reset-size11.size8,\n.katex .fontsize-ensurer.reset-size11.size8 {\n font-size: 0.57877814em;\n}\n.katex .sizing.reset-size11.size9,\n.katex .fontsize-ensurer.reset-size11.size9 {\n font-size: 0.69453376em;\n}\n.katex .sizing.reset-size11.size10,\n.katex .fontsize-ensurer.reset-size11.size10 {\n font-size: 0.83360129em;\n}\n.katex .sizing.reset-size11.size11,\n.katex .fontsize-ensurer.reset-size11.size11 {\n font-size: 1em;\n}\n.katex .delimsizing.size1 {\n font-family: KaTeX_Size1;\n}\n.katex .delimsizing.size2 {\n font-family: KaTeX_Size2;\n}\n.katex .delimsizing.size3 {\n font-family: KaTeX_Size3;\n}\n.katex .delimsizing.size4 {\n font-family: KaTeX_Size4;\n}\n.katex .delimsizing.mult .delim-size1 > span {\n font-family: KaTeX_Size1;\n}\n.katex .delimsizing.mult .delim-size4 > span {\n font-family: KaTeX_Size4;\n}\n.katex .nulldelimiter {\n display: inline-block;\n width: 0.12em;\n}\n.katex .delimcenter {\n position: relative;\n}\n.katex .op-symbol {\n position: relative;\n}\n.katex .op-symbol.small-op {\n font-family: KaTeX_Size1;\n}\n.katex .op-symbol.large-op {\n font-family: KaTeX_Size2;\n}\n.katex .op-limits > .vlist-t {\n text-align: center;\n}\n.katex .accent > .vlist-t {\n text-align: center;\n}\n.katex .accent .accent-body {\n position: relative;\n}\n.katex .accent .accent-body:not(.accent-full) {\n width: 0;\n}\n.katex .overlay {\n display: block;\n}\n.katex .mtable .vertical-separator {\n display: inline-block;\n min-width: 1px;\n}\n.katex .mtable .arraycolsep {\n display: inline-block;\n}\n.katex .mtable .col-align-c > .vlist-t {\n text-align: center;\n}\n.katex .mtable .col-align-l > .vlist-t {\n text-align: left;\n}\n.katex .mtable .col-align-r > .vlist-t {\n text-align: right;\n}\n.katex .svg-align {\n text-align: left;\n}\n.katex svg {\n display: block;\n position: absolute;\n width: 100%;\n height: inherit;\n fill: currentColor;\n stroke: currentColor;\n fill-rule: nonzero;\n fill-opacity: 1;\n stroke-width: 1;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-miterlimit: 4;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n stroke-opacity: 1;\n}\n.katex svg path {\n stroke: none;\n}\n.katex img {\n border-style: none;\n min-width: 0;\n min-height: 0;\n max-width: none;\n max-height: none;\n}\n.katex .stretchy {\n width: 100%;\n display: block;\n position: relative;\n overflow: hidden;\n}\n.katex .stretchy::before,\n.katex .stretchy::after {\n content: "";\n}\n.katex .hide-tail {\n width: 100%;\n position: relative;\n overflow: hidden;\n}\n.katex .halfarrow-left {\n position: absolute;\n left: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.katex .halfarrow-right {\n position: absolute;\n right: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.katex .brace-left {\n position: absolute;\n left: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.katex .brace-center {\n position: absolute;\n left: 25%;\n width: 50%;\n overflow: hidden;\n}\n.katex .brace-right {\n position: absolute;\n right: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.katex .x-arrow-pad {\n padding: 0 0.5em;\n}\n.katex .cd-arrow-pad {\n padding: 0 0.55556em 0 0.27778em;\n}\n.katex .x-arrow,\n.katex .mover,\n.katex .munder {\n text-align: center;\n}\n.katex .boxpad {\n padding: 0 0.3em;\n}\n.katex .fbox,\n.katex .fcolorbox {\n box-sizing: border-box;\n border: 0.04em solid;\n}\n.katex .cancel-pad {\n padding: 0 0.2em;\n}\n.katex .cancel-lap {\n margin-left: -0.2em;\n margin-right: -0.2em;\n}\n.katex .sout {\n border-bottom-style: solid;\n border-bottom-width: 0.08em;\n}\n.katex .angl {\n box-sizing: border-box;\n border-top: 0.049em solid;\n border-right: 0.049em solid;\n margin-right: 0.03889em;\n}\n.katex .anglpad {\n padding: 0 0.03889em;\n}\n.katex .eqn-num::before {\n counter-increment: katexEqnNo;\n content: "(" counter(katexEqnNo) ")";\n}\n.katex .mml-eqn-num::before {\n counter-increment: mmlEqnNo;\n content: "(" counter(mmlEqnNo) ")";\n}\n.katex .mtr-glue {\n width: 50%;\n}\n.katex .cd-vert-arrow {\n display: inline-block;\n position: relative;\n}\n.katex .cd-label-left {\n display: inline-block;\n position: absolute;\n right: calc(50% + 0.3em);\n text-align: left;\n}\n.katex .cd-label-right {\n display: inline-block;\n position: absolute;\n left: calc(50% + 0.3em);\n text-align: right;\n}\n.katex-display {\n display: block;\n margin: 1em 0;\n text-align: center;\n}\n.katex-display > .katex {\n display: block;\n text-align: center;\n white-space: nowrap;\n}\n.katex-display > .katex > .katex-html {\n display: block;\n position: relative;\n}\n.katex-display > .katex > .katex-html > .tag {\n position: absolute;\n right: 0;\n}\n.katex-display.leqno > .katex > .katex-html > .tag {\n left: 0;\n right: auto;\n}\n.katex-display.fleqn > .katex {\n text-align: left;\n padding-left: 2em;\n}\nbody {\n counter-reset: katexEqnNo mmlEqnNo;\n}\n',e}addStyle(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.getStyleText(),document.head.appendChild(this.cssEl)}removeStyle(){document.head.removeChild(this.cssEl)}insertFormulaToNode(t,e){const i=this.mindMap.richText;i.showEditText({node:t}),i.quill.insertEmbed(i.quill.getLength()-1,"formula",e),i.hideEditText([t])}latexRichToText(t){if(-1!==t.indexOf('class="ql-formula"')){const e=(new DOMParser).parseFromString(t,"text/html").getElementsByClassName("ql-formula");for(const i of e)t=t.replace(i.outerHTML,`$${i.getAttribute("data-value")}$`);this.mindMap.opt.openRealtimeRenderOnNodeTextEdit&&setTimeout(()=>{this.mindMap.emit("node_text_edit_change",{node:this.mindMap.richText.node,text:this.mindMap.richText.getEditText(),richText:!0})},0)}return t}formatLatex(t){const e=t.quill.getContents(),i=e.ops;let n=!1;for(let t=i.length-1;t>=0;t--){const e=i[t].insert;if(e&&"object"!=typeof e&&"\n"!==e&&/\$.+?\$/g.test(e)){const r=[...e.matchAll(/\$.+?\$/g)],o=e.split(/\$.+?\$/g);for(let t=r.length-1;t>=0;t--){const e=r[t]&&r[t][0]&&r[t][0].slice(1,-1)||null;if(null!==e&&e.trim().length>0){this.checkFormulaIsLegal(e)?(o.splice(t+1,0,{insert:{formula:e}}),n=!0):o.splice(t+1,0,"")}else o.splice(t+1,0,"")}for(;o.length>0;){let e=o.pop();if("string"==typeof e){if(e.length<1)continue;e={insert:e}}e.attributes=i[t].attributes,i.splice(t+1,0,e)}i.splice(t,1)}}n&&t.quill.setContents(e)}checkFormulaIsLegal(t){try{return Ry.default.renderToString(t),!0}catch(t){return!1}}beforePluginRemove(){this.removeStyle(),this.mindMap.off("beforeDestroy",this.onDestroy)}beforePluginDestroy(){this.removeStyle(),this.mindMap.off("beforeDestroy",this.onDestroy)}}By.instanceName="formula";const Py=By,Uy=["rgb(255, 213, 73)","rgb(255, 136, 126)","rgb(107, 225, 141)","rgb(151, 171, 255)","rgb(129, 220, 242)","rgb(255, 163, 125)","rgb(152, 132, 234)"];class jy{constructor({mindMap:t}){this.mindMap=t}updateRainLinesConfig(t={}){const e=this.mindMap.opt.rainbowLinesConfig||{};e.open=!!t.open,e.colorsList=Array.isArray(t.colorsList)?t.colorsList:[],this.mindMap.opt.rainbowLinesConfig.open&&this.removeNodeLineColor(),this.mindMap.render()}removeNodeLineColor(){const t=this.mindMap.renderer.renderTree;t&&(Li(t,null,t=>{delete t.data.lineColor},null,!0),this.mindMap.command.addHistory())}getSecondLayerAncestor(t){if(0===t.layerIndex)return null;if(1===t.layerIndex)return t;{let e=null,i=t.parent;for(;i;){if(1===i.layerIndex)return i;i=i.parent}return e}}getColorsList(){const{rainbowLinesConfig:t}=this.mindMap.opt;return t&&Array.isArray(t.colorsList)&&t.colorsList.length>0?t.colorsList:[...Uy]}getNodeColor(t){const{rainbowLinesConfig:e}=this.mindMap.opt;if(!e||!e.open)return"";const i=this.getSecondLayerAncestor(t);if(!i)return;const n=pn(i),r=this.getColorsList();return r[n%r.length]}}jy.instanceName="rainbowLines";const Hy=jy,Wy={boxShadowColor:"rgba(0, 0, 0, 0.8)",borderRadius:"5px",transition:"all 0.3s ease-out",zIndex:9999,padding:20,margin:50,openBlankMode:!0};class Vy{constructor(t){this.mindMap=t.mindMap,this.isInDemonstrate=!1,this.stepList=[],this.currentStepIndex=0,this.currentStepNode=null,this.currentUnderlineTextData=null,this.tmpStyleEl=null,this.highlightEl=null,this.transformState=null,this.renderTree=null,this.config=Object.assign({...Wy},this.mindMap.opt.demonstrateConfig||{}),this.needRestorePerformanceMode=!1,this.onConfigUpdate=this.onConfigUpdate.bind(this),this.mindMap.on("after_update_config",this.onConfigUpdate)}onConfigUpdate(t){void 0!==t.demonstrateConfig&&(this.config={...this.config,...t.demonstrateConfig})}enter(){var t;this.bindFullscreenEvent(),document.fullscreenElement===this.mindMap.el?this._enter():(t=this.mindMap.el).requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()}_enter(){this.isInDemonstrate=!0,this.pausePerformanceMode(),this.addTmpStyles(),this.transformState=this.mindMap.view.getTransformData(),this.renderTree=this.mindMap.getData(),this.mindMap.command.pause(),this.mindMap.keyCommand.pause(),this.createHighlightEl(),this.getStepList();let t=!1;this.mindMap.renderer.isRendering&&(t=!0),this.mindMap.execCommand("UNEXPAND_ALL",!1);const e=()=>{t?t=!1:(this.mindMap.off("node_tree_render_end",e),this.jump(this.currentStepIndex),this.bindEvent())};this.mindMap.on("node_tree_render_end",e)}exit(){this.mindMap.el,document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()),this.mindMap.updateData(this.renderTree),this.mindMap.view.setTransformData(this.transformState),this.renderTree=null,this.transformState=null,this.stepList=[],this.currentStepIndex=0,this.currentStepNode=null,this.currentUnderlineTextData=null,this.unBindEvent(),this.removeTmpStyles(),this.removeHighlightEl(),this.mindMap.command.recovery(),this.mindMap.keyCommand.recovery(),this.restorePerformanceMode(),this.mindMap.emit("exit_demonstrate"),this.isInDemonstrate=!1}pausePerformanceMode(){const{openPerformance:t}=this.mindMap.opt;t&&(this.needRestorePerformanceMode=!0,this.mindMap.opt.openPerformance=!1,this.mindMap.renderer.forceLoadNode())}restorePerformanceMode(){this.needRestorePerformanceMode&&(this.mindMap.opt.openPerformance=!0,this.mindMap.renderer.forceLoadNode())}addTmpStyles(){this.tmpStyleEl=document.createElement("style");let t="\n /* 画布所有元素禁止响应鼠标事件 */\n .smm-mind-map-container {\n pointer-events: none;\n }\n /* 超链接图标允许响应鼠标事件 */\n .smm-node a {\n pointer-events: all;\n }\n /* 备注图标允许响应鼠标事件 */\n .smm-node .smm-node-note {\n pointer-events: all;\n }\n ";this.config.openBlankMode&&(t+="\n /* 带下划线的文本内容全部隐藏 */\n .smm-richtext-node-wrap u {\n opacity: 0;\n }\n "),this.tmpStyleEl.innerText=t,document.head.appendChild(this.tmpStyleEl)}removeTmpStyles(){this.tmpStyleEl&&document.head.removeChild(this.tmpStyleEl)}createHighlightEl(){this.highlightEl||(this.highlightEl=document.createElement("div"),this.highlightEl.style.cssText=`\n position: absolute;\n box-shadow: 0 0 0 5000px ${this.config.boxShadowColor};\n border-radius: ${this.config.borderRadius};\n transition: ${this.config.transition};\n z-index: ${this.config.zIndex+1};\n pointer-events: none;\n `,this.mindMap.el.appendChild(this.highlightEl))}removeHighlightEl(){this.highlightEl&&(this.mindMap.el.removeChild(this.highlightEl),this.highlightEl=null)}updateHighlightEl({left:t,top:e,width:i,height:n}){const r=this.config.padding;t&&(this.highlightEl.style.left=t-r+"px"),e&&(this.highlightEl.style.top=e-r+"px"),i&&(this.highlightEl.style.width=i+2*r+"px"),n&&(this.highlightEl.style.height=n+2*r+"px")}bindEvent(){this.onKeydown=this.onKeydown.bind(this),window.addEventListener("keydown",this.onKeydown)}bindFullscreenEvent(){this.onFullscreenChange=this.onFullscreenChange.bind(this),document.addEventListener(Cn,this.onFullscreenChange)}unBindEvent(){window.removeEventListener("keydown",this.onKeydown),document.removeEventListener(Cn,this.onFullscreenChange)}onFullscreenChange(){document.fullscreenElement?document.fullscreenElement===this.mindMap.el&&this._enter():this.exit()}onKeydown(t){t.keyCode===yr.Left?this.prev():t.keyCode===yr.Right?this.next():t.keyCode===yr.Esc?this.exit():t.keyCode===yr.Enter&&this.showNextUnderlineText()}prev(){this.currentStepIndex>0&&this.jump(this.currentStepIndex-1)}next(){const t=this.stepList.length;this.currentStepIndex<t-1&&this.jump(this.currentStepIndex+1)}showNextUnderlineText(){if(!this.config.openBlankMode||!this.currentStepNode||!this.currentUnderlineTextData)return;const{index:t,list:e,length:i}=this.currentUnderlineTextData;if(t>=i)return;const n=e[t];this.currentUnderlineTextData.index++,n.node.style.opacity=1}jump(t){this.currentUnderlineTextData&&(this.currentUnderlineTextData.list.forEach(t=>{t.node.style.opacity=""}),this.currentUnderlineTextData=null),this.currentStepNode=null,this.currentStepIndex=t,this.mindMap.emit("demonstrate_jump",this.currentStepIndex,this.stepList.length);const e=this.stepList[t],i=e.node,n=i.data.uid,r=this.mindMap.renderer.findNodeByUid(n);if(r)if("node"===e.type){this.currentStepNode=r;const t=this.config.openBlankMode?r.group.find("u"):null;t&&t.length>0&&(this.currentUnderlineTextData={index:0,list:t,length:t.length}),this.mindMap.view.fit(()=>r.group.rbox(),!0,this.config.padding+this.config.margin);const e=r.group.rbox();this.updateHighlightEl({left:e.x,top:e.y,width:e.width,height:e.height})}else{const t=()=>{i.children.forEach(t=>{t.data.expand=!1}),this.mindMap.render(()=>{this.mindMap.view.fit(()=>{const t=_n(r,0,0,0,0,!0);return{...t,x:t.left,y:t.top}},!0,this.config.padding+this.config.margin);const t=_n(r,0,0,0,0,!0);this.updateHighlightEl(t)})};if(i.data.expand)t();else{this.mindMap.execCommand("SET_NODE_EXPAND",r,!0);const e=()=>{this.mindMap.off("node_tree_render_end",e),t()};this.mindMap.on("node_tree_render_end",e)}}else this.mindMap.renderer.expandToNodeUid(n,()=>{this.mindMap.renderer.findNodeByUid(n)&&this.jump(t)})}getStepList(){Li(this.mindMap.renderer.renderTree,null,t=>{this.stepList.push({type:"node",node:t});Mn(t.data).forEach(t=>{t.uid&&this.stepList.push({type:"node",node:{data:t}})}),t.children.length>1&&this.stepList.push({type:"children",node:t})})}beforePluginRemove(){this.unBindEvent(),this.mindMap.off("after_update_config",this.onConfigUpdate)}beforePluginDestroy(){this.unBindEvent(),this.mindMap.off("after_update_config",this.onConfigUpdate)}}Vy.instanceName="demonstrate";const Ky=Vy;const Gy={getText:function(t){const e=t.getData("outerFrame");return e&&e.text?e.text:""},createText:function(t,e,i){const n=this.draw.group(),r=()=>{this.activeOuterFrame&&this.activeOuterFrame.el===t||this.setActiveOuterFrame(t,e,i,n)};return n.click(t=>{t.stopPropagation(),r()}),n.on("dblclick",t=>{t.stopPropagation(),r(),this.showEditTextBox(n)}),n},styleTextShape:function(t,e){t.fill({color:e.textFill}).radius(e.textFillRadius)},styleText:function(t,e){t.fill({color:e.color}).css({"font-family":e.fontFamily,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontStyle})},onScale:function(){this.hideEditTextBox()},showEditTextBox:function(t){if(this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.className="outer-frame-text-edit-warp",this.textEditNode.style.cssText="\n position: fixed;\n box-sizing: border-box;\n background-color: #fff;\n box-shadow: 0 0 20px rgba(0,0,0,.5);\n outline: none; \n word-break: break-all;\n ",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()});(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode)}const{node:e,range:i}=this.activeOuterFrame,n=this.getStyle(this.getNodeRangeFirstNode(e,i)),[r,o,s,a]=n.textFillPadding;let{defaultOuterFrameText:l,nodeTextEditZIndex:h}=this.mindMap.opt,d=this.mindMap.view.scale,c=this.getText(this.getNodeRangeFirstNode(e,i)),u=(c||l).split(/\n/gim);this.textEditNode.style.padding=`${r}px ${o}px ${s}px ${a}px`,this.textEditNode.style.fontFamily=n.fontFamily,this.textEditNode.style.fontSize=n.fontSize*d+"px",this.textEditNode.style.fontWeight=n.fontWeight,this.textEditNode.style.fontStyle=n.fontStyle,this.textEditNode.style.lineHeight=u.length>1?n.lineHeight:"normal",this.textEditNode.style.zIndex=h,this.textEditNode.innerHTML=u.join("<br>"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(t),this.setIsShowTextEdit(!0),""===c||c===l?dn(this.textEditNode):hn(this.textEditNode)},setIsShowTextEdit:function(t){this.showTextEdit=t,t?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()},removeTextEditEl:function(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)},hideEditTextBox:function(){if(!this.showTextEdit)return;let{el:t,textNode:e,node:i,range:n}=this.activeOuterFrame,r=Di(this.textEditNode.innerHTML);r=r===this.mindMap.opt.defaultOuterFrameText?"":r,this.updateActiveOuterFrame({text:r}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.setIsShowTextEdit(!1),this.renderText(r,t,e,i,n),this.mindMap.emit("hide_text_edit")},updateTextEditBoxPos:function(t){let e=t.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=`${e.width}px`,this.textEditNode.style.minHeight=`${e.height}px`,this.textEditNode.style.left=`${e.left}px`,this.textEditNode.style.top=`${e.top}px`)},renderText:function(t,e,i,n,r){if(!t)return;i.clear();const o=new $e;i.add(o);const s=this.getStyle(this.getNodeRangeFirstNode(n,r)),[a,l,h,d]=s.textFillPadding;let c=t.replace(/\n$/g,"").split(/\n/gim);const u=new xi;c.forEach((t,e)=>{""===t&&(t="\ufeff");let i=(new pi).text(t);i.y(s.fontSize*s.lineHeight*e),this.styleText(i,s),u.add(i)}),i.add(u);const{width:f,height:p}=i.bbox(),m=f+a+h,g=p+l+d;o.size(m,g).x(0).dy(0),this.styleTextShape(o,s);let v=0;switch(s.textAlign){case"left":v=e.x();break;case"center":v=e.x()+e.width()/2-m/2;break;case"right":v=e.x()+e.width()-m}const y=e.y()-g;o.x(v),o.y(y),u.x(v+a),u.y(y+l)}},Xy={radius:5,strokeWidth:2,strokeColor:"#0984e3",strokeDasharray:"5,5",fill:"rgba(9,132,227,0.05)",fontSize:14,fontFamily:"微软雅黑, Microsoft YaHei",fontWeight:"normal",fontStyle:"normal",color:"#fff",lineHeight:1.2,textFill:"#0984e3",textFillRadius:5,textFillPadding:[5,5,5,5],textAlign:"left"},Yy="outer-frame-text-edit-warp";class Zy{constructor(t={}){this.mindMap=t.mindMap,this.draw=null,this.createDrawContainer(),this.isNotRenderOuterFrames=!1,this.textNodeList=[],this.outerFrameElList=[],this.activeOuterFrame=null,this.textEditNode=null,this.showTextEdit=!1,Object.keys(Gy).forEach(t=>{this[t]=Gy[t].bind(this)}),this.mindMap.addEditNodeClass(Yy),this.bindEvent()}createDrawContainer(){this.draw=this.mindMap.draw.group(),this.draw.addClass("smm-outer-frame-container"),this.draw.back(),this.draw.forward()}bindEvent(){this.renderOuterFrames=this.renderOuterFrames.bind(this),this.mindMap.on("node_tree_render_end",this.renderOuterFrames),this.mindMap.on("data_change",this.renderOuterFrames),this.clearActiveOuterFrame=this.clearActiveOuterFrame.bind(this),this.mindMap.on("draw_click",this.clearActiveOuterFrame),this.mindMap.on("node_click",this.clearActiveOuterFrame),this.mindMap.on("scale",this.onScale),this.onBeforeDestroy=this.onBeforeDestroy.bind(this),this.mindMap.on("beforeDestroy",this.onBeforeDestroy),this.addOuterFrame=this.addOuterFrame.bind(this),this.mindMap.command.add("ADD_OUTER_FRAME",this.addOuterFrame),this.removeActiveOuterFrame=this.removeActiveOuterFrame.bind(this),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeActiveOuterFrame)}unBindEvent(){this.mindMap.off("node_tree_render_end",this.renderOuterFrames),this.mindMap.off("data_change",this.renderOuterFrames),this.mindMap.off("draw_click",this.clearActiveOuterFrame),this.mindMap.off("node_click",this.clearActiveOuterFrame),this.mindMap.off("scale",this.onScale),this.mindMap.off("beforeDestroy",this.onBeforeDestroy),this.mindMap.command.remove("ADD_OUTER_FRAME",this.addOuterFrame),this.mindMap.keyCommand.removeShortcut("Del|Backspace",this.removeActiveOuterFrame)}onBeforeDestroy(){this.hideEditTextBox(),this.removeTextEditEl()}addOuterFrame(t,e={}){t=fn(t);const i=this.mindMap.renderer.activeNodeList;if(i.length<=0&&t.length<=0)return;let n=t.length>0?t:i;n=n.filter(t=>!t.isRoot&&!t.isGeneralization);const r=(t=>{t=ln(t);const e={},i={};t.forEach(t=>{const n=t.parent;if(n){const r=n.uid;i[r]=n;const o=t.getIndexInBrothers(),s={node:t,index:o};e[r]?e[r].find(t=>t.index===s.index)||e[r].push(s):e[r]=[s]}});const n=[];return Object.keys(e).forEach(t=>{const r=e[t],o=i[t];if(r.length>1){const t=r.map(t=>t.index).sort((t,e)=>t-e),e=t[0],i=t[t.length-1];let s=-1,a=-1;for(let r=e;r<=i;r++)t.includes(r)?(-1===s&&(s=r),a=r):(-1!==s&&-1!==a&&n.push({node:o,range:[s,a]}),s=-1,a=-1);-1!==s&&-1!==a&&n.push({node:o,range:[s,a]})}else n.push({node:o,range:[r[0].index,r[0].index]})}),n})(n);r.forEach(({node:t,range:i})=>{const n=t.children.slice(i[0],i[1]+1),r=Xi();n.forEach(t=>{let i=t.getData("outerFrame");i=i?{...i,...e,groupId:r}:{...e,groupId:r},this.mindMap.execCommand("SET_NODE_DATA",t,{outerFrame:i})})})}getActiveOuterFrame(){return this.activeOuterFrame?{...this.activeOuterFrame}:null}removeActiveOuterFrame(){if(!this.activeOuterFrame)return;const{node:t,range:e}=this.activeOuterFrame;this.getRangeNodeList(t,e).forEach(t=>{this.mindMap.execCommand("SET_NODE_DATA",t,{outerFrame:null})}),this.mindMap.emit("outer_frame_delete")}removeActiveOuterFrameText(){this.updateActiveOuterFrame({text:""})}updateActiveOuterFrame(t={}){if(!this.activeOuterFrame)return;this.isNotRenderOuterFrames=!0;const{el:e,node:i,range:n}=this.activeOuterFrame;let r="";this.getRangeNodeList(i,n).forEach(e=>{const i={...e.getData("outerFrame"),...t};r=i.strokeDasharray,this.mindMap.execCommand("SET_NODE_DATA",e,{outerFrame:i})}),e.cacheStyle={dasharray:r},this.updateOuterFrameStyle()}updateOuterFrameStyle(){const{el:t,node:e,range:i,textNode:n}=this.activeOuterFrame,r=this.getNodeRangeFirstNode(e,i),o=this.getStyle(r);this.styleOuterFrame(t,{...o,strokeDasharray:"none"});const s=this.getText(r);this.renderText(s,t,n,e,i)}getRangeNodeList(t,e){return t.children.slice(e[0],e[1]+1).filter(t=>t.getData("outerFrame"))}getNodeRangeFirstNode(t,e){return t.children[e[0]]}renderOuterFrames(){if(this.isNotRenderOuterFrames)return void(this.isNotRenderOuterFrames=!1);this.clearActiveOuterFrame(),this.clearTextNodes(),this.clearOuterFrameElList();let t=this.mindMap.renderer.root;if(!t)return;const e=this.mindMap.draw.transform(),{outerFramePaddingX:i,outerFramePaddingY:n}=this.mindMap.opt;Li(t,null,t=>{if(!t)return;const r=(t=>{const e=t.children;if(!e||e.length<=0)return;const i=[],n={};return e.forEach((t,e)=>{const r=t.getData("outerFrame");if(!r)return;const o=r.groupId;o?(n[o]||(n[o]=[]),n[o].push({node:t,index:e})):i.push({nodeList:[t],range:[e,e]})}),Object.keys(n).forEach(t=>{const e=n[t];i.push({nodeList:e.map(t=>t.node),range:[e[0].index,e[e.length-1].index]})}),i})(t);r&&r.length>0&&r.forEach(({nodeList:r,range:o})=>{if(-1===o[0]||-1===o[1])return;const{left:s,top:a,width:l,height:h}=((t,e=0,i=0,n=0,r=0)=>{let o=1/0,s=-1/0,a=1/0,l=-1/0;return t.forEach(t=>{const{left:h,top:d,width:c,height:u}=_n(t,e,i,n,r,!1,!0);h<o&&(o=h),h+c>s&&(s=h+c),d<a&&(a=d),d+u>l&&(l=d+u)}),{left:o,top:a,width:s-o,height:l-a}})(r);if(!(Number.isFinite(s)&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(h)))return;const d=this.createOuterFrameEl((s-i-this.mindMap.elRect.left-e.translateX)/e.scaleX,(a-n-this.mindMap.elRect.top-e.translateY)/e.scaleY,(l+2*i)/e.scaleX,(h+2*n)/e.scaleY,this.getStyle(r[0])),c=this.createText(d,t,o);this.textNodeList.push(c),this.renderText(this.getText(r[0]),d,c,t,o),d.on("click",e=>{e.stopPropagation(),this.setActiveOuterFrame(d,t,o,c)})})},()=>{},!0,0)}setActiveOuterFrame(t,e,i,n){this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveOuterFrame(),this.activeOuterFrame={el:t,node:e,range:i,textNode:n},t.stroke({dasharray:"none"}),this.getText(this.getNodeRangeFirstNode(e,i))||this.renderText(this.mindMap.opt.defaultOuterFrameText,t,n,e,i),this.mindMap.emit("outer_frame_active",t,e,i)}clearActiveOuterFrame(){if(!this.activeOuterFrame)return;const{el:t,textNode:e,node:i,range:n}=this.activeOuterFrame;t.stroke({dasharray:t.cacheStyle.dasharray||Xy.strokeDasharray}),this.hideEditTextBox(),this.getText(this.getNodeRangeFirstNode(i,n))||e.clear(),this.activeOuterFrame=null,this.mindMap.emit("outer_frame_deactivate")}getStyle(t){return{...Xy,...t.getData("outerFrame")||{}}}createOuterFrameEl(t,e,i,n,r={}){const o=this.draw.rect().size(i,n).x(t).y(e);return this.styleOuterFrame(o,r),o.cacheStyle={dasharray:r.strokeDasharray},this.outerFrameElList.push(o),o}styleOuterFrame(t,e){t.radius(e.radius).stroke({width:e.strokeWidth,color:e.strokeColor,dasharray:e.strokeDasharray}).fill({color:e.fill})}clearTextNodes(){this.textNodeList.forEach(t=>{t.remove()})}clearOuterFrameElList(){this.outerFrameElList.forEach(t=>{t.remove()}),this.outerFrameElList=[],this.activeOuterFrame=null}beforePluginRemove(){this.mindMap.deleteEditNodeClass(Yy),this.unBindEvent()}beforePluginDestroy(){this.mindMap.deleteEditNodeClass(Yy),this.unBindEvent()}}Zy.instanceName="outerFrame",Zy.defaultStyle=Xy;const Qy=Zy;class Jy{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.init()}init(){this.updateNodeTree=this.updateNodeTree.bind(this),this.afterExecCommand=this.afterExecCommand.bind(this),this.layoutChange=this.layoutChange.bind(this),this.mindMap.opt.data&&this.isMindMapLayout()&&this.updateNodeTree(this.mindMap.opt.data),this.mindMap.on("layout_change",this.layoutChange),this.mindMap.on("afterExecCommand",this.afterExecCommand),this.mindMap.on("before_update_data",this.updateNodeTree),this.mindMap.on("before_set_data",this.updateNodeTree)}restore(){this.mindMap.off("layout_change",this.layoutChange),this.mindMap.off("afterExecCommand",this.afterExecCommand),this.mindMap.off("before_update_data",this.updateNodeTree),this.mindMap.off("before_set_data",this.updateNodeTree)}afterExecCommand(t){this.isMindMapLayout()&&["BACK","FORWARD","INSERT_NODE","INSERT_MULTI_NODE","INSERT_CHILD_NODE","INSERT_MULTI_CHILD_NODE","INSERT_PARENT_NODE","UP_NODE","DOWN_NODE","MOVE_UP_ONE_LEVEL","INSERT_AFTER","INSERT_BEFORE","MOVE_NODE_TO","REMOVE_NODE","REMOVE_CURRENT_NODE","PASTE_NODE","CUT_NODE"].includes(t)&&this.updateRenderTree()}layoutChange(t){t===a.LAYOUT.MIND_MAP&&this.updateRenderTree()}updateRenderTree(){this.updateNodeTree(this.mindMap.renderer.renderTree)}updateNodeTree(t){if(!this.isMindMapLayout())return;const e=t,i=e.children.length;if(i<=0)return;const n=Math.ceil(i/2);e.children.forEach((t,e)=>{t.data.dir=e+1<=n?a.LAYOUT_GROW_DIR.RIGHT:a.LAYOUT_GROW_DIR.LEFT})}isMindMapLayout(){return this.mindMap.opt.layout===a.LAYOUT.MIND_MAP}beforePluginRemove(){this.restore()}beforePluginDestroy(){this.restore()}}Jy.instanceName="mindMapLayoutPro";const $y=Jy;class tb{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.bindEvent()}bindEvent(){this.onBeforeAddHistory=this.onBeforeAddHistory.bind(this),this.mindMap.on("beforeAddHistory",this.onBeforeAddHistory)}unBindEvent(){this.mindMap.off("beforeAddHistory",this.onBeforeAddHistory)}isBase64ImgUrl(t){return/^data:/.test(t)}isImageKey(t){return/^smm_img_key_/.test(t)}createImageKey(){return"smm_img_key_"+Xi()}onBeforeAddHistory(){const t=this.mindMap.renderer.renderTree;if(!t)return;let e=t.data.imgMap;e||(e=t.data.imgMap={});const i=[],n=()=>Object.keys(e);Li(t,null,t=>{const r=t.data.image;if(r)if(this.isBase64ImgUrl(r)){const o=(t=>n().find(i=>e[i]===t))(r);if(o)i.push(o),t.data.image=o;else{const n=this.createImageKey();t.data.image=n,e[n]=r,i.push(n)}}else this.isImageKey(r)&&n().includes(r)&&i.push(r)}),n().forEach(t=>{i.includes(t)||delete e[t]})}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}tb.instanceName="nodeBase64ImageStorage";const eb=tb,ib={};function nb(t,e,i){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||i?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return rb(t.children,e,i)}return Array.isArray(t)?rb(t,e,i):""}function rb(t,e,i){const n=[];let r=-1;for(;++r<t.length;)n[r]=nb(t[r],e,i);return n.join("")}function ob(t,e,i,n){const r=t.length;let o,s=0;if(e=e<0?-e>r?0:r+e:e>r?r:e,i=i>0?i:0,n.length<1e4)o=Array.from(n),o.unshift(e,i),t.splice(...o);else for(i&&t.splice(e,i);s<n.length;)o=n.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function sb(t,e){return t.length>0?(ob(t,t.length,0,e),t):e}const ab={}.hasOwnProperty;function lb(t,e){let i;for(i in e){const n=(ab.call(t,i)?t[i]:void 0)||(t[i]={}),r=e[i];let o;if(r)for(o in r){ab.call(n,o)||(n[o]=[]);const t=r[o];hb(n[o],Array.isArray(t)?t:t?[t]:[])}}}function hb(t,e){let i=-1;const n=[];for(;++i<e.length;)("after"===e[i].add?t:n).push(e[i]);ob(t,0,0,n)}const db=kb(/[A-Za-z]/),cb=kb(/[\dA-Za-z]/),ub=kb(/[#-'*+\--9=?A-Z^-~]/);function fb(t){return null!==t&&(t<32||127===t)}const pb=kb(/\d/),mb=kb(/[\dA-Fa-f]/),gb=kb(/[!-/:-@[-`{-~]/);function vb(t){return null!==t&&t<-2}function yb(t){return null!==t&&(t<0||32===t)}function bb(t){return-2===t||-1===t||32===t}const xb=kb(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),wb=kb(/\s/);function kb(t){return function(e){return null!==e&&t.test(String.fromCharCode(e))}}function Eb(t,e,i,n){const r=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(bb(n))return t.enter(i),s(n);return e(n)};function s(n){return bb(n)&&o++<r?(t.consume(n),s):(t.exit(i),e(n))}}const Nb={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,function(i){if(null===i)return void t.consume(i);return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Eb(t,e,"linePrefix")},function(e){return t.enter("paragraph"),n(e)});let i;return e;function n(e){const n=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=n),i=n,r(e)}function r(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):vb(e)?(t.consume(e),t.exit("chunkText"),n):(t.consume(e),r)}}};const Tb={tokenize:function(t){const e=this,i=[];let n,r,o,s=0;return a;function a(n){if(s<i.length){const r=i[s];return e.containerState=r[1],t.attempt(r[0].continuation,l,h)(n)}return h(n)}function l(t){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,n&&y();const i=e.events.length;let r,o=i;for(;o--;)if("exit"===e.events[o][0]&&"chunkFlow"===e.events[o][1].type){r=e.events[o][1].end;break}v(s);let a=i;for(;a<e.events.length;)e.events[a][1].end=Object.assign({},r),a++;return ob(e.events,o+1,0,e.events.slice(i)),e.events.length=a,h(t)}return a(t)}function h(r){if(s===i.length){if(!n)return u(r);if(n.currentConstruct&&n.currentConstruct.concrete)return p(r);e.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(_b,d,c)(r)}function d(t){return n&&y(),v(s),u(t)}function c(t){return e.parser.lazy[e.now().line]=s!==i.length,o=e.now().offset,p(t)}function u(i){return e.containerState={},t.attempt(_b,f,p)(i)}function f(t){return s++,i.push([e.currentConstruct,e.containerState]),u(t)}function p(i){return null===i?(n&&y(),v(0),void t.consume(i)):(n=n||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:r,_tokenizer:n}),m(i))}function m(i){return null===i?(g(t.exit("chunkFlow"),!0),v(0),void t.consume(i)):vb(i)?(t.consume(i),g(t.exit("chunkFlow")),s=0,e.interrupt=void 0,a):(t.consume(i),m)}function g(t,i){const a=e.sliceStream(t);if(i&&a.push(null),t.previous=r,r&&(r.next=t),r=t,n.defineSkip(t.start),n.write(a),e.parser.lazy[t.start.line]){let t=n.events.length;for(;t--;)if(n.events[t][1].start.offset<o&&(!n.events[t][1].end||n.events[t][1].end.offset>o))return;const i=e.events.length;let r,a,l=i;for(;l--;)if("exit"===e.events[l][0]&&"chunkFlow"===e.events[l][1].type){if(r){a=e.events[l][1].end;break}r=!0}for(v(s),t=i;t<e.events.length;)e.events[t][1].end=Object.assign({},a),t++;ob(e.events,l+1,0,e.events.slice(i)),e.events.length=t}}function v(n){let r=i.length;for(;r-- >n;){const n=i[r];e.containerState=n[1],n[0].exit.call(e,t)}i.length=n}function y(){n.write([null]),r=void 0,n=void 0,e.containerState._closeFlow=void 0}}},_b={tokenize:function(t,e,i){return Eb(t,t.attempt(this.parser.constructs.document,e,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Cb={tokenize:function(t,e,i){return function(e){return bb(e)?Eb(t,n,"linePrefix")(e):n(e)};function n(t){return null===t||vb(t)?e(t):i(t)}},partial:!0};function Sb(t){const e={};let i,n,r,o,s,a,l,h=-1;for(;++h<t.length;){for(;h in e;)h=e[h];if(i=t[h],h&&"chunkFlow"===i[1].type&&"listItemPrefix"===t[h-1][1].type&&(a=i[1]._tokenizer.events,r=0,r<a.length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===i[0])i[1].contentType&&(Object.assign(e,Mb(t,h)),h=e[h],l=!0);else if(i[1]._container){for(r=h,n=void 0;r--&&(o=t[r],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(t[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=r);n&&(i[1].end=Object.assign({},t[n][1].start),s=t.slice(n,h),s.unshift(i),ob(t,n,h-n+1,s))}}return!l}function Mb(t,e){const i=t[e][1],n=t[e][2];let r=e-1;const o=[],s=i._tokenizer||n.parser[i.contentType](i.start),a=s.events,l=[],h={};let d,c,u=-1,f=i,p=0,m=0;const g=[m];for(;f;){for(;t[++r][1]!==f;);o.push(r),f._tokenizer||(d=n.sliceStream(f),f.next||d.push(null),c&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=i;++u<a.length;)"exit"===a[u][0]&&"enter"===a[u-1][0]&&a[u][1].type===a[u-1][1].type&&a[u][1].start.line!==a[u][1].end.line&&(m=u+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),u=g.length;u--;){const e=a.slice(g[u],g[u+1]),i=o.pop();l.unshift([i,i+e.length-1]),ob(t,i,2,e)}for(u=-1;++u<l.length;)h[p+l[u][0]]=p+l[u][1],p+=l[u][1]-l[u][0]-1;return h}const Ab={tokenize:function(t,e){let i;return function(e){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),n(e)};function n(e){return null===e?r(e):vb(e)?t.check(zb,o,r)(e):(t.consume(e),n)}function r(i){return t.exit("chunkContent"),t.exit("content"),e(i)}function o(e){return t.consume(e),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,n}},resolve:function(t){return Sb(t),t}},zb={tokenize:function(t,e,i){const n=this;return function(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Eb(t,r,"linePrefix")};function r(r){if(null===r||vb(r))return i(r);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(r):t.interrupt(n.parser.constructs.flow,i,e)(r)}},partial:!0};const Lb={tokenize:function(t){const e=this,i=t.attempt(Cb,function(n){if(null===n)return void t.consume(n);return t.enter("lineEndingBlank"),t.consume(n),t.exit("lineEndingBlank"),e.currentConstruct=void 0,i},t.attempt(this.parser.constructs.flowInitial,n,Eb(t,t.attempt(this.parser.constructs.flow,n,t.attempt(Ab,n)),"linePrefix")));return i;function n(n){if(null!==n)return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),e.currentConstruct=void 0,i;t.consume(n)}}};const Ob={resolveAll:Ib()},Fb=Rb("string"),Db=Rb("text");function Rb(t){return{tokenize:function(e){const i=this,n=this.parser.constructs[t],r=e.attempt(n,o,s);return o;function o(t){return l(t)?r(t):s(t)}function s(t){if(null!==t)return e.enter("data"),e.consume(t),a;e.consume(t)}function a(t){return l(t)?(e.exit("data"),r(t)):(e.consume(t),a)}function l(t){if(null===t)return!0;const e=n[t];let r=-1;if(e)for(;++r<e.length;){const t=e[r];if(!t.previous||t.previous.call(i,i.previous))return!0}return!1}},resolveAll:Ib("text"===t?qb:void 0)}}function Ib(t){return function(e,i){let n,r=-1;for(;++r<=e.length;)void 0===n?e[r]&&"data"===e[r][1].type&&(n=r,r++):e[r]&&"data"===e[r][1].type||(r!==n+2&&(e[n][1].end=e[r-1][1].end,e.splice(n+2,r-n-2),r=n+2),n=void 0);return t?t(e,i):e}}function qb(t,e){let i=0;for(;++i<=t.length;)if((i===t.length||"lineEnding"===t[i][1].type)&&"data"===t[i-1][1].type){const n=t[i-1][1],r=e.sliceStream(n);let o,s=r.length,a=-1,l=0;for(;s--;){const t=r[s];if("string"==typeof t){for(a=t.length;32===t.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===t)o=!0,l++;else if(-1!==t){s++;break}}if(l){const r={type:i===t.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-l,offset:n.end.offset-l,_index:n.start._index+s,_bufferIndex:s?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},r.start),n.start.offset===n.end.offset?Object.assign(n,r):(t.splice(i,0,["enter",r,e],["exit",r,e]),i+=2)}i++}return t}function Bb(t,e,i){const n=[];let r=-1;for(;++r<t.length;){const o=t[r].resolveAll;o&&!n.includes(o)&&(e=o(e,i),n.push(o))}return e}function Pb(t,e,i){let n=Object.assign(i?Object.assign({},i):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const r={},o=[];let s=[],a=[],l=!0;const h={consume:function(t){vb(t)?(n.line++,n.column=1,n.offset+=-3===t?2:1,x()):-1!==t&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++));d.previous=t,l=!0},enter:function(t,e){const i=e||{};return i.type=t,i.start=p(),d.events.push(["enter",i,d]),a.push(i),i},exit:function(t){const e=a.pop();return e.end=p(),d.events.push(["exit",e,d]),e},attempt:y(function(t,e){b(t,e.from)}),check:y(v),interrupt:y(v,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:f,sliceSerialize:function(t,e){return function(t,e){let i=-1;const n=[];let r;for(;++i<t.length;){const o=t[i];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=e?" ":"\t";break;case-1:if(!e&&r)continue;s=" ";break;default:s=String.fromCharCode(o)}r=-2===o,n.push(s)}return n.join("")}(f(t),e)},now:p,defineSkip:function(t){r[t.line]=t.column,x()},write:function(t){if(s=sb(s,t),m(),null!==s[s.length-1])return[];return b(e,0),d.events=Bb(o,d.events,d),d.events}};let c,u=e.tokenize.call(d,h);return e.resolveAll&&o.push(e),d;function f(t){return function(t,e){const i=e.start._index,n=e.start._bufferIndex,r=e.end._index,o=e.end._bufferIndex;let s;if(i===r)s=[t[i].slice(n,o)];else{if(s=t.slice(i,r),n>-1){const t=s[0];"string"==typeof t?s[0]=t.slice(n):s.shift()}o>0&&s.push(t[r].slice(0,o))}return s}(s,t)}function p(){const{line:t,column:e,offset:i,_index:r,_bufferIndex:o}=n;return{line:t,column:e,offset:i,_index:r,_bufferIndex:o}}function m(){let t;for(;n._index<s.length;){const e=s[n._index];if("string"==typeof e)for(t=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===t&&n._bufferIndex<e.length;)g(e.charCodeAt(n._bufferIndex));else g(e)}}function g(t){l=void 0,c=t,u=u(t)}function v(t,e){e.restore()}function y(t,e){return function(i,r,o){let s,c,u,f;return Array.isArray(i)?m(i):"tokenize"in i?m([i]):function(t){return e;function e(e){const i=null!==e&&t[e],n=null!==e&&t.null;return m([...Array.isArray(i)?i:i?[i]:[],...Array.isArray(n)?n:n?[n]:[]])(e)}}(i);function m(t){return s=t,c=0,0===t.length?o:g(t[c])}function g(t){return function(i){f=function(){const t=p(),e=d.previous,i=d.currentConstruct,r=d.events.length,o=Array.from(a);return{restore:s,from:r};function s(){n=t,d.previous=e,d.currentConstruct=i,d.events.length=r,a=o,x()}}(),u=t,t.partial||(d.currentConstruct=t);if(t.name&&d.parser.constructs.disable.null.includes(t.name))return y(i);return t.tokenize.call(e?Object.assign(Object.create(d),e):d,h,v,y)(i)}}function v(e){return l=!0,t(u,f),r}function y(t){return l=!0,f.restore(),++c<s.length?g(s[c]):o}}}function b(t,e){t.resolveAll&&!o.includes(t)&&o.push(t),t.resolve&&ob(d.events,e,d.events.length-e,t.resolve(d.events.slice(e),d)),t.resolveTo&&(d.events=t.resolveTo(d.events,d))}function x(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}const Ub={name:"thematicBreak",tokenize:function(t,e,i){let n,r=0;return function(e){return t.enter("thematicBreak"),function(t){return n=t,o(t)}(e)};function o(o){return o===n?(t.enter("thematicBreakSequence"),s(o)):r>=3&&(null===o||vb(o))?(t.exit("thematicBreak"),e(o)):i(o)}function s(e){return e===n?(t.consume(e),r++,s):(t.exit("thematicBreakSequence"),bb(e)?Eb(t,o,"whitespace")(e):o(e))}}};const jb={name:"list",tokenize:function(t,e,i){const n=this,r=n.events[n.events.length-1];let o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=0;return function(e){const r=n.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===r?!n.containerState.marker||e===n.containerState.marker:pb(e)){if(n.containerState.type||(n.containerState.type=r,t.enter(r,{_container:!0})),"listUnordered"===r)return t.enter("listItemPrefix"),42===e||45===e?t.check(Ub,i,l)(e):l(e);if(!n.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(e)}return i(e)};function a(e){return pb(e)&&++s<10?(t.consume(e),a):(!n.interrupt||s<2)&&(n.containerState.marker?e===n.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),l(e)):i(e)}function l(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||e,t.check(Cb,n.interrupt?i:h,t.attempt(Hb,c,d))}function h(t){return n.containerState.initialBlankLine=!0,o++,c(t)}function d(e){return bb(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),c):i(e)}function c(i){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(i)}},continuation:{tokenize:function(t,e,i){const n=this;return n.containerState._closeFlow=void 0,t.check(Cb,function(i){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Eb(t,e,"listItemIndent",n.containerState.size+1)(i)},function(i){if(n.containerState.furtherBlankLines||!bb(i))return n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,r(i);return n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Wb,e,r)(i)});function r(r){return n.containerState._closeFlow=!0,n.interrupt=void 0,Eb(t,t.attempt(jb,e,i),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(t){t.exit(this.containerState.type)}},Hb={tokenize:function(t,e,i){const n=this;return Eb(t,function(t){const r=n.events[n.events.length-1];return!bb(t)&&r&&"listItemPrefixWhitespace"===r[1].type?e(t):i(t)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Wb={tokenize:function(t,e,i){const n=this;return Eb(t,function(t){const r=n.events[n.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===n.containerState.size?e(t):i(t)},"listItemIndent",n.containerState.size+1)},partial:!0};const Vb={name:"blockQuote",tokenize:function(t,e,i){const n=this;return function(e){if(62===e){const i=n.containerState;return i.open||(t.enter("blockQuote",{_container:!0}),i.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),r}return i(e)};function r(i){return bb(i)?(t.enter("blockQuotePrefixWhitespace"),t.consume(i),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(i))}},continuation:{tokenize:function(t,e,i){const n=this;return function(e){if(bb(e))return Eb(t,r,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e);return r(e)};function r(n){return t.attempt(Vb,e,i)(n)}}},exit:function(t){t.exit("blockQuote")}};function Kb(t,e,i,n,r,o,s,a,l){const h=l||Number.POSITIVE_INFINITY;let d=0;return function(e){if(60===e)return t.enter(n),t.enter(r),t.enter(o),t.consume(e),t.exit(o),c;if(null===e||32===e||41===e||fb(e))return i(e);return t.enter(n),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),p(e)};function c(i){return 62===i?(t.enter(o),t.consume(i),t.exit(o),t.exit(r),t.exit(n),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),u(i))}function u(e){return 62===e?(t.exit("chunkString"),t.exit(a),c(e)):null===e||60===e||vb(e)?i(e):(t.consume(e),92===e?f:u)}function f(e){return 60===e||62===e||92===e?(t.consume(e),u):u(e)}function p(r){return d||null!==r&&41!==r&&!yb(r)?d<h&&40===r?(t.consume(r),d++,p):41===r?(t.consume(r),d--,p):null===r||32===r||40===r||fb(r)?i(r):(t.consume(r),92===r?m:p):(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(n),e(r))}function m(e){return 40===e||41===e||92===e?(t.consume(e),p):p(e)}}function Gb(t,e,i,n,r,o){const s=this;let a,l=0;return function(e){return t.enter(n),t.enter(r),t.consume(e),t.exit(r),t.enter(o),h};function h(c){return l>999||null===c||91===c||93===c&&!a||94===c&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?i(c):93===c?(t.exit(o),t.enter(r),t.consume(c),t.exit(r),t.exit(n),e):vb(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),d(c))}function d(e){return null===e||91===e||93===e||vb(e)||l++>999?(t.exit("chunkString"),h(e)):(t.consume(e),a||(a=!bb(e)),92===e?c:d)}function c(e){return 91===e||92===e||93===e?(t.consume(e),l++,d):d(e)}}function Xb(t,e,i,n,r,o){let s;return function(e){if(34===e||39===e||40===e)return t.enter(n),t.enter(r),t.consume(e),t.exit(r),s=40===e?41:e,a;return i(e)};function a(i){return i===s?(t.enter(r),t.consume(i),t.exit(r),t.exit(n),e):(t.enter(o),l(i))}function l(e){return e===s?(t.exit(o),a(s)):null===e?i(e):vb(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Eb(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(e))}function h(e){return e===s||null===e||vb(e)?(t.exit("chunkString"),l(e)):(t.consume(e),92===e?d:h)}function d(e){return e===s||92===e?(t.consume(e),h):h(e)}}function Yb(t,e){let i;return function n(r){if(vb(r))return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),i=!0,n;if(bb(r))return Eb(t,n,i?"linePrefix":"lineSuffix")(r);return e(r)}}function Zb(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qb={name:"definition",tokenize:function(t,e,i){const n=this;let r;return function(e){return t.enter("definition"),function(e){return Gb.call(n,t,o,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function o(e){return r=Zb(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),s):i(e)}function s(e){return yb(e)?Yb(t,a)(e):a(e)}function a(e){return Kb(t,l,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function l(e){return t.attempt(Jb,h,h)(e)}function h(e){return bb(e)?Eb(t,d,"whitespace")(e):d(e)}function d(o){return null===o||vb(o)?(t.exit("definition"),n.parser.defined.push(r),e(o)):i(o)}}},Jb={tokenize:function(t,e,i){return function(e){return yb(e)?Yb(t,n)(e):i(e)};function n(e){return Xb(t,r,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function r(e){return bb(e)?Eb(t,o,"whitespace")(e):o(e)}function o(t){return null===t||vb(t)?e(t):i(t)}},partial:!0};const $b={name:"codeIndented",tokenize:function(t,e,i){const n=this;return function(e){return t.enter("codeIndented"),Eb(t,r,"linePrefix",5)(e)};function r(t){const e=n.events[n.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):i(t)}function o(e){return null===e?a(e):vb(e)?t.attempt(tx,o,a)(e):(t.enter("codeFlowValue"),s(e))}function s(e){return null===e||vb(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),s)}function a(i){return t.exit("codeIndented"),e(i)}}},tx={tokenize:function(t,e,i){const n=this;return r;function r(e){return n.parser.lazy[n.now().line]?i(e):vb(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r):Eb(t,o,"linePrefix",5)(e)}function o(t){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):vb(t)?r(t):i(t)}},partial:!0};const ex={name:"headingAtx",tokenize:function(t,e,i){let n=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),r(e)}(e)};function r(e){return 35===e&&n++<6?(t.consume(e),r):null===e||yb(e)?(t.exit("atxHeadingSequence"),o(e)):i(e)}function o(i){return 35===i?(t.enter("atxHeadingSequence"),s(i)):null===i||vb(i)?(t.exit("atxHeading"),e(i)):bb(i)?Eb(t,o,"whitespace")(i):(t.enter("atxHeadingText"),a(i))}function s(e){return 35===e?(t.consume(e),s):(t.exit("atxHeadingSequence"),o(e))}function a(e){return null===e||35===e||yb(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),a)}},resolve:function(t,e){let i,n,r=t.length-2,o=3;"whitespace"===t[o][1].type&&(o+=2);r-2>o&&"whitespace"===t[r][1].type&&(r-=2);"atxHeadingSequence"===t[r][1].type&&(o===r-1||r-4>o&&"whitespace"===t[r-2][1].type)&&(r-=o+1===r?2:4);r>o&&(i={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},n={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},ob(t,o,r-o+1,[["enter",i,e],["enter",n,e],["exit",n,e],["exit",i,e]]));return t}};const ix={name:"setextUnderline",tokenize:function(t,e,i){const n=this;let r;return function(e){let s,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){s="paragraph"===n.events[a][1].type;break}if(!n.parser.lazy[n.now().line]&&(n.interrupt||s))return t.enter("setextHeadingLine"),r=e,function(e){return t.enter("setextHeadingLineSequence"),o(e)}(e);return i(e)};function o(e){return e===r?(t.consume(e),o):(t.exit("setextHeadingLineSequence"),bb(e)?Eb(t,s,"lineSuffix")(e):s(e))}function s(n){return null===n||vb(n)?(t.exit("setextHeadingLine"),e(n)):i(n)}},resolveTo:function(t,e){let i,n,r,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){i=o;break}"paragraph"===t[o][1].type&&(n=o)}else"content"===t[o][1].type&&t.splice(o,1),r||"definition"!==t[o][1].type||(r=o);const s={type:"setextHeading",start:Object.assign({},t[n][1].start),end:Object.assign({},t[t.length-1][1].end)};t[n][1].type="setextHeadingText",r?(t.splice(n,0,["enter",s,e]),t.splice(r+1,0,["exit",t[i][1],e]),t[i][1].end=Object.assign({},t[r][1].end)):t[i][1]=s;return t.push(["exit",s,e]),t}};const nx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rx=["pre","script","style","textarea"],ox={name:"htmlFlow",tokenize:function(t,e,i){const n=this;let r,o,s,a,l;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),h}(e)};function h(a){return 33===a?(t.consume(a),d):47===a?(t.consume(a),o=!0,f):63===a?(t.consume(a),r=3,n.interrupt?e:F):db(a)?(t.consume(a),s=String.fromCharCode(a),p):i(a)}function d(o){return 45===o?(t.consume(o),r=2,c):91===o?(t.consume(o),r=5,a=0,u):db(o)?(t.consume(o),r=4,n.interrupt?e:F):i(o)}function c(r){return 45===r?(t.consume(r),n.interrupt?e:F):i(r)}function u(r){const o="CDATA[";return r===o.charCodeAt(a++)?(t.consume(r),6===a?n.interrupt?e:_:u):i(r)}function f(e){return db(e)?(t.consume(e),s=String.fromCharCode(e),p):i(e)}function p(a){if(null===a||47===a||62===a||yb(a)){const l=47===a,h=s.toLowerCase();return l||o||!rx.includes(h)?nx.includes(s.toLowerCase())?(r=6,l?(t.consume(a),m):n.interrupt?e(a):_(a)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?i(a):o?g(a):v(a)):(r=1,n.interrupt?e(a):_(a))}return 45===a||cb(a)?(t.consume(a),s+=String.fromCharCode(a),p):i(a)}function m(r){return 62===r?(t.consume(r),n.interrupt?e:_):i(r)}function g(e){return bb(e)?(t.consume(e),g):N(e)}function v(e){return 47===e?(t.consume(e),N):58===e||95===e||db(e)?(t.consume(e),y):bb(e)?(t.consume(e),v):N(e)}function y(e){return 45===e||46===e||58===e||95===e||cb(e)?(t.consume(e),y):b(e)}function b(e){return 61===e?(t.consume(e),x):bb(e)?(t.consume(e),b):v(e)}function x(e){return null===e||60===e||61===e||62===e||96===e?i(e):34===e||39===e?(t.consume(e),l=e,w):bb(e)?(t.consume(e),x):k(e)}function w(e){return e===l?(t.consume(e),l=null,E):null===e||vb(e)?i(e):(t.consume(e),w)}function k(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||yb(e)?b(e):(t.consume(e),k)}function E(t){return 47===t||62===t||bb(t)?v(t):i(t)}function N(e){return 62===e?(t.consume(e),T):i(e)}function T(e){return null===e||vb(e)?_(e):bb(e)?(t.consume(e),T):i(e)}function _(e){return 45===e&&2===r?(t.consume(e),A):60===e&&1===r?(t.consume(e),z):62===e&&4===r?(t.consume(e),D):63===e&&3===r?(t.consume(e),F):93===e&&5===r?(t.consume(e),O):!vb(e)||6!==r&&7!==r?null===e||vb(e)?(t.exit("htmlFlowData"),C(e)):(t.consume(e),_):(t.exit("htmlFlowData"),t.check(sx,R,C)(e))}function C(e){return t.check(ax,S,R)(e)}function S(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),M}function M(e){return null===e||vb(e)?C(e):(t.enter("htmlFlowData"),_(e))}function A(e){return 45===e?(t.consume(e),F):_(e)}function z(e){return 47===e?(t.consume(e),s="",L):_(e)}function L(e){if(62===e){const i=s.toLowerCase();return rx.includes(i)?(t.consume(e),D):_(e)}return db(e)&&s.length<8?(t.consume(e),s+=String.fromCharCode(e),L):_(e)}function O(e){return 93===e?(t.consume(e),F):_(e)}function F(e){return 62===e?(t.consume(e),D):45===e&&2===r?(t.consume(e),F):_(e)}function D(e){return null===e||vb(e)?(t.exit("htmlFlowData"),R(e)):(t.consume(e),D)}function R(i){return t.exit("htmlFlow"),e(i)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2));return t},concrete:!0},sx={tokenize:function(t,e,i){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),t.attempt(Cb,e,i)}},partial:!0},ax={tokenize:function(t,e,i){const n=this;return function(e){if(vb(e))return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r;return i(e)};function r(t){return n.parser.lazy[n.now().line]?i(t):e(t)}},partial:!0};const lx={tokenize:function(t,e,i){const n=this;return function(e){if(null===e)return i(e);return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r};function r(t){return n.parser.lazy[n.now().line]?i(t):e(t)}},partial:!0},hx={name:"codeFenced",tokenize:function(t,e,i){const n=this,r={tokenize:function(t,e,i){let r=0;return s;function s(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),l}function l(e){return t.enter("codeFencedFence"),bb(e)?Eb(t,h,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):h(e)}function h(e){return e===o?(t.enter("codeFencedFenceSequence"),d(e)):i(e)}function d(e){return e===o?(r++,t.consume(e),d):r>=a?(t.exit("codeFencedFenceSequence"),bb(e)?Eb(t,c,"whitespace")(e):c(e)):i(e)}function c(n){return null===n||vb(n)?(t.exit("codeFencedFence"),e(n)):i(n)}},partial:!0};let o,s=0,a=0;return function(e){return function(e){const i=n.events[n.events.length-1];return s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(e)}(e)};function l(e){return e===o?(a++,t.consume(e),l):a<3?i(e):(t.exit("codeFencedFenceSequence"),bb(e)?Eb(t,h,"whitespace")(e):h(e))}function h(i){return null===i||vb(i)?(t.exit("codeFencedFence"),n.interrupt?e(i):t.check(lx,f,y)(i)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d(i))}function d(e){return null===e||vb(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),h(e)):bb(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Eb(t,c,"whitespace")(e)):96===e&&e===o?i(e):(t.consume(e),d)}function c(e){return null===e||vb(e)?h(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),u(e))}function u(e){return null===e||vb(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),h(e)):96===e&&e===o?i(e):(t.consume(e),u)}function f(e){return t.attempt(r,y,p)(e)}function p(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),m}function m(e){return s>0&&bb(e)?Eb(t,g,"linePrefix",s+1)(e):g(e)}function g(e){return null===e||vb(e)?t.check(lx,f,y)(e):(t.enter("codeFlowValue"),v(e))}function v(e){return null===e||vb(e)?(t.exit("codeFlowValue"),g(e)):(t.consume(e),v)}function y(i){return t.exit("codeFenced"),e(i)}},concrete:!0};const dx=document.createElement("i");function cx(t){const e="&"+t+";";dx.innerHTML=e;const i=dx.textContent;return(59!==i.charCodeAt(i.length-1)||"semi"===t)&&(i!==e&&i)}const ux={name:"characterReference",tokenize:function(t,e,i){const n=this;let r,o,s=0;return function(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),a};function a(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),r=31,o=cb,h(e))}function l(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),r=6,o=mb,h):(t.enter("characterReferenceValue"),r=7,o=pb,h(e))}function h(a){if(59===a&&s){const r=t.exit("characterReferenceValue");return o!==cb||cx(n.sliceSerialize(r))?(t.enter("characterReferenceMarker"),t.consume(a),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):i(a)}return o(a)&&s++<r?(t.consume(a),h):i(a)}}};const fx={name:"characterEscape",tokenize:function(t,e,i){return function(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),n};function n(n){return gb(n)?(t.enter("characterEscapeValue"),t.consume(n),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):i(n)}}};const px={name:"lineEnding",tokenize:function(t,e){return function(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Eb(t,e,"linePrefix")}}};const mx={name:"labelEnd",tokenize:function(t,e,i){const n=this;let r,o,s=n.events.length;for(;s--;)if(("labelImage"===n.events[s][1].type||"labelLink"===n.events[s][1].type)&&!n.events[s][1]._balanced){r=n.events[s][1];break}return function(e){if(!r)return i(e);if(r._inactive)return d(e);return o=n.parser.defined.includes(Zb(n.sliceSerialize({start:r.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),a};function a(e){return 40===e?t.attempt(gx,h,o?h:d)(e):91===e?t.attempt(vx,h,o?l:d)(e):o?h(e):d(e)}function l(e){return t.attempt(yx,h,d)(e)}function h(t){return e(t)}function d(t){return r._balanced=!0,i(t)}},resolveTo:function(t,e){let i,n,r,o,s=t.length,a=0;for(;s--;)if(i=t[s][1],n){if("link"===i.type||"labelLink"===i.type&&i._inactive)break;"enter"===t[s][0]&&"labelLink"===i.type&&(i._inactive=!0)}else if(r){if("enter"===t[s][0]&&("labelImage"===i.type||"labelLink"===i.type)&&!i._balanced&&(n=s,"labelLink"!==i.type)){a=2;break}}else"labelEnd"===i.type&&(r=s);const l={type:"labelLink"===t[n][1].type?"link":"image",start:Object.assign({},t[n][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[n][1].start),end:Object.assign({},t[r][1].end)},d={type:"labelText",start:Object.assign({},t[n+a+2][1].end),end:Object.assign({},t[r-2][1].start)};return o=[["enter",l,e],["enter",h,e]],o=sb(o,t.slice(n+1,n+a+3)),o=sb(o,[["enter",d,e]]),o=sb(o,Bb(e.parser.constructs.insideSpan.null,t.slice(n+a+4,r-3),e)),o=sb(o,[["exit",d,e],t[r-2],t[r-1],["exit",h,e]]),o=sb(o,t.slice(r+1)),o=sb(o,[["exit",l,e]]),ob(t,n,t.length,o),t},resolveAll:function(t){let e=-1;for(;++e<t.length;){const i=t[e][1];"labelImage"!==i.type&&"labelLink"!==i.type&&"labelEnd"!==i.type||(t.splice(e+1,"labelImage"===i.type?4:2),i.type="data",e++)}return t}},gx={tokenize:function(t,e,i){return function(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),n};function n(e){return yb(e)?Yb(t,r)(e):r(e)}function r(e){return 41===e?h(e):Kb(t,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function o(e){return yb(e)?Yb(t,a)(e):h(e)}function s(t){return i(t)}function a(e){return 34===e||39===e||40===e?Xb(t,l,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):h(e)}function l(e){return yb(e)?Yb(t,h)(e):h(e)}function h(n){return 41===n?(t.enter("resourceMarker"),t.consume(n),t.exit("resourceMarker"),t.exit("resource"),e):i(n)}}},vx={tokenize:function(t,e,i){const n=this;return function(e){return Gb.call(n,t,r,o,"reference","referenceMarker","referenceString")(e)};function r(t){return n.parser.defined.includes(Zb(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(t):i(t)}function o(t){return i(t)}}},yx={tokenize:function(t,e,i){return function(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),n};function n(n){return 93===n?(t.enter("referenceMarker"),t.consume(n),t.exit("referenceMarker"),t.exit("reference"),e):i(n)}}};const bx={name:"labelStartImage",tokenize:function(t,e,i){const n=this;return function(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),r};function r(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):i(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in n.parser.constructs?i(t):e(t)}},resolveAll:mx.resolveAll};function xx(t){return null===t||yb(t)||wb(t)?1:xb(t)?2:void 0}const wx={name:"attention",tokenize:function(t,e){const i=this.parser.constructs.attentionMarkers.null,n=this.previous,r=xx(n);let o;return function(e){return o=e,t.enter("attentionSequence"),s(e)};function s(a){if(a===o)return t.consume(a),s;const l=t.exit("attentionSequence"),h=xx(a),d=!h||2===h&&r||i.includes(a),c=!r||2===r&&h||i.includes(n);return l._open=Boolean(42===o?d:d&&(r||!c)),l._close=Boolean(42===o?c:c&&(h||!d)),e(a)}},resolveAll:function(t,e){let i,n,r,o,s,a,l,h,d=-1;for(;++d<t.length;)if("enter"===t[d][0]&&"attentionSequence"===t[d][1].type&&t[d][1]._close)for(i=d;i--;)if("exit"===t[i][0]&&"attentionSequence"===t[i][1].type&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[d][1]).charCodeAt(0)){if((t[i][1]._close||t[d][1]._open)&&(t[d][1].end.offset-t[d][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[d][1].end.offset-t[d][1].start.offset)%3))continue;a=t[i][1].end.offset-t[i][1].start.offset>1&&t[d][1].end.offset-t[d][1].start.offset>1?2:1;const c=Object.assign({},t[i][1].end),u=Object.assign({},t[d][1].start);kx(c,-a),kx(u,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},t[i][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[d][1].start),end:u},r={type:a>1?"strongText":"emphasisText",start:Object.assign({},t[i][1].end),end:Object.assign({},t[d][1].start)},n={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},t[i][1].end=Object.assign({},o.start),t[d][1].start=Object.assign({},s.end),l=[],t[i][1].end.offset-t[i][1].start.offset&&(l=sb(l,[["enter",t[i][1],e],["exit",t[i][1],e]])),l=sb(l,[["enter",n,e],["enter",o,e],["exit",o,e],["enter",r,e]]),l=sb(l,Bb(e.parser.constructs.insideSpan.null,t.slice(i+1,d),e)),l=sb(l,[["exit",r,e],["enter",s,e],["exit",s,e],["exit",n,e]]),t[d][1].end.offset-t[d][1].start.offset?(h=2,l=sb(l,[["enter",t[d][1],e],["exit",t[d][1],e]])):h=0,ob(t,i-1,d-i+3,l),d=i+l.length-h-2;break}d=-1;for(;++d<t.length;)"attentionSequence"===t[d][1].type&&(t[d][1].type="data");return t}};function kx(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Ex={name:"autolink",tokenize:function(t,e,i){let n=0;return function(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),r};function r(e){return db(e)?(t.consume(e),o):l(e)}function o(t){return 43===t||45===t||46===t||cb(t)?(n=1,s(t)):l(t)}function s(e){return 58===e?(t.consume(e),n=0,a):(43===e||45===e||46===e||cb(e))&&n++<32?(t.consume(e),s):(n=0,l(e))}function a(n){return 62===n?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e):null===n||32===n||60===n||fb(n)?i(n):(t.consume(n),a)}function l(e){return 64===e?(t.consume(e),h):ub(e)?(t.consume(e),l):i(e)}function h(t){return cb(t)?d(t):i(t)}function d(i){return 46===i?(t.consume(i),n=0,h):62===i?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(i),t.exit("autolinkMarker"),t.exit("autolink"),e):c(i)}function c(e){if((45===e||cb(e))&&n++<63){const i=45===e?c:d;return t.consume(e),i}return i(e)}}};const Nx={name:"htmlText",tokenize:function(t,e,i){const n=this;let r,o,s;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),a};function a(e){return 33===e?(t.consume(e),l):47===e?(t.consume(e),x):63===e?(t.consume(e),y):db(e)?(t.consume(e),E):i(e)}function l(e){return 45===e?(t.consume(e),h):91===e?(t.consume(e),o=0,f):db(e)?(t.consume(e),v):i(e)}function h(e){return 45===e?(t.consume(e),u):i(e)}function d(e){return null===e?i(e):45===e?(t.consume(e),c):vb(e)?(s=d,L(e)):(t.consume(e),d)}function c(e){return 45===e?(t.consume(e),u):d(e)}function u(t){return 62===t?z(t):45===t?c(t):d(t)}function f(e){const n="CDATA[";return e===n.charCodeAt(o++)?(t.consume(e),6===o?p:f):i(e)}function p(e){return null===e?i(e):93===e?(t.consume(e),m):vb(e)?(s=p,L(e)):(t.consume(e),p)}function m(e){return 93===e?(t.consume(e),g):p(e)}function g(e){return 62===e?z(e):93===e?(t.consume(e),g):p(e)}function v(e){return null===e||62===e?z(e):vb(e)?(s=v,L(e)):(t.consume(e),v)}function y(e){return null===e?i(e):63===e?(t.consume(e),b):vb(e)?(s=y,L(e)):(t.consume(e),y)}function b(t){return 62===t?z(t):y(t)}function x(e){return db(e)?(t.consume(e),w):i(e)}function w(e){return 45===e||cb(e)?(t.consume(e),w):k(e)}function k(e){return vb(e)?(s=k,L(e)):bb(e)?(t.consume(e),k):z(e)}function E(e){return 45===e||cb(e)?(t.consume(e),E):47===e||62===e||yb(e)?N(e):i(e)}function N(e){return 47===e?(t.consume(e),z):58===e||95===e||db(e)?(t.consume(e),T):vb(e)?(s=N,L(e)):bb(e)?(t.consume(e),N):z(e)}function T(e){return 45===e||46===e||58===e||95===e||cb(e)?(t.consume(e),T):_(e)}function _(e){return 61===e?(t.consume(e),C):vb(e)?(s=_,L(e)):bb(e)?(t.consume(e),_):N(e)}function C(e){return null===e||60===e||61===e||62===e||96===e?i(e):34===e||39===e?(t.consume(e),r=e,S):vb(e)?(s=C,L(e)):bb(e)?(t.consume(e),C):(t.consume(e),M)}function S(e){return e===r?(t.consume(e),r=void 0,A):null===e?i(e):vb(e)?(s=S,L(e)):(t.consume(e),S)}function M(e){return null===e||34===e||39===e||60===e||61===e||96===e?i(e):47===e||62===e||yb(e)?N(e):(t.consume(e),M)}function A(t){return 47===t||62===t||yb(t)?N(t):i(t)}function z(n){return 62===n?(t.consume(n),t.exit("htmlTextData"),t.exit("htmlText"),e):i(n)}function L(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),O}function O(e){return bb(e)?Eb(t,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):F(e)}function F(e){return t.enter("htmlTextData"),s(e)}}};const Tx={name:"labelStartLink",tokenize:function(t,e,i){const n=this;return function(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),r};function r(t){return 94===t&&"_hiddenFootnoteSupport"in n.parser.constructs?i(t):e(t)}},resolveAll:mx.resolveAll};const _x={name:"hardBreakEscape",tokenize:function(t,e,i){return function(e){return t.enter("hardBreakEscape"),t.consume(e),n};function n(n){return vb(n)?(t.exit("hardBreakEscape"),e(n)):i(n)}}};const Cx={name:"codeText",tokenize:function(t,e,i){let n,r,o=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),s(e)};function s(e){return 96===e?(t.consume(e),o++,s):(t.exit("codeTextSequence"),a(e))}function a(e){return null===e?i(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),a):96===e?(r=t.enter("codeTextSequence"),n=0,h(e)):vb(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a):(t.enter("codeTextData"),l(e))}function l(e){return null===e||32===e||96===e||vb(e)?(t.exit("codeTextData"),a(e)):(t.consume(e),l)}function h(i){return 96===i?(t.consume(i),n++,h):n===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(i)):(r.type="codeTextData",l(i))}},resolve:function(t){let e,i,n=t.length-4,r=3;if(!("lineEnding"!==t[r][1].type&&"space"!==t[r][1].type||"lineEnding"!==t[n][1].type&&"space"!==t[n][1].type))for(e=r;++e<n;)if("codeTextData"===t[e][1].type){t[r][1].type="codeTextPadding",t[n][1].type="codeTextPadding",r+=2,n-=2;break}e=r-1,n++;for(;++e<=n;)void 0===i?e!==n&&"lineEnding"!==t[e][1].type&&(i=e):e!==n&&"lineEnding"!==t[e][1].type||(t[i][1].type="codeTextData",e!==i+2&&(t[i][1].end=t[e-1][1].end,t.splice(i+2,e-i-2),n-=e-i-2,e=i+2),i=void 0);return t},previous:function(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}};const Sx={42:jb,43:jb,45:jb,48:jb,49:jb,50:jb,51:jb,52:jb,53:jb,54:jb,55:jb,56:jb,57:jb,62:Vb},Mx={91:Qb},Ax={[-2]:$b,[-1]:$b,32:$b},zx={35:ex,42:Ub,45:[ix,Ub],60:ox,61:ix,95:Ub,96:hx,126:hx},Lx={38:ux,92:fx},Ox={[-5]:px,[-4]:px,[-3]:px,33:bx,38:ux,42:wx,60:[Ex,Nx],91:Tx,92:[_x,fx],93:mx,95:wx,96:Cx},Fx={null:[wx,Ob]},Dx={null:[42,95]},Rx={null:[]};function Ix(t){const e=function(t){const e={};let i=-1;for(;++i<t.length;)lb(e,t[i]);return e}([s,...(t||{}).extensions||[]]),i={defined:[],lazy:{},constructs:e,content:n(Nb),document:n(Tb),flow:n(Lb),string:n(Fb),text:n(Db)};return i;function n(t){return function(e){return Pb(i,t,e)}}}const qx=/[\0\t\n\r]/g;function Bx(t,e){const i=Number.parseInt(t,e);return i<9||11===i||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||!(65535&~i)||65534==(65535&i)||i>1114111?"�":String.fromCharCode(i)}const Px=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ux(t,e,i){if(e)return e;if(35===i.charCodeAt(0)){const t=i.charCodeAt(1),e=120===t||88===t;return Bx(i.slice(e?2:1),e?16:10)}return cx(i)||t}function jx(t){return t&&"object"==typeof t?"position"in t||"type"in t?Wx(t.position):"start"in t||"end"in t?Wx(t):"line"in t||"column"in t?Hx(t):"":""}function Hx(t){return Vx(t&&t.line)+":"+Vx(t&&t.column)}function Wx(t){return Hx(t&&t.start)+"-"+Hx(t&&t.end)}function Vx(t){return t&&"number"==typeof t?t:1}const Kx={}.hasOwnProperty,Gx=function(t,e,i){return"string"!=typeof e&&(i=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(it),autolinkProtocol:C,autolinkEmail:C,atxHeading:a(J),blockQuote:a(G),characterEscape:C,characterReference:C,codeFenced:a(X),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(X,l),codeText:a(Y,l),codeTextData:C,data:C,codeFlowValue:C,definition:a(Z),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(Q),hardBreakEscape:a($),hardBreakTrailing:a($),htmlFlow:a(tt,l),htmlFlowData:C,htmlText:a(tt,l),htmlTextData:C,image:a(et),label:l,link:a(it),listItem:a(rt),listItemValue:p,listOrdered:a(nt,f),listUnordered:a(nt),paragraph:a(ot),reference:U,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(J),strong:a(st),thematicBreak:a(lt)},exit:{atxHeading:d(),atxHeadingSequence:E,autolink:d(),autolinkEmail:K,autolinkProtocol:V,blockQuote:d(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:W,codeFenced:d(y),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:d(b),codeText:d(O),codeTextData:S,data:S,definition:d(),definitionDestinationString:k,definitionLabelString:x,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(A),hardBreakTrailing:d(A),htmlFlow:d(z),htmlFlowData:S,htmlText:d(L),htmlTextData:S,image:d(D),label:I,labelText:R,lineEnding:M,link:d(F),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:j,resourceDestinationString:q,resourceTitleString:B,resource:P,setextHeading:d(_),setextHeadingLineSequence:T,setextHeadingText:N,strong:d(),thematicBreak:d()}};Yx(e,(t||{}).mdastExtensions||[]);const i={};return n;function n(t){let i={type:"root",children:[]};const n={stack:[i],tokenStack:[],config:e,enter:h,exit:c,buffer:l,resume:u,setData:o,getData:s},a=[];let d=-1;for(;++d<t.length;)if("listOrdered"===t[d][1].type||"listUnordered"===t[d][1].type)if("enter"===t[d][0])a.push(d);else{d=r(t,a.pop(),d)}for(d=-1;++d<t.length;){const i=e[t[d][0]];Kx.call(i,t[d][1].type)&&i[t[d][1].type].call(Object.assign({sliceSerialize:t[d][2].sliceSerialize},n),t[d][1])}if(n.tokenStack.length>0){const t=n.tokenStack[n.tokenStack.length-1];(t[1]||Qx).call(n,void 0,t[0])}for(i.position={start:Xx(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:Xx(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<e.transforms.length;)i=e.transforms[d](i)||i;return i}function r(t,e,i){let n,r,o,s,a=e-1,l=-1,h=!1;for(;++a<=i;){const e=t[a];if("listUnordered"===e[1].type||"listOrdered"===e[1].type||"blockQuote"===e[1].type?("enter"===e[0]?l++:l--,s=void 0):"lineEndingBlank"===e[1].type?"enter"===e[0]&&(!n||s||l||o||(o=a),s=void 0):"linePrefix"===e[1].type||"listItemValue"===e[1].type||"listItemMarker"===e[1].type||"listItemPrefix"===e[1].type||"listItemPrefixWhitespace"===e[1].type||(s=void 0),!l&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===l&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(n){let s=a;for(r=void 0;s--;){const e=t[s];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;r&&(t[r][1].type="lineEndingBlank",h=!0),e[1].type="lineEnding",r=s}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}o&&(!r||o<r)&&(n._spread=!0),n.end=Object.assign({},r?t[r][1].start:e[1].end),t.splice(r||a,0,["exit",n,e[2]]),a++,i++}"listItemPrefix"===e[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},e[1].start),end:void 0},t.splice(a,0,["enter",n,e[2]]),a++,i++,o=void 0,s=!0)}}return t[e][1]._spread=h,i}function o(t,e){i[t]=e}function s(t){return i[t]}function a(t,e){return i;function i(i){h.call(this,t(i),i),e&&e.call(this,i)}}function l(){this.stack.push({type:"fragment",children:[]})}function h(t,e,i){return this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([e,i]),t.position={start:Xx(e.start)},t}function d(t){return e;function e(e){t&&t.call(this,e),c.call(this,e)}}function c(t,e){const i=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+t.type+"` ("+jx({start:t.start,end:t.end})+"): it’s not open");if(n[0].type!==t.type)if(e)e.call(this,t,n[0]);else{(n[1]||Qx).call(this,t,n[0])}return i.position.end=Xx(t.end),i}function u(){return function(t,e){const i=e||ib;return nb(t,"boolean"!=typeof i.includeImageAlt||i.includeImageAlt,"boolean"!=typeof i.includeHtml||i.includeHtml)}(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function p(t){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),o("expectingFirstListItemValue")}}function m(){const t=this.resume();this.stack[this.stack.length-1].lang=t}function g(){const t=this.resume();this.stack[this.stack.length-1].meta=t}function v(){s("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function b(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")}function x(t){const e=this.resume(),i=this.stack[this.stack.length-1];i.label=e,i.identifier=Zb(this.sliceSerialize(t)).toLowerCase()}function w(){const t=this.resume();this.stack[this.stack.length-1].title=t}function k(){const t=this.resume();this.stack[this.stack.length-1].url=t}function E(t){const e=this.stack[this.stack.length-1];if(!e.depth){const i=this.sliceSerialize(t).length;e.depth=i}}function N(){o("setextHeadingSlurpLineEnding",!0)}function T(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).charCodeAt(0)?1:2}function _(){o("setextHeadingSlurpLineEnding")}function C(t){const e=this.stack[this.stack.length-1];let i=e.children[e.children.length-1];i&&"text"===i.type||(i=at(),i.position={start:Xx(t.start)},e.children.push(i)),this.stack.push(i)}function S(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=Xx(t.end)}function M(t){const i=this.stack[this.stack.length-1];if(s("atHardBreak")){return i.children[i.children.length-1].position.end=Xx(t.end),void o("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&e.canContainEols.includes(i.type)&&(C.call(this,t),S.call(this,t))}function A(){o("atHardBreak",!0)}function z(){const t=this.resume();this.stack[this.stack.length-1].value=t}function L(){const t=this.resume();this.stack[this.stack.length-1].value=t}function O(){const t=this.resume();this.stack[this.stack.length-1].value=t}function F(){const t=this.stack[this.stack.length-1];if(s("inReference")){const e=s("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;o("referenceType")}function D(){const t=this.stack[this.stack.length-1];if(s("inReference")){const e=s("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;o("referenceType")}function R(t){const e=this.sliceSerialize(t),i=this.stack[this.stack.length-2];i.label=function(t){return t.replace(Px,Ux)}(e),i.identifier=Zb(e).toLowerCase()}function I(){const t=this.stack[this.stack.length-1],e=this.resume(),i=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===i.type){const e=t.children;i.children=e}else i.alt=e}function q(){const t=this.resume();this.stack[this.stack.length-1].url=t}function B(){const t=this.resume();this.stack[this.stack.length-1].title=t}function P(){o("inReference")}function U(){o("referenceType","collapsed")}function j(t){const e=this.resume(),i=this.stack[this.stack.length-1];i.label=e,i.identifier=Zb(this.sliceSerialize(t)).toLowerCase(),o("referenceType","full")}function H(t){o("characterReferenceType",t.type)}function W(t){const e=this.sliceSerialize(t),i=s("characterReferenceType");let n;if(i)n=Bx(e,"characterReferenceMarkerNumeric"===i?10:16),o("characterReferenceType");else{n=cx(e)}const r=this.stack.pop();r.value+=n,r.position.end=Xx(t.end)}function V(t){S.call(this,t);this.stack[this.stack.length-1].url=this.sliceSerialize(t)}function K(t){S.call(this,t);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)}function G(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function $(){return{type:"break"}}function tt(){return{type:"html",value:""}}function et(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function nt(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}function rt(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}}function ot(){return{type:"paragraph",children:[]}}function st(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function lt(){return{type:"thematicBreak"}}}(i)(function(t){for(;!Sb(t););return t}(Ix(i).document().write(function(){let t,e=1,i="",n=!0;return function(r,o,s){const a=[];let l,h,d,c,u;for(r=i+r.toString(o),d=0,i="",n&&(65279===r.charCodeAt(0)&&d++,n=void 0);d<r.length;){if(qx.lastIndex=d,l=qx.exec(r),c=l&&void 0!==l.index?l.index:r.length,u=r.charCodeAt(c),!l){i=r.slice(d);break}if(10===u&&d===c&&t)a.push(-3),t=void 0;else switch(t&&(a.push(-5),t=void 0),d<c&&(a.push(r.slice(d,c)),e+=c-d),u){case 0:a.push(65533),e++;break;case 9:for(h=4*Math.ceil(e/4),a.push(-2);e++<h;)a.push(-1);break;case 10:a.push(-4),e=1;break;default:t=!0,e=1}d=c+1}return s&&(t&&a.push(-5),i&&a.push(i),a.push(null)),a}}()(t,e,!0))))};function Xx(t){return{line:t.line,column:t.column,offset:t.offset}}function Yx(t,e){let i=-1;for(;++i<e.length;){const n=e[i];Array.isArray(n)?Yx(t,n):Zx(t,n)}}function Zx(t,e){let i;for(i in e)if(Kx.call(e,i))if("canContainEols"===i){const n=e[i];n&&t[i].push(...n)}else if("transforms"===i){const n=e[i];n&&t[i].push(...n)}else if("enter"===i||"exit"===i){const n=e[i];n&&Object.assign(t[i],n)}}function Qx(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+jx({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+jx({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+jx({start:e.start,end:e.end})+") is still open")}const Jx=t=>{if("list"===t.type)return"";let e="";return(t.children||[]).forEach(t=>{["inlineCode","text"].includes(t.type)?e+=t.value||"":e+=Jx(t)}),e},$x=t=>{let e=[],i=(t,e)=>{for(let n=0;n<t.length;n++){let r=t[n],o={};if(o.data={text:Jx(r)},o.children=[],e.push(o),r.children.length>1)for(let t=1;t<r.children.length;t++){let e=r.children[t];"list"===e.type&&i(e.children,o.children)}}};return i(t.children,e),e},tw={transformToMarkdown:Bf,transformMarkdownTo:t=>{const e=Gx(t);let i={children:[]},n=[i.children],r=i.children,o=[-1],s=-1;for(let t=0;t<e.children.length;t++){let i=e.children[t];if("heading"===i.type){if(!i.children[0])continue;let t={};if(t.data={text:Jx(i)},t.children=[],i.depth>s)r.push(t),n.push(t.children),r=t.children,o.push(i.depth),s=i.depth;else if(i.depth===s)n.pop(),r=n[n.length-1],o.pop(),s=o[o.length-1],r.push(t),n.push(t.children),r=t.children,o.push(i.depth),s=i.depth;else for(;o.length;)if(n.pop(),r=n[n.length-1],o.pop(),s=o[o.length-1],s<i.depth){r.push(t),n.push(t.children),r=t.children,o.push(i.depth),s=i.depth;break}}else"list"===i.type&&r.push(...$x(i))}return i.children[0]}};_r.xmind=Hr,_r.markdown=tw,_r.iconList=Vn.nodeIconList,_r.constants=n,_r.defaultTheme=r,_r.version="0.14.0-fix.3",_r.usePlugin(Sr).usePlugin(Ar).usePlugin(Kf).usePlugin(Lr).usePlugin(Vr).usePlugin(zf).usePlugin(Hf).usePlugin(Xf).usePlugin(lp).usePlugin(Ty).usePlugin(My).usePlugin(Cy).usePlugin(zy).usePlugin(Oy).usePlugin(Dy).usePlugin(Py).usePlugin(Hy).usePlugin(Ky).usePlugin(Qy).usePlugin($y).usePlugin(eb);const ew=_r},59740(t){t.exports={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}}},18990(t,e,i){var n=i(96538),r=i(58003),o=i(87348),s=i(38433);t.exports={xml2js:n,xml2json:r,js2xml:o,json2xml:s}},87348(t,e,i){var n,r,o=i(45193),s=i(59740).isArray;function a(t,e,i){return(!i&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function l(t,e,i){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,r,n));var o,s,l,h,d=[];for(o in t)t.hasOwnProperty(o)&&null!==t[o]&&void 0!==t[o]&&(h=e.noQuotesForNativeAttributes&&"string"!=typeof t[o]?"":'"',s=(s=""+t[o]).replace(/"/g,"""),l="attributeNameFn"in e?e.attributeNameFn(o,s,r,n):o,d.push(e.spaces&&e.indentAttributes?a(e,i+1,!1):" "),d.push(l+"="+h+("attributeValueFn"in e?e.attributeValueFn(s,o,r,n):s)+h));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&d.push(a(e,i,!1)),d.join("")}function h(t,e,i){return n=t,r="xml",e.ignoreDeclaration?"":"<?xml"+l(t[e.attributesKey],e,i)+"?>"}function d(t,e,i){if(e.ignoreInstruction)return"";var o;for(o in t)if(t.hasOwnProperty(o))break;var s="instructionNameFn"in e?e.instructionNameFn(o,t[o],r,n):o;if("object"==typeof t[o])return n=t,r=s,"<?"+s+l(t[o][e.attributesKey],e,i)+"?>";var a=t[o]?t[o]:"";return"instructionFn"in e&&(a=e.instructionFn(a,o,r,n)),"<?"+s+(a?" "+a:"")+"?>"}function c(t,e){return e.ignoreComment?"":"\x3c!--"+("commentFn"in e?e.commentFn(t,r,n):t)+"--\x3e"}function u(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,r,n):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,r,n):t)+">"}function p(t,e){return e.ignoreText?"":(t=(t=(t=""+t).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,r,n):t)}function m(t,e,i,o){return t.reduce(function(t,s){var h=a(e,i,o&&!t);switch(s.type){case"element":return t+h+function(t,e,i){n=t,r=t.name;var o=[],s="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;o.push("<"+s),t[e.attributesKey]&&o.push(l(t[e.attributesKey],e,i));var a=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&"preserve"===t[e.attributesKey]["xml:space"];return a||(a="fullTagEmptyElementFn"in e?e.fullTagEmptyElementFn(t.name,t):e.fullTagEmptyElement),a?(o.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(o.push(m(t[e.elementsKey],e,i+1)),n=t,r=t.name),o.push(e.spaces&&function(t,e){var i;if(t.elements&&t.elements.length)for(i=0;i<t.elements.length;++i)switch(t.elements[i][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;default:return!0}return!1}(t,e)?"\n"+Array(i+1).join(e.spaces):""),o.push("</"+s+">")):o.push("/>"),o.join("")}(s,e,i);case"comment":return t+h+c(s[e.commentKey],e);case"doctype":return t+h+f(s[e.doctypeKey],e);case"cdata":return t+(e.indentCdata?h:"")+u(s[e.cdataKey],e);case"text":return t+(e.indentText?h:"")+p(s[e.textKey],e);case"instruction":var g={};return g[s[e.nameKey]]=s[e.attributesKey]?s:s[e.instructionKey],t+(e.indentInstruction?h:"")+d(g,e,i)}},"")}function g(t,e,i){var n;for(n in t)if(t.hasOwnProperty(n))switch(n){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||i)return!0;break;case e.cdataKey:if(e.indentCdata||i)return!0;break;case e.instructionKey:if(e.indentInstruction||i)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}function v(t,e,i,o,s){n=t,r=e;var h="elementNameFn"in i?i.elementNameFn(e,t):e;if(null==t||""===t)return"fullTagEmptyElementFn"in i&&i.fullTagEmptyElementFn(e,t)||i.fullTagEmptyElement?"<"+h+"></"+h+">":"<"+h+"/>";var d=[];if(e){if(d.push("<"+h),"object"!=typeof t)return d.push(">"+p(t,i)+"</"+h+">"),d.join("");t[i.attributesKey]&&d.push(l(t[i.attributesKey],i,o));var c=g(t,i,!0)||t[i.attributesKey]&&"preserve"===t[i.attributesKey]["xml:space"];if(c||(c="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(e,t):i.fullTagEmptyElement),!c)return d.push("/>"),d.join("");d.push(">")}return d.push(y(t,i,o+1,!1)),n=t,r=e,e&&d.push((s?a(i,o,!1):"")+"</"+h+">"),d.join("")}function y(t,e,i,n){var r,o,l,m=[];for(o in t)if(t.hasOwnProperty(o))for(l=s(t[o])?t[o]:[t[o]],r=0;r<l.length;++r){switch(o){case e.declarationKey:m.push(h(l[r],e,i));break;case e.instructionKey:m.push((e.indentInstruction?a(e,i,n):"")+d(l[r],e,i));break;case e.attributesKey:case e.parentKey:break;case e.textKey:m.push((e.indentText?a(e,i,n):"")+p(l[r],e));break;case e.cdataKey:m.push((e.indentCdata?a(e,i,n):"")+u(l[r],e));break;case e.doctypeKey:m.push(a(e,i,n)+f(l[r],e));break;case e.commentKey:m.push(a(e,i,n)+c(l[r],e));break;default:m.push(a(e,i,n)+v(l[r],o,e,i,g(l[r],e)))}n=n&&!m.length}return m.join("")}t.exports=function(t,e){e=function(t){var e=o.copyOptions(t);return o.ensureFlagExists("ignoreDeclaration",e),o.ensureFlagExists("ignoreInstruction",e),o.ensureFlagExists("ignoreAttributes",e),o.ensureFlagExists("ignoreText",e),o.ensureFlagExists("ignoreComment",e),o.ensureFlagExists("ignoreCdata",e),o.ensureFlagExists("ignoreDoctype",e),o.ensureFlagExists("compact",e),o.ensureFlagExists("indentText",e),o.ensureFlagExists("indentCdata",e),o.ensureFlagExists("indentAttributes",e),o.ensureFlagExists("indentInstruction",e),o.ensureFlagExists("fullTagEmptyElement",e),o.ensureFlagExists("noQuotesForNativeAttributes",e),o.ensureSpacesExists(e),"number"==typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),o.ensureKeyExists("declaration",e),o.ensureKeyExists("instruction",e),o.ensureKeyExists("attributes",e),o.ensureKeyExists("text",e),o.ensureKeyExists("comment",e),o.ensureKeyExists("cdata",e),o.ensureKeyExists("doctype",e),o.ensureKeyExists("type",e),o.ensureKeyExists("name",e),o.ensureKeyExists("elements",e),o.checkFnExists("doctype",e),o.checkFnExists("instruction",e),o.checkFnExists("cdata",e),o.checkFnExists("comment",e),o.checkFnExists("text",e),o.checkFnExists("instructionName",e),o.checkFnExists("elementName",e),o.checkFnExists("attributeName",e),o.checkFnExists("attributeValue",e),o.checkFnExists("attributes",e),o.checkFnExists("fullTagEmptyElement",e),e}(e);var i=[];return n=t,r="_root_",e.compact?i.push(y(t,e,0,!0)):(t[e.declarationKey]&&i.push(h(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&i.push(m(t[e.elementsKey],e,0,!i.length))),i.join("")}},38433(t,e,i){var n=i(87348);t.exports=function(t,e){t instanceof Buffer&&(t=t.toString());var i=null;if("string"==typeof t)try{i=JSON.parse(t)}catch(t){throw new Error("The JSON structure is invalid")}else i=t;return n(i,e)}},45193(t,e,i){var n=i(59740).isArray;t.exports={copyOptions:function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||"number"!=typeof t.spaces&&"string"!=typeof t.spaces)&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"==typeof t.alwaysArray||n(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}},96538(t,e,i){var n,r,o=i(64043),s=i(45193),a=i(59740).isArray;function l(t){var e=Number(t);if(!isNaN(e))return e;var i=t.toLowerCase();return"true"===i||"false"!==i&&t}function h(t,e){var i;if(n.compact){if(!r[n[t+"Key"]]&&(a(n.alwaysArray)?-1!==n.alwaysArray.indexOf(n[t+"Key"]):n.alwaysArray)&&(r[n[t+"Key"]]=[]),r[n[t+"Key"]]&&!a(r[n[t+"Key"]])&&(r[n[t+"Key"]]=[r[n[t+"Key"]]]),t+"Fn"in n&&"string"==typeof e&&(e=n[t+"Fn"](e,r)),"instruction"===t&&("instructionFn"in n||"instructionNameFn"in n))for(i in e)if(e.hasOwnProperty(i))if("instructionFn"in n)e[i]=n.instructionFn(e[i],i,r);else{var o=e[i];delete e[i],e[n.instructionNameFn(i,o,r)]=o}a(r[n[t+"Key"]])?r[n[t+"Key"]].push(e):r[n[t+"Key"]]=e}else{r[n.elementsKey]||(r[n.elementsKey]=[]);var s={};if(s[n.typeKey]=t,"instruction"===t){for(i in e)if(e.hasOwnProperty(i))break;s[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(i,e,r):i,n.instructionHasAttributes?(s[n.attributesKey]=e[i][n.attributesKey],"instructionFn"in n&&(s[n.attributesKey]=n.instructionFn(s[n.attributesKey],i,r))):("instructionFn"in n&&(e[i]=n.instructionFn(e[i],i,r)),s[n.instructionKey]=e[i])}else t+"Fn"in n&&(e=n[t+"Fn"](e,r)),s[n[t+"Key"]]=e;n.addParent&&(s[n.parentKey]=r),r[n.elementsKey].push(s)}}function d(t){var e;if("attributesFn"in n&&t&&(t=n.attributesFn(t,r)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&t)for(e in t)if(t.hasOwnProperty(e)&&(n.trim&&(t[e]=t[e].trim()),n.nativeTypeAttributes&&(t[e]=l(t[e])),"attributeValueFn"in n&&(t[e]=n.attributeValueFn(t[e],e,r)),"attributeNameFn"in n)){var i=t[e];delete t[e],t[n.attributeNameFn(e,t[e],r)]=i}return t}function c(t){var e={};if(t.body&&("xml"===t.name.toLowerCase()||n.instructionHasAttributes)){for(var i,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=o.exec(t.body));)e[i[1]]=i[2]||i[3]||i[4];e=d(e)}if("xml"===t.name.toLowerCase()){if(n.ignoreDeclaration)return;r[n.declarationKey]={},Object.keys(e).length&&(r[n.declarationKey][n.attributesKey]=e),n.addParent&&(r[n.declarationKey][n.parentKey]=r)}else{if(n.ignoreInstruction)return;n.trim&&(t.body=t.body.trim());var s={};n.instructionHasAttributes&&Object.keys(e).length?(s[t.name]={},s[t.name][n.attributesKey]=e):s[t.name]=t.body,h("instruction",s)}}function u(t,e){var i;if("object"==typeof t&&(e=t.attributes,t=t.name),e=d(e),"elementNameFn"in n&&(t=n.elementNameFn(t,r)),n.compact){var o;if(i={},!n.ignoreAttributes&&e&&Object.keys(e).length)for(o in i[n.attributesKey]={},e)e.hasOwnProperty(o)&&(i[n.attributesKey][o]=e[o]);!(t in r)&&(a(n.alwaysArray)?-1!==n.alwaysArray.indexOf(t):n.alwaysArray)&&(r[t]=[]),r[t]&&!a(r[t])&&(r[t]=[r[t]]),a(r[t])?r[t].push(i):r[t]=i}else r[n.elementsKey]||(r[n.elementsKey]=[]),(i={})[n.typeKey]="element",i[n.nameKey]=t,!n.ignoreAttributes&&e&&Object.keys(e).length&&(i[n.attributesKey]=e),n.alwaysChildren&&(i[n.elementsKey]=[]),r[n.elementsKey].push(i);i[n.parentKey]=r,r=i}function f(t){n.ignoreText||(t.trim()||n.captureSpacesBetweenElements)&&(n.trim&&(t=t.trim()),n.nativeType&&(t=l(t)),n.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),h("text",t))}function p(t){n.ignoreComment||(n.trim&&(t=t.trim()),h("comment",t))}function m(t){var e=r[n.parentKey];n.addParent||delete r[n.parentKey],r=e}function g(t){n.ignoreCdata||(n.trim&&(t=t.trim()),h("cdata",t))}function v(t){n.ignoreDoctype||(t=t.replace(/^ /,""),n.trim&&(t=t.trim()),h("doctype",t))}function y(t){t.note=t}t.exports=function(t,e){var i=o.parser(!0,{}),a={};if(r=a,n=function(t){return n=s.copyOptions(t),s.ensureFlagExists("ignoreDeclaration",n),s.ensureFlagExists("ignoreInstruction",n),s.ensureFlagExists("ignoreAttributes",n),s.ensureFlagExists("ignoreText",n),s.ensureFlagExists("ignoreComment",n),s.ensureFlagExists("ignoreCdata",n),s.ensureFlagExists("ignoreDoctype",n),s.ensureFlagExists("compact",n),s.ensureFlagExists("alwaysChildren",n),s.ensureFlagExists("addParent",n),s.ensureFlagExists("trim",n),s.ensureFlagExists("nativeType",n),s.ensureFlagExists("nativeTypeAttributes",n),s.ensureFlagExists("sanitize",n),s.ensureFlagExists("instructionHasAttributes",n),s.ensureFlagExists("captureSpacesBetweenElements",n),s.ensureAlwaysArrayExists(n),s.ensureKeyExists("declaration",n),s.ensureKeyExists("instruction",n),s.ensureKeyExists("attributes",n),s.ensureKeyExists("text",n),s.ensureKeyExists("comment",n),s.ensureKeyExists("cdata",n),s.ensureKeyExists("doctype",n),s.ensureKeyExists("type",n),s.ensureKeyExists("name",n),s.ensureKeyExists("elements",n),s.ensureKeyExists("parent",n),s.checkFnExists("doctype",n),s.checkFnExists("instruction",n),s.checkFnExists("cdata",n),s.checkFnExists("comment",n),s.checkFnExists("text",n),s.checkFnExists("instructionName",n),s.checkFnExists("elementName",n),s.checkFnExists("attributeName",n),s.checkFnExists("attributeValue",n),s.checkFnExists("attributes",n),n}(e),i.opt={strictEntities:!0},i.onopentag=u,i.ontext=f,i.oncomment=p,i.onclosetag=m,i.onerror=y,i.oncdata=g,i.ondoctype=v,i.onprocessinginstruction=c,i.write(t).close(),a[n.elementsKey]){var l=a[n.elementsKey];delete a[n.elementsKey],a[n.elementsKey]=l,delete a.text}return a}},58003(t,e,i){var n=i(45193),r=i(96538);t.exports=function(t,e){var i,o,s;return i=function(t){var e=n.copyOptions(t);return n.ensureSpacesExists(e),e}(e),o=r(t,i),s="compact"in i&&i.compact?"_parent":"parent",("addParent"in i&&i.addParent?JSON.stringify(o,function(t,e){return t===s?"_":e},i.spaces):JSON.stringify(o,null,i.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}}]);
|