2 lines
465 KiB
JavaScript
Executable File
2 lines
465 KiB
JavaScript
Executable File
/*! For license information please see Charts.js.LICENSE.txt */
|
||
(()=>{var t={67526(t,e){"use strict";e.toByteArray=function(t){var e,n,o=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}(t),a=o[0],u=o[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,u)),s=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[s++]=e>>16&255,c[s++]=e>>8&255,c[s++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[s++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[s++]=e>>8&255,c[s++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,u=0,s=r-i;u<s;u+=a)o.push(c(t,u,u+a>s?s:u+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function c(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(u(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48287(t,e,n){"use strict";const r=n(67526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.INSPECT_MAX_BYTES=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,n)}function s(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=u(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=u(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),u(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=u(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(i)return r?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return F(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){let o,a=1,u=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;o<u;o++)if(s(t,o)===s(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+c>u&&(n=u-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(s(t,o+r)!==s(e,r)){n=!1;break}if(n)return o}return-1}function x(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(e.substr(2*a,2),16);if(J(r))return a;t[n+a]=r}return a}function w(t,e,n,r){return W(G(e,t.length-n),t,n,r)}function _(t,e,n,r){return W(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function A(t,e,n,r){return W(V(e),t,n,r)}function M(t,e,n,r){return W(function(t,e){let n,r,i;const o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,a=e>239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,u,c;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],u=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&u)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&u,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=T));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return s(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?u(t):void 0!==e?"string"==typeof n?u(t).fill(e,n):u(t).fill(e):u(t)}(t,e,n)},c.allocUnsafe=function(t){return l(t)},c.allocUnsafeSlow=function(t){return l(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(X(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?B(this,0,t):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const u=Math.min(o,a),s=this.slice(r,i),f=t.slice(e,n);for(let t=0;t<u;++t)if(s[t]!==f[t]){o=s[t],a=f[t];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return _(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function k(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function F(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function S(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=Z[t[r]];return i}function N(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function C(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r,i){j(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function O(t,e,n,r,i){j(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return e=+e,n>>>=0,o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return e=+e,n>>>=0,o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),c.prototype.readBigInt64BE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||C(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=K(function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=K(function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=K(function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=K(function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),a=o.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%a]}return this};const U={};function $(t,e,n){U[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function z(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function j(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){q(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||H(e,t.length-(n+1))}(r,i,o)}function q(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function H(t,e,n){if(Math.floor(t)!==t)throw q(t,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}$("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),$("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const Z=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function K(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},251(t,e){e.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,c=(1<<u)-1,s=c>>1,f=-7,l=n?i-1:0,h=n?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=u;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-s;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=s}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,u,c,s=8*o-i-1,f=(1<<s)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*c-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,s+=i;s>0;t[n+d]=255&a,d+=p,a/=256,s-=8);t[n+d-p]|=128*g}},73065(t,e,n){var r,i;!function(){"use strict";r=function(){var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function a(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function u(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?t:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===e&&n<this.levels.SILENT)return"No console available for logging"}function s(t){return function(){typeof console!==e&&(c.call(this),this[t].apply(this,arguments))}}function f(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==e&&("trace"===r&&n?u:void 0!==console[r]?a(console,r):void 0!==console.log?a(console,"log"):t)}(r)||s.apply(this,arguments)}function l(t,n){var a,u,s,l=this,h="loglevel";function d(){var t;if(typeof window!==e&&h){try{t=window.localStorage[h]}catch(t){}if(typeof t===e)try{var n=window.document.cookie,r=encodeURIComponent(h),i=n.indexOf(r+"=");-1!==i&&(t=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(t){}return void 0===l.levels[t]&&(t=void 0),t}}function p(t){var e=t;if("string"==typeof e&&void 0!==l.levels[e.toUpperCase()]&&(e=l.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=l.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?h+=":"+t:"symbol"==typeof t&&(h=void 0),l.name=t,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||f,l.getLevel=function(){return null!=s?s:null!=u?u:a},l.setLevel=function(t,n){return s=p(t),!1!==n&&function(t){var n=(r[t]||"silent").toUpperCase();if(typeof window!==e&&h){try{return void(window.localStorage[h]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"="+n+";"}catch(t){}}}(s),c.call(l)},l.setDefaultLevel=function(t){u=p(t),d()||l.setLevel(t,!1)},l.resetLevel=function(){s=null,function(){if(typeof window!==e&&h){try{window.localStorage.removeItem(h)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),c.call(l)},l.enableAll=function(t){l.setLevel(l.levels.TRACE,t)},l.disableAll=function(t){l.setLevel(l.levels.SILENT,t)},l.rebuild=function(){if(o!==l&&(a=p(o.getLevel())),c.call(l),o===l)for(var t in i)i[t].rebuild()},a=p(o?o.getLevel():"WARN");var g=d();null!=g&&(s=p(g)),c.call(l)}(o=new l).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=i[t];return e||(e=i[t]=new l(t,o.methodFactory)),e};var h=typeof window!==e?window.log:void 0;return o.noConflict=function(){return typeof window!==e&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o},void 0===(i=r.call(e,n,e,t))||(t.exports=i)}()},78194(t,e){!function(t){"use strict";function e(t){this.reset(t.className)}function n(){this.childNodes=[]}e.prototype=[],e.prototype.reset=function(t){var e=(t||"").split(" ");this.length=e.length;for(var n=0;n<e.length;n++)this[n]=e[n]},e.prototype.add=function(t){this.contains(t)||this.push(t)},e.prototype.contains=function(t){for(var e=0;e<this.length;e++)if(this[e]===t)return!0;return!1},e.prototype.item=function(t){return this[t]||null},e.prototype.remove=function(t){for(var e=this.classNames,n=0;n<this.length;n++)e[n]===t&&this.splice(n,1)},e.prototype.toggle=function(t){var e=this.indexOf(t);return e>=0?(this.splice(e,1),!1):(this.push(t),!0)},e.prototype.toString=function(){return this.join(" ").trim()},n.prototype.cloneNode=function(t){if(!t||"childNodes"in this&&Array.isArray(this.childNodes)&&0===this.childNodes.length)return new(Object.getPrototypeOf(this).constructor)(this);var e=new(Object.getPrototypeOf(this).constructor)(this),n=[];return this.childNodes.map(function(t){return n.push(t.cloneNode(!0))}),e.childNodes=n,e},Object.defineProperty(n.prototype,"nodeValue",{get:function(){return null}}),Object.defineProperty(n.prototype,"children",{get:function(){return this.childNodes}}),Object.defineProperty(n.prototype,"firstChild",{get:function(){return this.childNodes[0]||null}}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]||null}}),Object.defineProperty(n.prototype,"nodeName",{get:function(){return this.tagName}});var r={"&":"&","<":"<",">":">"};function i(t){n.apply(this),this.nodeType=3,this.textContent=String(t)}i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.render=function(){return(this.textContent||"").replace(/[&<>]/g,function(t){return r[t]})},Object.defineProperty(i.prototype,"nodeValue",{get:function(){return this.textContent}});var o,a=new RegExp("\\s*([ >+~])\\s*","g"),u=new RegExp("(^|[ >+~])([^ >+~]+)","ig"),c=new RegExp("#[^. >+~]+","g"),s=new RegExp("^(?:[ >+~])?([^#. >+~\\[\\]]+)"),f=new RegExp("\\.[^. >+~]+","g"),l=function(t){return null!=t?t[0]:null},h=function(t){return t.substr(1)},d=function(t){return null!=t?h(t):null},p=(o=h,function(t){return Array.isArray(t)?t.map(o):null});function g(t){return null==t||0===t.length?null:t.replace(a,"$1").match(u).map(function(t,e){return{tagName:(n=t.match(s),(Array.isArray(n)&&n.length>1?n[1]:null)||"").toLowerCase(),id:d(l(t.match(c))),classNames:p(t.match(f)),relation:e>0?t[0]:null};var n}).reverse()}function y(t,e){return!(null==t||e.tagName&&t.tagName!==e.tagName||e.id&&t.id!==e.id||e.classNames&&!e.classNames.every(function(e){return t.classList.contains(e)}))}function m(t,e){for(var n=t,r=function(t){switch(e[t-1].relation){case" ":do{n=n.parentNode}while(null!=n&&!y(n,e[t]));break;case">":if(!y(n.parentNode,e[t]))return{v:!1};break;case"+":if(!y(n.parentNode.childNodes.find(function(t){return t.nextSibling===n}),e[t]))return{v:!1};break;case"~":if(!n.parentNode.childNodes.slice(0,n.parentNode.childNodes.indexOf(n)).some(function(n){return y(n,e[t])}))return{v:!1}}},i=1;i<e.length;i++){var o=r(i);if(o)return o.v}return null!=n}function v(t,e,n){var r=g(t);if(null==r)return[];for(var i=e.getElementsByTagName(r[0].tagName||"*"),o=[],a=0;a<i.length&&!(y(i[a],r[0])&&m(i[a],r)&&(o.push(i[a]),null!=n&&o.length>=n));a++);return o}function b(t,e){return v(t,e,1)[0]||null}function x(){}function w(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function _(t){var e=[],n=t.split("");n.map(function(t,n){"-"===t&&e.push(n)});var r=t.split("");return e.map(function(t,e){var i=n[t+1].toUpperCase();r.splice(t-e,2,i)}),r.join("")}function A(t){var e=[],n=t.split("");n.map(function(t,n){/^[A-Z]/.test(t)&&e.push(n)});var r=t.split("");return e.map(function(t){r.splice(t,1,"-"+n[t].toLowerCase())}),r.join("")}function M(){}function E(){}x.prototype={},M.prototype=Object.create({}),M.prototype.getPropertyPriority=function(t){return""},M.prototype.getPropertyValue=function(t){return w(this,t=_(t))?this[t]:""},M.prototype.setProperty=function(t,e){this[_(t)]=e},M.prototype.removeProperty=function(t){var e=this.getPropertyValue(t);return e&&delete this[_(t)],e},M.prototype.valueOf=function(){return this},M.prototype.toString=function(){var t="";for(var e in this)w(this,e)&&(t+=A(e)+": "+this[e]+"; ");return t},M.prototype.setValue=function(t){var e=t.split(";");for(var n in e){var r=n.split(":");this[r[0].trim()]=r[1].trim()}},Object.defineProperty(M.prototype,"cssText",{get:function(){return this.toString()},set:function(t){this.setValue(t)},enumerable:!0}),E.prototype={};var B="area base br col command embed hr img input keygen link meta param source track wbr".split(" ").reduce(function(t,e){return t[e]=!0,t},{});function T(t){for(var e in n.apply(this),this.attributes=new x,this.style=new M,this.dataset=new E,this.nodeType=1,t)this[e]=t[e];this.tagName||(this.tagName="div"),this.tagName=this.tagName.toLowerCase(),Object.defineProperty(this,"isVoidEl",{value:B[this.tagName]})}var k=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(T);T.prototype=Object.create(n.prototype),T.prototype.constructor=T;var F=function(){};"blur click focus".split(" ").forEach(function(t){return T.prototype[t]=F});var S="tagName view nodeType isVoidEl parent parentNode childNodes isMounted".split(" ").reduce(function(t,e){return t[e]=!0,t},{});function N(t){return t.render()}function C(){this.documentElement=this.createElement("html"),this.head=this.documentElement.appendChild(this.createElement("head")),this.body=this.documentElement.appendChild(this.createElement("body")),this.nodeType=9}T.prototype.render=function(t){var e=this,n=this.isVoidEl,r=[],i=!1,o="";for(var a in this)if("isMounted"!==a&&"style"!==a&&"attributes"!==a&&"dataset"!==a&&"_classList"!==a&&w(this,a))if(S[a])this.childNodes.length&&(i=!0);else if("_innerHTML"===a)o=this._innerHTML;else if(!S[a]){if(a in this.attributes)continue;if("function"==typeof this[a])continue;var u=void 0;switch(typeof this[a]){case"string":case"number":u='"'+this[a]+'"';break;default:u="'"+JSON.stringify(this[a])+"'"}r.push(a+"="+u)}this.className&&r.push('class="'+this.className+'"');var c=this.style.cssText;c.length>0&&r.push('style="'+c+'"');var s=Object.keys(this.attributes);if(s.length>0&&s.filter(function(t){return"style"!==t&&"_classList"!==t}).map(function(t){return r.push(t+'="'+e.attributes[t]+'"')}),t)return!n&&i?this.childNodes.map(N).join(""):!n&&o?o:"";if(!n&&i){var f=this.tagName;return"<"+[f].concat(r).join(" ")+">"+this.childNodes.map(N).join("")+"</"+f+">"}if(!n&&o){var l=this.tagName;return"<"+[this.tagName].concat(r).join(" ")+">"+o+"</"+l+">"}var h=[this.tagName].concat(r).join(" ");return n?"<"+h+">":"<"+h+"></"+this.tagName+">"},T.prototype.addEventListener=function(){},T.prototype.removeEventListener=function(){},T.prototype.setAttribute=function(t,e){var n=this;if("class"===t)return this.classList.splice(0,this.classList.length),void e.split(" ").forEach(function(t){return n.classList.add(t)});var r,i,o=t;/^data-/.test(t)?(o=_(t),this.dataset[o]=e,Object.defineProperty(this,o,{get:(r=this,i=o,function(){return r.dataset[i]}),enumerable:!1,configurable:!0})):w(this,o)||Object.defineProperty(this,o,{get:function(t,e){return function(){return t.attributes[e]}}(this,o),enumerable:!0,configurable:!0}),this.attributes[t]=e},T.prototype.getAttribute=function(t){return this.attributes[t]||this[t]||null},T.prototype.removeAttribute=function(t){"class"!==t?(/^data-/.test(t)&&delete this.dataset[_(t)],w(this.attributes,t)&&(delete this.attributes[t],delete this[t])):this.classList.reset()},T.prototype.appendChild=function(t){if(this.isVoidEl)return t;t.parentNode=this;for(var e=0;e<this.childNodes.length;e++)this.childNodes[e]===t&&this.childNodes.splice(e,1);return this.childNodes.push(t),t},T.prototype.insertBefore=function(t,e){var n=this;if(this.isVoidEl)return t;if(t.parentNode=this,null==e)n.childNodes.push(t);else for(var r=0;r<this.childNodes.length;r++)n.childNodes[r]===e?n.childNodes.splice(r++,0,t):n.childNodes[r]===t&&n.childNodes.splice(r,1);return t},T.prototype.replaceChild=function(t,e){if(this.isVoidEl)return e;t.parentNode=this;for(var n=0;n<this.childNodes.length;n++)this.childNodes[n]===e&&(this.childNodes[n]=t);return e},T.prototype.removeChild=function(t){if(this.isVoidEl)return t;t.parentNode=null;for(var e=0;e<this.childNodes.length;e++)this.childNodes[e]===t&&this.childNodes.splice(e,1);return t},T.prototype.getElementsByTagName=function(t){var e=t.toLowerCase();return this.isVoidEl||0===this.childNodes.length?[]:this.childNodes.reduce(function(t,n){return n.getElementsByTagName?"*"===e||n.tagName===e?t.concat(n,n.getElementsByTagName(e)):t.concat(n.getElementsByTagName(e)):t},[])},T.prototype.getElementsByClassName=function(t){return Array.isArray(t)?0===t.length?[]:this.childNodes.reduce(function(e,n){return t.every(function(t){return n.classList.contains(t)})?e.concat(n,n.getElementsByClassName(t)):e.concat(n.getElementsByClassName(t))},[]):this.getElementsByClassName(String(t).split(" ").map(function(t){return t.trim()}).filter(function(t){return t.length>0}))},T.prototype.querySelector=function(t){return b(t,this)},T.prototype.querySelectorAll=function(t){return v(t,this)},T.prototype.matches=function(t){var e=g(t);return!(null==e||e.length>1)&&y(this,e[0])},Object.defineProperties(T.prototype,{_classList:{value:null,enumerable:!1,configurable:!1,writable:!0},classList:{get:function(){return this._classList||(this._classList=new e(this)),this._classList}},className:{set:function(t){this.classList.reset(t)},get:function(){return null==this._classList?"":this._classList.toString()}},innerHTML:{get:function(){return this._innerHTML||this.render(!0)},set:function(t){this._innerHTML=t}},outerHTML:{get:function(){return this.render()}},firstChild:{get:function(){return this.childNodes[0]||null}},textContent:{get:function(){return this.childNodes.filter(function(t){return t instanceof i}).map(function(t){return t.textContent}).join("")},set:function(t){this.childNodes=[new i(t)]}},nextSibling:{get:function(){for(var t=this.parentNode.childNodes,e=0;e<t.length;e++)if(t[e]===this)return t[e+1];return null}}}),C.prototype.createElement=function(t){var e,n=new T({tagName:t});return"ownerDocument"in n||Object.defineProperty(n,"ownerDocument",{enumerable:!1,get:(e=this,function(){return e})}),n},C.prototype.createElementNS=function(t,e){var n,r;return"ownerDocument"in(n="http://www.w3.org/2000/svg"===e?new k({tagName:e}):new T({tagName:e}))||Object.defineProperty(n,"ownerDocument",{enumerable:!1,get:(r=this,function(){return r})}),n},C.prototype.createDocumentFragment=function(){return(new C).body},C.prototype.createTextNode=function(t){var e,n=new i(t);return"ownerDocument"in n||Object.defineProperty(n,"ownerDocument",{enumerable:!1,get:(e=this,function(){return e})}),n},C.prototype.getElementsByTagName=function(t){var e=t.toLowerCase();return"html"===e?[this.documentElement]:"*"===e?[this.documentElement].concat(this.documentElement.getElementsByTagName(e)):this.documentElement.getElementsByTagName(e)},C.prototype.getElementsByClassName=function(t){var e=this;if(!Array.isArray(t))return this.getElementsByClassName(String(t).split(" ").map(function(t){return t.trim()}).filter(function(t){return t.length>0}));if(0===t.length)return[];var n=t.every(function(t){return e.documentElement.classList.contains(t)});return this.documentElement.childNodes.reduce(function(e,n){return t.every(function(t){return n.classList.contains(t)})?e.concat(n,n.getElementsByClassName(t)):e.concat(n.getElementsByClassName(t))},n?[this.documentElement]:[])},C.prototype.getElementById=function(t){if(this.documentElement.id===t)return this.documentElement;return function t(e,n){for(var r=[],i=0;i<n.length;i++){if(n[i].id===e)return n[i];r=r.concat(n[i].childNodes)}return r.length>0?t(e,r):null}(t,this.documentElement.childNodes)},C.prototype.querySelector=function(t){return b(t,this)},C.prototype.querySelectorAll=function(t){return v(t,this)},C.prototype.implementation=Object.create(null),C.prototype.implementation.hasFeature=function(t){return!1},C.prototype.implementation.createHTMLDocument=function(t){var e=new C;return e.outerHTML=t,e},t.Document=C,t.HTMLElement=T,t.Node=n,t.SVGElement=k,t.TextNode=i,t.render=function(t,e){return(t.el||t).render(e)},Object.defineProperty(t,"__esModule",{value:!0})}(e)},65606(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var u,c=[],s=!1,f=-1;function l(){s&&u&&(s=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!s){var t=a(l);s=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,s=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||s||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},90031(t,e){!function(t){var e,n,r,i=String.fromCharCode;function o(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function a(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,e){return i(t>>e&63|128)}function c(t){if(!(4294967168&t))return i(t);var e="";return 4294965248&t?4294901760&t?4292870144&t||(e=i(t>>18&7|240),e+=u(t,12),e+=u(t,6)):(a(t),e=i(t>>12&15|224),e+=u(t,6)):e=i(t>>6&31|192),e+i(63&t|128)}function s(){if(r>=n)throw Error("Invalid byte index");var t=255&e[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(t=255&e[r],r++,!(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|s())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|s()<<6|s())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|s()<<12|s()<<6|s())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=o(t),n=e.length,r=-1,i="";++r<n;)i+=c(e[r]);return i},t.decode=function(t){e=o(t),n=e.length,r=0;for(var a,u=[];!1!==(a=f());)u.push(a);return function(t){for(var e,n=t.length,r=-1,o="";++r<n;)(e=t[r])>65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(u)}}(e)},25172(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},16993(t,e,n){var r=n(75546);function i(){var e,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(t,i,o,a){var u=i&&i.prototype instanceof f?i:f,c=Object.create(u.prototype);return r(c,"_invoke",function(t,r,i){var o,a,u,c=0,f=i||[],l=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return o=t,a=0,u=e,h.n=n,s}};function d(t,r){for(a=t,u=r,n=0;!l&&c&&!i&&n<f.length;n++){var i,o=f[n],d=h.p,p=o[2];t>3?(i=p===r)&&(u=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=t<2&&d<o[1])?(a=0,h.v=r,h.n=o[1]):d<p&&(i=t<3||o[0]>r||r>p)&&(o[4]=t,o[5]=r,h.n=p,a=0))}if(i||t>1)return s;throw l=!0,r}return function(i,f,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,p),a=f,u=p;(n=a<2?e:u)||!l;){o||(a?a<3?(a>1&&(h.n=-1),d(a,u)):h.n=u:h.v=u);try{if(c=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((n=(l=h.n<0)?u:t.call(r,h))!==s)break}catch(t){o=e,a=1,u=t}finally{c=1}}return{value:n,done:l}}}(t,o,a),!0),c}var s={};function f(){}function l(){}function h(){}n=Object.getPrototypeOf;var d=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=h.prototype=f.prototype=Object.create(d);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,r(t,u,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=h,r(p,"constructor",h),r(h,"constructor",l),l.displayName="GeneratorFunction",r(h,u,"GeneratorFunction"),r(p),r(p,u,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:c,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},55869(t,e,n){var r=n(887);t.exports=function(t,e,n,i,o){var a=r(t,e,n,i,o);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},887(t,e,n){var r=n(16993),i=n(11791);t.exports=function(t,e,n,o,a){return new i(r().w(t,e,n,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},11791(t,e,n){var r=n(25172),i=n(75546);t.exports=function t(e,n){function o(t,i,a,u){try{var c=e[t](i),s=c.value;return s instanceof r?n.resolve(s.v).then(function(t){o("next",t,a,u)},function(t){o("throw",t,a,u)}):n.resolve(s).then(function(t){c.value=t,a(c)},function(t){return o("throw",t,a,u)})}catch(t){u(t)}}var a;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,e,r){function i(){return new n(function(e,n){o(t,r,e,n)})}return a=a?a.then(i,i):i()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},75546(t){function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){function o(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4373(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633(t,e,n){var r=n(25172),i=n(16993),o=n(55869),a=n(887),u=n(11791),c=n(4373),s=n(30579);function f(){"use strict";var e=i(),n=e.m(f),l=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,d[t],e)},delegateYield:function(t,i,o){return e.resultName=i,n(r.d,s(t),o)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=f=function(){return{wrap:function(t,n,r,i){return e.w(p(t),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:u,async:function(t,e,n,r,i){return(h(e)?a:o)(p(t),e,n,r,i)},keys:c,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=f,t.exports.__esModule=!0,t.exports.default=t.exports},30579(t,e,n){var r=n(73738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},73738(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54756(t,e,n){var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}};const e={};function n(r){const i=e[r];if(void 0!==i)return i.exports;const o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var i=e[r++],o=e[r++];n.o(t,i)?0===o&&r++:0===o?Object.defineProperty(t,i,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,i,{enumerable:!0,get:o})}else for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.dn=t=>{(Object.getOwnPropertyDescriptor(t,"name")||{}).writable||Object.defineProperty(t,"name",{value:"default",configurable:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{ph3:()=>$,wbF:()=>fs,ST8:()=>Yl,BuJ:()=>q,vos:()=>H,bP0:()=>Nm,wAk:()=>Eu,le2:()=>is,uVw:()=>LT,vuD:()=>Sa,JLW:()=>_E,Wcw:()=>SE,Psq:()=>UE,V_A:()=>p,cGt:()=>qs,l78:()=>Se,V4s:()=>Ne,eH3:()=>Fe,tlR:()=>ke,e5v:()=>Mt,h1l:()=>A,WD2:()=>_,ahM:()=>w,Jjl:()=>x,ylB:()=>y,av0:()=>If,Gep:()=>M,WNL:()=>E,BU1:()=>B,V$7:()=>ou,ZRL:()=>nu,n55:()=>ru,g2B:()=>iu,ra8:()=>Of,JQC:()=>yu,BQs:()=>vu,kbm:()=>mu,bzR:()=>lm,yWT:()=>ii,fKN:()=>Oc,mPs:()=>Tc,U9N:()=>N,vtF:()=>ZM,xLX:()=>lr,$An:()=>O,fu7:()=>$f,e2r:()=>Ss,UnO:()=>Ns,ozP:()=>Is,hGz:()=>Cs,zBI:()=>Rs,swJ:()=>ks,fyK:()=>Fs,UB7:()=>yc,rCv:()=>D,qrM:()=>FB,Yu4:()=>NB,IA3:()=>IB,Wi0:()=>qE,PGM:()=>HE,OEq:()=>OB,y8u:()=>LB,olC:()=>$B,IrU:()=>jB,oDi:()=>YB,Q7f:()=>VB,cVp:()=>XB,lUB:()=>BE,Lx9:()=>ZB,nVG:()=>oT,uxU:()=>aT,Xf2:()=>sT,GZz:()=>lT,UPb:()=>dT,dyv:()=>hT,rGT:()=>g,KSm:()=>L,iv2:()=>ce,nff:()=>se,JDs:()=>Pe,$Er:()=>ms,XDQ:()=>Lr,EHB:()=>Ur,S$x:()=>Uf,Fg2:()=>Bs,Ib9:()=>Tf,roF:()=>Ef,Z8Z:()=>Tf,g9:()=>Bf,r_F:()=>_f,SuI:()=>wf,g$4:()=>Af,JKS:()=>_f,LOP:()=>ff,W2q:()=>cf,CgP:()=>ff,jtr:()=>sf,z6H:()=>Ea,M1_:()=>Aa,oRn:()=>Ea,TD8:()=>Ma,_9v:()=>Sf,rht:()=>Ff,D6Y:()=>Nf,guX:()=>Sf,IOm:()=>uf,vHU:()=>of,rSi:()=>uf,GDP:()=>af,yfw:()=>Ys,Xv0:()=>Zs,Olk:()=>Xs,mxm:()=>Zs,nW9:()=>Js,I1g:()=>Ws,$Sq:()=>Gs,xA2:()=>Ws,gHU:()=>Vs,pdU:()=>nf,YXt:()=>tf,Ce4:()=>nf,tU_:()=>ef,Si_:()=>ne,Xxv:()=>U,NnM:()=>j,pbD:()=>ie,n3W:()=>Q,GGf:()=>tt,jTM:()=>Xf,eRw:()=>xl,kJC:()=>Al,xJS:()=>Il,pPC:()=>Rl,tXi:()=>Cl,KS8:()=>Ol,TSS:()=>Dl,GPZ:()=>Kl,hQI:()=>rh,OET:()=>nh,saq:()=>Ql,Gpp:()=>Hl,KSy:()=>z,pKm:()=>By,UtK:()=>Ty,Vjx:()=>ud,Ocp:()=>Ny,qzu:()=>Sy,ANm:()=>Iy,SVF:()=>Cy,foA:()=>jd,Ewd:()=>tp,Ob8:()=>lp,NlW:()=>_p,cj8:()=>Ap,w9y:()=>Cp,tqQ:()=>Np,xKe:()=>Uy,dOC:()=>Ly,Pq0:()=>Ey,zyd:()=>My,PSW:()=>qy,p72:()=>jy,VfR:()=>Xp,Je2:()=>$p,omR:()=>Jy,S0D:()=>Xy,uVR:()=>zy,GA7:()=>$y,c6E:()=>Ky,INV:()=>Zy,kGM:()=>Kp,DST:()=>Qp,qSl:()=>Qy,vDS:()=>tg,u9_:()=>Pp,bAh:()=>Oy,jw5:()=>Ry,wxe:()=>em,MAg:()=>tm,WK6:()=>rm,mn5:()=>nm,zFW:()=>uy,XoZ:()=>wy,r2c:()=>_y,uYq:()=>cp,c8L:()=>om,cXV:()=>im,wCf:()=>Ph,wug:()=>cy,M5z:()=>um,Kxj:()=>am,wmS:()=>Ju,KfG:()=>Nt,GDj:()=>Wt,Os0:()=>J,_wR:()=>lt,TNc:()=>Z,aq4:()=>oc,Sk5:()=>Bm,JWi:()=>Mt,KIW:()=>mi,qyt:()=>Vf,Slp:()=>jf,Pe0:()=>rt,DUs:()=>it,GWP:()=>qi,p0l:()=>Oi,Qm6:()=>Ai,I_F:()=>Mi,dM:()=>MM,ND$:()=>DA,muF:()=>tM,QUO:()=>nM,Pix:()=>OM,tGE:()=>LM,p5x:()=>Gv,SU5:()=>DM,Xli:()=>Vv,_8d:()=>Pi,xhR:()=>Iv,_C_:()=>iM,Yvq:()=>BM,q8L:()=>kM,bEH:()=>qv,v1d:()=>Hv,r_R:()=>Uv,x60:()=>$v,SHf:()=>Rv,FbK:()=>XM,dJd:()=>zv,nJu:()=>WM,DjB:()=>Li,KVc:()=>Ii,hf8:()=>Ui,V7y:()=>aM,TEm:()=>RM,tBy:()=>LA,jqD:()=>$A,UAh:()=>JM,Egz:()=>fM,DK4:()=>cM,QSW:()=>jA,NMj:()=>hM,dno:()=>SM,SVL:()=>$M,Twz:()=>HA,yRD:()=>GA,bD2:()=>pM,c_1:()=>WA,qJt:()=>JA,Q3:()=>CM,ZrM:()=>Fi,z4u:()=>Ni,LiL:()=>Ci,sHN:()=>Ov,jyS:()=>HM,QLC:()=>KA,zlj:()=>ji,TEP:()=>Co,I_U:()=>Io,WwM:()=>YM,GAA:()=>VM,Lx3:()=>PM,o$6:()=>vM,L9K:()=>yM,_Q$:()=>xM,oKI:()=>_M,p7:()=>Pv,GaK:()=>Eo,E$q:()=>fe,YPD:()=>OT,VCD:()=>CT,R8V:()=>RT,Pq9:()=>Hf,Mjd:()=>Zu,s1l:()=>ic,YGm:()=>Gt,ko3:()=>Vt,n8j:()=>FE,y6U:()=>LE,nfo:()=>WE,pqs:()=>XE,e7Y:()=>ZE,vu:()=>JE,srj:()=>QM,TjK:()=>oe,jNx:()=>Ye,T9B:()=>Et,P2Z:()=>Bt,i2o:()=>Pt,JZy:()=>Lt,TFi:()=>Ut,h1I:()=>$t,jkA:()=>Tt,z94:()=>kt,MqS:()=>zt,MF8:()=>Mn,r$W:()=>An,Cmz:()=>_t,tB5:()=>no,qqI:()=>rv,nT1:()=>zm,ZzR:()=>ev,ASI:()=>jt,jBG:()=>sv,AeT:()=>Bu,uj$:()=>Tu,Ny6:()=>ut,rLf:()=>IE,$Bd:()=>Wv,uxD:()=>$E,WnM:()=>Yi,D_v:()=>eE,Abf:()=>Jv,l8R:()=>Zv,G2M:()=>nb,CxN:()=>eb,J4h:()=>rb,RTd:()=>ih,dTq:()=>oh,Pjg:()=>ah,MWg:()=>hl,YVn:()=>Ct,AXT:()=>Rt,Z4V:()=>It,ydU:()=>Xv,eu3:()=>Ft,hhv:()=>UE,Y$q:()=>LE,FQn:()=>fb,UEC:()=>db,qi1:()=>yb,z6m:()=>mb,FUT:()=>bb,BOx:()=>lb,pR9:()=>gb,R7_:()=>pb,HO1:()=>ab,yTE:()=>sb,Ixc:()=>Eb,Rbs:()=>cb,Enb:()=>xb,FE$:()=>ub,zZ:()=>hb,lA5:()=>wb,YeY:()=>ob,kLP:()=>vb,y17:()=>Ht,Tmv:()=>Yt,TSs:()=>ae,BEg:()=>ue,Qhc:()=>ci,F6i:()=>Lu,Y_b:()=>Uu,zaV:()=>et,i8y:()=>nt,WH:()=>Sb,MbW:()=>mA,Crt:()=>vA,yj6:()=>xA,q95:()=>wA,xh9:()=>bA,jok:()=>Yb,U4_:()=>kb,m4Y:()=>Hb,ZEH:()=>tx,UMr:()=>Fb,hqK:()=>Cb,RWy:()=>sx,QL4:()=>dx,WT_:()=>px,afO:()=>hx,exT:()=>fA,M3p:()=>lA,uiP:()=>dA,TaI:()=>gA,yen:()=>pA,nV1:()=>hA,Bv9:()=>fx,aX1:()=>ix,c3b:()=>gx,w7C:()=>aA,Pps:()=>uA,SQs:()=>Xt,_uH:()=>MA,Hux:()=>AM,HZk:()=>OA,g47:()=>QA,iWp:()=>eM,t55:()=>AA,_CJ:()=>EA,Wbf:()=>rM,Cx2:()=>EM,MSz:()=>TM,gmW:()=>BA,jlR:()=>oM,dwS:()=>IM,j9t:()=>PA,vU7:()=>TA,kGs:()=>kA,riG:()=>FA,ZOj:()=>UA,Gwx:()=>sM,Vmq:()=>uM,OKG:()=>zA,ltn:()=>lM,xAo:()=>FM,pC3:()=>qA,WuJ:()=>YA,HST:()=>dM,OYk:()=>VA,mCs:()=>XA,UoH:()=>NM,DvA:()=>SA,Ks0:()=>NA,DQM:()=>CA,iZ8:()=>ZA,zt:()=>IA,QER:()=>mM,r2K:()=>gM,ynM:()=>bM,Mhs:()=>wM,Ltv:()=>Ir,Ubm:()=>nE,r1M:()=>Cr,gD4:()=>Ue,XM:()=>qe,k4r:()=>Jt,ktS:()=>Zt,zNS:()=>re,diJ:()=>ct,t$z:()=>vT,lBR:()=>xT,qId:()=>bT,YWt:()=>pT,e9w:()=>wT,ReK:()=>_T,DYs:()=>AT,BIW:()=>ET,veC:()=>TT,$kh:()=>kT,rMp:()=>gT,xUl:()=>FT,zTO:()=>gv,iFH:()=>Pn,LEQ:()=>pe,czq:()=>Kt,W_O:()=>he,JWy:()=>Wf,HRO:()=>EB,$Zz:()=>QE,hKN:()=>tB,BVl:()=>eB,jaT:()=>iB,zyz:()=>oB,jhH:()=>aB,yDW:()=>uB,sLv:()=>cB,N8r:()=>hB,zpY:()=>_B,ZKi:()=>pB,L13:()=>yB,IJl:()=>wB,Bj:()=>_B,Iq9:()=>AB,Lkx:()=>AB,AMs:()=>MB,Qq7:()=>Pf,c3E:()=>Ot,Fto:()=>Dt,zre:()=>At,Vr1:()=>jb,lqS:()=>xt,sG5:()=>wt,ZcS:()=>bt,UAC:()=>Ox,NTL:()=>Dx,DCK:()=>Ow,cAw:()=>nA,dex:()=>Iw,TUC:()=>Vx,SQy:()=>tw,Agd:()=>Nx,L6s:()=>Cx,f$c:()=>_x,t6C:()=>Ax,SpS:()=>Mx,wXd:()=>Tx,rnF:()=>kx,ABi:()=>qx,h8B:()=>Jx,Ui6:()=>mw,BzA:()=>vw,T6w:()=>Dw,rGn:()=>Wx,_MH:()=>ew,ucG:()=>Ex,DLn:()=>Bx,YPH:()=>jx,vDR:()=>Xx,Mol:()=>Gx,HUw:()=>Qx,yE_:()=>Fw,Cfs:()=>kw,PGu:()=>Hx,OKF:()=>Zx,GuW:()=>Yx,Dr2:()=>Kx,Kgo:()=>jx,TX6:()=>Xx,hed:()=>ww,Yo3:()=>_w,wRz:()=>fo,O1W:()=>oo,O2m:()=>ao,kYK:()=>xa,mgz:()=>Qt,B22:()=>Mv,hkb:()=>Fv,GaH:()=>Sv,iLc:()=>cv,gg3:()=>Cv,XvW:()=>Ev,Yix:()=>Nv,bC4:()=>kv,KZK:()=>zf,NcH:()=>Ls,F2e:()=>Us,pnc:()=>zs,KSR:()=>$s,CLv:()=>js,Nuv:()=>Ds,cPI:()=>Ps,KCZ:()=>ge,TWh:()=>Ux,yEJ:()=>$x,dAM:()=>Px,ou6:()=>Lx,aLc:()=>Pw,a1v:()=>cw,Znr:()=>gw,pzD:()=>Ix,iAH:()=>Rx,Eeu:()=>Ax,Lg0:()=>Mx,vDl:()=>Fx,Y4D:()=>Sx,rth:()=>iw,ONt:()=>lw,R6t:()=>bw,oiF:()=>xw,GYh:()=>Lw,c8g:()=>sw,Xo4:()=>yw,Hnp:()=>Ex,kkL:()=>Bx,Hl8:()=>rw,aZN:()=>fw,pTZ:()=>uw,wrN:()=>pw,lk1:()=>Tw,$ZS:()=>Bw,srX:()=>ow,jNm:()=>hw,z2U:()=>aw,G6Q:()=>dw,zXe:()=>rw,y9m:()=>fw,MbY:()=>Aw,jHr:()=>Mw,GVr:()=>P,xa8:()=>Cn,_nC:()=>Gf,yU6:()=>ee,s_O:()=>XT,GSI:()=>UT,_V:()=>$T});var e={};n.r(e),n.d(e,{Adder:()=>$,Delaunay:()=>fs,FormatSpecifier:()=>Yl,InternMap:()=>q,InternSet:()=>H,Node:()=>Nm,Path:()=>Eu,Voronoi:()=>is,ZoomTransform:()=>LT,active:()=>Sa,arc:()=>_E,area:()=>SE,areaRadial:()=>UE,ascending:()=>p,autoType:()=>qs,axisBottom:()=>Se,axisLeft:()=>Ne,axisRight:()=>Fe,axisTop:()=>ke,bin:()=>Mt,bisect:()=>A,bisectCenter:()=>_,bisectLeft:()=>w,bisectRight:()=>x,bisector:()=>y,blob:()=>If,blur:()=>M,blur2:()=>E,blurImage:()=>B,brush:()=>ou,brushSelection:()=>nu,brushX:()=>ru,brushY:()=>iu,buffer:()=>Of,chord:()=>yu,chordDirected:()=>vu,chordTranspose:()=>mu,cluster:()=>lm,color:()=>ii,contourDensity:()=>Oc,contours:()=>Tc,count:()=>N,create:()=>ZM,creator:()=>lr,cross:()=>O,csv:()=>$f,csvFormat:()=>Ss,csvFormatBody:()=>Ns,csvFormatRow:()=>Is,csvFormatRows:()=>Cs,csvFormatValue:()=>Rs,csvParse:()=>ks,csvParseRows:()=>Fs,cubehelix:()=>yc,cumsum:()=>D,curveBasis:()=>FB,curveBasisClosed:()=>NB,curveBasisOpen:()=>IB,curveBumpX:()=>qE,curveBumpY:()=>HE,curveBundle:()=>OB,curveCardinal:()=>LB,curveCardinalClosed:()=>$B,curveCardinalOpen:()=>jB,curveCatmullRom:()=>YB,curveCatmullRomClosed:()=>VB,curveCatmullRomOpen:()=>XB,curveLinear:()=>BE,curveLinearClosed:()=>ZB,curveMonotoneX:()=>oT,curveMonotoneY:()=>aT,curveNatural:()=>sT,curveStep:()=>lT,curveStepAfter:()=>dT,curveStepBefore:()=>hT,descending:()=>g,deviation:()=>L,difference:()=>ce,disjoint:()=>se,dispatch:()=>Pe,drag:()=>ms,dragDisable:()=>Lr,dragEnable:()=>Ur,dsv:()=>Uf,dsvFormat:()=>Bs,easeBack:()=>Tf,easeBackIn:()=>Ef,easeBackInOut:()=>Tf,easeBackOut:()=>Bf,easeBounce:()=>_f,easeBounceIn:()=>wf,easeBounceInOut:()=>Af,easeBounceOut:()=>_f,easeCircle:()=>ff,easeCircleIn:()=>cf,easeCircleInOut:()=>ff,easeCircleOut:()=>sf,easeCubic:()=>Ea,easeCubicIn:()=>Aa,easeCubicInOut:()=>Ea,easeCubicOut:()=>Ma,easeElastic:()=>Sf,easeElasticIn:()=>Ff,easeElasticInOut:()=>Nf,easeElasticOut:()=>Sf,easeExp:()=>uf,easeExpIn:()=>of,easeExpInOut:()=>uf,easeExpOut:()=>af,easeLinear:()=>Ys,easePoly:()=>Zs,easePolyIn:()=>Xs,easePolyInOut:()=>Zs,easePolyOut:()=>Js,easeQuad:()=>Ws,easeQuadIn:()=>Gs,easeQuadInOut:()=>Ws,easeQuadOut:()=>Vs,easeSin:()=>nf,easeSinIn:()=>tf,easeSinInOut:()=>nf,easeSinOut:()=>ef,every:()=>ne,extent:()=>U,fcumsum:()=>j,filter:()=>ie,flatGroup:()=>Q,flatRollup:()=>tt,forceCenter:()=>Xf,forceCollide:()=>xl,forceLink:()=>Al,forceManyBody:()=>Il,forceRadial:()=>Rl,forceSimulation:()=>Cl,forceX:()=>Ol,forceY:()=>Dl,format:()=>Kl,formatDefaultLocale:()=>rh,formatLocale:()=>nh,formatPrefix:()=>Ql,formatSpecifier:()=>Hl,fsum:()=>z,geoAlbers:()=>By,geoAlbersUsa:()=>Ty,geoArea:()=>ud,geoAzimuthalEqualArea:()=>Ny,geoAzimuthalEqualAreaRaw:()=>Sy,geoAzimuthalEquidistant:()=>Iy,geoAzimuthalEquidistantRaw:()=>Cy,geoBounds:()=>jd,geoCentroid:()=>tp,geoCircle:()=>lp,geoClipAntimeridian:()=>_p,geoClipCircle:()=>Ap,geoClipExtent:()=>Cp,geoClipRectangle:()=>Np,geoConicConformal:()=>Uy,geoConicConformalRaw:()=>Ly,geoConicEqualArea:()=>Ey,geoConicEqualAreaRaw:()=>My,geoConicEquidistant:()=>qy,geoConicEquidistantRaw:()=>jy,geoContains:()=>Xp,geoDistance:()=>$p,geoEqualEarth:()=>Jy,geoEqualEarthRaw:()=>Xy,geoEquirectangular:()=>zy,geoEquirectangularRaw:()=>$y,geoGnomonic:()=>Ky,geoGnomonicRaw:()=>Zy,geoGraticule:()=>Kp,geoGraticule10:()=>Qp,geoIdentity:()=>Qy,geoInterpolate:()=>tg,geoLength:()=>Pp,geoMercator:()=>Oy,geoMercatorRaw:()=>Ry,geoNaturalEarth1:()=>em,geoNaturalEarth1Raw:()=>tm,geoOrthographic:()=>rm,geoOrthographicRaw:()=>nm,geoPath:()=>uy,geoProjection:()=>wy,geoProjectionMutator:()=>_y,geoRotation:()=>cp,geoStereographic:()=>om,geoStereographicRaw:()=>im,geoStream:()=>Ph,geoTransform:()=>cy,geoTransverseMercator:()=>um,geoTransverseMercatorRaw:()=>am,gray:()=>Ju,greatest:()=>Nt,greatestIndex:()=>Wt,group:()=>J,groupSort:()=>lt,groups:()=>Z,hcl:()=>oc,hierarchy:()=>Bm,histogram:()=>Mt,hsl:()=>mi,html:()=>Vf,image:()=>jf,index:()=>rt,indexes:()=>it,interpolate:()=>qi,interpolateArray:()=>Oi,interpolateBasis:()=>Ai,interpolateBasisClosed:()=>Mi,interpolateBlues:()=>MM,interpolateBrBG:()=>DA,interpolateBuGn:()=>tM,interpolateBuPu:()=>nM,interpolateCividis:()=>OM,interpolateCool:()=>LM,interpolateCubehelix:()=>Gv,interpolateCubehelixDefault:()=>DM,interpolateCubehelixLong:()=>Vv,interpolateDate:()=>Pi,interpolateDiscrete:()=>Iv,interpolateGnBu:()=>iM,interpolateGreens:()=>BM,interpolateGreys:()=>kM,interpolateHcl:()=>qv,interpolateHclLong:()=>Hv,interpolateHsl:()=>Uv,interpolateHslLong:()=>$v,interpolateHue:()=>Rv,interpolateInferno:()=>XM,interpolateLab:()=>zv,interpolateMagma:()=>WM,interpolateNumber:()=>Li,interpolateNumberArray:()=>Ii,interpolateObject:()=>Ui,interpolateOrRd:()=>aM,interpolateOranges:()=>RM,interpolatePRGn:()=>LA,interpolatePiYG:()=>$A,interpolatePlasma:()=>JM,interpolatePuBu:()=>fM,interpolatePuBuGn:()=>cM,interpolatePuOr:()=>jA,interpolatePuRd:()=>hM,interpolatePurples:()=>SM,interpolateRainbow:()=>$M,interpolateRdBu:()=>HA,interpolateRdGy:()=>GA,interpolateRdPu:()=>pM,interpolateRdYlBu:()=>WA,interpolateRdYlGn:()=>JA,interpolateReds:()=>CM,interpolateRgb:()=>Fi,interpolateRgbBasis:()=>Ni,interpolateRgbBasisClosed:()=>Ci,interpolateRound:()=>Ov,interpolateSinebow:()=>HM,interpolateSpectral:()=>KA,interpolateString:()=>ji,interpolateTransformCss:()=>Co,interpolateTransformSvg:()=>Io,interpolateTurbo:()=>YM,interpolateViridis:()=>VM,interpolateWarm:()=>PM,interpolateYlGn:()=>vM,interpolateYlGnBu:()=>yM,interpolateYlOrBr:()=>xM,interpolateYlOrRd:()=>_M,interpolateZoom:()=>Pv,interrupt:()=>Eo,intersection:()=>fe,interval:()=>OT,isoFormat:()=>CT,isoParse:()=>RT,json:()=>Hf,lab:()=>Zu,lch:()=>ic,least:()=>Gt,leastIndex:()=>Vt,line:()=>FE,lineRadial:()=>LE,link:()=>WE,linkHorizontal:()=>XE,linkRadial:()=>ZE,linkVertical:()=>JE,local:()=>QM,map:()=>oe,matcher:()=>Ye,max:()=>Et,maxIndex:()=>Bt,mean:()=>Pt,median:()=>Lt,medianIndex:()=>Ut,merge:()=>$t,min:()=>Tt,minIndex:()=>kt,mode:()=>zt,namespace:()=>Mn,namespaces:()=>An,nice:()=>_t,now:()=>no,pack:()=>rv,packEnclose:()=>zm,packSiblings:()=>ev,pairs:()=>jt,partition:()=>sv,path:()=>Bu,pathRound:()=>Tu,permute:()=>ut,pie:()=>IE,piecewise:()=>Wv,pointRadial:()=>$E,pointer:()=>Yi,pointers:()=>eE,polygonArea:()=>Jv,polygonCentroid:()=>Zv,polygonContains:()=>nb,polygonHull:()=>eb,polygonLength:()=>rb,precisionFixed:()=>ih,precisionPrefix:()=>oh,precisionRound:()=>ah,quadtree:()=>hl,quantile:()=>Ct,quantileIndex:()=>Rt,quantileSorted:()=>It,quantize:()=>Xv,quickselect:()=>Ft,radialArea:()=>UE,radialLine:()=>LE,randomBates:()=>fb,randomBernoulli:()=>db,randomBeta:()=>yb,randomBinomial:()=>mb,randomCauchy:()=>bb,randomExponential:()=>lb,randomGamma:()=>gb,randomGeometric:()=>pb,randomInt:()=>ab,randomIrwinHall:()=>sb,randomLcg:()=>Eb,randomLogNormal:()=>cb,randomLogistic:()=>xb,randomNormal:()=>ub,randomPareto:()=>hb,randomPoisson:()=>wb,randomUniform:()=>ob,randomWeibull:()=>vb,range:()=>Ht,rank:()=>Yt,reduce:()=>ae,reverse:()=>ue,rgb:()=>ci,ribbon:()=>Lu,ribbonArrow:()=>Uu,rollup:()=>et,rollups:()=>nt,scaleBand:()=>Sb,scaleDiverging:()=>mA,scaleDivergingLog:()=>vA,scaleDivergingPow:()=>xA,scaleDivergingSqrt:()=>wA,scaleDivergingSymlog:()=>bA,scaleIdentity:()=>Yb,scaleImplicit:()=>kb,scaleLinear:()=>Hb,scaleLog:()=>tx,scaleOrdinal:()=>Fb,scalePoint:()=>Cb,scalePow:()=>sx,scaleQuantile:()=>dx,scaleQuantize:()=>px,scaleRadial:()=>hx,scaleSequential:()=>fA,scaleSequentialLog:()=>lA,scaleSequentialPow:()=>dA,scaleSequentialQuantile:()=>gA,scaleSequentialSqrt:()=>pA,scaleSequentialSymlog:()=>hA,scaleSqrt:()=>fx,scaleSymlog:()=>ix,scaleThreshold:()=>gx,scaleTime:()=>aA,scaleUtc:()=>uA,scan:()=>Xt,schemeAccent:()=>MA,schemeBlues:()=>AM,schemeBrBG:()=>OA,schemeBuGn:()=>QA,schemeBuPu:()=>eM,schemeCategory10:()=>AA,schemeDark2:()=>EA,schemeGnBu:()=>rM,schemeGreens:()=>EM,schemeGreys:()=>TM,schemeObservable10:()=>BA,schemeOrRd:()=>oM,schemeOranges:()=>IM,schemePRGn:()=>PA,schemePaired:()=>TA,schemePastel1:()=>kA,schemePastel2:()=>FA,schemePiYG:()=>UA,schemePuBu:()=>sM,schemePuBuGn:()=>uM,schemePuOr:()=>zA,schemePuRd:()=>lM,schemePurples:()=>FM,schemeRdBu:()=>qA,schemeRdGy:()=>YA,schemeRdPu:()=>dM,schemeRdYlBu:()=>VA,schemeRdYlGn:()=>XA,schemeReds:()=>NM,schemeSet1:()=>SA,schemeSet2:()=>NA,schemeSet3:()=>CA,schemeSpectral:()=>ZA,schemeTableau10:()=>IA,schemeYlGn:()=>mM,schemeYlGnBu:()=>gM,schemeYlOrBr:()=>bM,schemeYlOrRd:()=>wM,select:()=>Ir,selectAll:()=>nE,selection:()=>Cr,selector:()=>Ue,selectorAll:()=>qe,shuffle:()=>Jt,shuffler:()=>Zt,some:()=>re,sort:()=>ct,stack:()=>vT,stackOffsetDiverging:()=>xT,stackOffsetExpand:()=>bT,stackOffsetNone:()=>pT,stackOffsetSilhouette:()=>wT,stackOffsetWiggle:()=>_T,stackOrderAppearance:()=>AT,stackOrderAscending:()=>ET,stackOrderDescending:()=>TT,stackOrderInsideOut:()=>kT,stackOrderNone:()=>gT,stackOrderReverse:()=>FT,stratify:()=>gv,style:()=>Pn,subset:()=>pe,sum:()=>Kt,superset:()=>he,svg:()=>Wf,symbol:()=>EB,symbolAsterisk:()=>QE,symbolCircle:()=>tB,symbolCross:()=>eB,symbolDiamond:()=>iB,symbolDiamond2:()=>oB,symbolPlus:()=>aB,symbolSquare:()=>uB,symbolSquare2:()=>cB,symbolStar:()=>hB,symbolTimes:()=>_B,symbolTriangle:()=>pB,symbolTriangle2:()=>yB,symbolWye:()=>wB,symbolX:()=>_B,symbols:()=>AB,symbolsFill:()=>AB,symbolsStroke:()=>MB,text:()=>Pf,thresholdFreedmanDiaconis:()=>Ot,thresholdScott:()=>Dt,thresholdSturges:()=>At,tickFormat:()=>jb,tickIncrement:()=>xt,tickStep:()=>wt,ticks:()=>bt,timeDay:()=>Ox,timeDays:()=>Dx,timeFormat:()=>Ow,timeFormatDefaultLocale:()=>nA,timeFormatLocale:()=>Iw,timeFriday:()=>Vx,timeFridays:()=>tw,timeHour:()=>Nx,timeHours:()=>Cx,timeInterval:()=>_x,timeMillisecond:()=>Ax,timeMilliseconds:()=>Mx,timeMinute:()=>Tx,timeMinutes:()=>kx,timeMonday:()=>qx,timeMondays:()=>Jx,timeMonth:()=>mw,timeMonths:()=>vw,timeParse:()=>Dw,timeSaturday:()=>Wx,timeSaturdays:()=>ew,timeSecond:()=>Ex,timeSeconds:()=>Bx,timeSunday:()=>jx,timeSundays:()=>Xx,timeThursday:()=>Gx,timeThursdays:()=>Qx,timeTickInterval:()=>Fw,timeTicks:()=>kw,timeTuesday:()=>Hx,timeTuesdays:()=>Zx,timeWednesday:()=>Yx,timeWednesdays:()=>Kx,timeWeek:()=>jx,timeWeeks:()=>Xx,timeYear:()=>ww,timeYears:()=>_w,timeout:()=>fo,timer:()=>oo,timerFlush:()=>ao,transition:()=>xa,transpose:()=>Qt,tree:()=>Mv,treemap:()=>Fv,treemapBinary:()=>Sv,treemapDice:()=>cv,treemapResquarify:()=>Cv,treemapSlice:()=>Ev,treemapSliceDice:()=>Nv,treemapSquarify:()=>kv,tsv:()=>zf,tsvFormat:()=>Ls,tsvFormatBody:()=>Us,tsvFormatRow:()=>zs,tsvFormatRows:()=>$s,tsvFormatValue:()=>js,tsvParse:()=>Ds,tsvParseRows:()=>Ps,union:()=>ge,unixDay:()=>Ux,unixDays:()=>$x,utcDay:()=>Px,utcDays:()=>Lx,utcFormat:()=>Pw,utcFriday:()=>cw,utcFridays:()=>gw,utcHour:()=>Ix,utcHours:()=>Rx,utcMillisecond:()=>Ax,utcMilliseconds:()=>Mx,utcMinute:()=>Fx,utcMinutes:()=>Sx,utcMonday:()=>iw,utcMondays:()=>lw,utcMonth:()=>bw,utcMonths:()=>xw,utcParse:()=>Lw,utcSaturday:()=>sw,utcSaturdays:()=>yw,utcSecond:()=>Ex,utcSeconds:()=>Bx,utcSunday:()=>rw,utcSundays:()=>fw,utcThursday:()=>uw,utcThursdays:()=>pw,utcTickInterval:()=>Tw,utcTicks:()=>Bw,utcTuesday:()=>ow,utcTuesdays:()=>hw,utcWednesday:()=>aw,utcWednesdays:()=>dw,utcWeek:()=>rw,utcWeeks:()=>fw,utcYear:()=>Aw,utcYears:()=>Mw,variance:()=>P,window:()=>Cn,xml:()=>Gf,zip:()=>ee,zoom:()=>XT,zoomIdentity:()=>UT,zoomTransform:()=>$T});var r={};n.r(r),n.d(r,{n:()=>oS});var i={};function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function s(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function p(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function g(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function y(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=p,n=(e,n)=>p(t(e),n),r=(e,n)=>t(e)-n):(e=t===p||t===g?t:m,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function m(){return 0}function v(t){return null===t?NaN:+t}n.r(i),n.d(i,{hexbin:()=>oS});const b=y(p),x=b.right,w=b.left,_=y(v).center,A=x;function M(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=S(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const E=T(S),B=T(function(t){const e=S(t);return(t,n,r,i,o)=>{e(t,n,0+(r<<=2),0+(i<<=2),o<<=2),e(t,n,r+1,i+1,o),e(t,n,r+2,i+2,o),e(t,n,r+3,i+3,o)}});function T(t){return function(e,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return e;const u=n&&t(n),c=r&&t(r),s=i.slice();return u&&c?(k(u,s,i,o,a),k(u,i,s,o,a),k(u,s,i,o,a),F(c,i,s,o,a),F(c,s,i,o,a),F(c,i,s,o,a)):u?(k(u,i,s,o,a),k(u,s,i,o,a),k(u,i,s,o,a)):c&&(F(c,i,s,o,a),F(c,s,i,o,a),F(c,i,s,o,a)),e}}function k(t,e,n,r,i){for(let o=0,a=r*i;o<a;)t(e,n,o,o+=r,1)}function F(t,e,n,r,i){for(let o=0,a=r*i;o<r;++o)t(e,n,o,o+a,r)}function S(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(n,r,i,o,a)=>{if(!((o-=a)>=i))return;let u=t*r[i];const c=a*t;for(let t=i,e=i+c;t<e;t+=a)u+=r[Math.min(o,t)];for(let t=i,s=o;t<=s;t+=a)u+=r[Math.min(o,t+c)],n[t]=u/e,u-=r[Math.max(i,t-c)]}}(t);const n=t-e,r=2*t+1;return(t,i,o,a,u)=>{if(!((a-=u)>=o))return;let c=e*i[o];const s=u*e,f=s+u;for(let t=o,e=o+s;t<e;t+=u)c+=i[Math.min(a,t)];for(let e=o,l=a;e<=l;e+=u)c+=i[Math.min(a,e+s)],t[e]=(c+n*(i[Math.max(o,e-f)]+i[Math.min(a,e+f)]))/r,c-=i[Math.max(o,e-s)]}}function N(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function C(t){return 0|t.length}function I(t){return!(t>0)}function R(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function O(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(R)).map(C),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(I))return o;for(;;){o.push(i.map((e,n)=>t[n][e]));let a=r;for(;++i[a]===n[a];){if(0===a)return e?o.map(e):o;i[a--]=0}}}function D(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}function P(t,e){let n,r=0,i=0,o=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,o+=n*(e-i));else{let a=-1;for(let u of t)null!=(u=e(u,++a,t))&&(u=+u)>=u&&(n=u-i,i+=n/++r,o+=n*(u-i))}if(r>1)return o/(r-1)}function L(t,e){const n=P(t,e);return n?Math.sqrt(n):n}function U(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class ${constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(e=o,n=t[--i],o=e+n,r=n-(o-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=o+n,n==e-o&&(o=e))}return o}}function z(t,e){const n=new $;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function j(t,e){const n=new $;let r=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):i=>n.add(+e(i,++r,t)||0))}class q extends Map{constructor(t,e=W){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Y(this,t))}has(t){return super.has(Y(this,t))}set(t,e){return super.set(G(this,t),e)}delete(t){return super.delete(V(this,t))}}class H extends Set{constructor(t,e=W){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(Y(this,t))}add(t){return super.add(G(this,t))}delete(t){return super.delete(V(this,t))}}function Y({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function G({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function V({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function W(t){return null!==t&&"object"==typeof t?t.valueOf():t}function X(t){return t}function J(t,...e){return at(t,X,X,e)}function Z(t,...e){return at(t,Array.from,X,e)}function K(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap(t=>t.pop().map(([e,n])=>[...t,e,n]));return t}function Q(t,...e){return K(Z(t,...e),e)}function tt(t,e,...n){return K(nt(t,e,...n),n)}function et(t,e,...n){return at(t,X,e,n)}function nt(t,e,...n){return at(t,Array.from,e,n)}function rt(t,...e){return at(t,X,ot,e)}function it(t,...e){return at(t,Array.from,ot,e)}function ot(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function at(t,e,n,r){return function t(i,o){if(o>=r.length)return n(i);const a=new q,u=r[o++];let c=-1;for(const t of i){const e=u(t,++c,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}function ut(t,e){return Array.from(e,e=>t[e])}function ct(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const r=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),r.sort((t,n)=>{for(const r of e){const e=ft(r[t],r[n]);if(e)return e}})):(n=t.map(n),r.sort((t,e)=>ft(n[t],n[e]))),ut(t,r)}return t.sort(st(n))}function st(t=p){if(t===p)return ft;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function ft(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function lt(t,e,n){return(2!==e.length?ct(et(t,e,n),([t,e],[n,r])=>p(e,r)||p(t,n)):ct(J(t,n),([t,n],[r,i])=>e(n,i)||p(t,r))).map(([t])=>t)}var ht=Array.prototype,dt=ht.slice;function pt(t){return()=>t}ht.map;const gt=Math.sqrt(50),yt=Math.sqrt(10),mt=Math.sqrt(2);function vt(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=gt?10:o>=yt?5:o>=mt?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(t*s),c=Math.round(e*s),u/s<t&&++u,c/s>e&&--c,s=-s):(s=Math.pow(10,i)*a,u=Math.round(t/s),c=Math.round(e/s),u*s<t&&++u,c*s>e&&--c),c<u&&.5<=n&&n<2?vt(t,e,2*n):[u,c,s]}function bt(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?vt(e,t,n):vt(t,e,n);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(r)if(a<0)for(let t=0;t<u;++t)c[t]=(o-t)/-a;else for(let t=0;t<u;++t)c[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(i+t)/-a;else for(let t=0;t<u;++t)c[t]=(i+t)*a;return c}function xt(t,e,n){return vt(t=+t,e=+e,n=+n)[2]}function wt(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?xt(e,t,n):xt(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function _t(t,e,n){let r;for(;;){const i=xt(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function At(t){return Math.max(1,Math.ceil(Math.log(N(t))/Math.LN2)+1)}function Mt(){var t=X,e=U,n=At;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,c=new Array(u);for(i=0;i<u;++i)c[i]=t(r[i],i,r);var s=e(c),f=s[0],l=s[1],h=n(c,f,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===U&&([f,l]=_t(f,l,n)),(h=bt(f,l,n))[0]<=f&&(a=xt(f,l,n)),h[h.length-1]>=l)if(t>=l&&e===U){const t=xt(f,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var d=h.length,p=0,g=d;h[p]<=f;)++p;for(;h[g-1]>l;)--g;(p||g<d)&&(h=h.slice(p,g),d=g-p);var y,m=new Array(d+1);for(i=0;i<=d;++i)(y=m[i]=[]).x0=i>0?h[i-1]:f,y.x1=i<d?h[i]:l;if(isFinite(a)){if(a>0)for(i=0;i<u;++i)null!=(o=c[i])&&f<=o&&o<=l&&m[Math.min(d,Math.floor((o-f)/a))].push(r[i]);else if(a<0)for(i=0;i<u;++i)if(null!=(o=c[i])&&f<=o&&o<=l){const t=Math.floor((f-o)*a);m[Math.min(d,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<u;++i)null!=(o=c[i])&&f<=o&&o<=l&&m[A(h,o,0,d)].push(r[i]);return m}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:pt(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:pt([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:pt(Array.isArray(t)?dt.call(t):t),r):n},r}function Et(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Bt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function Tt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function kt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function Ft(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?ft:st(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);Ft(t,e,Math.max(n,Math.floor(e-a*c/o+s)),Math.min(r,Math.floor(e+(o-a)*c/o+s)),i)}const o=t[e];let a=n,u=r;for(St(t,n,e),i(t[r],o)>0&&St(t,n,r);a<u;){for(St(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[n],o)?St(t,n,u):(++u,St(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function St(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Nt(t,e=p){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?p(t,i)>0:0===p(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}function Ct(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return Tt(t);if(e>=1)return Et(t);var r,i=(r-1)*e,o=Math.floor(i),a=Et(Ft(t,o).subarray(0,o+1));return a+(Tt(t.subarray(o+1))-a)*(i-o)}}function It(t,e,n=v){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Rt(t,e,n=v){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(e,r)=>v(n(t[r],r,t))),e<=0)return kt(r);if(e>=1)return Bt(r);var r,i=Uint32Array.from(t,(t,e)=>e),o=r.length-1,a=Math.floor(o*e);return Ft(i,a,0,o,(t,e)=>ft(r[t],r[e])),(a=Nt(i.subarray(0,a+1),t=>r[t]))>=0?a:-1}}function Ot(t,e,n){const r=N(t),i=Ct(t,.75)-Ct(t,.25);return r&&i?Math.ceil((n-e)/(2*i*Math.pow(r,-1/3))):1}function Dt(t,e,n){const r=N(t),i=L(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function Pt(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function Lt(t,e){return Ct(t,.5,e)}function Ut(t,e){return Rt(t,.5,e)}function $t(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function zt(t,e){const n=new q;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[t,e]of n)e>i&&(i=e,r=t);return r}function jt(t,e=qt){const n=[];let r,i=!1;for(const o of t)i&&n.push(e(r,o)),r=o,i=!0;return n}function qt(t,e){return[t,e]}function Ht(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Yt(t,e=p){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const r=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=p);const i=(t,r)=>e(n[t],n[r]);let o,a;return t=Uint32Array.from(n,(t,e)=>e),t.sort(e===p?(t,e)=>ft(n[t],n[e]):st(i)),t.forEach((t,e)=>{const n=i(t,void 0===o?t:o);n>=0?((void 0===o||n>0)&&(o=t,a=e),r[t]=a):r[t]=NaN}),r}function Gt(t,e=p){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?p(t,i)<0:0===p(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)<0:0===e(i,i))&&(n=i,r=!0);return n}function Vt(t,e=p){if(1===e.length)return kt(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)<0)&&(n=o,r=i);return r}function Wt(t,e=p){if(1===e.length)return Bt(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)>0)&&(n=o,r=i);return r}function Xt(t,e){const n=Vt(t,e);return n<0?void 0:n}const Jt=Zt(Math.random);function Zt(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,o=e[i+n];e[i+n]=e[r+n],e[r+n]=o}return e}}function Kt(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Qt(t){if(!(i=t.length))return[];for(var e=-1,n=Tt(t,te),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function te(t){return t.length}function ee(){return Qt(arguments)}function ne(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function re(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function ie(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function oe(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(n,r)=>e(n,r,t))}function ae(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=e(n,o,++a,t);return n}function ue(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function ce(t,...e){t=new H(t);for(const n of e)for(const e of n)t.delete(e);return t}function se(t,e){const n=e[Symbol.iterator](),r=new H;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function fe(t,...e){t=new H(t),e=e.map(le);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function le(t){return t instanceof H?t:new H(t)}function he(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){const e=de(t);if(r.has(e))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const t=de(i);if(r.add(t),Object.is(e,t))break}}return!0}function de(t){return null!==t&&"object"==typeof t?t.valueOf():t}function pe(t,e){return he(e,t)}function ge(...t){const e=new H;for(const n of t)for(const t of n)e.add(t);return e}function ye(t){return t}n.dn(ye);var me=1,ve=2,be=3,xe=4,we=1e-6;function _e(t){return"translate("+t+",0)"}function Ae(t){return"translate(0,"+t+")"}function Me(t){return e=>+t(e)}function Ee(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Be(){return!this.__axis}function Te(t,e){var n=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=t===me||t===xe?-1:1,f=t===xe||t===ve?"x":"y",l=t===me||t===be?_e:Ae;function h(h){var d=r??(e.ticks?e.ticks.apply(e,n):e.domain()),p=i??(e.tickFormat?e.tickFormat.apply(e,n):ye),g=Math.max(o,0)+u,y=e.range(),m=+y[0]+c,v=+y[y.length-1]+c,b=(e.bandwidth?Ee:Me)(e.copy(),c),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),_=x.selectAll(".tick").data(d,e).order(),A=_.exit(),M=_.enter().append("g").attr("class","tick"),E=_.select("line"),B=_.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(M),E=E.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),B=B.merge(M.append("text").attr("fill","currentColor").attr(f,s*g).attr("dy",t===me?"0em":t===be?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),_=_.transition(h),E=E.transition(h),B=B.transition(h),A=A.transition(h).attr("opacity",we).attr("transform",function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")}),M.attr("opacity",we).attr("transform",function(t){var e=this.parentNode.__axis;return l((e&&isFinite(e=e(t))?e:b(t))+c)})),A.remove(),w.attr("d",t===xe||t===ve?a?"M"+s*a+","+m+"H"+c+"V"+v+"H"+s*a:"M"+c+","+m+"V"+v:a?"M"+m+","+s*a+"V"+c+"H"+v+"V"+s*a:"M"+m+","+c+"H"+v),_.attr("opacity",1).attr("transform",function(t){return l(b(t)+c)}),E.attr(f+"2",s*o),B.attr(f,s*g).text(p),x.filter(Be).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ve?"start":t===xe?"end":"middle"),x.each(function(){this.__axis=b})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function ke(t){return Te(me,t)}function Fe(t){return Te(ve,t)}function Se(t){return Te(be,t)}function Ne(t){return Te(xe,t)}var Ce={value:()=>{}};function Ie(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Re(r)}function Re(t){this._=t}function Oe(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function De(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ce,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Re.prototype=Ie.prototype={constructor:Re,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(n=(t=o[a]).type)i[n]=De(i[n],t.name,e);else if(null==e)for(n in i)i[n]=De(i[n],t.name,null);return this}for(;++a<u;)if((n=(t=o[a]).type)&&(n=Oe(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Re(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const Pe=Ie;function Le(){}function Ue(t){return null==t?Le:function(){return this.querySelector(t)}}function $e(t){"function"!=typeof t&&(t=Ue(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new Sr(r,this._parents)}function ze(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function je(){return[]}function qe(t){return null==t?je:function(){return this.querySelectorAll(t)}}function He(t){t="function"==typeof t?function(t){return function(){return ze(t.apply(this,arguments))}}(t):qe(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new Sr(r,i)}function Ye(t){return function(){return this.matches(t)}}function Ge(t){return function(e){return e.matches(t)}}n.dn(Ue),n.dn($e),n.dn(qe),n.dn(He),n.dn(Ye),n.dn(Xe);var Ve=Array.prototype.find;function We(){return this.firstElementChild}function Xe(t){return this.select(null==t?We:function(t){return function(){return Ve.call(this.children,t)}}("function"==typeof t?t:Ge(t)))}n.dn(Ke);var Je=Array.prototype.filter;function Ze(){return Array.from(this.children)}function Ke(t){return this.selectAll(null==t?Ze:function(t){return function(){return Je.call(this.children,t)}}("function"==typeof t?t:Ge(t)))}function Qe(t){"function"!=typeof t&&(t=Ye(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Sr(r,this._parents)}function tn(t){return new Array(t.length)}function en(){return new Sr(this._enter||this._groups.map(tn),this._parents)}function nn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rn(t){return function(){return t}}function on(t,e,n,r,i,o){for(var a,u=0,c=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new nn(t,o[u]);for(;u<c;++u)(a=e[u])&&(i[u]=a)}function an(t,e,n,r,i,o,a){var u,c,s,f=new Map,l=e.length,h=o.length,d=new Array(l);for(u=0;u<l;++u)(c=e[u])&&(d[u]=s=a.call(c,c.__data__,u,e)+"",f.has(s)?i[u]=c:f.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=f.get(s))?(r[u]=c,c.__data__=o[u],f.delete(s)):n[u]=new nn(t,o[u]);for(u=0;u<l;++u)(c=e[u])&&f.get(d[u])===c&&(i[u]=c)}function un(t){return t.__data__}function cn(t,e){if(!arguments.length)return Array.from(this,un);var n=e?an:on,r=this._parents,i=this._groups;"function"!=typeof t&&(t=rn(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,d=sn(t.call(f,f&&f.__data__,s,r)),p=d.length,g=u[s]=new Array(p),y=a[s]=new Array(p);n(f,l,g,y,c[s]=new Array(h),d,e);for(var m,v,b=0,x=0;b<p;++b)if(m=g[b]){for(b>=x&&(x=b+1);!(v=y[x])&&++x<p;);m._next=v||null}}return(a=new Sr(a,r))._enter=u,a._exit=c,a}function sn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fn(){return new Sr(this._exit||this._groups.map(tn),this._parents)}function ln(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function hn(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,f=n[c],l=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=f[p]||l[p])&&(d[p]=s);for(;c<i;++c)u[c]=n[c];return new Sr(u,this._parents)}function dn(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this}function pn(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=gn);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(e)}return new Sr(i,this._parents).order()}function gn(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function yn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mn(){return Array.from(this)}function vn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bn(){let t=0;for(const e of this)++t;return t}function xn(){return!this.node()}function wn(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}n.dn(Qe),n.dn(tn),n.dn(en),nn.prototype={constructor:nn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},n.dn(rn),n.dn(cn),n.dn(fn),n.dn(ln),n.dn(hn),n.dn(dn),n.dn(pn),n.dn(yn),n.dn(mn),n.dn(vn),n.dn(bn),n.dn(xn),n.dn(wn);var _n="http://www.w3.org/1999/xhtml";const An={svg:"http://www.w3.org/2000/svg",xhtml:_n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),An.hasOwnProperty(e)?{space:An[e],local:t}:t}function En(t){return function(){this.removeAttribute(t)}}function Bn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Tn(t,e){return function(){this.setAttribute(t,e)}}function kn(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Sn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Nn(t,e){var n=Mn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Bn:En:"function"==typeof e?n.local?Sn:Fn:n.local?kn:Tn)(n,e))}function Cn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function In(t){return function(){this.style.removeProperty(t)}}function Rn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function On(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Dn(t,e,n){return arguments.length>1?this.each((null==e?In:"function"==typeof e?On:Rn)(t,e,n??"")):Pn(this.node(),t)}function Pn(t,e){return t.style.getPropertyValue(e)||Cn(t).getComputedStyle(t,null).getPropertyValue(e)}function Ln(t){return function(){delete this[t]}}function Un(t,e){return function(){this[t]=e}}function $n(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function zn(t,e){return arguments.length>1?this.each((null==e?Ln:"function"==typeof e?$n:Un)(t,e)):this.node()[t]}function jn(t){return t.trim().split(/^|\s+/)}function qn(t){return t.classList||new Hn(t)}function Hn(t){this._node=t,this._names=jn(t.getAttribute("class")||"")}function Yn(t,e){for(var n=qn(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Gn(t,e){for(var n=qn(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Vn(t){return function(){Yn(this,t)}}function Wn(t){return function(){Gn(this,t)}}function Xn(t,e){return function(){(e.apply(this,arguments)?Yn:Gn)(this,t)}}function Jn(t,e){var n=jn(t+"");if(arguments.length<2){for(var r=qn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Xn:e?Vn:Wn)(n,e))}function Zn(){this.textContent=""}function Kn(t){return function(){this.textContent=t}}function Qn(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function tr(t){return arguments.length?this.each(null==t?Zn:("function"==typeof t?Qn:Kn)(t)):this.node().textContent}function er(){this.innerHTML=""}function nr(t){return function(){this.innerHTML=t}}function rr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ir(t){return arguments.length?this.each(null==t?er:("function"==typeof t?rr:nr)(t)):this.node().innerHTML}function or(){this.nextSibling&&this.parentNode.appendChild(this)}function ar(){return this.each(or)}function ur(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cr(){return this.each(ur)}function sr(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_n&&e.documentElement.namespaceURI===_n?e.createElement(t):e.createElementNS(n,t)}}function fr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function lr(t){var e=Mn(t);return(e.local?fr:sr)(e)}function hr(t){var e="function"==typeof t?t:lr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function dr(){return null}function pr(t,e){var n="function"==typeof t?t:lr(t),r=null==e?dr:"function"==typeof e?e:Ue(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function gr(){var t=this.parentNode;t&&t.removeChild(this)}function yr(){return this.each(gr)}function mr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function br(t){return this.select(t?vr:mr)}function xr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function wr(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function _r(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Ar(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?_r:wr,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}function Mr(t,e,n){var r=Cn(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Er(t,e){return function(){return Mr(this,t,e)}}function Br(t,e){return function(){return Mr(this,t,e.apply(this,arguments))}}function Tr(t,e){return this.each(("function"==typeof e?Br:Er)(t,e))}function*kr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}n.dn(Mn),n.dn(Nn),n.dn(Cn),n.dn(Dn),n.dn(zn),n.dn(Jn),Hn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.dn(tr),n.dn(ir),n.dn(ar),n.dn(cr),n.dn(lr),n.dn(hr),n.dn(pr),n.dn(yr),n.dn(br),n.dn(xr),n.dn(Ar),n.dn(Tr),n.dn(kr);var Fr=[null];function Sr(t,e){this._groups=t,this._parents=e}function Nr(){return new Sr([[document.documentElement]],Fr)}Sr.prototype=Nr.prototype={constructor:Sr,select:$e,selectAll:He,selectChild:Xe,selectChildren:Ke,filter:Qe,data:cn,enter:en,exit:fn,join:ln,merge:hn,selection:function(){return this},order:dn,sort:pn,call:yn,nodes:mn,node:vn,size:bn,empty:xn,each:wn,attr:Nn,style:Dn,property:zn,classed:Jn,text:tr,html:ir,raise:ar,lower:cr,append:hr,insert:pr,remove:yr,clone:br,datum:xr,on:Ar,dispatch:Tr,[Symbol.iterator]:kr};const Cr=Nr;function Ir(t){return"string"==typeof t?new Sr([[document.querySelector(t)]],[document.documentElement]):new Sr([[t]],Fr)}n.dn(Ir),n.dn(Pr);const Rr={passive:!1},Or={capture:!0,passive:!1};function Dr(t){t.stopImmediatePropagation()}function Pr(t){t.preventDefault(),t.stopImmediatePropagation()}function Lr(t){var e=t.document.documentElement,n=Ir(t).on("dragstart.drag",Pr,Or);"onselectstart"in e?n.on("selectstart.drag",Pr,Or):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Ur(t,e){var n=t.document.documentElement,r=Ir(t).on("dragstart.drag",null);e&&(r.on("click.drag",Pr,Or),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function $r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function zr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function jr(){}n.dn(Lr),n.dn($r);var qr=.7,Hr=1/qr,Yr="\\s*([+-]?\\d+)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wr=/^#([0-9a-f]{3,8})$/,Xr=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),Jr=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Zr=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${Gr}\\)$`),Kr=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${Gr}\\)$`),Qr=new RegExp(`^hsl\\(${Gr},${Vr},${Vr}\\)$`),ti=new RegExp(`^hsla\\(${Gr},${Vr},${Vr},${Gr}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ni(){return this.rgb().formatHex()}function ri(){return this.rgb().formatRgb()}function ii(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Wr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?oi(e):3===n?new si(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ai(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Xr.exec(t))?new si(e[1],e[2],e[3],1):(e=Jr.exec(t))?new si(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zr.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=Kr.exec(t))?ai(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qr.exec(t))?gi(e[1],e[2]/100,e[3]/100,1):(e=ti.exec(t))?gi(e[1],e[2]/100,e[3]/100,e[4]):ei.hasOwnProperty(t)?oi(ei[t]):"transparent"===t?new si(NaN,NaN,NaN,0):null}function oi(t){return new si(t>>16&255,t>>8&255,255&t,1)}function ai(t,e,n,r){return r<=0&&(t=e=n=NaN),new si(t,e,n,r)}function ui(t){return t instanceof jr||(t=ii(t)),t?new si((t=t.rgb()).r,t.g,t.b,t.opacity):new si}function ci(t,e,n,r){return 1===arguments.length?ui(t):new si(t,e,n,r??1)}function si(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function fi(){return`#${pi(this.r)}${pi(this.g)}${pi(this.b)}`}function li(){const t=hi(this.opacity);return`${1===t?"rgb(":"rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${1===t?")":`, ${t})`}`}function hi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function di(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function pi(t){return((t=di(t))<16?"0":"")+t.toString(16)}function gi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new vi(t,e,n,r)}function yi(t){if(t instanceof vi)return new vi(t.h,t.s,t.l,t.opacity);if(t instanceof jr||(t=ii(t)),!t)return new vi;if(t instanceof vi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new vi(a,u,c,t.opacity)}function mi(t,e,n,r){return 1===arguments.length?yi(t):new vi(t,e,n,r??1)}function vi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function bi(t){return(t=(t||0)%360)<0?t+360:t}function xi(t){return Math.max(0,Math.min(1,t||0))}function wi(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function _i(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Ai(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return _i((n-r/e)*e,a,i,o,u)}}function Mi(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return _i((n-r/e)*e,i,o,a,u)}}$r(jr,ii,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ni,formatHex:ni,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yi(this).formatHsl()},formatRgb:ri,toString:ri}),$r(si,ci,zr(jr,{brighter(t){return t=null==t?Hr:Math.pow(Hr,t),new si(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?qr:Math.pow(qr,t),new si(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new si(di(this.r),di(this.g),di(this.b),hi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fi,formatHex:fi,formatHex8:function(){return`#${pi(this.r)}${pi(this.g)}${pi(this.b)}${pi(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:li,toString:li})),$r(vi,mi,zr(jr,{brighter(t){return t=null==t?Hr:Math.pow(Hr,t),new vi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?qr:Math.pow(qr,t),new vi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new si(wi(t>=240?t-240:t+120,i,r),wi(t,i,r),wi(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new vi(bi(this.h),xi(this.s),xi(this.l),hi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hi(this.opacity);return`${1===t?"hsl(":"hsla("}${bi(this.h)}, ${100*xi(this.s)}%, ${100*xi(this.l)}%${1===t?")":`, ${t})`}`}})),n.dn(Ai),n.dn(Mi);const Ei=t=>()=>t;function Bi(t,e){return function(n){return t+n*e}}function Ti(t,e){var n=e-t;return n?Bi(t,n>180||n<-180?n-360*Math.round(n/360):n):Ei(isNaN(t)?e:t)}function ki(t,e){var n=e-t;return n?Bi(t,n):Ei(isNaN(t)?e:t)}n.dn(Ei);const Fi=function t(e){var n=function(t){return 1===(t=+t)?ki:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ei(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=ci(t)).r,(e=ci(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ki(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Si(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=ci(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}var Ni=Si(Ai),Ci=Si(Mi);function Ii(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Ri(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Oi(t,e){return(Ri(e)?Ii:Di)(t,e)}function Di(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=qi(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Pi(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Li(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ui(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=qi(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}n.dn(Ii),n.dn(Oi),n.dn(Pi),n.dn(Li),n.dn(Ui),n.dn(ji);var $i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zi=new RegExp($i.source,"g");function ji(t,e){var n,r,i,o=$i.lastIndex=zi.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=$i.exec(t))&&(r=zi.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Li(n,r)})),o=zi.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function qi(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ei(e):("number"===r?Li:"string"===r?(n=ii(e))?(e=n,Fi):ji:e instanceof ii?Fi:e instanceof Date?Pi:Ri(e)?Ii:Array.isArray(e)?Di:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ui:Li)(t,e)}function Hi(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yi(t,e){if(t=Hi(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}n.dn(qi),n.dn(Hi),n.dn(Yi);var Gi,Vi,Wi=0,Xi=0,Ji=0,Zi=0,Ki=0,Qi=0,to="object"==typeof performance&&performance.now?performance:Date,eo="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function no(){return Ki||(eo(ro),Ki=to.now()+Qi)}function ro(){Ki=0}function io(){this._call=this._time=this._next=null}function oo(t,e,n){var r=new io;return r.restart(t,e,n),r}function ao(){no(),++Wi;for(var t,e=Gi;e;)(t=Ki-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wi}function uo(){Ki=(Zi=to.now())+Qi,Wi=Xi=0;try{ao()}finally{Wi=0,function(){for(var t,e,n=Gi,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Gi=e);Vi=t,so(r)}(),Ki=0}}function co(){var t=to.now(),e=t-Zi;e>1e3&&(Qi-=e,Zi=t)}function so(t){Wi||(Xi&&(Xi=clearTimeout(Xi)),t-Ki>24?(t<1/0&&(Xi=setTimeout(uo,t-to.now()-Qi)),Ji&&(Ji=clearInterval(Ji))):(Ji||(Zi=to.now(),Ji=setInterval(co,1e3)),Wi=1,eo(uo)))}function fo(t,e,n){var r=new io;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}io.prototype=oo.prototype={constructor:io,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?no():+n)+(null==e?0:+e),this._next||Vi===this||(Vi?Vi._next=this:Gi=this,Vi=this),this._call=t,this._time=n,so()},stop:function(){this._call&&(this._call=null,this._time=1/0,so())}},n.dn(fo),n.dn(wo);var lo=Pe("start","end","cancel","interrupt"),ho=[],po=0,go=1,yo=2,mo=3,vo=4,bo=5,xo=6;function wo(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var s,f,l,h;if(n.state!==go)return u();for(s in i)if((h=i[s]).name===n.name){if(h.state===mo)return fo(o);h.state===vo?(h.state=xo,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<e&&(h.state=xo,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(fo(function(){n.state===mo&&(n.state=vo,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=yo,n.on.call("start",t,t.__data__,n.index,n.group),n.state===yo){for(n.state=mo,r=new Array(l=n.tween.length),s=0,f=-1;s<l;++s)(h=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++f]=h);r.length=f+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=bo,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);n.state===bo&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=xo,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=oo(function(t){n.state=go,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:lo,tween:ho,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:po})}function _o(t,e){var n=Mo(t,e);if(n.state>po)throw new Error("too late; already scheduled");return n}function Ao(t,e){var n=Mo(t,e);if(n.state>mo)throw new Error("too late; already running");return n}function Mo(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Eo(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>yo&&n.state<bo,n.state=xo,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}function Bo(t){return this.each(function(){Eo(this,t)})}n.dn(Eo),n.dn(Bo),n.dn(So);var To,ko=180/Math.PI,Fo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function So(t,e,n,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*ko,skewX:Math.atan(c)*ko,scaleX:a,scaleY:u}}function No(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,e,null,n);u.push({i:c-4,x:Li(t,i)},{i:c-2,x:Li(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Li(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Li(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Li(t,n)},{i:u-2,x:Li(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}var Co=No(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Fo:So(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Io=No(function(t){return null==t?Fo:(To||(To=document.createElementNS("http://www.w3.org/2000/svg","g")),To.setAttribute("transform",t),(t=To.transform.baseVal.consolidate())?So((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fo)},", ",")",")");function Ro(t,e){var n,r;return function(){var i=Ao(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function Oo(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Ao(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===e){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function Do(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Mo(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Ro:Oo)(n,t,e))}function Po(t,e,n){var r=t._id;return t.each(function(){var t=Ao(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Mo(t,r).value[e]}}function Lo(t,e){var n;return("number"==typeof e?Li:e instanceof ii?Fi:(n=ii(e))?(e=n,Fi):ji)(t,e)}function Uo(t){return function(){this.removeAttribute(t)}}function $o(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zo(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function jo(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function qo(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttribute(t)}}function Ho(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Yo(t,e){var n=Mn(t),r="transform"===n?Io:Lo;return this.attrTween(t,"function"==typeof e?(n.local?Ho:qo)(n,r,Po(this,"attr."+t,e)):null==e?(n.local?$o:Uo)(n):(n.local?jo:zo)(n,r,e))}function Go(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Vo(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Wo(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Mn(t);return this.tween(n,(r.local?Go:Vo)(r,e))}function Xo(t,e){return function(){_o(this,t).delay=+e.apply(this,arguments)}}function Jo(t,e){return e=+e,function(){_o(this,t).delay=e}}function Zo(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Xo:Jo)(e,t)):Mo(this.node(),e).delay}function Ko(t,e){return function(){Ao(this,t).duration=+e.apply(this,arguments)}}function Qo(t,e){return e=+e,function(){Ao(this,t).duration=e}}function ta(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ko:Qo)(e,t)):Mo(this.node(),e).duration}function ea(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Ao(this,t).ease=e}}(e,t)):Mo(this.node(),e).ease}function na(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Ao(this,t).ease=n}}(this._id,t))}function ra(t){"function"!=typeof t&&(t=Ye(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new ba(r,this._parents,this._name,this._id)}function ia(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],f=n[u],l=s.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=s[d]||f[d])&&(h[d]=c);for(;u<r;++u)a[u]=e[u];return new ba(a,this._parents,this._name,this._id)}function oa(t,e){var n=this._id;return arguments.length<2?Mo(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?_o:Ao;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))}function aa(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))}function ua(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ue(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,wo(l[h],e,n,h,l,Mo(u,n)));return new ba(o,this._parents,e,n)}function ca(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=qe(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,d=t.call(c,c.__data__,l,s),p=Mo(c,n),g=0,y=d.length;g<y;++g)(h=d[g])&&wo(h,e,n,g,d,p);o.push(d),a.push(c)}return new ba(o,a,e,n)}n.dn(Do),n.dn(Lo),n.dn(Yo),n.dn(Wo),n.dn(Zo),n.dn(ta),n.dn(ea),n.dn(na),n.dn(ra),n.dn(ia),n.dn(oa),n.dn(aa),n.dn(ua),n.dn(ca),n.dn(fa);var sa=Cr.prototype.constructor;function fa(){return new sa(this._groups,this._parents)}function la(t){return function(){this.style.removeProperty(t)}}function ha(t,e,n){var r="transform"==(t+="")?Co:Lo;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Pn(this,t),a=(this.style.removeProperty(t),Pn(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,la(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Pn(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Pn(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,u))}}(t,r,Po(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var c=Ao(this,t),s=c.on,f=null==c.value[a]?o||(o=la(e)):void 0;s===n&&i===f||(r=(n=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Pn(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)}function da(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,n??""))}function pa(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(Po(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))}function ga(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))}function ya(){for(var t=this._name,e=this._id,n=wa(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=Mo(a,e);wo(a,t,n,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new ba(r,this._parents,t,n)}function ma(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var u={value:a},c={value:function(){0===--i&&o()}};n.each(function(){var n=Ao(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(c)),n.on=e}),0===i&&o()})}n.dn(ha),n.dn(da),n.dn(pa),n.dn(ga),n.dn(ya),n.dn(ma);var va=0;function ba(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function xa(t){return Cr().transition(t)}function wa(){return++va}var _a=Cr.prototype;function Aa(t){return t*t*t}function Ma(t){return--t*t*t+1}function Ea(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ba.prototype=xa.prototype={constructor:ba,select:ua,selectAll:ca,selectChild:_a.selectChild,selectChildren:_a.selectChildren,filter:ra,merge:ia,selection:fa,transition:ya,call:_a.call,nodes:_a.nodes,node:_a.node,size:_a.size,empty:_a.empty,each:_a.each,on:oa,attr:Yo,attrTween:Wo,style:ha,styleTween:da,text:pa,textTween:ga,remove:aa,tween:Do,delay:Zo,duration:ta,ease:ea,easeVarying:na,end:ma,[Symbol.iterator]:_a[Symbol.iterator]},n.dn(ka);var Ba={time:null,delay:0,duration:250,ease:Ea};function Ta(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function ka(t){var e,n;t instanceof ba?(e=t._id,t=t._name):(e=wa(),(n=Ba).time=no(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&wo(a,t,e,s,u,n||Ta(a,e));return new ba(r,this._parents,t,e)}Cr.prototype.interrupt=Bo,Cr.prototype.transition=ka,n.dn(Sa);var Fa=[null];function Sa(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>go&&n.name===e)return new ba([[t]],Fa,e,+r);return null}const Na=t=>()=>t;function Ca(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Ia(t){t.preventDefault(),t.stopImmediatePropagation()}n.dn(Na),n.dn(Ia),n.dn(ou);var Ra={name:"drag"},Oa={name:"space"},Da={name:"handle"},Pa={name:"center"};const{abs:La,max:Ua,min:$a}=Math;function za(t){return[+t[0],+t[1]]}function ja(t){return[za(t[0]),za(t[1])]}var qa={name:"x",handles:["w","e"].map(Za),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ha={name:"y",handles:["n","s"].map(Za),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ya={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Za),input:function(t){return null==t?null:ja(t)},output:function(t){return t}},Ga={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Va={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Wa={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ja={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Za(t){return{type:t}}function Ka(t){return!t.ctrlKey&&!t.button}function Qa(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function tu(){return navigator.maxTouchPoints||"ontouchstart"in this}function eu(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function nu(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ru(){return au(qa)}function iu(){return au(Ha)}function ou(){return au(Ya)}function au(t){var e,n=Qa,r=Ka,i=tu,o=!0,a=Pe("start","brush","end"),u=6;function c(e){var n=e.property("__brush",g).selectAll(".overlay").data([Za("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ga.overlay).merge(n).each(function(){var t=eu(this).extent;Ir(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([Za("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ga.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Ga[t.type]}),e.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Ir(this),e=eu(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new l(t,e,n):r}function l(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,m,v=this,b=n.target.__data__.type,x="selection"===(o&&n.metaKey?b="overlay":b)?Ra:o&&n.altKey?Pa:Da,w=t===Ha?null:Xa[b],_=t===qa?null:Ja[b],A=eu(v),M=A.extent,E=A.selection,B=M[0][0],T=M[0][1],k=M[1][0],F=M[1][1],S=0,N=0,C=w&&_&&o&&n.shiftKey,I=Array.from(n.touches||[n],t=>{const e=t.identifier;return(t=Yi(t,v)).point0=t.slice(),t.identifier=e,t});Eo(v);var R=f(v,arguments,!0).beforestart();if("overlay"===b){E&&(g=!0);const e=[I[0],I[1]||I[0]];A.selection=E=[[i=t===Ha?B:$a(e[0][0],e[1][0]),u=t===qa?T:$a(e[0][1],e[1][1])],[l=t===Ha?k:Ua(e[0][0],e[1][0]),d=t===qa?F:Ua(e[0][1],e[1][1])]],I.length>1&&U(n)}else i=E[0][0],u=E[0][1],l=E[1][0],d=E[1][1];a=i,c=u,h=l,p=d;var O=Ir(v).attr("pointer-events","none"),D=O.selectAll(".overlay").attr("cursor",Ga[b]);if(n.touches)R.moved=L,R.ended=$;else{var P=Ir(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",$,!0);o&&P.on("keydown.brush",function(t){switch(t.keyCode){case 16:C=w&&_;break;case 18:x===Da&&(w&&(l=h-S*w,i=a+S*w),_&&(d=p-N*_,u=c+N*_),x=Pa,U(t));break;case 32:x!==Da&&x!==Pa||(w<0?l=h-S:w>0&&(i=a-S),_<0?d=p-N:_>0&&(u=c-N),x=Oa,D.attr("cursor",Ga.selection),U(t));break;default:return}Ia(t)},!0).on("keyup.brush",function(t){switch(t.keyCode){case 16:C&&(y=m=C=!1,U(t));break;case 18:x===Pa&&(w<0?l=h:w>0&&(i=a),_<0?d=p:_>0&&(u=c),x=Da,U(t));break;case 32:x===Oa&&(t.altKey?(w&&(l=h-S*w,i=a+S*w),_&&(d=p-N*_,u=c+N*_),x=Pa):(w<0?l=h:w>0&&(i=a),_<0?d=p:_>0&&(u=c),x=Da),D.attr("cursor",Ga[b]),U(t));break;default:return}Ia(t)},!0),Lr(n.view)}s.call(v),R.start(n,x.name)}function L(t){for(const e of t.changedTouches||[t])for(const t of I)t.identifier===e.identifier&&(t.cur=Yi(e,v));if(C&&!y&&!m&&1===I.length){const t=I[0];La(t.cur[0]-t[0])>La(t.cur[1]-t[1])?m=!0:y=!0}for(const t of I)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,Ia(t),U(t)}function U(t){const e=I[0],n=e.point0;var r;switch(S=e[0]-n[0],N=e[1]-n[1],x){case Oa:case Ra:w&&(S=Ua(B-i,$a(k-l,S)),a=i+S,h=l+S),_&&(N=Ua(T-u,$a(F-d,N)),c=u+N,p=d+N);break;case Da:I[1]?(w&&(a=Ua(B,$a(k,I[0][0])),h=Ua(B,$a(k,I[1][0])),w=1),_&&(c=Ua(T,$a(F,I[0][1])),p=Ua(T,$a(F,I[1][1])),_=1)):(w<0?(S=Ua(B-i,$a(k-i,S)),a=i+S,h=l):w>0&&(S=Ua(B-l,$a(k-l,S)),a=i,h=l+S),_<0?(N=Ua(T-u,$a(F-u,N)),c=u+N,p=d):_>0&&(N=Ua(T-d,$a(F-d,N)),c=u,p=d+N));break;case Pa:w&&(a=Ua(B,$a(k,i-S*w)),h=Ua(B,$a(k,l+S*w))),_&&(c=Ua(T,$a(F,u-N*_)),p=Ua(T,$a(F,d+N*_)))}h<a&&(w*=-1,r=i,i=l,l=r,r=a,a=h,h=r,b in Va&&D.attr("cursor",Ga[b=Va[b]])),p<c&&(_*=-1,r=u,u=d,d=r,r=c,c=p,p=r,b in Wa&&D.attr("cursor",Ga[b=Wa[b]])),A.selection&&(E=A.selection),y&&(a=E[0][0],h=E[1][0]),m&&(c=E[0][1],p=E[1][1]),E[0][0]===a&&E[0][1]===c&&E[1][0]===h&&E[1][1]===p||(A.selection=[[a,c],[h,p]],s.call(v),R.brush(t,x.name))}function $(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else Ur(t.view,g),P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);O.attr("pointer-events","all"),D.attr("cursor",Ga.overlay),A.selection&&(E=A.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(E)&&(A.selection=null,s.call(v)),R.end(t,x.name)}}function d(t){f(this,arguments).moved(t)}function p(t){f(this,arguments).ended(t)}function g(){var e=this.__brush||{selection:null};return e.extent=ja(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",function(t){f(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){f(this,arguments).end(t)}).tween("brush",function(){var e=this,r=e.__brush,i=f(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),u=qi(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(e),i.brush()}return null!==o&&null!==a?c:c(1)}):e.each(function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,i):n,o.extent),u=f(e,i).beforestart();Eo(e),o.selection=null===a?null:a,s.call(e),u.start(r).brush(r).end(r)})},c.clear=function(t,e){c.move(t,null,e)},l.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Ir(this.that).datum();a.call(e,this.that,new Ca(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Na(ja(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Na(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Na(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var uu=Math.abs,cu=Math.cos,su=Math.sin,fu=Math.PI,lu=fu/2,hu=2*fu,du=Math.max,pu=1e-12;function gu(t,e){return Array.from({length:e-t},(e,n)=>t+n)}function yu(){return bu(!1,!1)}function mu(){return bu(!1,!0)}function vu(){return bu(!0,!1)}function bu(t,e){var n=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=gu(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},e?(t,e)=>a[e%c][e/c|0]:(t,e)=>a[e/c|0][e%c]);for(let e=0;e<c;++e){let n=0;for(let r=0;r<c;++r)n+=a[e*c+r]+t*a[r*c+e];d+=s[e]=n}u=(d=du(0,hu-n*c)/d)?n:hu/c;{let e=0;r&&f.sort((t,e)=>r(s[t],s[e]));for(const n of f){const r=e;if(t){const t=gu(1+~c,c).filter(t=>t<0?a[~t*c+n]:a[n*c+t]);i&&t.sort((t,e)=>i(t<0?-a[~t*c+n]:a[n*c+t],e<0?-a[~e*c+n]:a[n*c+e]));for(const r of t)r<0?(l[~r*c+n]||(l[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~r*c+n]*d,value:a[~r*c+n]}:(l[n*c+r]||(l[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]};h[n]={index:n,startAngle:r,endAngle:e,value:s[n]}}else{const t=gu(0,c).filter(t=>a[n*c+t]||a[t*c+n]);i&&t.sort((t,e)=>i(a[n*c+t],a[n*c+e]));for(const r of t){let t;if(n<r?(t=l[n*c+r]||(l[n*c+r]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]}):(t=l[r*c+n]||(l[r*c+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]},n===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}h[n]={index:n,startAngle:r,endAngle:e,value:s[n]}}e+=u}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return a.padAngle=function(t){return arguments.length?(n=du(0,t),a):n},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=function(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}(t))._=t,a):o&&o._},a}n.dn(yu);const xu=Math.PI,wu=2*xu,_u=1e-6,Au=wu-_u;function Mu(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Eu{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Mu:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Mu;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=n-t,c=r-e,s=o-t,f=a-e,l=s*s+f*f;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(l>_u)if(Math.abs(f*u-c*s)>_u&&i){let h=n-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),m=Math.sqrt(l),v=i*Math.tan((xu-Math.acos((p+l-g)/(2*y*m)))/2),b=v/m,x=v/y;Math.abs(b-1)>_u&&this._append`L${t+b*s},${e+b*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+x*u},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,f=1^o,l=o?r-i:i-r;null===this._x1?this._append`M${c},${s}`:(Math.abs(this._x1-c)>_u||Math.abs(this._y1-s)>_u)&&this._append`L${c},${s}`,n&&(l<0&&(l=l%wu+wu),l>Au?this._append`A${n},${n},0,1,${f},${t-a},${e-u}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:l>_u&&this._append`A${n},${n},0,${+(l>=xu)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Bu(){return new Eu}function Tu(t=3){return new Eu(+t)}Bu.prototype=Eu.prototype;var ku=Array.prototype.slice;function Fu(t){return function(){return t}}function Su(t){return t.source}function Nu(t){return t.target}function Cu(t){return t.radius}function Iu(t){return t.startAngle}function Ru(t){return t.endAngle}function Ou(){return 0}function Du(){return 10}function Pu(t){var e=Su,n=Nu,r=Cu,i=Cu,o=Iu,a=Ru,u=Ou,c=null;function s(){var s,f=e.apply(this,arguments),l=n.apply(this,arguments),h=u.apply(this,arguments)/2,d=ku.call(arguments),p=+r.apply(this,(d[0]=f,d)),g=o.apply(this,d)-lu,y=a.apply(this,d)-lu,m=+i.apply(this,(d[0]=l,d)),v=o.apply(this,d)-lu,b=a.apply(this,d)-lu;if(c||(c=s=Bu()),h>pu&&(uu(y-g)>2*h+pu?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,uu(b-v)>2*h+pu?b>v?(v+=h,b-=h):(v-=h,b+=h):v=b=(v+b)/2),c.moveTo(p*cu(g),p*su(g)),c.arc(0,0,p,g,y),g!==v||y!==b)if(t){var x=m-+t.apply(this,arguments),w=(v+b)/2;c.quadraticCurveTo(0,0,x*cu(v),x*su(v)),c.lineTo(m*cu(w),m*su(w)),c.lineTo(x*cu(b),x*su(b))}else c.quadraticCurveTo(0,0,m*cu(v),m*su(v)),c.arc(0,0,m,v,b);if(c.quadraticCurveTo(0,0,p*cu(g),p*su(g)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:Fu(+e),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Fu(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Fu(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Fu(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Fu(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Fu(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Fu(+t),s):u},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.context=function(t){return arguments.length?(c=t??null,s):c},s}function Lu(){return Pu()}function Uu(){return Pu(Du)}n.dn(Fu),n.dn(Lu);const $u=Math.PI/180,zu=180/Math.PI,ju=.96422,qu=1,Hu=.82521,Yu=4/29,Gu=6/29,Vu=3*Gu*Gu,Wu=Gu*Gu*Gu;function Xu(t){if(t instanceof Ku)return new Ku(t.l,t.a,t.b,t.opacity);if(t instanceof ac)return uc(t);t instanceof si||(t=ui(t));var e,n,r=nc(t.r),i=nc(t.g),o=nc(t.b),a=Qu((.2225045*r+.7168786*i+.0606169*o)/qu);return r===i&&i===o?e=n=a:(e=Qu((.4360747*r+.3850649*i+.1430804*o)/ju),n=Qu((.0139322*r+.0971045*i+.7141733*o)/Hu)),new Ku(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Ju(t,e){return new Ku(t,0,0,e??1)}function Zu(t,e,n,r){return 1===arguments.length?Xu(t):new Ku(t,e,n,r??1)}function Ku(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Qu(t){return t>Wu?Math.pow(t,1/3):t/Vu+Yu}function tc(t){return t>Gu?t*t*t:Vu*(t-Yu)}function ec(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function nc(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rc(t){if(t instanceof ac)return new ac(t.h,t.c,t.l,t.opacity);if(t instanceof Ku||(t=Xu(t)),0===t.a&&0===t.b)return new ac(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*zu;return new ac(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ic(t,e,n,r){return 1===arguments.length?rc(t):new ac(n,e,t,r??1)}function oc(t,e,n,r){return 1===arguments.length?rc(t):new ac(t,e,n,r??1)}function ac(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function uc(t){if(isNaN(t.h))return new Ku(t.l,0,0,t.opacity);var e=t.h*$u;return new Ku(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}$r(Ku,Zu,zr(jr,{brighter(t){return new Ku(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new Ku(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new si(ec(3.1338561*(e=ju*tc(e))-1.6168667*(t=qu*tc(t))-.4906146*(n=Hu*tc(n))),ec(-.9787684*e+1.9161415*t+.033454*n),ec(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),$r(ac,oc,zr(jr,{brighter(t){return new ac(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new ac(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return uc(this).rgb()}}));var cc=-.14861,sc=1.78277,fc=-.29227,lc=-.90649,hc=1.97294,dc=hc*lc,pc=hc*sc,gc=sc*fc-lc*cc;function yc(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof mc)return new mc(t.h,t.s,t.l,t.opacity);t instanceof si||(t=ui(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(gc*r+dc*e-pc*n)/(gc+dc-pc),o=r-i,a=(hc*(n-i)-fc*o)/lc,u=Math.sqrt(a*a+o*o)/(hc*i*(1-i)),c=u?Math.atan2(a,o)*zu-120:NaN;return new mc(c<0?c+360:c,u,i,t.opacity)}(t):new mc(t,e,n,r??1)}function mc(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}$r(mc,yc,zr(jr,{brighter(t){return t=null==t?Hr:Math.pow(Hr,t),new mc(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?qr:Math.pow(qr,t),new mc(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*$u,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new si(255*(e+n*(cc*r+sc*i)),255*(e+n*(fc*r+lc*i)),255*(e+n*(hc*r)),this.opacity)}}));var vc=Array.prototype.slice;function bc(t,e){return t-e}function xc(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}n.dn(bc),n.dn(xc);const wc=t=>()=>t;function _c(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=Ac(t,e[r]))return n;return 0}function Ac(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],d=l[1];if(Mc(c,l,e))return 0;f>r!=d>r&&n<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function Mc(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function Ec(){}n.dn(wc),n.dn(_c),n.dn(Ec),n.dn(Tc);var Bc=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Tc(){var t=1,e=1,n=At,r=u;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(bc);else{const n=U(t,kc);for(e=bt(..._t(n[0],n[1],e),e);e[e.length-1]>=n[1];)e.pop();for(;e[1]<n[0];)e.shift()}return e.map(e=>o(t,e))}function o(n,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var u=[],c=[];return function(n,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=Fc(n[0],r),Bc[s<<1].forEach(p);++o<t-1;)c=s,s=Fc(n[o+1],r),Bc[c|s<<1].forEach(p);for(Bc[0|s].forEach(p);++u<e-1;){for(o=-1,s=Fc(n[u*t+t],r),f=Fc(n[u*t],r),Bc[s<<1|f<<2].forEach(p);++o<t-1;)c=s,s=Fc(n[u*t+t+o+1],r),l=f,f=Fc(n[u*t+o+1],r),Bc[c|s<<1|f<<2|l<<3].forEach(p);Bc[s|f<<3].forEach(p)}for(o=-1,f=n[u*t]>=r,Bc[f<<2].forEach(p);++o<t-1;)l=f,f=Fc(n[u*t+o+1],r),Bc[f<<2|l<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),f=a(c);(e=d[s])?(n=h[f])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=f]=e):(e=h[f])?(n=d[s])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=s]=e):h[s]=d[f]={start:s,end:f,ring:[r,c]}}Bc[f<<3].forEach(p)}(n,o,function(t){r(t,n,o),xc(t)>0?u.push([t]):c.push(t)}),c.forEach(function(t){for(var e,n=0,r=u.length;n<r;++n)if(-1!==_c((e=u[n])[0],t))return void e.push(t)}),{type:"MultiPolygon",value:i,coordinates:u}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function u(n,r,i){n.forEach(function(n){var o=n[0],a=n[1],u=0|o,c=0|a,s=Sc(r[c*t+u]);o>0&&o<t&&u===o&&(n[0]=Nc(o,Sc(r[c*t+u-1]),s,i)),a>0&&a<e&&c===a&&(n[1]=Nc(a,Sc(r[(c-1)*t+u]),s,i))})}return i.contour=o,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?wc(vc.call(t)):wc(t),i):n},i.smooth=function(t){return arguments.length?(r=t?u:Ec,i):r===u},i}function kc(t){return isFinite(t)?t:NaN}function Fc(t,e){return null!=t&&+t>=e}function Sc(t){return null==t||isNaN(t=+t)?-1/0:t}function Nc(t,e,n,r){const i=r-e,o=n-e,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?t:t+a-.5}function Cc(t){return t[0]}function Ic(t){return t[1]}function Rc(){return 1}function Oc(){var t=Cc,e=Ic,n=Rc,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=wc(20);function l(r){var i=new Float32Array(c*s),f=Math.pow(2,-a),l=-1;for(const o of r){var h=(t(o,++l,r)+u)*f,d=(e(o,l,r)+u)*f,p=+n(o,l,r);if(p&&h>=0&&h<c&&d>=0&&d<s){var g=Math.floor(h),y=Math.floor(d),m=h-g-.5,v=d-y-.5;i[g+y*c]+=(1-m)*(1-v)*p,i[g+1+y*c]+=m*(1-v)*p,i[g+1+(y+1)*c]+=m*v*p,i[g+(y+1)*c]+=(1-m)*v*p}}return E({data:i,width:c,height:s},o*f),i}function h(t){var e=l(t),n=f(e),r=Math.pow(2,2*a);return Array.isArray(n)||(n=bt(Number.MIN_VALUE,Et(e)/r,n)),Tc().size([c,s]).thresholds(n.map(t=>t*r))(e).map((t,e)=>(t.value=+n[e],d(t)))}function d(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(g)}function g(t){t.forEach(y)}function y(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function m(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,h}return h.contours=function(t){var e=l(t),n=Tc().size([c,s]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=d(n.contour(e,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>Et(e)/r}),i},h.x=function(e){return arguments.length?(t="function"==typeof e?e:wc(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:wc(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:wc(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,m()},h.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),m()},h.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?wc(vc.call(t)):wc(t),h):f},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,m()},h}n.dn(Oc);const Dc=134217729;function Pc(t,e,n,r,i){let o,a,u,c,s=e[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=e[++l]):(o=f,f=r[++h]);let d=0;if(l<t&&h<n)for(f>s==f>-s?(a=s+o,u=o-(a-s),s=e[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);l<t&&h<n;)f>s==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=e[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l<t;)a=o+s,c=a-o,u=o-(a-c)+(s-c),s=e[++l],o=a,0!==u&&(i[d++]=u);for(;h<n;)a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h],o=a,0!==u&&(i[d++]=u);return 0===o&&0!==d||(i[d++]=o),d}function Lc(t){return new Float64Array(t)}const Uc=Lc(4),$c=Lc(8),zc=Lc(12),jc=Lc(16),qc=Lc(4);function Hc(t,e,n,r,i,o){const a=(e-o)*(n-i),u=(t-i)*(r-o),c=a-u,s=Math.abs(a+u);return Math.abs(c)>=33306690738754716e-32*s?c:-function(t,e,n,r,i,o,a){let u,c,s,f,l,h,d,p,g,y,m,v,b,x,w,_,A,M;const E=t-i,B=n-i,T=e-o,k=r-o;x=E*k,h=Dc*E,d=h-(h-E),p=E-d,h=Dc*k,g=h-(h-k),y=k-g,w=p*y-(x-d*g-p*g-d*y),_=T*B,h=Dc*T,d=h-(h-T),p=T-d,h=Dc*B,g=h-(h-B),y=B-g,A=p*y-(_-d*g-p*g-d*y),m=w-A,l=w-m,Uc[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,Uc[1]=b-(m+l)+(l-_),M=v+m,l=M-v,Uc[2]=v-(M-l)+(m-l),Uc[3]=M;let F=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,Uc),S=22204460492503146e-32*a;if(F>=S||-F>=S)return F;if(l=t-E,u=t-(E+l)+(l-i),l=n-B,s=n-(B+l)+(l-i),l=e-T,c=e-(T+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return F;if(S=11093356479670487e-47*a+33306690738754706e-32*Math.abs(F),F+=E*f+k*u-(T*s+B*c),F>=S||-F>=S)return F;x=u*k,h=Dc*u,d=h-(h-u),p=u-d,h=Dc*k,g=h-(h-k),y=k-g,w=p*y-(x-d*g-p*g-d*y),_=c*B,h=Dc*c,d=h-(h-c),p=c-d,h=Dc*B,g=h-(h-B),y=B-g,A=p*y-(_-d*g-p*g-d*y),m=w-A,l=w-m,qc[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,qc[1]=b-(m+l)+(l-_),M=v+m,l=M-v,qc[2]=v-(M-l)+(m-l),qc[3]=M;const N=Pc(4,Uc,4,qc,$c);x=E*f,h=Dc*E,d=h-(h-E),p=E-d,h=Dc*f,g=h-(h-f),y=f-g,w=p*y-(x-d*g-p*g-d*y),_=T*s,h=Dc*T,d=h-(h-T),p=T-d,h=Dc*s,g=h-(h-s),y=s-g,A=p*y-(_-d*g-p*g-d*y),m=w-A,l=w-m,qc[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,qc[1]=b-(m+l)+(l-_),M=v+m,l=M-v,qc[2]=v-(M-l)+(m-l),qc[3]=M;const C=Pc(N,$c,4,qc,zc);x=u*f,h=Dc*u,d=h-(h-u),p=u-d,h=Dc*f,g=h-(h-f),y=f-g,w=p*y-(x-d*g-p*g-d*y),_=c*s,h=Dc*c,d=h-(h-c),p=c-d,h=Dc*s,g=h-(h-s),y=s-g,A=p*y-(_-d*g-p*g-d*y),m=w-A,l=w-m,qc[0]=w-(m+l)+(l-A),v=x+m,l=v-x,b=x-(v-l)+(m-l),m=b-_,l=b-m,qc[1]=b-(m+l)+(l-_),M=v+m,l=M-v,qc[2]=v-(M-l)+(m-l),qc[3]=M;const I=Pc(C,zc,4,qc,jc);return jc[I-1]}(t,e,n,r,i,o,s)}Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(8),Lc(8),Lc(8),Lc(4),Lc(8),Lc(8),Lc(8),Lc(12),Lc(192),Lc(192),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(8),Lc(8),Lc(8),Lc(8),Lc(8),Lc(8),Lc(8),Lc(8),Lc(8),Lc(4),Lc(4),Lc(4),Lc(8),Lc(16),Lc(16),Lc(16),Lc(32),Lc(32),Lc(48),Lc(64),Lc(1152),Lc(1152),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(4),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(24),Lc(1152),Lc(1152),Lc(1152),Lc(1152),Lc(1152),Lc(2304),Lc(2304),Lc(3456),Lc(5760),Lc(8),Lc(8),Lc(8),Lc(16),Lc(24),Lc(48),Lc(48),Lc(96),Lc(192),Lc(384),Lc(384),Lc(384),Lc(768),Lc(96),Lc(96),Lc(96),Lc(1152);const Yc=Math.pow(2,-52),Gc=new Uint32Array(512);class Vc{static from(t,e=Qc,n=ts){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new Vc(i)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let e=0;e<o;e++){const n=t[2*e],r=t[2*e+1];n<a&&(a=n),r<u&&(u=r),n>c&&(c=n),r>s&&(s=r),this._ids[e]=e}const f=(a+c)/2,l=(u+s)/2;let h,d,p;for(let e=0,n=1/0;e<o;e++){const r=Wc(f,l,t[2*e],t[2*e+1]);r<n&&(h=e,n=r)}const g=t[2*h],y=t[2*h+1];for(let e=0,n=1/0;e<o;e++){if(e===h)continue;const r=Wc(g,y,t[2*e],t[2*e+1]);r<n&&r>0&&(d=e,n=r)}let m=t[2*d],v=t[2*d+1],b=1/0;for(let e=0;e<o;e++){if(e===h||e===d)continue;const n=Jc(g,y,m,v,t[2*e],t[2*e+1]);n<b&&(p=e,b=n)}let x=t[2*p],w=t[2*p+1];if(b===1/0){for(let e=0;e<o;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];Zc(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t],o=this._dists[i];o>r&&(e[n++]=i,r=o)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Hc(g,y,m,v,x,w)<0){const t=d,e=m,n=v;d=p,m=x,v=w,p=t,x=e,w=n}const _=function(t,e,n,r,i,o){const a=n-t,u=r-e,c=i-t,s=o-e,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:e+(a*l-c*f)*h}}(g,y,m,v,x,w);this._cx=_.x,this._cy=_.y;for(let e=0;e<o;e++)this._dists[e]=Wc(t[2*e],t[2*e+1],_.x,_.y);Zc(this._ids,this._dists,0,o-1),this._hullStart=h;let A=3;n[h]=e[p]=d,n[d]=e[h]=p,n[p]=e[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,y)]=h,i[this._hashKey(m,v)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,u=0;u<this._ids.length;u++){const c=this._ids[u],s=t[2*c],f=t[2*c+1];if(u>0&&Math.abs(s-o)<=Yc&&Math.abs(f-a)<=Yc)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,e=this._hashKey(s,f);t<this._hashSize&&(l=i[(e+t)%this._hashSize],-1===l||l===n[l]);t++);l=e[l];let g,y=l;for(;g=n[y],Hc(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])>=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let m=this._addTriangle(y,c,n[y],-1,-1,r[y]);r[c]=this._legalize(m+2),r[y]=m,A++;let v=n[y];for(;g=n[v],Hc(s,f,t[2*v],t[2*v+1],t[2*g],t[2*g+1])<0;)m=this._addTriangle(v,c,g,r[c],-1,r[v]),r[c]=this._legalize(m+2),n[v]=v,A--,v=g;if(y===l)for(;g=e[y],Hc(s,f,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)m=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(m+2),r[g]=m,n[y]=y,A--,y=g;this._hullStart=e[c]=y,n[y]=e[v]=c,n[c]=v,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(A);for(let t=0,e=this._hullStart;t<A;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=Gc[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=e[o],h=e[t],d=e[s],p=e[f];if(Xc(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=l;const r=n[f];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===f){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,f);const u=c+(a+1)%3;i<Gc.length&&(Gc[i++]=u)}else{if(0===i)break;t=Gc[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function Wc(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}function Xc(t,e,n,r,i,o,a,u){const c=t-a,s=e-u,f=n-a,l=r-u,h=i-a,d=o-u,p=f*f+l*l,g=h*h+d*d;return c*(l*g-p*d)-s*(f*g-p*h)+(c*c+s*s)*(f*d-l*h)<0}function Jc(t,e,n,r,i,o){const a=n-t,u=r-e,c=i-t,s=o-e,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c),d=(s*f-u*l)*h,p=(a*l-c*f)*h;return d*d+p*p}function Zc(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=t[i],o=e[r];let a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+1,o=r;Kc(t,n+r>>1,i),e[t[n]]>e[t[r]]&&Kc(t,n,r),e[t[i]]>e[t[r]]&&Kc(t,i,r),e[t[n]]>e[t[i]]&&Kc(t,n,i);const a=t[i],u=e[a];for(;;){do{i++}while(e[t[i]]<u);do{o--}while(e[t[o]]>u);if(o<i)break;Kc(t,i,o)}t[n+1]=t[o],t[o]=a,r-i+1>=o-n?(Zc(t,e,i,r),Zc(t,e,n,o-1)):(Zc(t,e,n,o-1),Zc(t,e,i,r))}}function Kc(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Qc(t){return t[0]}function ts(t){return t[1]}const es=1e-6;class ns{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const r=(t=+t)+(n=+n),i=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>es||Math.abs(this._y1-i)>es)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class rs{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class is{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,u,c=0,s=0,f=n.length;c<f;c+=3,s+=2){const f=2*n[c],l=2*n[c+1],h=2*n[c+2],d=t[f],p=t[f+1],g=t[l],y=t[l+1],m=t[h],v=t[h+1],b=g-d,x=y-p,w=m-d,_=v-p,A=2*(b*_-x*w);if(Math.abs(A)<1e-9){if(void 0===i){i=o=0;for(const n of e)i+=t[2*n],o+=t[2*n+1];i/=e.length,o/=e.length}const n=1e9*Math.sign((i-d)*_-(o-p)*w);r=(d+m)/2-n*_,u=(p+v)/2+n*w}else{const t=1/A,e=b*b+x*x,n=w*w+_*_;r=d+(_*e-x*n)*t,u=p+(b*n-w*e)*t}a[s]=r,a[s+1]=u}let u,c,s,f=e[e.length-1],l=4*f,h=t[2*f],d=t[2*f+1];r.fill(0);for(let n=0;n<e.length;++n)f=e[n],u=l,c=h,s=d,l=4*f,h=t[2*f],d=t[2*f+1],r[u+2]=r[l]=s-d,r[u+3]=r[l+1]=h-c}render(t){const e=null==t?t=new ns:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){const r=n[e];if(r<e)continue;const i=2*Math.floor(e/3),a=2*Math.floor(r/3),u=o[i],c=o[i+1],s=o[a],f=o[a+1];this._renderSegment(u,c,s,f,t)}let u,c=i[i.length-1];for(let e=0;e<i.length;++e){u=c,c=i[e];const n=2*Math.floor(r[c]/3),s=o[n],f=o[n+1],l=4*u,h=this._project(s,f,a[l+2],a[l+3]);h&&this._renderSegment(s,f,h[0],h[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new ns:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new ns:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||e.lineTo(r[t],r[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new rs;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;const a=this._regioncode(t,e),u=this._regioncode(n,r);0===a&&0===u?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]===t[o]&&e[r+1]===t[o+1]&&e[(r+2)%i]===t[(o+a-2)%a]&&e[(r+3)%i]===t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;const a=[];let u=o;do{const n=Math.floor(u/3);if(a.push(e[2*n],e[2*n+1]),u=u%3==2?u-2:u+1,i[u]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,r=4*t;return this._simplify(n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e))}_clipFinite(t,e){const n=e.length;let r,i,o,a,u=null,c=e[n-2],s=e[n-1],f=this._regioncode(c,s),l=0;for(let h=0;h<n;h+=2)if(r=c,i=s,c=e[h],s=e[h+1],o=f,f=this._regioncode(c,s),0===o&&0===f)a=l,l=0,u?u.push(c,s):u=[c,s];else{let e,n,h,d,p;if(0===o){if(null===(e=this._clipSegment(r,i,c,s,o,f)))continue;[n,h,d,p]=e}else{if(null===(e=this._clipSegment(c,s,r,i,f,o)))continue;[d,p,n,h]=e,a=l,l=this._edgecode(n,h),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(n,h):u=[n,h]}a=l,l=this._edgecode(d,p),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(d,p):u=[d,p]}if(u)a=l,l=this._edgecode(u[0],u[1]),a&&l&&this._edge(t,a,l,u,u.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return u}_clipSegment(t,e,n,r,i,o){const a=i<o;for(a&&([t,e,n,r,i,o]=[n,r,t,e,o,i]);;){if(0===i&&0===o)return a?[n,r,t,e]:[t,e,n,r];if(i&o)return null;let u,c,s=i||o;8&s?(u=t+(n-t)*(this.ymax-e)/(r-e),c=this.ymax):4&s?(u=t+(n-t)*(this.ymin-e)/(r-e),c=this.ymin):2&s?(c=e+(r-e)*(this.xmax-t)/(n-t),u=this.xmax):(c=e+(r-e)*(this.xmin-t)/(n-t),u=this.xmin),i?(t=u,e=c,i=this._regioncode(t,e)):(n=u,r=c,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a,u=Array.from(e);if((a=this._project(u[0],u[1],n,r))&&u.unshift(a[0],a[1]),(a=this._project(u[u.length-2],u[u.length-1],i,o))&&u.push(a[0],a[1]),u=this._clipFinite(t,u))for(let e,n=0,r=u.length,i=this._edgecode(u[r-2],u[r-1]);n<r;n+=2)e=i,i=this._edgecode(u[n],u[n+1]),e&&i&&(n=this._edge(t,e,i,u,n),r=u.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(u=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return u}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(t,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(t,e,n,r){let i,o,a,u=1/0;if(r<0){if(e<=this.ymin)return null;(i=(this.ymin-e)/r)<u&&(a=this.ymin,o=t+(u=i)*n)}else if(r>0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)<u&&(a=this.ymax,o=t+(u=i)*n)}if(n>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)<u&&(o=this.xmax,a=e+(u=i)*r)}else if(n<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/n)<u&&(o=this.xmin,a=e+(u=i)*r)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const n=(e+2)%t.length,r=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[r]||t[e+1]===t[n+1]&&t[n+1]===t[r+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}const os=2*Math.PI,as=Math.pow;function us(t){return t[0]}function cs(t){return t[1]}function ss(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class fs{static from(t,e=us,n=cs,r){return new fs("length"in t?function(t,e,n,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;for(const o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new Vc(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const r=2*e[t],i=2*e[t+1],o=2*e[t+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,n=e.length/2;t<n;++t){const n=ss(e[2*t],e[2*t+1],i);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new Vc(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=i[t%3==2?t-2:t+1];-1!==n[t]&&-1!==o[e]||(o[e]=t)}for(let t=0,e=r.length;t<e;++t)a[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new is(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const u=e[t];if(-1===u)return;let c=u,s=-1;do{if(yield s=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const e=n[(r[t]+1)%n.length];return void(e!==s&&(yield e))}}while(c!==u)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const r=n;let i;for(;(i=this._step(n,t,e))>=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=as(e-c[2*t],2)+as(n-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=as(e-c[2*r],2)+as(n-c[2*r+1],2);if(l<f&&(f=l,s=r),h=h%3==2?h-2:h+1,u[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&as(e-c[2*h],2)+as(n-c[2*h+1],2)<f)return h;break}}while(h!==l);return s}render(t){const e=null==t?t=new ns:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){const o=r[e];if(o<e)continue;const a=2*i[e],u=2*i[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[u],n[u+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new ns:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,os)}return n&&n.value()}renderHull(t){const e=null==t?t=new ns:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){const i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new rs;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new ns:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[u],r[u+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new rs;return this.renderTriangle(t,e),e.value()}}const ls=t=>()=>t;function hs(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function ds(t){return!t.ctrlKey&&!t.button}function ps(){return this.parentNode}function gs(t,e){return e??{x:t.x,y:t.y}}function ys(){return navigator.maxTouchPoints||"ontouchstart"in this}function ms(){var t,e,n,r,i=ds,o=ps,a=gs,u=ys,c={},s=Pe("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",m,Rr).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Ir(a.view).on("mousemove.drag",p,Or).on("mouseup.drag",g,Or),Lr(a.view),Dr(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(Pr(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>l}c.mouse("drag",r)}function g(t){Ir(t.view).on("mousemove.drag mouseup.drag",null),Ur(t.view,n),Pr(t),c.mouse("end",t)}function y(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),c=a.length;for(n=0;n<c;++n)(r=b(this,u,t,e,a[n].identifier,a[n]))&&(Dr(t),r("start",t,a[n]))}}function m(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Pr(t),n("drag",t,r[e]))}function v(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=c[i[e].identifier])&&(Dr(t),n("end",t,i[e]))}function b(t,e,n,r,i,o){var u,l,d,p=s.copy(),g=Yi(o||n,e);if(null!=(d=a.call(t,new hs("beforestart",{sourceEvent:n,target:h,identifier:i,active:f,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-g[0]||0,l=d.y-g[1]||0,function n(o,a,s){var y,m=g;switch(o){case"start":c[i]=n,y=f++;break;case"end":delete c[i],--f;case"drag":g=Yi(s||a,e),y=f}p.call(o,t,new hs(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:y,x:g[0]+u,y:g[1]+l,dx:g[0]-m[0],dy:g[1]-m[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:ls(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:ls(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:ls(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:ls(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}n.dn(ls),hs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t},n.dn(ms),n.dn(Bs);var vs={},bs={},xs=34,ws=10,_s=13;function As(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function Ms(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}function Es(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Bs(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function f(){if(c)return bs;if(s)return s=!1,vs;var e,r,i=a;if(t.charCodeAt(i)===xs){for(;a++<o&&t.charCodeAt(a)!==xs||t.charCodeAt(++a)===xs;);return(e=a)>=o?c=!0:(r=t.charCodeAt(a++))===ws?s=!0:r===_s&&(s=!0,t.charCodeAt(a)===ws&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a<o;){if((r=t.charCodeAt(e=a++))===ws)s=!0;else if(r===_s)s=!0,t.charCodeAt(a)===ws&&++a;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,o)}for(t.charCodeAt(o-1)===ws&&--o,t.charCodeAt(o-1)===_s&&--o;(r=f())!==bs;){for(var l=[];r!==vs&&r!==bs;)l.push(r),r=f();e&&null==(l=e(l,u++))||i.push(l)}return i}function i(e,n){return e.map(function(e){return n.map(function(t){return a(e[t])}).join(t)})}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+Es(-e,6):e>9999?"+"+Es(e,6):Es(e,4))+"-"+Es(t.getUTCMonth()+1,2)+"-"+Es(t.getUTCDate(),2)+(o?"T"+Es(n,2)+":"+Es(r,2)+":"+Es(i,2)+"."+Es(o,3)+"Z":i?"T"+Es(n,2)+":"+Es(r,2)+":"+Es(i,2)+"Z":r||n?"T"+Es(n,2)+":"+Es(r,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=As(t);return function(r,i){return e(n(r),i,t)}}(t,e):As(t)});return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=Ms(e)),[n.map(a).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ms(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var Ts=Bs(","),ks=Ts.parse,Fs=Ts.parseRows,Ss=Ts.format,Ns=Ts.formatBody,Cs=Ts.formatRows,Is=Ts.formatRow,Rs=Ts.formatValue,Os=Bs("\t"),Ds=Os.parse,Ps=Os.parseRows,Ls=Os.format,Us=Os.formatBody,$s=Os.formatRows,zs=Os.formatRow,js=Os.formatValue;function qs(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Hs&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const Hs=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Ys=t=>+t;function Gs(t){return t*t}function Vs(t){return t*(2-t)}function Ws(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Xs=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Js=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Zs=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Ks=Math.PI,Qs=Ks/2;function tf(t){return 1===+t?1:1-Math.cos(t*Qs)}function ef(t){return Math.sin(t*Qs)}function nf(t){return(1-Math.cos(Ks*t))/2}function rf(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function of(t){return rf(1-+t)}function af(t){return 1-rf(t)}function uf(t){return((t*=2)<=1?rf(1-t):2-rf(t-1))/2}function cf(t){return 1-Math.sqrt(1-t*t)}function sf(t){return Math.sqrt(1- --t*t)}function ff(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var lf=4/11,hf=6/11,df=8/11,pf=3/4,gf=9/11,yf=10/11,mf=15/16,vf=21/22,bf=63/64,xf=1/lf/lf;function wf(t){return 1-_f(1-t)}function _f(t){return(t=+t)<lf?xf*t*t:t<df?xf*(t-=hf)*t+pf:t<yf?xf*(t-=gf)*t+mf:xf*(t-=vf)*t+bf}function Af(t){return((t*=2)<=1?1-_f(1-t):_f(t-1)+1)/2}var Mf=1.70158,Ef=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(Mf),Bf=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(Mf),Tf=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(Mf),kf=2*Math.PI,Ff=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=kf);function i(t){return e*rf(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*kf)},i.period=function(n){return t(e,n)},i}(1,.3),Sf=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=kf);function i(t){return 1-e*rf(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*kf)},i.period=function(n){return t(e,n)},i}(1,.3),Nf=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=kf);function i(t){return((t=2*t-1)<0?e*rf(-t)*Math.sin((r-t)/n):2-e*rf(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*kf)},i.period=function(n){return t(e,n)},i}(1,.3);function Cf(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function If(t,e){return fetch(t,e).then(Cf)}function Rf(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Of(t,e){return fetch(t,e).then(Rf)}function Df(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Pf(t,e){return fetch(t,e).then(Df)}function Lf(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Pf(e,n).then(function(e){return t(e,r)})}}function Uf(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Bs(t);return Pf(e,n).then(function(t){return i.parse(t,r)})}n.dn(If),n.dn(Of),n.dn(Pf);var $f=Lf(ks),zf=Lf(Ds);function jf(t,e){return new Promise(function(n,r){var i=new Image;for(var o in e)i[o]=e[o];i.onerror=r,i.onload=function(){n(i)},i.src=t})}function qf(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Hf(t,e){return fetch(t,e).then(qf)}function Yf(t){return(e,n)=>Pf(e,n).then(e=>(new DOMParser).parseFromString(e,t))}n.dn(jf),n.dn(Hf);const Gf=Yf("application/xml");var Vf=Yf("text/html"),Wf=Yf("image/svg+xml");function Xf(t,e){var n,r=1;function i(){var i,o,a=n.length,u=0,c=0;for(i=0;i<a;++i)u+=(o=n[i]).x,c+=o.y;for(u=(u/a-t)*r,c=(c/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=u,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function Jf(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Zf(this.cover(e,n),e,n,t)}function Zf(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,u,c,s,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,m=t._x1,v=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=e>=(o=(g+m)/2))?g=o:m=o,(f=n>=(a=(y+v)/2))?y=a:v=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=e>=(o=(g+m)/2))?g=o:m=o,(f=n>=(a=(y+v)/2))?y=a:v=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function Kf(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,u,c=i-n||1,s=this._root;n>t||t>=i||r>e||e>=o;)switch(u=(e<r)<<1|t<n,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function Qf(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t}function tl(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function el(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function nl(t,e,n){var r,i,o,a,u,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new el(g,f,l,h,d)),null==n?n=1/0:(f=t-n,l=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<f||(u=c.y1)<l))if(g.length){var y=(i+a)/2,m=(o+u)/2;p.push(new el(g[3],y,m,a,u),new el(g[2],i,m,y,u),new el(g[1],y,o,a,m),new el(g[0],i,o,y,m)),(s=(e>=m)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=v*v+b*b;if(x<n){var w=Math.sqrt(n=x);f=t-w,l=e-w,h=t+w,d=e+w,r=g.data}}return r}function rl(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,u,c,s,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,m=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+y)/2))?p=u:y=u,(f=a>=(c=(g+m)/2))?g=c:m=c,e=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)}function il(){return this._root}function ol(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t}function al(t){var e,n,r,i,o,a,u=[],c=this._root;for(c&&u.push(new el(c,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&c.length){var s=(r+o)/2,f=(i+a)/2;(n=c[3])&&u.push(new el(n,s,f,o,a)),(n=c[2])&&u.push(new el(n,r,f,s,a)),(n=c[1])&&u.push(new el(n,s,i,o,f)),(n=c[0])&&u.push(new el(n,r,i,s,f))}return this}function ul(t){var e,n=[],r=[];for(this._root&&n.push(new el(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,u=e.y0,c=e.x1,s=e.y1,f=(a+c)/2,l=(u+s)/2;(o=i[0])&&n.push(new el(o,a,u,f,l)),(o=i[1])&&n.push(new el(o,f,u,c,l)),(o=i[2])&&n.push(new el(o,a,l,f,s)),(o=i[3])&&n.push(new el(o,f,l,c,s))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}function cl(t){return t[0]}function sl(t){return arguments.length?(this._x=t,this):this._x}function fl(t){return t[1]}function ll(t){return arguments.length?(this._y=t,this):this._y}function hl(t,e,n){var r=new dl(e??cl,n??fl,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function dl(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function pl(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.dn(Xf),n.dn(Jf),n.dn(Kf),n.dn(Qf),n.dn(tl),n.dn(el),n.dn(nl),n.dn(rl),n.dn(il),n.dn(ol),n.dn(al),n.dn(ul),n.dn(sl),n.dn(ll);var gl=hl.prototype=dl.prototype;function yl(t){return function(){return t}}function ml(t){return 1e-6*(t()-.5)}function vl(t){return t.x+t.vx}function bl(t){return t.y+t.vy}function xl(t){var e,n,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=e.length,p=0;p<o;++p)for(a=hl(e,vl,bl).visitAfter(u),t=0;t<d;++t)c=e[t],l=n[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,a.visit(g);function g(t,e,n,o,a){var u=t.data,d=t.r,p=l+d;if(!u)return e>s+p||o<s-p||n>f+p||a<f-p;if(u.index>c.index){var g=s-u.x-u.vx,y=f-u.y-u.vy,m=g*g+y*y;m<p*p&&(0===g&&(m+=(g=ml(r))*g),0===y&&(m+=(y=ml(r))*y),m=(p-(m=Math.sqrt(m)))/m*i,c.vx+=(g*=m)*(p=(d*=d)/(h+d)),c.vy+=(y*=m)*p,u.vx-=g*(p=1-p),u.vy-=y*p)}}}function u(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=yl(null==t?1:+t)),a.initialize=function(t,n){e=t,r=n,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:yl(+e),c(),a):t},a}function wl(t){return t.index}function _l(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function Al(t){var e,n,r,i,o,a,u=wl,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=yl(30),f=1;function l(r){for(var i=0,u=t.length;i<f;++i)for(var c,s,l,h,d,p,g,y=0;y<u;++y)s=(c=t[y]).source,h=(l=c.target).x+l.vx-s.x-s.vx||ml(a),d=l.y+l.vy-s.y-s.vy||ml(a),h*=p=((p=Math.sqrt(h*h+d*d))-n[y])/p*r*e[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,s.vx+=h*(g=1-g),s.vy+=d*g}function h(){if(r){var a,c,s=r.length,f=t.length,l=new Map(r.map((t,e)=>[u(t,e,r),t]));for(a=0,i=new Array(s);a<f;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=_l(l,c.source)),"object"!=typeof c.target&&(c.target=_l(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(f),d(),n=new Array(f),p()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function p(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+s(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t,e){r=t,a=e,h()},l.links=function(e){return arguments.length?(t=e,h(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:yl(+t),d(),l):c},l.distance=function(t){return arguments.length?(s="function"==typeof t?t:yl(+t),p(),l):s},l}gl.copy=function(){var t,e,n=new dl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=pl(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=pl(e));return n},gl.add=Jf,gl.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(a[n]=r,u[n]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),n=0;n<o;++n)Zf(this,a[n],u[n],t[n]);return this},gl.cover=Kf,gl.data=Qf,gl.extent=tl,gl.find=nl,gl.remove=rl,gl.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},gl.root=il,gl.size=ol,gl.visit=al,gl.visitAfter=ul,gl.x=sl,gl.y=ll,n.dn(yl),n.dn(ml),n.dn(xl),n.dn(Al),n.dn(Tl);const Ml=1664525,El=1013904223,Bl=4294967296;function Tl(){let t=1;return()=>(t=(Ml*t+El)%Bl)/Bl}function kl(t){return t.x}function Fl(t){return t.y}n.dn(Cl);var Sl=10,Nl=Math.PI*(3-Math.sqrt(5));function Cl(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,c=oo(l),s=Pe("tick","end"),f=Tl();function l(){h(),s.call("tick",e),n<r&&(c.stop(),s.call("end",e))}function h(r){var c,s,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(n+=(o-n)*i,u.forEach(function(t){t(n)}),c=0;c<f;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return e}function d(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=Sl*Math.sqrt(.5+n),o=n*Nl;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,f),e}return null==t&&(t=[]),d(),e={tick:h,restart:function(){return c.restart(l),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),u.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),e):f},force:function(t,n){return arguments.length>1?(null==n?u.delete(t):u.set(t,p(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(a=(i=e-(u=t[s]).x)*i+(o=n-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,n){return arguments.length>1?(s.on(t,n),e):s.on(t)}}}function Il(){var t,e,n,r,i,o=yl(-30),a=1,u=1/0,c=.81;function s(n){var i,o=t.length,a=hl(t,kl,Fl).visitAfter(l);for(r=n,i=0;i<o;++i)e=t[i],a.visit(h)}function f(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function l(t){var e,n,r,o,a,u=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(u+=e.value,c+=n,r+=n*e.x,o+=n*e.y);t.x=r/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=i[e.data.index]}while(e=e.next)}t.value=u}function h(t,o,s,f){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,d=f-o,p=l*l+h*h;if(d*d/c<p)return p<u&&(0===l&&(p+=(l=ml(n))*l),0===h&&(p+=(h=ml(n))*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=l*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==e||t.next)&&(0===l&&(p+=(l=ml(n))*l),0===h&&(p+=(h=ml(n))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=i[t.data.index]*r/p,e.vx+=l*d,e.vy+=h*d)}while(t=t.next)}}return s.initialize=function(e,r){t=e,n=r,f()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:yl(+t),f(),s):o},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(u=t*t,s):Math.sqrt(u)},s.theta=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s}function Rl(t,e,n){var r,i,o,a=yl(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-e||1e-6,f=c.y-n||1e-6,l=Math.sqrt(s*s+f*f),h=(o[a]-l)*i[a]*t/l;c.vx+=s*h,c.vy+=f*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!=typeof t&&(t=yl(+t)),null==e&&(e=0),null==n&&(n=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:yl(+t),c(),u):a},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:yl(+e),c(),u):t},u.x=function(t){return arguments.length?(e=+t,u):e},u.y=function(t){return arguments.length?(n=+t,u):n},u}function Ol(t){var e,n,r,i=yl(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=yl(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:yl(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:yl(+e),a(),o):t},o}function Dl(t){var e,n,r,i=yl(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=yl(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:yl(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:yl(+e),a(),o):t},o}function Pl(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ll(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ul(t){return(t=Ll(Math.abs(t)))?t[1]:NaN}function $l(t,e){return function(n,r){for(var i=n.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(n.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(e)}}function zl(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}n.dn(Il),n.dn(Rl),n.dn(Ol),n.dn(Dl),n.dn(Pl),n.dn(Ul),n.dn($l),n.dn(zl);var jl,ql=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hl(t){if(!(e=ql.exec(t)))throw new Error("invalid format: "+t);var e;return new Yl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Yl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Gl(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}function Vl(t,e){var n=Ll(t,e);if(!n)return jl=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(jl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ll(t,Math.max(0,e+o-1))[0]}function Wl(t,e){var n=Ll(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Hl.prototype=Yl.prototype,Yl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},n.dn(Gl),n.dn(Vl),n.dn(Wl);const Xl={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Pl,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Wl(100*t,e),r:Wl,s:Vl,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Jl(t){return t}n.dn(Jl),n.dn(nh);var Zl,Kl,Ql,th=Array.prototype.map,eh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nh(t){var e=void 0===t.grouping||void 0===t.thousands?Jl:$l(th.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Jl:zl(th.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function s(t,s){var f=(t=Hl(t)).fill,l=t.align,h=t.sign,d=t.symbol,p=t.zero,g=t.width,y=t.comma,m=t.precision,v=t.trim,b=t.type;"n"===b?(y=!0,b="g"):Xl[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===f&&"="===l)&&(p=!0,f="0",l="=");var x=(s&&void 0!==s.prefix?s.prefix:"")+("$"===d?n:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===d?r:/[%p]/.test(b)?a:"")+(s&&void 0!==s.suffix?s.suffix:""),_=Xl[b],A=/[defgprs%]/.test(b);function M(t){var n,r,a,s=x,d=w;if("c"===b)d=_(t)+d,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:_(Math.abs(t),m),v&&(t=Gl(t)),M&&0===+t&&"+"!==h&&(M=!1),s=(M?"("===h?h:u:"-"===h||"("===h?"":h)+s,d=("s"!==b||isNaN(t)||void 0===jl?"":eh[8+jl/3])+d+(M&&"("===h?")":""),A)for(n=-1,r=t.length;++n<r;)if(48>(a=t.charCodeAt(n))||a>57){d=(46===a?i+t.slice(n+1):t.slice(n))+d,t=t.slice(0,n);break}}y&&!p&&(t=e(t,1/0));var E=s.length+t.length+d.length,B=E<g?new Array(g-E+1).join(f):"";switch(y&&p&&(t=e(B+t,B.length?g-d.length:1/0),B=""),l){case"<":t=s+t+d+B;break;case"=":t=s+B+t+d;break;case"^":t=B.slice(0,E=B.length>>1)+s+t+d+B.slice(E);break;default:t=B+s+t+d}return o(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),M.toString=function(){return t+""},M}return{format:s,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(Ul(e)/3))),r=Math.pow(10,-n),i=s(((t=Hl(t)).type="f",t),{suffix:eh[8+n/3]});return function(t){return i(r*t)}}}}function rh(t){return Zl=nh(t),Kl=Zl.format,Ql=Zl.formatPrefix,Zl}function ih(t){return Math.max(0,-Ul(Math.abs(t)))}function oh(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ul(e)/3)))-Ul(Math.abs(t)))}function ah(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ul(e)-Ul(t))+1}rh({thousands:",",grouping:[3],currency:["$",""]}),n.dn(ih),n.dn(oh),n.dn(ah);var uh=1e-6,ch=1e-12,sh=Math.PI,fh=sh/2,lh=sh/4,hh=2*sh,dh=180/sh,ph=sh/180,gh=Math.abs,yh=Math.atan,mh=Math.atan2,vh=Math.cos,bh=Math.ceil,xh=Math.exp,wh=(Math.floor,Math.hypot),_h=Math.log,Ah=Math.pow,Mh=Math.sin,Eh=Math.sign||function(t){return t>0?1:t<0?-1:0},Bh=Math.sqrt,Th=Math.tan;function kh(t){return t>1?0:t<-1?sh:Math.acos(t)}function Fh(t){return t>1?fh:t<-1?-fh:Math.asin(t)}function Sh(t){return(t=Mh(t/2))*t}function Nh(){}function Ch(t,e){t&&Rh.hasOwnProperty(t.type)&&Rh[t.type](t,e)}n.dn(Ph);var Ih={Feature:function(t,e){Ch(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)Ch(n[r].geometry,e)}},Rh={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Oh(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Oh(n[r],e,0)},Polygon:function(t,e){Dh(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Dh(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)Ch(n[r],e)}};function Oh(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Dh(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Oh(t[n],e,1);e.polygonEnd()}function Ph(t,e){t&&Ih.hasOwnProperty(t.type)?Ih[t.type](t,e):Ch(t,e)}n.dn(ud);var Lh,Uh,$h,zh,jh,qh,Hh,Yh,Gh,Vh,Wh,Xh,Jh,Zh,Kh,Qh,td=new $,ed=new $,nd={point:Nh,lineStart:Nh,lineEnd:Nh,polygonStart:function(){td=new $,nd.lineStart=rd,nd.lineEnd=id},polygonEnd:function(){var t=+td;ed.add(t<0?hh+t:t),this.lineStart=this.lineEnd=this.point=Nh},sphere:function(){ed.add(hh)}};function rd(){nd.point=od}function id(){ad(Lh,Uh)}function od(t,e){nd.point=ad,Lh=t,Uh=e,$h=t*=ph,zh=vh(e=(e*=ph)/2+lh),jh=Mh(e)}function ad(t,e){var n=(t*=ph)-$h,r=n>=0?1:-1,i=r*n,o=vh(e=(e*=ph)/2+lh),a=Mh(e),u=jh*a,c=zh*o+u*vh(i),s=u*r*Mh(i);td.add(mh(s,c)),$h=t,zh=o,jh=a}function ud(t){return ed=new $,Ph(t,nd),2*ed}function cd(t){return[mh(t[1],t[0]),Fh(t[2])]}function sd(t){var e=t[0],n=t[1],r=vh(n);return[r*vh(e),r*Mh(e),Mh(n)]}function fd(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ld(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function hd(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function dd(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function pd(t){var e=Bh(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}n.dn(jd);var gd,yd,md,vd,bd,xd,wd,_d,Ad,Md,Ed,Bd,Td,kd,Fd,Sd,Nd={point:Cd,lineStart:Rd,lineEnd:Od,polygonStart:function(){Nd.point=Dd,Nd.lineStart=Pd,Nd.lineEnd=Ld,Zh=new $,nd.polygonStart()},polygonEnd:function(){nd.polygonEnd(),Nd.point=Cd,Nd.lineStart=Rd,Nd.lineEnd=Od,td<0?(qh=-(Yh=180),Hh=-(Gh=90)):Zh>uh?Gh=90:Zh<-uh&&(Hh=-90),Qh[0]=qh,Qh[1]=Yh},sphere:function(){qh=-(Yh=180),Hh=-(Gh=90)}};function Cd(t,e){Kh.push(Qh=[qh=t,Yh=t]),e<Hh&&(Hh=e),e>Gh&&(Gh=e)}function Id(t,e){var n=sd([t*ph,e*ph]);if(Jh){var r=ld(Jh,n),i=ld([r[1],-r[0],0],r);pd(i),i=cd(i);var o,a=t-Vh,u=a>0?1:-1,c=i[0]*dh*u,s=gh(a)>180;s^(u*Vh<c&&c<u*t)?(o=i[1]*dh)>Gh&&(Gh=o):s^(u*Vh<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*dh)<Hh&&(Hh=o):(e<Hh&&(Hh=e),e>Gh&&(Gh=e)),s?t<Vh?Ud(qh,t)>Ud(qh,Yh)&&(Yh=t):Ud(t,Yh)>Ud(qh,Yh)&&(qh=t):Yh>=qh?(t<qh&&(qh=t),t>Yh&&(Yh=t)):t>Vh?Ud(qh,t)>Ud(qh,Yh)&&(Yh=t):Ud(t,Yh)>Ud(qh,Yh)&&(qh=t)}else Kh.push(Qh=[qh=t,Yh=t]);e<Hh&&(Hh=e),e>Gh&&(Gh=e),Jh=n,Vh=t}function Rd(){Nd.point=Id}function Od(){Qh[0]=qh,Qh[1]=Yh,Nd.point=Cd,Jh=null}function Dd(t,e){if(Jh){var n=t-Vh;Zh.add(gh(n)>180?n+(n>0?360:-360):n)}else Wh=t,Xh=e;nd.point(t,e),Id(t,e)}function Pd(){nd.lineStart()}function Ld(){Dd(Wh,Xh),nd.lineEnd(),gh(Zh)>uh&&(qh=-(Yh=180)),Qh[0]=qh,Qh[1]=Yh,Jh=null}function Ud(t,e){return(e-=t)<0?e+360:e}function $d(t,e){return t[0]-e[0]}function zd(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function jd(t){var e,n,r,i,o,a,u;if(Gh=Yh=-(qh=Hh=1/0),Kh=[],Ph(t,Nd),n=Kh.length){for(Kh.sort($d),e=1,o=[r=Kh[0]];e<n;++e)zd(r,(i=Kh[e])[0])||zd(r,i[1])?(Ud(r[0],i[1])>Ud(r[0],r[1])&&(r[1]=i[1]),Ud(i[0],r[1])>Ud(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=Ud(r[1],i[0]))>a&&(a=u,qh=i[0],Yh=r[1])}return Kh=Qh=null,qh===1/0||Hh===1/0?[[NaN,NaN],[NaN,NaN]]:[[qh,Hh],[Yh,Gh]]}n.dn(tp);var qd={sphere:Nh,point:Hd,lineStart:Gd,lineEnd:Xd,polygonStart:function(){qd.lineStart=Jd,qd.lineEnd=Zd},polygonEnd:function(){qd.lineStart=Gd,qd.lineEnd=Xd}};function Hd(t,e){t*=ph;var n=vh(e*=ph);Yd(n*vh(t),n*Mh(t),Mh(e))}function Yd(t,e,n){++gd,md+=(t-md)/gd,vd+=(e-vd)/gd,bd+=(n-bd)/gd}function Gd(){qd.point=Vd}function Vd(t,e){t*=ph;var n=vh(e*=ph);kd=n*vh(t),Fd=n*Mh(t),Sd=Mh(e),qd.point=Wd,Yd(kd,Fd,Sd)}function Wd(t,e){t*=ph;var n=vh(e*=ph),r=n*vh(t),i=n*Mh(t),o=Mh(e),a=mh(Bh((a=Fd*o-Sd*i)*a+(a=Sd*r-kd*o)*a+(a=kd*i-Fd*r)*a),kd*r+Fd*i+Sd*o);yd+=a,xd+=a*(kd+(kd=r)),wd+=a*(Fd+(Fd=i)),_d+=a*(Sd+(Sd=o)),Yd(kd,Fd,Sd)}function Xd(){qd.point=Hd}function Jd(){qd.point=Kd}function Zd(){Qd(Bd,Td),qd.point=Hd}function Kd(t,e){Bd=t,Td=e,t*=ph,e*=ph,qd.point=Qd;var n=vh(e);kd=n*vh(t),Fd=n*Mh(t),Sd=Mh(e),Yd(kd,Fd,Sd)}function Qd(t,e){t*=ph;var n=vh(e*=ph),r=n*vh(t),i=n*Mh(t),o=Mh(e),a=Fd*o-Sd*i,u=Sd*r-kd*o,c=kd*i-Fd*r,s=wh(a,u,c),f=Fh(s),l=s&&-f/s;Ad.add(l*a),Md.add(l*u),Ed.add(l*c),yd+=f,xd+=f*(kd+(kd=r)),wd+=f*(Fd+(Fd=i)),_d+=f*(Sd+(Sd=o)),Yd(kd,Fd,Sd)}function tp(t){gd=yd=md=vd=bd=xd=wd=_d=0,Ad=new $,Md=new $,Ed=new $,Ph(t,qd);var e=+Ad,n=+Md,r=+Ed,i=wh(e,n,r);return i<ch&&(e=xd,n=wd,r=_d,yd<uh&&(e=md,n=vd,r=bd),(i=wh(e,n,r))<ch)?[NaN,NaN]:[mh(n,e)*dh,Fh(r/i)*dh]}function ep(t){return function(){return t}}function np(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function rp(t,e){return gh(t)>sh&&(t-=Math.round(t/hh)*hh),[t,e]}function ip(t,e,n){return(t%=hh)?e||n?np(ap(t),up(e,n)):ap(t):e||n?up(e,n):rp}function op(t){return function(e,n){return gh(e+=t)>sh&&(e-=Math.round(e/hh)*hh),[e,n]}}function ap(t){var e=op(t);return e.invert=op(-t),e}function up(t,e){var n=vh(t),r=Mh(t),i=vh(e),o=Mh(e);function a(t,e){var a=vh(e),u=vh(t)*a,c=Mh(t)*a,s=Mh(e),f=s*n+u*r;return[mh(c*i-f*o,u*n-s*r),Fh(f*i+c*o)]}return a.invert=function(t,e){var a=vh(e),u=vh(t)*a,c=Mh(t)*a,s=Mh(e),f=s*i-c*o;return[mh(c*i+s*o,u*n+f*r),Fh(f*n-u*r)]},a}function cp(t){function e(e){return(e=t(e[0]*ph,e[1]*ph))[0]*=dh,e[1]*=dh,e}return t=ip(t[0]*ph,t[1]*ph,t.length>2?t[2]*ph:0),e.invert=function(e){return(e=t.invert(e[0]*ph,e[1]*ph))[0]*=dh,e[1]*=dh,e},e}function sp(t,e,n,r,i,o){if(n){var a=vh(e),u=Mh(e),c=r*n;null==i?(i=e+r*hh,o=e-c/2):(i=fp(a,i),o=fp(a,o),(r>0?i<o:i>o)&&(i+=r*hh));for(var s,f=i;r>0?f>o:f<o;f-=c)s=cd([a,-u*vh(f),-u*Mh(f)]),t.point(s[0],s[1])}}function fp(t,e){(e=sd(e))[0]-=t,pd(e);var n=kh(-e[1]);return((-e[2]<0?-n:n)+hh-uh)%hh}function lp(){var t,e,n=ep([0,0]),r=ep(90),i=ep(2),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=dh,n[1]*=dh}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*ph,c=i.apply(this,arguments)*ph;return t=[],e=ip(-a[0]*ph,-a[1]*ph,0).invert,sp(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:ep([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:ep(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:ep(+t),a):i},a}function hp(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Nh,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function dp(t,e){return gh(t[0]-e[0])<uh&&gh(t[1]-e[1])<uh}function pp(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function gp(t,e,n,r,i){var o,a,u=[],c=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(dp(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2*uh}u.push(n=new pp(r,t,null,!0)),c.push(n.o=new pp(r,null,n,!1)),u.push(n=new pp(a,t,null,!1)),c.push(n.o=new pp(a,null,n,!0))}}),u.length){for(c.sort(e),yp(u),yp(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var s,f,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function yp(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function mp(t){return gh(t[0])<=sh?t[0]:Eh(t[0])*((gh(t[0])+sh)%hh-sh)}function vp(t,e){var n=mp(e),r=e[1],i=Mh(r),o=[Mh(n),-vh(n),0],a=0,u=0,c=new $;1===i?r=fh+uh:-1===i&&(r=-fh-uh);for(var s=0,f=t.length;s<f;++s)if(h=(l=t[s]).length)for(var l,h,d=l[h-1],p=mp(d),g=d[1]/2+lh,y=Mh(g),m=vh(g),v=0;v<h;++v,p=x,y=_,m=A,d=b){var b=l[v],x=mp(b),w=b[1]/2+lh,_=Mh(w),A=vh(w),M=x-p,E=M>=0?1:-1,B=E*M,T=B>sh,k=y*_;if(c.add(mh(k*E*Mh(B),m*A+k*vh(B))),a+=T?M+E*hh:M,T^p>=n^x>=n){var F=ld(sd(d),sd(b));pd(F);var S=ld(o,F);pd(S);var N=(T^M>=0?-1:1)*Fh(S[2]);(r>N||r===N&&(F[0]||F[1]))&&(u+=T^M>=0?1:-1)}}return(a<-uh||a<uh&&c<-ch)^1&u}function bp(t,e,n,r){return function(i){var o,a,u,c=e(i),s=hp(),f=e(s),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=m,h.lineStart=v,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,a=$t(a);var t=vp(o,r);a.length?(l||(i.polygonStart(),l=!0),gp(a,wp,t,n,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function m(t,e){u.push([t,e]),f.point(t,e)}function v(){f.lineStart(),u=[]}function b(){m(u[0][0],u[0][1]),f.lineEnd();var t,e,n,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((e=(n=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(xp))}return h}}function xp(t){return t.length>1}function wp(t,e){return((t=t.x)[0]<0?t[1]-fh-uh:fh-t[1])-((e=e.x)[0]<0?e[1]-fh-uh:fh-e[1])}n.dn(ep),n.dn(np),n.dn(cp),rp.invert=rp,n.dn(lp),n.dn(hp),n.dn(dp),n.dn(gp),n.dn(vp),n.dn(bp);const _p=bp(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?sh:-sh,c=gh(o-n);gh(c-sh)<uh?(t.point(n,r=(r+a)/2>0?fh:-fh),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=sh&&(gh(n-i)<uh&&(n-=i*uh),gh(o-u)<uh&&(o-=u*uh),r=function(t,e,n,r){var i,o,a=Mh(t-n);return gh(a)>uh?yh((Mh(e)*(o=vh(r))*Mh(n)-Mh(r)*(i=vh(e))*Mh(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*fh,r.point(-sh,i),r.point(0,i),r.point(sh,i),r.point(sh,0),r.point(sh,-i),r.point(0,-i),r.point(-sh,-i),r.point(-sh,0),r.point(-sh,i);else if(gh(t[0]-e[0])>uh){var o=t[0]<e[0]?sh:-sh;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-sh,-fh]);function Ap(t){var e=vh(t),n=2*ph,r=e>0,i=gh(e)>uh;function o(t,n){return vh(t)*vh(n)>e}function a(t,n,r){var i=[1,0,0],o=ld(sd(t),sd(n)),a=fd(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=e*a/c,f=-e*u/c,l=ld(i,o),h=dd(i,s);hd(h,dd(o,f));var d=l,p=fd(h,d),g=fd(d,d),y=p*p-g*(fd(h,h)-1);if(!(y<0)){var m=Bh(y),v=dd(d,(-p-m)/g);if(hd(v,h),v=cd(v),!r)return v;var b,x=t[0],w=n[0],_=t[1],A=n[1];w<x&&(b=x,x=w,w=b);var M=w-x,E=gh(M-sh)<uh;if(!E&&A<_&&(b=_,_=A,A=b),E||M<uh?E?_+A>0^v[1]<(gh(v[0]-x)<uh?_:A):_<=v[1]&&v[1]<=A:M>sh^(x<=v[0]&&v[0]<=w)){var B=dd(d,(-p+m)/g);return hd(B,h),[v,cd(B)]}}}function u(e,n){var i=r?t:sh-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return bp(o,function(t){var e,n,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?sh:-sh),h):0;if(!e&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(e,p))||dp(e,d)||dp(p,d))&&(p[2]=1),g!==c)f=0,g?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var m;y&n||!(m=a(p,e,!0))||(f=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!g||e&&dp(e,p)||t.point(p[0],p[1]),e=p,c=g,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(s&&c)<<1}}},function(e,r,i,o){sp(o,t,n,i,e,r)},r?[0,-t]:[-sh,t-sh])}function Mp(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=e[0]-u,h=e[1]-c;if(a=n-u,l||!(a>0)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<f&&(f=a)}return s>0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(e[0]=u+f*l,e[1]=c+f*h),!0}}}}}n.dn(Ap),n.dn(Mp);var Ep,Bp,Tp,kp,Fp=1e9,Sp=-Fp;function Np(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:n,f>1?r:e)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return gh(r[0]-t)<uh?i>0?0:3:gh(r[0]-n)<uh?i>0?2:1:gh(r[1]-e)<uh?i>0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,s,f,l,h,d,p,g,y,m,v,b=a,x=hp(),w={point:_,lineStart:function(){w.point=A,s&&s.push(f=[]),m=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(A(l,h),d&&y&&x.rejoin(),c.push(x.result())),w.point=_,y&&b.lineEnd()},polygonStart:function(){b=x,c=[],s=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=s.length;n<i;++n)for(var o,a,u=s[n],c=1,f=u.length,l=u[0],h=l[0],d=l[1];c<f;++c)o=h,a=d,h=(l=u[c])[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=v&&e,i=(c=$t(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&gp(c,u,e,o,a),a.polygonEnd()),b=a,c=s=f=null}};function _(t,e){i(t,e)&&b.point(t,e)}function A(o,a){var u=i(o,a);if(s&&f.push([o,a]),m)l=o,h=a,d=u,m=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(Sp,Math.min(Fp,p)),g=Math.max(Sp,Math.min(Fp,g))],x=[o=Math.max(Sp,Math.min(Fp,o)),a=Math.max(Sp,Math.min(Fp,a))];Mp(c,x,t,e,n,r)?(y||(b.lineStart(),b.point(c[0],c[1])),b.point(x[0],x[1]),u||b.lineEnd(),v=!1):u&&(b.lineStart(),b.point(o,a),v=!1)}p=o,g=a,y=u}return w}}function Cp(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Np(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}}n.dn(Cp),n.dn(Pp);var Ip={sphere:Nh,point:Nh,lineStart:function(){Ip.point=Op,Ip.lineEnd=Rp},lineEnd:Nh,polygonStart:Nh,polygonEnd:Nh};function Rp(){Ip.point=Ip.lineEnd=Nh}function Op(t,e){Bp=t*=ph,Tp=Mh(e*=ph),kp=vh(e),Ip.point=Dp}function Dp(t,e){t*=ph;var n=Mh(e*=ph),r=vh(e),i=gh(t-Bp),o=vh(i),a=r*Mh(i),u=kp*n-Tp*r*o,c=Tp*n+kp*r*o;Ep.add(mh(Bh(a*a+u*u),c)),Bp=t,Tp=n,kp=r}function Pp(t){return Ep=new $,Ph(t,Ip),+Ep}n.dn($p);var Lp=[null,null],Up={type:"LineString",coordinates:Lp};function $p(t,e){return Lp[0]=t,Lp[1]=e,Pp(Up)}n.dn(Xp);var zp={Feature:function(t,e){return qp(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(qp(n[r].geometry,e))return!0;return!1}},jp={Sphere:function(){return!0},Point:function(t,e){return Hp(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Hp(n[r],e))return!0;return!1},LineString:function(t,e){return Yp(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Yp(n[r],e))return!0;return!1},Polygon:function(t,e){return Gp(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Gp(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(qp(n[r],e))return!0;return!1}};function qp(t,e){return!(!t||!jp.hasOwnProperty(t.type))&&jp[t.type](t,e)}function Hp(t,e){return 0===$p(t,e)}function Yp(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=$p(t[o],e)))return!0;if(o>0&&(i=$p(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<ch*i)return!0;n=r}return!1}function Gp(t,e){return!!vp(t.map(Vp),Wp(e))}function Vp(t){return(t=t.map(Wp)).pop(),t}function Wp(t){return[t[0]*ph,t[1]*ph]}function Xp(t,e){return(t&&zp.hasOwnProperty(t.type)?zp[t.type]:qp)(t,e)}function Jp(t,e,n){var r=Ht(t,e-uh,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function Zp(t,e,n){var r=Ht(t,e-uh,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function Kp(){var t,e,n,r,i,o,a,u,c,s,f,l,h=10,d=h,p=90,g=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:v()}}function v(){return Ht(bh(r/p)*p,n,p).map(f).concat(Ht(bh(u/g)*g,a,g).map(l)).concat(Ht(bh(e/h)*h,t,h).filter(function(t){return gh(t%p)>uh}).map(c)).concat(Ht(bh(o/d)*d,i,d).filter(function(t){return gh(t%g)>uh}).map(s))}return m.lines=function(){return v().map(function(t){return{type:"LineString",coordinates:t}})},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(n).reverse().slice(1),l(u).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),u>a&&(t=u,u=a,a=t),m.precision(y)):[[r,u],[n,a]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),m.precision(y)):[[e,o],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],m):[p,g]},m.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],m):[h,d]},m.precision=function(h){return arguments.length?(y=+h,c=Jp(o,i,90),s=Zp(e,t,y),f=Jp(u,a,90),l=Zp(r,n,y),m):y},m.extentMajor([[-180,-90+uh],[180,90-uh]]).extentMinor([[-180,-80-uh],[180,80+uh]])}function Qp(){return Kp()()}function tg(t,e){var n=t[0]*ph,r=t[1]*ph,i=e[0]*ph,o=e[1]*ph,a=vh(r),u=Mh(r),c=vh(o),s=Mh(o),f=a*vh(n),l=a*Mh(n),h=c*vh(i),d=c*Mh(i),p=2*Fh(Bh(Sh(o-r)+a*c*Sh(i-n))),g=Mh(p),y=p?function(t){var e=Mh(t*=p)/g,n=Mh(p-t)/g,r=n*f+e*h,i=n*l+e*d,o=n*u+e*s;return[mh(i,r)*dh,mh(o,Bh(r*r+i*i))*dh]}:function(){return[n*dh,r*dh]};return y.distance=p,y}n.dn(tg);const eg=t=>t;n.dn(eg);var ng,rg,ig,og,ag=new $,ug=new $,cg={point:Nh,lineStart:Nh,lineEnd:Nh,polygonStart:function(){cg.lineStart=sg,cg.lineEnd=hg},polygonEnd:function(){cg.lineStart=cg.lineEnd=cg.point=Nh,ag.add(gh(ug)),ug=new $},result:function(){var t=ag/2;return ag=new $,t}};function sg(){cg.point=fg}function fg(t,e){cg.point=lg,ng=ig=t,rg=og=e}function lg(t,e){ug.add(og*t-ig*e),ig=t,og=e}function hg(){lg(ng,rg)}const dg=cg;var pg=1/0,gg=pg,yg=-pg,mg=yg,vg={point:function(t,e){t<pg&&(pg=t),t>yg&&(yg=t),e<gg&&(gg=e),e>mg&&(mg=e)},lineStart:Nh,lineEnd:Nh,polygonStart:Nh,polygonEnd:Nh,result:function(){var t=[[pg,gg],[yg,mg]];return yg=mg=-(gg=pg=1/0),t}};const bg=vg;var xg,wg,_g,Ag,Mg=0,Eg=0,Bg=0,Tg=0,kg=0,Fg=0,Sg=0,Ng=0,Cg=0,Ig={point:Rg,lineStart:Og,lineEnd:Lg,polygonStart:function(){Ig.lineStart=Ug,Ig.lineEnd=$g},polygonEnd:function(){Ig.point=Rg,Ig.lineStart=Og,Ig.lineEnd=Lg},result:function(){var t=Cg?[Sg/Cg,Ng/Cg]:Fg?[Tg/Fg,kg/Fg]:Bg?[Mg/Bg,Eg/Bg]:[NaN,NaN];return Mg=Eg=Bg=Tg=kg=Fg=Sg=Ng=Cg=0,t}};function Rg(t,e){Mg+=t,Eg+=e,++Bg}function Og(){Ig.point=Dg}function Dg(t,e){Ig.point=Pg,Rg(_g=t,Ag=e)}function Pg(t,e){var n=t-_g,r=e-Ag,i=Bh(n*n+r*r);Tg+=i*(_g+t)/2,kg+=i*(Ag+e)/2,Fg+=i,Rg(_g=t,Ag=e)}function Lg(){Ig.point=Rg}function Ug(){Ig.point=zg}function $g(){jg(xg,wg)}function zg(t,e){Ig.point=jg,Rg(xg=_g=t,wg=Ag=e)}function jg(t,e){var n=t-_g,r=e-Ag,i=Bh(n*n+r*r);Tg+=i*(_g+t)/2,kg+=i*(Ag+e)/2,Fg+=i,Sg+=(i=Ag*t-_g*e)*(_g+t),Ng+=i*(Ag+e),Cg+=3*i,Rg(_g=t,Ag=e)}const qg=Ig;function Hg(t){this._context=t}Hg.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,hh)}},result:Nh};var Yg,Gg,Vg,Wg,Xg,Jg=new $,Zg={point:Nh,lineStart:function(){Zg.point=Kg},lineEnd:function(){Yg&&Qg(Gg,Vg),Zg.point=Nh},polygonStart:function(){Yg=!0},polygonEnd:function(){Yg=null},result:function(){var t=+Jg;return Jg=new $,t}};function Kg(t,e){Zg.point=Qg,Gg=Wg=t,Vg=Xg=e}function Qg(t,e){Wg-=t,Xg-=e,Jg.add(Bh(Wg*Wg+Xg*Xg)),Wg=t,Xg=e}const ty=Zg;let ey,ny,ry,iy;class oy{constructor(t){this._append=null==t?ay:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return ay;if(e!==ey){const t=10**e;ey=e,ny=function(e){let n=1;this._+=e[0];for(const r=e.length;n<r;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return ny}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==ry||this._append!==ny){const t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,ry=t,ny=this._append,iy=this._,this._=e}this._+=iy}}result(){const t=this._;return this._="",t.length?t:null}}function ay(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function uy(t,e){let n,r,i=3,o=4.5;function a(t){return t&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),Ph(t,n(r))),r.result()}return a.area=function(t){return Ph(t,n(dg)),dg.result()},a.measure=function(t){return Ph(t,n(ty)),ty.result()},a.bounds=function(t){return Ph(t,n(bg)),bg.result()},a.centroid=function(t){return Ph(t,n(qg)),qg.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,eg):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new oy(i)):new Hg(e=t),"function"!=typeof o&&r.pointRadius(o),a):e},a.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(r.pointRadius(+t),+t),a):o},a.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);i=e}return null===e&&(r=new oy(i)),a},a.projection(t).digits(i).context(e)}function cy(t){return{stream:sy(t)}}function sy(t){return function(e){var n=new fy;for(var r in t)n[r]=t[r];return n.stream=e,n}}function fy(){}function ly(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Ph(n,t.stream(bg)),e(bg.result()),null!=r&&t.clipExtent(r),t}function hy(t,e,n){return ly(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])},n)}function dy(t,e,n){return hy(t,[[0,0],e],n)}function py(t,e,n){return ly(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])},n)}function gy(t,e,n){return ly(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])},n)}n.dn(uy),n.dn(cy),fy.prototype={constructor:fy,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},n.dn(vy);var yy=16,my=vh(30*ph);function vy(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,s,f,l,h,d,p,g,y){var m=s-r,v=f-i,b=m*m+v*v;if(b>4*e&&g--){var x=a+h,w=u+d,_=c+p,A=Bh(x*x+w*w+_*_),M=Fh(_/=A),E=gh(gh(_)-1)<uh||gh(o-l)<uh?(o+l)/2:mh(w,x),B=t(E,M),T=B[0],k=B[1],F=T-r,S=k-i,N=v*F-m*S;(N*N/b>e||gh((m*F+v*S)/b-.5)>.3||a*h+u*d+c*p<my)&&(n(r,i,o,a,u,c,T,k,E,x/=A,w/=A,_,g,y),y.point(T,k),n(T,k,E,x,w,_,s,f,l,h,d,p,g,y))}}return function(e){var r,i,o,a,u,c,s,f,l,h,d,p,g={point:y,lineStart:m,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){f=NaN,g.point=v,e.lineStart()}function v(r,i){var o=sd([r,i]),a=t(r,i);n(f,l,s,h,d,p,f=a[0],l=a[1],s=r,h=o[0],d=o[1],p=o[2],yy,e),e.point(f,l)}function b(){g.point=y,e.lineEnd()}function x(){m(),g.point=w,g.lineEnd=_}function w(t,e){v(r=t,e),i=f,o=l,a=h,u=d,c=p,g.point=v}function _(){n(f,l,s,h,d,p,i,o,r,a,u,c,yy,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return sy({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var by=sy({point:function(t,e){this.stream.point(t*ph,e*ph)}});function xy(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=vh(o),u=Mh(o),c=a*t,s=u*t,f=a/t,l=u/t,h=(u*n-a*e)/t,d=(u*e+a*n)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+e,n-s*t-c*o]}return p.invert=function(t,e){return[r*(f*t-l*e+h),i*(d-l*t-f*e)]},p}function wy(t){return _y(function(){return t})()}function _y(t){var e,n,r,i,o,a,u,c,s,f,l=150,h=480,d=250,p=0,g=0,y=0,m=0,v=0,b=0,x=1,w=1,_=null,A=_p,M=null,E=eg,B=.5;function T(t){return c(t[0]*ph,t[1]*ph)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*dh,t[1]*dh]}function F(){var t=xy(l,0,0,x,w,b).apply(null,e(p,g)),r=xy(l,h-t[0],d-t[1],x,w,b);return n=ip(y,m,v),u=np(e,r),c=np(n,u),a=vy(u,B),S()}function S(){return s=f=null,T}return T.stream=function(t){return s&&f===t?s:s=by(function(t){return sy({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(A(a(E(f=t)))))},T.preclip=function(t){return arguments.length?(A=t,_=void 0,S()):A},T.postclip=function(t){return arguments.length?(E=t,M=r=i=o=null,S()):E},T.clipAngle=function(t){return arguments.length?(A=+t?Ap(_=t*ph):(_=null,_p),S()):_*dh},T.clipExtent=function(t){return arguments.length?(E=null==t?(M=r=i=o=null,eg):Np(M=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),S()):null==M?null:[[M,r],[i,o]]},T.scale=function(t){return arguments.length?(l=+t,F()):l},T.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],F()):[h,d]},T.center=function(t){return arguments.length?(p=t[0]%360*ph,g=t[1]%360*ph,F()):[p*dh,g*dh]},T.rotate=function(t){return arguments.length?(y=t[0]%360*ph,m=t[1]%360*ph,v=t.length>2?t[2]%360*ph:0,F()):[y*dh,m*dh,v*dh]},T.angle=function(t){return arguments.length?(b=t%360*ph,F()):b*dh},T.reflectX=function(t){return arguments.length?(x=t?-1:1,F()):x<0},T.reflectY=function(t){return arguments.length?(w=t?-1:1,F()):w<0},T.precision=function(t){return arguments.length?(a=vy(u,B=t*t),S()):Bh(B)},T.fitExtent=function(t,e){return hy(T,t,e)},T.fitSize=function(t,e){return dy(T,t,e)},T.fitWidth=function(t,e){return py(T,t,e)},T.fitHeight=function(t,e){return gy(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&k,F()}}function Ay(t){var e=0,n=sh/3,r=_y(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*ph,n=t[1]*ph):[e*dh,n*dh]},i}function My(t,e){var n=Mh(t),r=(n+Mh(e))/2;if(gh(r)<uh)return function(t){var e=vh(t);function n(t,n){return[t*e,Mh(n)/e]}return n.invert=function(t,n){return[t/e,Fh(n*e)]},n}(t);var i=1+n*(2*r-n),o=Bh(i)/r;function a(t,e){var n=Bh(i-2*r*Mh(e))/r;return[n*Mh(t*=r),o-n*vh(t)]}return a.invert=function(t,e){var n=o-e,a=mh(t,gh(n))*Eh(n);return n*r<0&&(a-=sh*Eh(t)*Eh(n)),[a/r,Fh((i-(t*t+n*n)*r*r)/(2*r))]},a}function Ey(){return Ay(My).scale(155.424).center([0,33.6442])}function By(){return Ey().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Ty(){var t,e,n,r,i,o,a=By(),u=Ey().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Ey().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function l(){return t=e=null,f}return f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},f.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),l()):a.precision()},f.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),f.translate(a.translate())):a.scale()},f.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],f=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,f-.238*e],[o+.455*e,f+.238*e]]).stream(s),r=u.translate([o-.307*e,f+.201*e]).clipExtent([[o-.425*e+uh,f+.12*e+uh],[o-.214*e-uh,f+.234*e-uh]]).stream(s),i=c.translate([o-.205*e,f+.212*e]).clipExtent([[o-.214*e+uh,f+.166*e+uh],[o-.115*e-uh,f+.234*e-uh]]).stream(s),l()},f.fitExtent=function(t,e){return hy(f,t,e)},f.fitSize=function(t,e){return dy(f,t,e)},f.fitWidth=function(t,e){return py(f,t,e)},f.fitHeight=function(t,e){return gy(f,t,e)},f.scale(1070)}function ky(t){return function(e,n){var r=vh(e),i=vh(n),o=t(r*i);return o===1/0?[2,0]:[o*i*Mh(e),o*Mh(n)]}}function Fy(t){return function(e,n){var r=Bh(e*e+n*n),i=t(r),o=Mh(i),a=vh(i);return[mh(e*o,r*a),Fh(r&&n*o/r)]}}n.dn(Ey),n.dn(By),n.dn(Ty),n.dn(Ny);var Sy=ky(function(t){return Bh(2/(1+t))});function Ny(){return wy(Sy).scale(124.75).clipAngle(179.999)}Sy.invert=Fy(function(t){return 2*Fh(t/2)}),n.dn(Iy);var Cy=ky(function(t){return(t=kh(t))&&t/Mh(t)});function Iy(){return wy(Cy).scale(79.4188).clipAngle(179.999)}function Ry(t,e){return[t,_h(Th((fh+e)/2))]}function Oy(){return Dy(Ry).scale(961/hh)}function Dy(t){var e,n,r,i=wy(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function f(){var o=sh*a(),u=i(cp(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===Ry?[[Math.max(u[0]-o,s),e],[Math.min(u[0]+o,n),r]]:[[s,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(u(t),f()):u()},i.center=function(t){return arguments.length?(o(t),f()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=e=n=r=null:(s=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),f()):null==s?null:[[s,e],[n,r]]},f()}function Py(t){return Th((fh+t)/2)}function Ly(t,e){var n=vh(t),r=t===e?Mh(t):_h(n/vh(e))/_h(Py(e)/Py(t)),i=n*Ah(Py(t),r)/r;if(!r)return Ry;function o(t,e){i>0?e<-fh+uh&&(e=-fh+uh):e>fh-uh&&(e=fh-uh);var n=i/Ah(Py(e),r);return[n*Mh(r*t),i-n*vh(r*t)]}return o.invert=function(t,e){var n=i-e,o=Eh(r)*Bh(t*t+n*n),a=mh(t,gh(n))*Eh(n);return n*r<0&&(a-=sh*Eh(t)*Eh(n)),[a/r,2*yh(Ah(i/o,1/r))-fh]},o}function Uy(){return Ay(Ly).scale(109.5).parallels([30,30])}function $y(t,e){return[t,e]}function zy(){return wy($y).scale(152.63)}function jy(t,e){var n=vh(t),r=t===e?Mh(t):(n-vh(e))/(e-t),i=n/r+t;if(gh(r)<uh)return $y;function o(t,e){var n=i-e,o=r*t;return[n*Mh(o),i-n*vh(o)]}return o.invert=function(t,e){var n=i-e,o=mh(t,gh(n))*Eh(n);return n*r<0&&(o-=sh*Eh(t)*Eh(n)),[o/r,i-Eh(r)*Bh(t*t+n*n)]},o}function qy(){return Ay(jy).scale(131.154).center([0,13.9389])}Cy.invert=Fy(function(t){return t}),n.dn(Oy),Ry.invert=function(t,e){return[t,2*yh(xh(e))-fh]},n.dn(Uy),n.dn(zy),$y.invert=$y,n.dn(qy),n.dn(Jy);var Hy=1.340264,Yy=-.081106,Gy=893e-6,Vy=.003796,Wy=Bh(3)/2;function Xy(t,e){var n=Fh(Wy*Mh(e)),r=n*n,i=r*r*r;return[t*vh(n)/(Wy*(Hy+3*Yy*r+i*(7*Gy+9*Vy*r))),n*(Hy+Yy*r+i*(Gy+Vy*r))]}function Jy(){return wy(Xy).scale(177.158)}function Zy(t,e){var n=vh(e),r=vh(t)*n;return[n*Mh(t)/r,Mh(e)/r]}function Ky(){return wy(Zy).scale(144.049).clipAngle(60)}function Qy(){var t,e,n,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,g=1,y=sy({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),m=eg;function v(){return p=u*f,g=u*l,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*g;if(h){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+s]}return b.invert=function(n){var r=n[0]-c,i=n[1]-s;if(h){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/p,i/g]},b.stream=function(t){return o&&a===t?o:o=y(m(a=t))},b.postclip=function(t){return arguments.length?(m=t,d=n=r=i=null,v()):m},b.clipExtent=function(t){return arguments.length?(m=null==t?(d=n=r=i=null,eg):Np(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),v()):null==d?null:[[d,n],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,v()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],v()):[c,s]},b.angle=function(n){return arguments.length?(e=Mh(h=n%360*ph),t=vh(h),v()):h*dh},b.reflectX=function(t){return arguments.length?(f=t?-1:1,v()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,v()):l<0},b.fitExtent=function(t,e){return hy(b,t,e)},b.fitSize=function(t,e){return dy(b,t,e)},b.fitWidth=function(t,e){return py(b,t,e)},b.fitHeight=function(t,e){return gy(b,t,e)},b}function tm(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function em(){return wy(tm).scale(175.295)}function nm(t,e){return[vh(e)*Mh(t),Mh(e)]}function rm(){return wy(nm).scale(249.5).clipAngle(90+uh)}function im(t,e){var n=vh(e),r=1+vh(t)*n;return[n*Mh(t)/r,Mh(e)/r]}function om(){return wy(im).scale(250).clipAngle(142)}function am(t,e){return[_h(Th((fh+e)/2)),-t]}function um(){var t=Dy(am),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function cm(t,e){return t.parent===e.parent?1:2}function sm(t,e){return t+e.x}function fm(t,e){return Math.max(t,e.y)}function lm(){var t=cm,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter(function(e){var n=e.children;n?(e.x=function(t){return t.reduce(sm,0)/t.length}(n),e.y=function(t){return 1+t.reduce(fm,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)});var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-s)/(f-s)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function hm(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function dm(){return this.eachAfter(hm)}function pm(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function gm(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}function ym(t,e){for(var n,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=u.pop();)t.call(e,o,++c,this);return this}function mm(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function vm(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function bm(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function xm(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function wm(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _m(){return Array.from(this)}function Am(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Mm(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Em(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}function Bm(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=km)):void 0===e&&(e=Tm);for(var n,r,i,o,a,u=new Nm(t),c=[u];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Nm(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(Sm)}function Tm(t){return t.children}function km(t){return Array.isArray(t)?t[1]:null}function Fm(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Sm(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Nm(t){this.data=t,this.depth=this.height=0,this.parent=null}function Cm(t){return null==t?null:Im(t)}function Im(t){if("function"!=typeof t)throw new Error;return t}function Rm(){return 0}function Om(t){return function(){return t}}Xy.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(Hy+Yy*i+o*(Gy+Vy*i))-e)/(Hy+3*Yy*i+o*(7*Gy+9*Vy*i)))*r)*i*i,!(gh(n)<ch));++a);return[Wy*t*(Hy+3*Yy*i+o*(7*Gy+9*Vy*i))/vh(r),Fh(Mh(r)/Wy)]},n.dn(Ky),Zy.invert=Fy(yh),n.dn(Qy),n.dn(em),tm.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(gh(n)>uh&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},n.dn(rm),nm.invert=Fy(Fh),n.dn(om),im.invert=Fy(function(t){return 2*yh(t)}),n.dn(um),am.invert=function(t,e){return[-e,2*yh(xh(t))-fh]},n.dn(lm),n.dn(dm),n.dn(pm),n.dn(gm),n.dn(ym),n.dn(mm),n.dn(vm),n.dn(bm),n.dn(xm),n.dn(wm),n.dn(_m),n.dn(Am),n.dn(Mm),n.dn(Em),Nm.prototype=Bm.prototype={constructor:Nm,count:dm,each:pm,eachAfter:ym,eachBefore:gm,find:mm,sum:vm,sort:bm,path:xm,ancestors:wm,descendants:_m,leaves:Am,links:Mm,copy:function(){return Bm(this).eachBefore(Fm)},[Symbol.iterator]:Em},n.dn(Om),n.dn(Um);const Dm=1664525,Pm=1013904223,Lm=4294967296;function Um(){let t=1;return()=>(t=(Dm*t+Pm)%Lm)/Lm}function $m(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function zm(t){return jm(t,Um())}function jm(t,e){for(var n,r,i=0,o=(t=function(t,e){let n,r,i=t.length;for(;i;)r=e()*i--|0,n=t[i],t[i]=t[r],t[r]=n;return t}(Array.from(t),e)).length,a=[];i<o;)n=t[i],r&&Ym(r,n)?++i:(r=Vm(a=qm(a,n)),i=0);return r}function qm(t,e){var n,r;if(Gm(e,t))return[e];for(n=0;n<t.length;++n)if(Hm(e,t[n])&&Gm(Wm(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Hm(Wm(t[n],t[r]),e)&&Hm(Wm(t[n],e),t[r])&&Hm(Wm(t[r],e),t[n])&&Gm(Xm(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Hm(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Ym(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Gm(t,e){for(var n=0;n<e.length;++n)if(!Ym(t,e[n]))return!1;return!0}function Vm(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Wm(t[0],t[1]);case 3:return Xm(t[0],t[1],t[2])}}function Wm(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,c=o-n,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(n+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function Xm(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,c=e.r,s=n.x,f=n.y,l=n.r,h=r-a,d=r-s,p=i-u,g=i-f,y=c-o,m=l-o,v=r*r+i*i-o*o,b=v-a*a-u*u+c*c,x=v-s*s-f*f+l*l,w=d*p-h*g,_=(p*x-g*b)/(2*w)-r,A=(g*y-p*m)/w,M=(d*b-h*x)/(2*w)-i,E=(h*m-d*y)/w,B=A*A+E*E-1,T=2*(o+_*A+M*E),k=_*_+M*M-o*o,F=-(Math.abs(B)>1e-6?(T+Math.sqrt(T*T-4*B*k))/(2*B):k/T);return{x:r+_+A*F,y:i+M+E*F,r:F}}function Jm(t,e,n){var r,i,o,a,u=t.x-e.x,c=t.y-e.y,s=u*u+c*c;s?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),n.x=t.x-r*u-o*c,n.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),n.x=e.x+r*u-o*c,n.y=e.y+r*c+o*u)):(n.x=e.x+n.r,n.y=e.y)}function Zm(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Km(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function Qm(t){this._=t,this.next=null,this.previous=null}function tv(t,e){if(!(o=(t=$m(t)).length))return 0;var n,r,i,o,a,u,c,s,f,l,h;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;Jm(r,n,i=t[2]),n=new Qm(n),r=new Qm(r),i=new Qm(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c<o;++c){Jm(n._,r._,i=t[c]),i=new Qm(i),s=r.next,f=n.previous,l=r._.r,h=n._.r;do{if(l<=h){if(Zm(s._,i._)){r=s,n.next=r,r.previous=n,--c;continue t}l+=s._.r,s=s.next}else{if(Zm(f._,i._)){(n=f).next=r,r.previous=n,--c;continue t}h+=f._.r,f=f.previous}}while(s!==f.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=Km(n);(i=i.next)!==r;)(u=Km(i))<a&&(n=i,a=u);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=jm(n,e),c=0;c<o;++c)(n=t[c]).x-=i.x,n.y-=i.y;return i.r}function ev(t){return tv(t,Um()),t}function nv(t){return Math.sqrt(t.value)}function rv(){var t=null,e=1,n=1,r=Rm;function i(i){const o=Um();return i.x=e/2,i.y=n/2,t?i.eachBefore(iv(t)).eachAfter(ov(r,.5,o)).eachBefore(av(1)):i.eachBefore(iv(nv)).eachAfter(ov(Rm,1,o)).eachAfter(ov(r,i.r/Math.min(e,n),o)).eachBefore(av(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Cm(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Om(+t),i):r},i}function iv(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function ov(t,e,n){return function(r){if(i=r.children){var i,o,a,u=i.length,c=t(r)*e||0;if(c)for(o=0;o<u;++o)i[o].r+=c;if(a=tv(i,n),c)for(o=0;o<u;++o)i[o].r-=c;r.r=a+c}}}function av(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function uv(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function cv(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-e)/t.value;++u<c;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*s}function sv(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&cv(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,u=r.y1-n;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(e,o)),r&&i.eachBefore(uv),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}n.dn($m),n.dn(zm),n.dn(ev),n.dn(rv),n.dn(uv),n.dn(cv),n.dn(sv),n.dn(gv);var fv={depth:-1},lv={},hv={};function dv(t){return t.id}function pv(t){return t.parentId}function gv(){var t,e=dv,n=pv;function r(r){var i,o,a,u,c,s,f,l,h=Array.from(r),d=e,p=n,g=new Map;if(null!=t){const e=h.map((e,n)=>function(t){let e=(t=`${t}`).length;return mv(t,e-1)&&!mv(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(t(e,n,r))),n=e.map(yv),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(yv(t)),h.push(hv));d=(t,n)=>e[n],p=(t,e)=>n[e]}for(a=0,i=h.length;a<i;++a)o=h[a],s=h[a]=new Nm(o),null!=(f=d(o,a,r))&&(f+="")&&(l=s.id=f,g.set(l,g.has(l)?lv:s)),null!=(f=p(o,a,r))&&(f+="")&&(s.parent=f);for(a=0;a<i;++a)if(f=(s=h[a]).parent){if(!(c=g.get(f)))throw new Error("missing: "+f);if(c===lv)throw new Error("ambiguous: "+f);c.children?c.children.push(s):c.children=[s],s.parent=c}else{if(u)throw new Error("multiple roots");u=s}if(!u)throw new Error("no root");if(null!=t){for(;u.data===hv&&1===u.children.length;)u=u.children[0],--i;for(let t=h.length-1;t>=0&&(s=h[t]).data===hv;--t)s.data=null}if(u.parent=fv,u.eachBefore(function(t){t.depth=t.parent.depth+1,--i}).eachBefore(Sm),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(e=Cm(t),r):e},r.parentId=function(t){return arguments.length?(n=Cm(t),r):n},r.path=function(e){return arguments.length?(t=Cm(e),r):t},r}function yv(t){let e=t.length;if(e<2)return"";for(;--e>1&&!mv(t,e););return t.slice(0,e)}function mv(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(!(1&n))return!0}return!1}function vv(t,e){return t.parent===e.parent?1:2}function bv(t){var e=t.children;return e?e[0]:t.t}function xv(t){var e=t.children;return e?e[e.length-1]:t.t}function wv(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function _v(t,e,n){return t.a.parent===e.parent?t.a:n}function Av(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Mv(){var t=vv,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new Av(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new Av(r[i],i)),n.parent=e;return(a.parent=new Av(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore(function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)});var h=s===f?1:t(s,f)/2,d=h-s.x,p=e/(f.x+h+d),g=n/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*g})}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=xv(u),o=bv(o),u&&o;)c=bv(c),(a=xv(a)).a=e,(i=u.z+l-o.z-s+t(u._,o._))>0&&(wv(_v(u,e,r),e,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!xv(a)&&(a.t=u,a.m+=l-f),o&&!bv(c)&&(c.t=o,c.m+=s-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Ev(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-n)/t.value;++u<c;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*s}n.dn(Mv),Av.prototype=Object.create(Nm.prototype),n.dn(Ev);var Bv=(1+Math.sqrt(5))/2;function Tv(t,e,n,r,i,o){for(var a,u,c,s,f,l,h,d,p,g,y,m=[],v=e.children,b=0,x=0,w=v.length,_=e.value;b<w;){c=i-n,s=o-r;do{f=v[x++].value}while(!f&&x<w);for(l=h=f,y=f*f*(g=Math.max(s/c,c/s)/(_*t)),p=Math.max(h/y,y/l);x<w;++x){if(f+=u=v[x].value,u<l&&(l=u),u>h&&(h=u),y=f*f*g,(d=Math.max(h/y,y/l))>p){f-=u;break}p=d}m.push(a={value:f,dice:c<s,children:v.slice(b,x)}),a.dice?cv(a,n,r,i,_?r+=s*f/_:o):Ev(a,n,r,_?n+=c*f/_:i,o),_-=f,b=x}return m}const kv=function t(e){function n(t,n,r,i,o){Tv(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Bv);function Fv(){var t=kv,e=!1,n=1,r=1,i=[0],o=Rm,a=Rm,u=Rm,c=Rm,s=Rm;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(l),i=[0],e&&t.eachBefore(uv),t}function l(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,l=e.x1-n,h=e.y1-n;l<r&&(r=l=(r+l)/2),h<f&&(f=h=(f+h)/2),e.x0=r,e.y0=f,e.x1=l,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=s(e)-n,f+=a(e)-n,(l-=u(e)-n)<r&&(r=l=(r+l)/2),(h-=c(e)-n)<f&&(f=h=(f+h)/2),t(e,r,f,l,h))}return f.round=function(t){return arguments.length?(e=!!t,f):e},f.size=function(t){return arguments.length?(n=+t[0],r=+t[1],f):[n,r]},f.tile=function(e){return arguments.length?(t=Im(e),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Om(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:Om(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:Om(+t),f):u},f.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Om(+t),f):c},f.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Om(+t),f):s},f}function Sv(t,e,n,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var f=u[e];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[e],h=r/2+l,d=e+1,p=n-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&e+1<d&&--d;var y=s[d]-l,m=r-y;if(a-i>c-o){var v=r?(i*m+a*y)/r:a;t(e,d,y,i,o,v,c),t(d,n,m,v,o,a,c)}else{var b=r?(o*m+c*y)/r:c;t(e,d,y,i,o,a,b),t(d,n,m,i,b,a,c)}}(0,c,t.value,e,n,r,i)}function Nv(t,e,n,r,i){(1&t.depth?Ev:cv)(t,e,n,r,i)}n.dn(Fv),n.dn(Sv),n.dn(Nv);const Cv=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,s=u.value=0,f=c.length;s<f;++s)u.value+=c[s].value;u.dice?cv(u,n,r,i,d?r+=(o-r)*u.value/d:o):Ev(u,n,r,d?n+=(i-n)*u.value/d:i,o),d-=u.value}else t._squarify=a=Tv(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Bv);function Iv(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Rv(t,e){var n=Ti(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Ov(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Dv(t){return((t=Math.exp(t))+1/t)/2}n.dn(Iv),n.dn(Rv),n.dn(Ov);const Pv=function t(e,n,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/s)/e,o=function(t){return[u+t*d,c+t*p,s*Math.exp(e*t*a)]};else{var y=Math.sqrt(g),m=(h*h-s*s+r*g)/(2*s*n*y),v=(h*h-s*s-r*g)/(2*h*n*y),b=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-b)/e,o=function(t){var r=t*a,i=Dv(b),o=s/(n*y)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+b)-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+o*d,c+o*p,s*i/Dv(e*r+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function Lv(t){return function(e,n){var r=t((e=mi(e)).h,(n=mi(n)).h),i=ki(e.s,n.s),o=ki(e.l,n.l),a=ki(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const Uv=Lv(Ti);var $v=Lv(ki);function zv(t,e){var n=ki((t=Zu(t)).l,(e=Zu(e)).l),r=ki(t.a,e.a),i=ki(t.b,e.b),o=ki(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function jv(t){return function(e,n){var r=t((e=oc(e)).h,(n=oc(n)).h),i=ki(e.c,n.c),o=ki(e.l,n.l),a=ki(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const qv=jv(Ti);var Hv=jv(ki);function Yv(t){return function e(n){function r(e,r){var i=t((e=yc(e)).h,(r=yc(r)).h),o=ki(e.s,r.s),a=ki(e.l,r.l),u=ki(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}const Gv=Yv(Ti);var Vv=Yv(ki);function Wv(t,e){void 0===e&&(e=t,t=qi);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function Xv(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function Jv(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2}function Zv(t){for(var e,n,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)e=u,u=t[r],c+=n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o/(c*=3),a/c]}function Kv(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Qv(t,e){return t[0]-e[0]||t[1]-e[1]}function tb(t){const e=t.length,n=[0,1];let r,i=2;for(r=2;r<e;++r){for(;i>1&&Kv(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function eb(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(Qv),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=tb(r),a=tb(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(e=o.length-1;e>=0;--e)s.push(t[r[o[e]][2]]);for(e=+u;e<a.length-c;++e)s.push(t[r[a[e]][2]]);return s}function nb(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],u=e[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)n=(o=t[l])[0],(r=o[1])>u!=s>u&&a<(c-n)*(u-r)/(s-r)+n&&(f=!f),c=n,s=r;return f}function rb(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)e=a,n=u,e-=a=(o=t[r])[0],n-=u=o[1],c+=Math.hypot(e,n);return c}n.dn(Xv),n.dn(Jv),n.dn(Zv),n.dn(Kv),n.dn(eb),n.dn(nb),n.dn(rb);const ib=Math.random,ob=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(ib),ab=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(ib),ub=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(ib),cb=function t(e){var n=ub.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(ib),sb=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(ib),fb=function t(e){var n=sb.source(e);function r(t){if(0===(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(ib),lb=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(ib),hb=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(ib),db=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(ib),pb=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(ib),gb=function t(e){var n=ub.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),u=1+o*t}while(u<=0);u*=u*u;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(ib),yb=function t(e){var n=gb.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(ib),mb=function t(e){var n=pb.source(e),r=yb.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=n(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(ib),vb=function t(e){function n(t,n,r){var i;return 0===(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(ib),bb=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(ib),xb=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(ib),wb=function t(e){var n=gb.source(e),r=mb.source(e);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=n(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-e()),s=0;c<=o;++s)c-=Math.log1p(-e());return i+s}}return i.source=t,i}(ib),_b=1664525,Ab=1013904223,Mb=1/4294967296;function Eb(t=Math.random()){let e=0|(0<=t&&t<1?t/Mb:Math.abs(t));return()=>(e=_b*e+Ab|0,Mb*(e>>>0))}function Bb(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Tb(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const kb=Symbol("implicit");function Fb(){var t=new q,e=[],n=[],r=kb;function i(i){let o=t.get(i);if(void 0===o){if(r!==kb)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new q;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Fb(e,n).unknown(r)},Bb.apply(i,arguments),i}function Sb(){var t,e,n=Fb().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var n=r().length,l=a<o,h=l?a:o,d=l?o:a;t=(d-h)/Math.max(1,n-c+2*s),u&&(t=Math.floor(t)),h+=(d-h-t*(n-c))*f,e=t*(1-c),u&&(h=Math.round(h),e=Math.round(e));var p=Ht(n).map(function(e){return h+t*e});return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,l()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,l()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),l()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},n.paddingOuter=function(t){return arguments.length?(s=+t,l()):s},n.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},n.copy=function(){return Sb(r(),[o,a]).round(u).paddingInner(c).paddingOuter(s).align(f)},Bb.apply(l(),arguments)}function Nb(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nb(e())},t}function Cb(){return Nb(Sb.apply(null,arguments).paddingInner(1))}function Ib(t){return+t}var Rb=[0,1];function Ob(t){return t}function Db(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Pb(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Db(i,r),o=n(a,o)):(r=Db(r,i),o=n(o,a)),function(t){return o(r(t))}}function Lb(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Db(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=A(t,e,1,r)-1;return o[n](i[n](e))}}function Ub(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function $b(){var t,e,n,r,i,o,a=Rb,u=Rb,c=qi,s=Ob;function f(){var t=Math.min(a.length,u.length);return s!==Ob&&(s=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Lb:Pb,i=o=null,l}function l(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,c)))(t(s(e)))}return l.invert=function(n){return s(e((o||(o=r(u,a.map(t),Li)))(n)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Ib),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Ov,f()},l.clamp=function(t){return arguments.length?(s=!!t||Ob,f()):s!==Ob},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(n=t,l):n},function(n,r){return t=n,e=r,f()}}function zb(){return $b()(Ob,Ob)}function jb(t,e,n,r){var i,o=wt(t,e,n);switch((r=Hl(r??",f")).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=oh(o,a))||(r.precision=i),Ql(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=ah(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ih(o))||(r.precision=i-2*("%"===r.type))}return Kl(r)}function qb(t){var e=t.domain;return t.ticks=function(t){var n=e();return bt(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var r=e();return jb(r[0],r[r.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s<c&&(i=c,c=s,s=i,i=a,a=u,u=i);f-- >0;){if((i=xt(c,s,n))===r)return o[a]=c,o[u]=s,e(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function Hb(){var t=zb();return t.copy=function(){return Ub(t,Hb())},Bb.apply(t,arguments),qb(t)}function Yb(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Ib),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Yb(t).unknown(e)},t=arguments.length?Array.from(t,Ib):[0,1],qb(n)}function Gb(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Vb(t){return Math.log(t)}function Wb(t){return Math.exp(t)}function Xb(t){return-Math.log(-t)}function Jb(t){return-Math.exp(-t)}function Zb(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Kb(t){return(e,n)=>-t(-e,n)}function Qb(t){const e=t(Vb,Wb),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?Zb:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=Kb(r),i=Kb(i),t(Xb,Jb)):t(Vb,Wb),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let s,f,l=r(a),h=r(u);const d=null==t?10:+t;let p=[];if(!(o%1)&&h-l<d){if(l=Math.floor(l),h=Math.ceil(h),a>0){for(;l<=h;++l)for(s=1;s<o;++s)if(f=l<0?s/i(-l):s*i(l),!(f<a)){if(f>u)break;p.push(f)}}else for(;l<=h;++l)for(s=o-1;s>=1;--s)if(f=l>0?s/i(-l):s*i(l),!(f<a)){if(f>u)break;p.push(f)}2*p.length<d&&(p=bt(a,u,d))}else p=bt(l,h,Math.min(h-l,d)).map(i);return c?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=Hl(n)).precision||(n.trim=!0),n=Kl(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(Gb(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function tx(){const t=Qb($b()).domain([1,10]);return t.copy=()=>Ub(t,tx()).base(t.base()),Bb.apply(t,arguments),t}function ex(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function nx(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function rx(t){var e=1,n=t(ex(e),nx(e));return n.constant=function(n){return arguments.length?t(ex(e=+n),nx(e)):e},qb(n)}function ix(){var t=rx($b());return t.copy=function(){return Ub(t,ix()).constant(t.constant())},Bb.apply(t,arguments)}function ox(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ax(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ux(t){return t<0?-t*t:t*t}function cx(t){var e=t(Ob,Ob),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Ob,Ob):.5===n?t(ax,ux):t(ox(n),ox(1/n)):n},qb(e)}function sx(){var t=cx($b());return t.copy=function(){return Ub(t,sx()).exponent(t.exponent())},Bb.apply(t,arguments),t}function fx(){return sx.apply(null,arguments).exponent(.5)}function lx(t){return Math.sign(t)*t*t}function hx(){var t,e=zb(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(lx(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,Ib)).map(lx)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return hx(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Bb.apply(i,arguments),qb(i)}function dx(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=It(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:n[A(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(p),i()},o.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return dx().domain(e).range(n).unknown(t)},Bb.apply(o,arguments)}function px(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[A(i,e,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return px().domain([e,n]).range(o).unknown(t)},Bb.apply(qb(a),arguments)}function gx(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[A(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return gx().domain(e).range(n).unknown(t)},Bb.apply(i,arguments)}const yx=36e5,mx=864e5,vx=6048e5,bx=31536e6,xx=new Date,wx=new Date;function _x(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let u;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=n=>_x(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(xx.setTime(+e),wx.setTime(+r),t(xx),t(wx),Math.floor(n(xx,wx))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const Ax=_x(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ax.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?_x(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ax:null);const Mx=Ax.range,Ex=_x(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Bx=Ex.range,Tx=_x(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),kx=Tx.range,Fx=_x(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Sx=Fx.range,Nx=_x(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+e*yx)},(t,e)=>(e-t)/yx,t=>t.getHours()),Cx=Nx.range,Ix=_x(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*yx)},(t,e)=>(e-t)/yx,t=>t.getUTCHours()),Rx=Ix.range,Ox=_x(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/mx,t=>t.getDate()-1),Dx=Ox.range,Px=_x(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mx,t=>t.getUTCDate()-1),Lx=Px.range,Ux=_x(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mx,t=>Math.floor(t/mx)),$x=Ux.range;function zx(t){return _x(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/vx)}const jx=zx(0),qx=zx(1),Hx=zx(2),Yx=zx(3),Gx=zx(4),Vx=zx(5),Wx=zx(6),Xx=jx.range,Jx=qx.range,Zx=Hx.range,Kx=Yx.range,Qx=Gx.range,tw=Vx.range,ew=Wx.range;function nw(t){return _x(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/vx)}const rw=nw(0),iw=nw(1),ow=nw(2),aw=nw(3),uw=nw(4),cw=nw(5),sw=nw(6),fw=rw.range,lw=iw.range,hw=ow.range,dw=aw.range,pw=uw.range,gw=cw.range,yw=sw.range,mw=_x(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth()),vw=mw.range,bw=_x(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),xw=bw.range,ww=_x(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ww.every=t=>isFinite(t=Math.floor(t))&&t>0?_x(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null;const _w=ww.range,Aw=_x(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Aw.every=t=>isFinite(t=Math.floor(t))&&t>0?_x(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null;const Mw=Aw.range;function Ew(t,e,n,r,i,o){const a=[[Ex,1,1e3],[Ex,5,5e3],[Ex,15,15e3],[Ex,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,yx],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,mx],[r,2,1728e5],[n,1,vx],[e,1,2592e6],[e,3,7776e6],[t,1,bx]];function u(e,n,r){const i=Math.abs(n-e)/r,o=y(([,,t])=>t).right(a,i);if(o===a.length)return t.every(wt(e/bx,n/bx,r));if(0===o)return Ax.every(Math.max(wt(e,n,r),1));const[u,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},u]}const[Bw,Tw]=Ew(Aw,bw,rw,Ux,Ix,Fx),[kw,Fw]=Ew(ww,mw,jx,Ox,Nx,Tx);function Sw(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nw(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cw(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Iw(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=Yw(i),f=Gw(i),l=Yw(o),h=Gw(o),d=Yw(a),p=Gw(a),g=Yw(u),y=Gw(u),m=Yw(c),v=Gw(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:d_,e:d_,f:v_,g:F_,G:N_,H:p_,I:g_,j:y_,L:m_,m:b_,M:x_,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:tA,s:eA,S:w_,u:__,U:A_,V:E_,w:B_,W:T_,x:null,X:null,y:k_,Y:S_,Z:C_,"%":Q_},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:I_,e:I_,f:L_,g:X_,G:Z_,H:R_,I:O_,j:D_,L:P_,m:U_,M:$_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:tA,s:eA,S:z_,u:j_,U:q_,V:Y_,w:G_,W:V_,x:null,X:null,y:W_,Y:J_,Z:K_,"%":Q_},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:r_,e:r_,f:s_,g:Qw,G:Kw,H:o_,I:o_,j:i_,L:c_,m:n_,M:a_,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=f.get(r[0].toLowerCase()),n+r[0].length):-1},q:e_,Q:l_,s:h_,S:u_,u:Ww,U:Xw,V:Jw,w:Vw,W:Zw,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:Qw,Y:Kw,Z:t_,"%":f_};function _(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=Uw[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function A(t,e){return function(n){var r,i,o=Cw(1900,void 0,1);if(M(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Nw(Cw(o.y,0,1))).getUTCDay(),r=i>4||0===i?iw.ceil(r):iw(r),r=Px.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Sw(Cw(o.y,0,1))).getDay(),r=i>4||0===i?qx.ceil(r):qx(r),r=Ox.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Nw(Cw(o.y,0,1)).getUTCDay():Sw(Cw(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Nw(o)):Sw(o)}}function M(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in Uw?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),x.x=_(n,x),x.X=_(r,x),x.c=_(e,x),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=A(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=A(t+="",!0);return e.toString=function(){return t},e}}}var Rw,Ow,Dw,Pw,Lw,Uw={"-":"",_:" ",0:"0"},$w=/^\s*\d+/,zw=/^%/,jw=/[\\^$*+?|[\]().{}]/g;function qw(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Hw(t){return t.replace(jw,"\\$&")}function Yw(t){return new RegExp("^(?:"+t.map(Hw).join("|")+")","i")}function Gw(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Vw(t,e,n){var r=$w.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ww(t,e,n){var r=$w.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Xw(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Jw(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Zw(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Kw(t,e,n){var r=$w.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Qw(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function t_(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function e_(t,e,n){var r=$w.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function n_(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function r_(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function i_(t,e,n){var r=$w.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function o_(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function a_(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function u_(t,e,n){var r=$w.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function c_(t,e,n){var r=$w.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function s_(t,e,n){var r=$w.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function f_(t,e,n){var r=zw.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function l_(t,e,n){var r=$w.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function h_(t,e,n){var r=$w.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function d_(t,e){return qw(t.getDate(),e,2)}function p_(t,e){return qw(t.getHours(),e,2)}function g_(t,e){return qw(t.getHours()%12||12,e,2)}function y_(t,e){return qw(1+Ox.count(ww(t),t),e,3)}function m_(t,e){return qw(t.getMilliseconds(),e,3)}function v_(t,e){return m_(t,e)+"000"}function b_(t,e){return qw(t.getMonth()+1,e,2)}function x_(t,e){return qw(t.getMinutes(),e,2)}function w_(t,e){return qw(t.getSeconds(),e,2)}function __(t){var e=t.getDay();return 0===e?7:e}function A_(t,e){return qw(jx.count(ww(t)-1,t),e,2)}function M_(t){var e=t.getDay();return e>=4||0===e?Gx(t):Gx.ceil(t)}function E_(t,e){return t=M_(t),qw(Gx.count(ww(t),t)+(4===ww(t).getDay()),e,2)}function B_(t){return t.getDay()}function T_(t,e){return qw(qx.count(ww(t)-1,t),e,2)}function k_(t,e){return qw(t.getFullYear()%100,e,2)}function F_(t,e){return qw((t=M_(t)).getFullYear()%100,e,2)}function S_(t,e){return qw(t.getFullYear()%1e4,e,4)}function N_(t,e){var n=t.getDay();return qw((t=n>=4||0===n?Gx(t):Gx.ceil(t)).getFullYear()%1e4,e,4)}function C_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qw(e/60|0,"0",2)+qw(e%60,"0",2)}function I_(t,e){return qw(t.getUTCDate(),e,2)}function R_(t,e){return qw(t.getUTCHours(),e,2)}function O_(t,e){return qw(t.getUTCHours()%12||12,e,2)}function D_(t,e){return qw(1+Px.count(Aw(t),t),e,3)}function P_(t,e){return qw(t.getUTCMilliseconds(),e,3)}function L_(t,e){return P_(t,e)+"000"}function U_(t,e){return qw(t.getUTCMonth()+1,e,2)}function $_(t,e){return qw(t.getUTCMinutes(),e,2)}function z_(t,e){return qw(t.getUTCSeconds(),e,2)}function j_(t){var e=t.getUTCDay();return 0===e?7:e}function q_(t,e){return qw(rw.count(Aw(t)-1,t),e,2)}function H_(t){var e=t.getUTCDay();return e>=4||0===e?uw(t):uw.ceil(t)}function Y_(t,e){return t=H_(t),qw(uw.count(Aw(t),t)+(4===Aw(t).getUTCDay()),e,2)}function G_(t){return t.getUTCDay()}function V_(t,e){return qw(iw.count(Aw(t)-1,t),e,2)}function W_(t,e){return qw(t.getUTCFullYear()%100,e,2)}function X_(t,e){return qw((t=H_(t)).getUTCFullYear()%100,e,2)}function J_(t,e){return qw(t.getUTCFullYear()%1e4,e,4)}function Z_(t,e){var n=t.getUTCDay();return qw((t=n>=4||0===n?uw(t):uw.ceil(t)).getUTCFullYear()%1e4,e,4)}function K_(){return"+0000"}function Q_(){return"%"}function tA(t){return+t}function eA(t){return Math.floor(+t/1e3)}function nA(t){return Rw=Iw(t),Ow=Rw.format,Dw=Rw.parse,Pw=Rw.utcFormat,Lw=Rw.utcParse,Rw}function rA(t){return new Date(t)}function iA(t){return t instanceof Date?+t:+new Date(+t)}function oA(t,e,n,r,i,o,a,u,c,s){var f=zb(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),y=s("%I %p"),m=s("%a %d"),v=s("%b %d"),b=s("%B"),x=s("%Y");function w(t){return(c(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?m:v:n(t)<t?b:x)(t)}return f.invert=function(t){return new Date(l(t))},f.domain=function(t){return arguments.length?h(Array.from(t,iA)):h().map(rA)},f.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},f.tickFormat=function(t,e){return null==e?w:s(e)},f.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(Gb(n,t)):f},f.copy=function(){return Ub(f,oA(t,e,n,r,i,o,a,u,c,s))},f}function aA(){return Bb.apply(oA(kw,Fw,ww,mw,jx,Ox,Nx,Tx,Ex,Ow).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function uA(){return Bb.apply(oA(Bw,Tw,Aw,bw,rw,Px,Ix,Fx,Ex,Pw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cA(){var t,e,n,r,i,o=0,a=1,u=Ob,c=!1;function s(e){return null==e||isNaN(e=+e)?i:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function f(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),s):[u(0),u(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=f(qi),s.rangeRound=f(Ov),s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),s}}function sA(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function fA(){var t=qb(cA()(Ob));return t.copy=function(){return sA(t,fA())},Tb.apply(t,arguments)}function lA(){var t=Qb(cA()).domain([1,10]);return t.copy=function(){return sA(t,lA()).base(t.base())},Tb.apply(t,arguments)}function hA(){var t=rx(cA());return t.copy=function(){return sA(t,hA()).constant(t.constant())},Tb.apply(t,arguments)}function dA(){var t=cx(cA());return t.copy=function(){return sA(t,dA()).exponent(t.exponent())},Tb.apply(t,arguments)}function pA(){return dA.apply(null,arguments).exponent(.5)}function gA(){var t=[],e=Ob;function n(n){if(null!=n&&!isNaN(n=+n))return e((A(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(p),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((n,r)=>e(r/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(n,r)=>Ct(t,r/e))},n.copy=function(){return gA(e).domain(t)},Tb.apply(n,arguments)}function yA(){var t,e,n,r,i,o,a,u=0,c=.5,s=1,f=1,l=Ob,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(f*t<f*e?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,l=Wv(t,[n,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(a){return arguments.length?([u,c,s]=a,t=o(u=+u),e=o(c=+c),n=o(s=+s),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f=e<t?-1:1,d):[u,c,s]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(qi),d.rangeRound=p(Ov),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),e=a(c),n=a(s),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f=e<t?-1:1,d}}function mA(){var t=qb(yA()(Ob));return t.copy=function(){return sA(t,mA())},Tb.apply(t,arguments)}function vA(){var t=Qb(yA()).domain([.1,1,10]);return t.copy=function(){return sA(t,vA()).base(t.base())},Tb.apply(t,arguments)}function bA(){var t=rx(yA());return t.copy=function(){return sA(t,bA()).constant(t.constant())},Tb.apply(t,arguments)}function xA(){var t=cx(yA());return t.copy=function(){return sA(t,xA()).exponent(t.exponent())},Tb.apply(t,arguments)}function wA(){return xA.apply(null,arguments).exponent(.5)}function _A(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}nA({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n.dn(_A);const AA=_A("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),MA=_A("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),EA=_A("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),BA=_A("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),TA=_A("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),kA=_A("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),FA=_A("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),SA=_A("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),NA=_A("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),CA=_A("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),IA=_A("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),RA=t=>Ni(t[t.length-1]);n.dn(RA);var OA=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(_A);const DA=RA(OA);var PA=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(_A);const LA=RA(PA);var UA=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(_A);const $A=RA(UA);var zA=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(_A);const jA=RA(zA);var qA=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(_A);const HA=RA(qA);var YA=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(_A);const GA=RA(YA);var VA=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(_A);const WA=RA(VA);var XA=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(_A);const JA=RA(XA);var ZA=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(_A);const KA=RA(ZA);var QA=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(_A);const tM=RA(QA);var eM=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(_A);const nM=RA(eM);var rM=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(_A);const iM=RA(rM);var oM=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(_A);const aM=RA(oM);var uM=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(_A);const cM=RA(uM);var sM=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(_A);const fM=RA(sM);var lM=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(_A);const hM=RA(lM);var dM=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(_A);const pM=RA(dM);var gM=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(_A);const yM=RA(gM);var mM=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(_A);const vM=RA(mM);var bM=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(_A);const xM=RA(bM);var wM=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(_A);const _M=RA(wM);var AM=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(_A);const MM=RA(AM);var EM=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(_A);const BM=RA(EM);var TM=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(_A);const kM=RA(TM);var FM=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(_A);const SM=RA(FM);var NM=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(_A);const CM=RA(NM);var IM=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(_A);const RM=RA(IM);function OM(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}n.dn(OM);const DM=Vv(yc(300,.5,0),yc(-240,.5,1));n.dn($M);var PM=Vv(yc(-100,.75,.35),yc(80,1.5,.8)),LM=Vv(yc(260,.75,.35),yc(80,1.5,.8)),UM=yc();function $M(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return UM.h=360*t-100,UM.s=1.5-1.5*e,UM.l=.8-.9*e,UM+""}n.dn(HM);var zM=ci(),jM=Math.PI/3,qM=2*Math.PI/3;function HM(t){var e;return t=(.5-t)*Math.PI,zM.r=255*(e=Math.sin(t))*e,zM.g=255*(e=Math.sin(t+jM))*e,zM.b=255*(e=Math.sin(t+qM))*e,zM+""}function YM(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function GM(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}n.dn(YM);const VM=GM(_A("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var WM=GM(_A("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),XM=GM(_A("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),JM=GM(_A("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ZM(t){return Ir(lr(t).call(document.documentElement))}n.dn(ZM);var KM=0;function QM(){return new tE}function tE(){this._="@"+(++KM).toString(36)}function eE(t,e){return t.target&&(t=Hi(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>Yi(t,e))}function nE(t){return"string"==typeof t?new Sr([document.querySelectorAll(t)],[document.documentElement]):new Sr([ze(t)],Fr)}function rE(t){return function(){return t}}tE.prototype=QM.prototype={constructor:tE,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}},n.dn(eE),n.dn(nE),n.dn(rE);const iE=Math.abs,oE=Math.atan2,aE=Math.cos,uE=Math.max,cE=Math.min,sE=Math.sin,fE=Math.sqrt,lE=Math.PI,hE=lE/2,dE=2*lE;function pE(t){return t>=1?hE:t<=-1?-hE:Math.asin(t)}function gE(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Eu(e)}function yE(t){return t.innerRadius}function mE(t){return t.outerRadius}function vE(t){return t.startAngle}function bE(t){return t.endAngle}function xE(t){return t&&t.padAngle}function wE(t,e,n,r,i,o,a){var u=t-n,c=e-r,s=(a?o:-o)/fE(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=e+l,p=n+f,g=r+l,y=(h+p)/2,m=(d+g)/2,v=p-h,b=g-d,x=v*v+b*b,w=i-o,_=h*g-p*d,A=(b<0?-1:1)*fE(uE(0,w*w*x-_*_)),M=(_*b-v*A)/x,E=(-_*v-b*A)/x,B=(_*b+v*A)/x,T=(-_*v+b*A)/x,k=M-y,F=E-m,S=B-y,N=T-m;return k*k+F*F>S*S+N*N&&(M=B,E=T),{cx:M,cy:E,x01:-f,y01:-l,x11:M*(i/w-1),y11:E*(i/w-1)}}function _E(){var t=yE,e=mE,n=rE(0),r=null,i=vE,o=bE,a=xE,u=null,c=gE(s);function s(){var s,f,l=+t.apply(this,arguments),h=+e.apply(this,arguments),d=i.apply(this,arguments)-hE,p=o.apply(this,arguments)-hE,g=iE(p-d),y=p>d;if(u||(u=s=c()),h<l&&(f=h,h=l,l=f),h>1e-12)if(g>dE-1e-12)u.moveTo(h*aE(d),h*sE(d)),u.arc(0,0,h,d,p,!y),l>1e-12&&(u.moveTo(l*aE(p),l*sE(p)),u.arc(0,0,l,p,d,y));else{var m,v,b=d,x=p,w=d,_=p,A=g,M=g,E=a.apply(this,arguments)/2,B=E>1e-12&&(r?+r.apply(this,arguments):fE(l*l+h*h)),T=cE(iE(h-l)/2,+n.apply(this,arguments)),k=T,F=T;if(B>1e-12){var S=pE(B/l*sE(E)),N=pE(B/h*sE(E));(A-=2*S)>1e-12?(w+=S*=y?1:-1,_-=S):(A=0,w=_=(d+p)/2),(M-=2*N)>1e-12?(b+=N*=y?1:-1,x-=N):(M=0,b=x=(d+p)/2)}var C=h*aE(b),I=h*sE(b),R=l*aE(_),O=l*sE(_);if(T>1e-12){var D,P=h*aE(x),L=h*sE(x),U=l*aE(w),$=l*sE(w);if(g<lE)if(D=function(t,e,n,r,i,o,a,u){var c=n-t,s=r-e,f=a-i,l=u-o,h=l*c-f*s;if(!(h*h<1e-12))return[t+(h=(f*(e-o)-l*(t-i))/h)*c,e+h*s]}(C,I,U,$,P,L,R,O)){var z=C-D[0],j=I-D[1],q=P-D[0],H=L-D[1],Y=1/sE(function(t){return t>1?0:t<-1?lE:Math.acos(t)}((z*q+j*H)/(fE(z*z+j*j)*fE(q*q+H*H)))/2),G=fE(D[0]*D[0]+D[1]*D[1]);k=cE(T,(l-G)/(Y-1)),F=cE(T,(h-G)/(Y+1))}else k=F=0}M>1e-12?F>1e-12?(m=wE(U,$,C,I,h,F,y),v=wE(P,L,R,O,h,F,y),u.moveTo(m.cx+m.x01,m.cy+m.y01),F<T?u.arc(m.cx,m.cy,F,oE(m.y01,m.x01),oE(v.y01,v.x01),!y):(u.arc(m.cx,m.cy,F,oE(m.y01,m.x01),oE(m.y11,m.x11),!y),u.arc(0,0,h,oE(m.cy+m.y11,m.cx+m.x11),oE(v.cy+v.y11,v.cx+v.x11),!y),u.arc(v.cx,v.cy,F,oE(v.y11,v.x11),oE(v.y01,v.x01),!y))):(u.moveTo(C,I),u.arc(0,0,h,b,x,!y)):u.moveTo(C,I),l>1e-12&&A>1e-12?k>1e-12?(m=wE(R,O,P,L,l,-k,y),v=wE(C,I,U,$,l,-k,y),u.lineTo(m.cx+m.x01,m.cy+m.y01),k<T?u.arc(m.cx,m.cy,k,oE(m.y01,m.x01),oE(v.y01,v.x01),!y):(u.arc(m.cx,m.cy,k,oE(m.y01,m.x01),oE(m.y11,m.x11),!y),u.arc(0,0,l,oE(m.cy+m.y11,m.cx+m.x11),oE(v.cy+v.y11,v.cx+v.x11),y),u.arc(v.cx,v.cy,k,oE(v.y11,v.x11),oE(v.y01,v.x01),!y))):u.arc(0,0,l,_,w,y):u.lineTo(R,O)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return s.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-lE/2;return[aE(r)*n,sE(r)*n]},s.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:rE(+e),s):t},s.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:rE(+t),s):e},s.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:rE(+t),s):n},s.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:rE(+t),s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:rE(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:rE(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:rE(+t),s):a},s.context=function(t){return arguments.length?(u=t??null,s):u},s}n.dn(_E),n.dn(ME);var AE=Array.prototype.slice;function ME(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function EE(t){this._context=t}function BE(t){return new EE(t)}function TE(t){return t[0]}function kE(t){return t[1]}function FE(t,e){var n=rE(!0),r=null,i=BE,o=null,a=gE(u);function u(u){var c,s,f,l=(u=ME(u)).length,h=!1;for(null==r&&(o=i(f=a())),c=0;c<=l;++c)!(c<l&&n(s=u[c],c,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(s,c,u),+e(s,c,u));if(f)return o=null,f+""||null}return t="function"==typeof t?t:void 0===t?TE:rE(t),e="function"==typeof e?e:void 0===e?kE:rE(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:rE(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:rE(+t),u):e},u.defined=function(t){return arguments.length?(n="function"==typeof t?t:rE(!!t),u):n},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u}function SE(t,e,n){var r=null,i=rE(!0),o=null,a=BE,u=null,c=gE(s);function s(s){var f,l,h,d,p,g=(s=ME(s)).length,y=!1,m=new Array(g),v=new Array(g);for(null==o&&(u=a(p=c())),f=0;f<=g;++f){if(!(f<g&&i(d=s[f],f,s))===y)if(y=!y)l=f,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=f-1;h>=l;--h)u.point(m[h],v[h]);u.lineEnd(),u.areaEnd()}y&&(m[f]=+t(d,f,s),v[f]=+e(d,f,s),u.point(r?+r(d,f,s):m[f],n?+n(d,f,s):v[f]))}if(p)return u=null,p+""||null}function f(){return FE().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?TE:rE(+t),e="function"==typeof e?e:rE(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?kE:rE(+n),s.x=function(e){return arguments.length?(t="function"==typeof e?e:rE(+e),r=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:rE(+e),s):t},s.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:rE(+t),s):r},s.y=function(t){return arguments.length?(e="function"==typeof t?t:rE(+t),n=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:rE(+t),s):e},s.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:rE(+t),s):n},s.lineX0=s.lineY0=function(){return f().x(t).y(e)},s.lineY1=function(){return f().x(t).y(n)},s.lineX1=function(){return f().x(r).y(e)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:rE(!!t),s):i},s.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),s):a},s.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),s):o},s}function NE(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function CE(t){return t}function IE(){var t=CE,e=NE,n=null,r=rE(0),i=rE(dE),o=rE(0);function a(a){var u,c,s,f,l,h=(a=ME(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),m=Math.min(dE,Math.max(-dE,i.apply(this,arguments)-y)),v=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=v*(m<0?-1:1);for(u=0;u<h;++u)(l=g[p[u]=u]=+t(a[u],u,a))>0&&(d+=l);for(null!=e?p.sort(function(t,n){return e(g[t],g[n])}):null!=n&&p.sort(function(t,e){return n(a[t],a[e])}),u=0,s=d?(m-h*b)/d:0;u<h;++u,y=f)c=p[u],f=y+((l=g[c])>0?l*s:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:f,padAngle:v};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:rE(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:rE(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:rE(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:rE(+t),a):o},a}n.dn(BE),EE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},n.dn(FE),n.dn(SE),n.dn(NE),n.dn(CE),n.dn(IE);var RE=DE(BE);function OE(t){this._curve=t}function DE(t){function e(e){return new OE(t(e))}return e._curve=t,e}function PE(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(DE(t)):e()._curve},t}function LE(){return PE(FE().curve(RE))}function UE(){var t=SE().curve(RE),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return PE(n())},delete t.lineX0,t.lineEndAngle=function(){return PE(r())},delete t.lineX1,t.lineInnerRadius=function(){return PE(i())},delete t.lineY0,t.lineOuterRadius=function(){return PE(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(DE(t)):e()._curve},t}function $E(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}OE.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},n.dn(LE),n.dn(UE),n.dn($E);class zE{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class jE{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0===this._point)this._point=1;else{const n=$E(this._x0,this._y0),r=$E(this._x0,this._y0=(this._y0+e)/2),i=$E(t,this._y0),o=$E(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=e}}function qE(t){return new zE(t,!0)}function HE(t){return new zE(t,!1)}function YE(t){return new jE(t)}function GE(t){return t.source}function VE(t){return t.target}function WE(t){let e=GE,n=VE,r=TE,i=kE,o=null,a=null,u=gE(c);function c(){let c;const s=AE.call(arguments),f=e.apply(this,s),l=n.apply(this,s);if(null==o&&(a=t(c=u())),a.lineStart(),s[0]=f,a.point(+r.apply(this,s),+i.apply(this,s)),s[0]=l,a.point(+r.apply(this,s),+i.apply(this,s)),a.lineEnd(),c)return a=null,c+""||null}return c.source=function(t){return arguments.length?(e=t,c):e},c.target=function(t){return arguments.length?(n=t,c):n},c.x=function(t){return arguments.length?(r="function"==typeof t?t:rE(+t),c):r},c.y=function(t){return arguments.length?(i="function"==typeof t?t:rE(+t),c):i},c.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),c):o},c}function XE(){return WE(qE)}function JE(){return WE(HE)}function ZE(){const t=WE(YE);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const KE=fE(3),QE={draw(t,e){const n=.59436*fE(e+cE(e/28,.75)),r=n/2,i=r*KE;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},tB={draw(t,e){const n=fE(e/lE);t.moveTo(n,0),t.arc(0,0,n,0,dE)}},eB={draw(t,e){const n=fE(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},nB=fE(1/3),rB=2*nB,iB={draw(t,e){const n=fE(e/rB),r=n*nB;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},oB={draw(t,e){const n=.62625*fE(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},aB={draw(t,e){const n=.87559*fE(e-cE(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},uB={draw(t,e){const n=fE(e),r=-n/2;t.rect(r,r,n,n)}},cB={draw(t,e){const n=.4431*fE(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},sB=sE(lE/10)/sE(7*lE/10),fB=sE(dE/10)*sB,lB=-aE(dE/10)*sB,hB={draw(t,e){const n=fE(.8908130915292852*e),r=fB*n,i=lB*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=dE*e/5,a=aE(o),u=sE(o);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}},dB=fE(3),pB={draw(t,e){const n=-fE(e/(3*dB));t.moveTo(0,2*n),t.lineTo(-dB*n,-n),t.lineTo(dB*n,-n),t.closePath()}},gB=fE(3),yB={draw(t,e){const n=.6824*fE(e),r=n/2,i=n*gB/2;t.moveTo(0,-n),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},mB=-.5,vB=fE(3)/2,bB=1/fE(12),xB=3*(bB/2+1),wB={draw(t,e){const n=fE(e/xB),r=n/2,i=n*bB,o=r,a=n*bB+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(mB*r-vB*i,vB*r+mB*i),t.lineTo(mB*o-vB*a,vB*o+mB*a),t.lineTo(mB*u-vB*c,vB*u+mB*c),t.lineTo(mB*r+vB*i,mB*i-vB*r),t.lineTo(mB*o+vB*a,mB*a-vB*o),t.lineTo(mB*u+vB*c,mB*c-vB*u),t.closePath()}},_B={draw(t,e){const n=.6189*fE(e-cE(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},AB=[tB,eB,iB,uB,hB,pB,wB],MB=[tB,aB,_B,yB,QE,cB,oB];function EB(t,e){let n=null,r=gE(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:rE(t||tB),e="function"==typeof e?e:rE(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:rE(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:rE(+t),i):e},i.context=function(t){return arguments.length?(n=t??null,i):n},i}function BB(){}function TB(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function kB(t){this._context=t}function FB(t){return new kB(t)}function SB(t){this._context=t}function NB(t){return new SB(t)}function CB(t){this._context=t}function IB(t){return new CB(t)}function RB(t,e){this._basis=new kB(t),this._beta=e}n.dn(BB),n.dn(FB),kB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:TB(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:TB(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n.dn(NB),SB.prototype={areaStart:BB,areaEnd:BB,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:TB(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n.dn(IB),CB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:TB(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},RB.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const OB=function t(e){function n(t){return 1===e?new kB(t):new RB(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function DB(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function PB(t,e){this._context=t,this._k=(1-e)/6}PB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:DB(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:DB(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const LB=function t(e){function n(t){return new PB(t,e)}return n.tension=function(e){return t(+e)},n}(0);function UB(t,e){this._context=t,this._k=(1-e)/6}UB.prototype={areaStart:BB,areaEnd:BB,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:DB(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $B=function t(e){function n(t){return new UB(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zB(t,e){this._context=t,this._k=(1-e)/6}zB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:DB(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jB=function t(e){function n(t){return new zB(t,e)}return n.tension=function(e){return t(+e)},n}(0);function qB(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function HB(t,e){this._context=t,this._alpha=e}HB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:qB(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const YB=function t(e){function n(t){return e?new HB(t,e):new PB(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function GB(t,e){this._context=t,this._alpha=e}GB.prototype={areaStart:BB,areaEnd:BB,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:qB(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const VB=function t(e){function n(t){return e?new GB(t,e):new UB(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function WB(t,e){this._context=t,this._alpha=e}WB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qB(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const XB=function t(e){function n(t){return e?new WB(t,e):new zB(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function JB(t){this._context=t}function ZB(t){return new JB(t)}function KB(t){return t<0?-1:1}function QB(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(KB(o)+KB(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function tT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function eT(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function nT(t){this._context=t}function rT(t){this._context=new iT(t)}function iT(t){this._context=t}function oT(t){return new nT(t)}function aT(t){return new rT(t)}function uT(t){this._context=t}function cT(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function sT(t){return new uT(t)}function fT(t,e){this._context=t,this._t=e}function lT(t){return new fT(t,.5)}function hT(t){return new fT(t,0)}function dT(t){return new fT(t,1)}function pT(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function gT(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function yT(t,e){return t[e]}function mT(t){const e=[];return e.key=t,e}function vT(){var t=rE([]),e=gT,n=pT,r=yT;function i(i){var o,a,u=Array.from(t.apply(this,arguments),mT),c=u.length,s=-1;for(const t of i)for(o=0,++s;o<c;++o)(u[o][s]=[0,+r(t,u[o].key,s,i)]).data=t;for(o=0,a=ME(e(u));o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:rE(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:rE(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?gT:"function"==typeof t?t:rE(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=t??pT,i):n},i}function bT(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}pT(t,e)}}function xT(t,e){if((u=t.length)>0)for(var n,r,i,o,a,u,c=0,s=t[e[0]].length;c<s;++c)for(o=a=0,n=0;n<u;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function wT(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}pT(t,e)}}function _T(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var f=t[e[u]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,s+=h*l}n[a-1][1]+=n[a-1][0]=o,c&&(o-=s/c)}n[a-1][1]+=n[a-1][0]=o,pT(t,e)}}function AT(t){var e=t.map(MT);return gT(t).sort(function(t,n){return e[t]-e[n]})}function MT(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}function ET(t){var e=t.map(BT);return gT(t).sort(function(t,n){return e[t]-e[n]})}function BT(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function TT(t){return ET(t).reverse()}function kT(t){var e,n,r=t.length,i=t.map(BT),o=AT(t),a=0,u=0,c=[],s=[];for(e=0;e<r;++e)n=o[e],a<u?(a+=i[n],c.push(n)):(u+=i[n],s.push(n));return s.reverse().concat(c)}function FT(t){return gT(t).reverse()}n.dn(ZB),JB.prototype={areaStart:BB,areaEnd:BB,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},nT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:eT(this,this._t0,tT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,eT(this,tT(this,n=QB(this,t,e)),n);break;default:eT(this,this._t0,n=QB(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(rT.prototype=Object.create(nT.prototype)).point=function(t,e){nT.prototype.point.call(this,e,t)},iT.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},n.dn(sT),uT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=cT(t),i=cT(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},n.dn(lT),fT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},n.dn(pT),n.dn(gT),n.dn(vT),n.dn(bT),n.dn(xT),n.dn(wT),n.dn(_T),n.dn(AT),n.dn(ET),n.dn(TT),n.dn(kT),n.dn(FT);var ST="%Y-%m-%dT%H:%M:%S.%LZ",NT=Date.prototype.toISOString?function(t){return t.toISOString()}:Pw(ST);const CT=NT;var IT=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Lw(ST);const RT=IT;function OT(t,e,n){var r=new io,i=e;return null==e?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(t,e,n){e=+e,n=null==n?no():+n,r._restart(function o(a){a+=i,r._restart(o,i+=e,n),t(a)},e,n)},r.restart(t,e,n),r)}n.dn(OT);const DT=t=>()=>t;function PT(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function LT(t,e,n){this.k=t,this.x=e,this.y=n}n.dn(DT),LT.prototype={constructor:LT,scale:function(t){return 1===t?this:new LT(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new LT(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var UT=new LT(1,0,0);function $T(t){for(;!t.__zoom;)if(!(t=t.parentNode))return UT;return t.__zoom}function zT(t){t.stopImmediatePropagation()}function jT(t){t.preventDefault(),t.stopImmediatePropagation()}function qT(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function HT(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function YT(){return this.__zoom||UT}function GT(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function VT(){return navigator.maxTouchPoints||"ontouchstart"in this}function WT(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function XT(){var t,e,n,r=qT,i=HT,o=WT,a=GT,u=VT,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Pv,h=Pe("start","zoom","end"),d=0,p=10;function g(t){t.property("__zoom",YT).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",M).filter(u).on("touchstart.zoom",E).on("touchmove.zoom",B).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new LT(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new LT(t.k,r,i)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==n?v(u):"function"==typeof n?n.apply(t,o):n,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof e?e.apply(t,o):e,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=s/e[2];t=new LT(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}})}function x(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function _(t,...e){if(r.apply(this,arguments)){var n=x(this,e).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=Yi(t);if(n.wheel)n.mouse[0][0]===f[0]&&n.mouse[0][1]===f[1]||(n.mouse[1]=i.invert(n.mouse[0]=f)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[f,i.invert(f)],Eo(this),n.start()}jT(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(m(y(i,u),n.mouse[0],n.mouse[1]),n.extent,s))}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,e,!0).event(t),u=Ir(t.view).on("mousemove.zoom",function(t){if(jT(t),!a.moved){var e=t.clientX-f,n=t.clientY-l;a.moved=e*e+n*n>d}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Yi(t,i),a.mouse[1]),a.extent,s))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),Ur(t.view,a.moved),jT(t),a.event(t).end()},!0),c=Yi(t,i),f=t.clientX,l=t.clientY;Lr(t.view),zT(t),a.mouse=[c,this.__zoom.invert(c)],Eo(this),a.start()}}function M(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=Yi(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),c=n.k*(t.shiftKey?.5:2),l=o(m(y(n,c),a,u),i.apply(this,e),s);jT(t),f>0?Ir(this).transition().duration(f).call(b,l,a,t):Ir(this).call(g.transform,l,a,t)}}function E(n,...i){if(r.apply(this,arguments)){var o,a,u,c,s=n.touches,f=s.length,l=x(this,i,n.changedTouches.length===f).event(n);for(zT(n),a=0;a<f;++a)c=[c=Yi(u=s[a],this),this.__zoom.invert(c),u.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(e=c[0],t=setTimeout(function(){t=null},500)),Eo(this),l.start())}}function B(t,...e){if(this.__zooming){var n,r,i,a,u=x(this,e).event(t),c=t.changedTouches,f=c.length;for(jT(t),n=0;n<f;++n)i=Yi(r=c[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v;r=y(r,Math.sqrt(g/v)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(m(r,i,a),u.extent,s))}}function T(t,...r){if(this.__zooming){var i,o,a=x(this,r).event(t),u=t.changedTouches,c=u.length;for(zT(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Yi(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<p)){var s=Ir(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",YT),t!==i?b(t,e,n,r):i.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},g.scaleBy=function(t,e,n,r){g.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?v(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),c="function"==typeof e?e.apply(this,arguments):e;return o(m(y(r,c),a,u),t,s)},n,r)},g.translateBy=function(t,e,n,r){g.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),s)},null,r)},g.translateTo=function(t,e,n,r,a){g.transform(t,function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?v(t):"function"==typeof r?r.apply(this,arguments):r;return o(UT.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,s)},r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Ir(this.that).datum();h.call(t,this.that,new PT(t,{sourceEvent:this.sourceEvent,target:g,type:t,transform:this.that.__zoom,dispatch:h}),e)}},g.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:DT(+t),g):a},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:DT(!!t),g):r},g.touchable=function(t){return arguments.length?(u="function"==typeof t?t:DT(!!t),g):u},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:DT([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],g):[c[0],c[1]]},g.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],g):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},g.constrain=function(t){return arguments.length?(o=t,g):o},g.duration=function(t){return arguments.length?(f=+t,g):f},g.interpolate=function(t){return arguments.length?(l=t,g):l},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,g):Math.sqrt(d)},g.tapDistance=function(t){return arguments.length?(p=+t,g):p},g}$T.prototype=LT.prototype,n.dn(jT),n.dn(XT);var JT=n(78194),ZT=n.n(JT);function KT(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}function QT(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){KT(o,r,i,a,u,"next",t)}function u(t){KT(o,r,i,a,u,"throw",t)}a(void 0)})}}var tk=n(54756),ek=n.n(tk);function nk(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function rk(t,e){if(t){if("string"==typeof t)return nk(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nk(t,e):void 0}}function ik(t){return function(t){if(Array.isArray(t))return nk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rk(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ok=n(73065),ak=n.n(ok),uk=n(90031),ck=n.n(uk);function sk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sk=function(){return!!t})()}function fk(t,e,n){if(sk())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&h(i,n.prototype),i}function lk(t){var e="function"==typeof Map?new Map:void 0;return lk=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return fk(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,t)},lk(t)}function hk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(hk=function(){return!!t})()}const dk=function(t){function e(){var t,n,r,i;o(this,e);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=this,r=e,i=[].concat(u),r=l(r),(t=f(n,hk()?Reflect.construct(r,i||[],l(n).constructor):r.apply(n,i))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return d(e,t),s(e)}(lk(Error));function pk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!t)return"";if("string"==typeof t&&(t=Ek.strToArrayBuffer(t)),t instanceof ArrayBuffer&&(t=new Uint8Array(t)),64!==(e=Ek.expandAlphRange(e).join("")).length&&65!==e.length)throw new dk(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var n,r,i,o,a,u,c,s="",f=0;f<t.length;)o=(n=t[f++])>>2,a=(3&n)<<4|(r=t[f++])>>4,u=(15&r)<<2|(i=t[f++])>>6,c=63&i,isNaN(r)?u=c=64:isNaN(i)&&(c=64),s+=e.charAt(o)+e.charAt(a)+e.charAt(u)+e.charAt(c);return s}function gk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t)return"string"===n?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=Ek.expandAlphRange(e).join("")).length&&65!==e.length)throw new dk(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(r){var o=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");t=t.replace(o,"")}if(i){if(t.length%4==1)throw new dk(`Error: Invalid Base64 input length (${t.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var a=e.charAt(64),u=t.indexOf(a);if(u>=0){if(u<t.length-2||t.charAt(t.length-1)!==a)throw new dk(`Error: Base64 padding character (${a}) not used in the correct place.`);if(t.length%4!=0)throw new dk("Error: Base64 not padded to a multiple of 4.")}}}for(var c,s,f,l,h,d,p,g=[],y=0;y<t.length;){if(l=e.indexOf(t.charAt(y++)||null),h=e.indexOf(t.charAt(y++)||null),d=e.indexOf(t.charAt(y++)||null),p=e.indexOf(t.charAt(y++)||null),i&&(l<0||h<0||d<0||p<0))throw new dk("Error: Base64 input contains non-alphabet char(s)");s=(15&h)<<4|d>>2,f=(3&d)<<6|p,(c=l<<2|h>>4)>=0&&c<256&&g.push(c),s>=0&&s<256&&64!==d&&g.push(s),f>=0&&f<256&&64!==p&&g.push(f)}return"string"===n?Ek.byteArrayToUtf8(g):g}function yk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(n<1||Math.round(n)!==n)throw new dk("Byte length must be a positive integer");if("None"!==e){var r="Auto"===e?/[^a-f\d]|0x/gi:Ek.regexRep(e);t=t.split(r)}else t=[t];for(var i=[],o=0;o<t.length;o++)for(var a=0;a<t[o].length;a+=n)i.push(parseInt(t[o].substr(a,n),16));return i}function mk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";e=Ek.charRep(e);var n=[],r=t.split(e);""===r[r.length-1]&&(r=r.slice(0,r.length-1));for(var i=0;i<r.length;i++)n[i]=parseInt(r[i],10);return n}function vk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(n<1||Math.round(n)!==n)throw new dk("Byte length must be a positive integer");var r=Ek.regexRep(e);t=t.replace(r,"");for(var i=[],o=0;o<t.length;o+=n)i.push(parseInt(t.substr(o,n),2));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"]);var bk=n(48287).Buffer,xk=n(65606),wk=function(){function t(){o(this,t)}return s(t,null,[{key:"chr",value:function(t){if(t>65535){t-=65536;var e=String.fromCharCode(t>>>10&1023|55296);return t=56320|1023&t,e+String.fromCharCode(t)}return String.fromCharCode(t)}},{key:"ord",value:function(t){if(2===t.length){var e=t.charCodeAt(0),n=t.charCodeAt(1);if(e>=55296&&e<56320&&n>=56320&&n<57344)return 1024*(e-55296)+n-56320+65536}return t.charCodeAt(0)}},{key:"padBytesRight",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=new Array(e);return r.fill(n),ik(t).forEach(function(t,e){r[e]=t}),r}},{key:"truncate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>e&&(t=t.slice(0,e-n.length)+n),t}},{key:"hex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(n,"0")}},{key:"bin",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(n,"0")}},{key:"printable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?t.replace(/[^\x20-\x7e]/g,"."):(t=t.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(t=t.replace(/[\x09-\x10\u2028\u2029]/g,".")),t)}},{key:"escapeWhitespace",value:function(t){return t.replace(/[\x09-\x10]/g,function(t){return String.fromCharCode(57344+t.charCodeAt(0))})}},{key:"parseEscapedChars",value:function(t){return t.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,function(t,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}})}},{key:"escapeRegex",value:function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var n=[],r=0;r<e.length;r++)if(r<e.length-2&&"-"===e[r+1]&&"\\"!==e[r]){for(var i=t.ord(e[r]),o=t.ord(e[r+2]),a=i;a<=o;a++)n.push(t.chr(a));r+=2}else r<e.length-2&&"\\"===e[r]&&"-"===e[r+1]?(n.push("-"),r++):n.push(e[r]);return n}},{key:"convertToByteArray",value:function(e,n){switch(n.toLowerCase()){case"binary":return vk(e);case"hex":return yk(e);case"decimal":return mk(e);case"base64":return gk(e,null,"byteArray");case"utf8":return t.strToUtf8ByteArray(e);default:return t.strToByteArray(e)}}},{key:"convertToByteString",value:function(e,n){switch(n.toLowerCase()){case"binary":return t.byteArrayToChars(vk(e));case"hex":return t.byteArrayToChars(yk(e));case"decimal":return t.byteArrayToChars(mk(e));case"base64":return t.byteArrayToChars(gk(e,null,"byteArray"));case"utf8":return ck().encode(e);default:return e}}},{key:"byteArrayToInt",value:function(t,e){var n=0;if("big"===e)for(var r=0;r<t.length;r++)n=256*n+t[r];else for(var i=t.length-1;i>=0;i--)n=256*n+t[i];return n}},{key:"intToByteArray",value:function(t,e,n){var r=new Array(e);if("little"===n)for(var i=0;i<e;i++)r[i]=255&t,t>>>=8;else for(var o=e-1;o>=0;o--)r[o]=255&t,t>>>=8;return r}},{key:"strToArrayBuffer",value:function(e){if(ak().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var n,r=new Uint8Array(e.length),i=e.length;i--;)if(n=e.charCodeAt(i),r[i]=n,n>255)return t.strToUtf8ArrayBuffer(e);return r.buffer}},{key:"strToUtf8ArrayBuffer",value:function(t){if(ak().debug(`Converting string[${null==t?void 0:t.length}] to UTF8 array buffer`),!t)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(t);return t.length!==e.length&&(Mk()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):Ak()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(ak().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var n,r=new Array(e.length),i=e.length;i--;)if(n=e.charCodeAt(i),r[i]=n,n>255)return t.strToUtf8ByteArray(e);return r}},{key:"strToUtf8ByteArray",value:function(e){if(ak().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var n=ck().encode(e);return e.length!==n.length&&(Mk()?self.setOption("attemptHighlight",!1):Ak()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(n)}},{key:"strToCharcode",value:function(e){if(ak().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var n=[],r=0;r<e.length;r++){var i=e.charCodeAt(r);if(r<e.length-1&&i>=55296&&i<56320){var o=e[r+1].charCodeAt(0);o>=56320&&o<57344&&(i=t.ord(e[r]+e[++r]))}n.push(i)}return n}},{key:"byteArrayToUtf8",value:function(e){var n;if(ak().debug(`Converting byte array[${null===(n=e)||void 0===n?void 0:n.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var r=new TextDecoder("utf-8",{fatal:!0}).decode(e);return r.length!==e.length&&(Mk()?self.setOption("attemptHighlight",!1):Ak()&&(window.app.options.attemptHighlight=!1)),r}catch(n){return t.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(t){if(ak().debug(`Converting byte array[${null==t?void 0:t.length}] to chars`),!t||!t.length)return"";for(var e="",n=0;n<t.length;n+=2e4)e+=String.fromCharCode.apply(String,ik(t.slice(n,n+2e4)));return e}},{key:"arrayBufferToStr",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(ak().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var r=new Uint8Array(e);return n?t.byteArrayToUtf8(r):t.byteArrayToChars(r)}},{key:"calculateShannonEntropy",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,n=[],r=new Array(256).fill(0);for(e=0;e<t.length;e++)r[t[e]]++;for(e=0;e<r.length;e++)r[e]>0&&n.push(r[e]/t.length);var i,o=0;for(e=0;e<n.length;e++)o+=(i=n[e])*Math.log(i)/Math.log(2);return-o}},{key:"parseCSV",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],o=!1,a=!1,u="",c=[],s=[];t.length&&"\ufeff"===t[0]&&(t=t.substr(1));for(var f=0;f<t.length;f++)e=t[f],n=t[f+1]||"",o?(u+=e,o=!1):'"'!==e||a?'"'===e&&a?'"'===n?o=!0:a=!1:!a&&r.indexOf(e)>=0?(c.push(u),u=""):!a&&i.indexOf(e)>=0?(c.push(u),u="",s.push(c),c=[],i.indexOf(n)>=0&&n!==e&&f++):u+=e:a=!0;return c.length&&(c.push(u),s.push(c)),s}},{key:"stripHtmlTags",value:function(t){function e(t,n){var r=n.replace(t,"");return r.length===n.length?r:e(t,r)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=e(/<script[^>]*>(\s|\S)*?<\/script[^>]*>/gi,t),t=e(/<style[^>]*>(\s|\S)*?<\/style[^>]*>/gi,t)),e(/<[^>]+>/g,t)}},{key:"escapeHtml",value:function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\0":""};return t?t.replace(/[&<>"'`\u0000]/g,function(t){return e[t]}):t}},{key:"unescapeHtml",value:function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/","`":"`","":"\0"};return t.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,function(t){return e[t]||t})}},{key:"toTitleCase",value:function(t){return t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})}},{key:"encodeURIFragment",value:function(t){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(t=encodeURIComponent(t)).replace(/%[0-9A-F]{2}/g,function(t){return e[t]||t})}},{key:"generatePrettyRecipe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="",r="",i="",o="",a="";return t.forEach(function(t){r=t.op.replace(/ /g,"_"),i=JSON.stringify(t.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),o=t.disabled?"/disabled":"",a=t.breakpoint?"/breakpoint":"",n+=`${r}(${i}${o}${a})`,e&&(n+="\n")}),n}},{key:"parseRecipeConfig",value:function(t){if(0===(t=t.trim()).length)return[];if("["===t[0])return JSON.parse(t);var e,n;t=t.replace(/\n/g,"");for(var r=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];e=r.exec(t);){n="["+(n=e[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var o={op:e[1].replace(/_/g," "),args:JSON.parse(n)};e[3]&&e[3].indexOf("disabled")>0&&(o.disabled=!0),e[3]&&e[3].indexOf("breakpoint")>0&&(o.breakpoint=!0),i.push(o)}return i}},{key:"displayFilesAsHTML",value:(e=QT(ek().mark(function e(n){var r,i,o,a,u,c;return ek().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=function(e){return`<div class='card' style='white-space: normal;'>\n <div class='card-header'>\n <h6 class="mb-0">\n ${t.escapeHtml(e.name)}\n </h6>\n </div>\n </div>`},i=function(e,n){if(n.startsWith("image")){var r="data:";return r+=n+";","<img style='max-width: 100%;' src='"+(r+="base64,"+pk(e))+"'>"}return`<pre>${t.escapeHtml(t.arrayBufferToStr(e.buffer))}</pre>`},o=function(){var e=QT(ek().mark(function e(n,r){var o,a,u,c;return ek().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.readFile(n);case 1:return o=e.sent,a=new Blob([o],{type:n.type||"octet/stream"}),u=URL.createObjectURL(a),c=`<div class='card' style='white-space: normal;'>\n <div class='card-header' id='heading${r}'>\n <h6 class='mb-0'>\n <a class='collapsed'\n data-toggle='collapse'\n href='#collapse${r}'\n aria-expanded='false'\n aria-controls='collapse${r}'\n title="Show/hide contents of '${t.escapeHtml(n.name)}'">\n ${t.escapeHtml(n.name)}</a>\n <span class='float-right' style="margin-top: -3px">\n ${n.size.toLocaleString()} bytes\n <a title="Download ${t.escapeHtml(n.name)}"\n href="${u}"\n download="${t.escapeHtml(n.name)}"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">save</i>\n </a>\n <a title="Move to input"\n href="#"\n blob-url="${u}"\n file-name="${t.escapeHtml(n.name)}"\n class="extract-file"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n </a>\n </span>\n </h6>\n </div>\n <div id='collapse${r}' class='collapse' aria-labelledby='heading${r}' data-parent="#files">\n <div class='card-body'>\n ${i(o,n.type)}\n </div>\n </div>\n </div>`,e.abrupt("return",c);case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),a=`<div style='padding: 5px; white-space: normal;'>\n ${n.length} file(s) found\n </div><div id="files" style="padding: 20px">`,u=0;case 1:if(!(u<n.length)){e.next=5;break}if(!n[u].name.endsWith("/")){e.next=2;break}a+=r(n[u]),e.next=4;break;case 2:return c=a,e.next=3,o(n[u],u);case 3:a=c+=e.sent;case 4:u++,e.next=1;break;case 5:return e.abrupt("return",a+="</div>");case 6:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"parseURIParams",value:function(t){if(""===t)return{};"?"!==t[0]&&"#"!==t[0]||(t=t.substr(1));for(var e=t.split("&"),n={},r=0;r<e.length;r++){var i=e[r].split("=");2!==i.length?n[e[r]]=!0:n[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return n}},{key:"readFile",value:function(t){return _k()?bk.from(t).buffer:new Promise(function(e,n){var r=new FileReader,i=new Uint8Array(t.size),o=0,a=10485760,u=function(){if(o>=t.size)e(i);else{var n=t.slice(o,o+a);r.readAsArrayBuffer(n)}};r.onload=function(t){i.set(new Uint8Array(r.result),o),o+=a,u()},r.onerror=function(t){n(r.error.message)},u()})}},{key:"readFileSync",value:function(t){if(!_k())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(t.data).buffer}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"gcd",value:function(e,n){return n?t.gcd(n,e%n):e}},{key:"modInv",value:function(t,e){t%=e;for(var n=1;n<e;n++)if(t*n%26==1)return n}},{key:"charRep",value:function(t){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[t]}},{key:"regexRep",value:function(t){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[t]}},{key:"chunked",value:ek().mark(function t(e,n){var r,i,o,a;return ek().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e[Symbol.iterator]();case 1:i=[],o=0;case 2:if(!(o<n)){t.next=5;break}if(!(a=r.next()).done){t.next=3;break}return t.abrupt("continue",5);case 3:i.push(a.value);case 4:o++,t.next=2;break;case 5:if(!i.length){t.next=7;break}return t.next=6,i;case 6:t.next=8;break;case 7:return t.abrupt("return");case 8:t.next=1;break;case 9:case"end":return t.stop()}},t)})}]);var e}();function _k(){return void 0!==xk&&null!=xk.versions&&null!=xk.versions.node}function Ak(){return"object"==typeof window}function Mk(){return"function"==typeof importScripts}const Ek=wk;function Bk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Bk=function(){return!!t})()}Array.prototype.unique=function(){for(var t={},e=[],n=0,r=this.length;n<r;n++)Object.prototype.hasOwnProperty.call(t,this[n])||(e.push(this[n]),t[this[n]]=1);return e},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce(function(t,e){return t+e},0)},Array.prototype.equals=function(t){if(!t)return!1;var e=this.length;if(e!==t.length)return!1;for(;e--;)if(this[e]!==t[e])return!1;return!0},String.prototype.count=function(t){return this.split(t).length-1},String.prototype.padStart||(String.prototype.padStart=function(t,e){return t|=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t|=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))});const Tk=function(t){function e(){var t,n,r,i;o(this,e);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=this,r=e,i=[].concat(u),r=l(r),(t=f(n,Bk()?Reflect.construct(r,i||[],l(n).constructor):r.apply(n,i))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return d(e,t),s(e)}(lk(Error));var kk=function t(e){var n,r,i,o,a=/^(-?)0([xbo])(?=[^.])/i,u=/^-?(Infinity|NaN)$/,c=/^\s*\+(?!-)|^\s+|\s+$/g,s=A.prototype={constructor:A,toString:null,valueOf:null},f=new A(1),l=20,h=4,d=-7,p=21,g=-1e7,y=1e7,m=!1,v=!0,b=1,x=0,w={prefix:"",negativeSign:"-",positiveSign:"",groupSeparator:",",groupSize:3,secondaryGroupSize:0,decimalSeparator:".",fractionGroupSeparator:"",fractionGroupSize:0,suffix:""},_="0123456789abcdefghijklmnopqrstuvwxyz";function A(t,e){var n,r,i,o,s=this;if(!(s instanceof A))return new A(t,e);if(o=typeof t,null==e){if(T(t))return s.s=t.s,void(!t.c||t.e>y?s.c=s.e=null:t.e<g?s.c=[s.e=0]:(s.e=t.e,s.c=t.c.slice()));if("number"==o){if(0*t!=0)return s.s=isNaN(t)?null:t<0?-1:1,void(s.c=s.e=null);if(s.s=1/t<0?(t=-t,-1):1,t===~~t){for(n=0,r=t;r>=10;r/=10,n++);return void(n>y?s.c=s.e=null:(s.e=n,s.c=[t]))}return M(s,String(t))}if("bigint"==o)return s.s=t<0?(t=-t,-1):1,M(s,String(t));if("string"==o)i=t;else{if(v)throw Error(Ck+"BigNumber, string, number, or BigInt expected: "+t);i=String(t)}if(Fk.test(i))return s.s=45==i.charCodeAt(0)?(i=i.slice(1),-1):1,M(s,i);if(i=i.replace(c,""),u.test(i))return s.s=isNaN(i)?null:i<0?-1:1,void(s.c=s.e=null);if(i=i.replace(a,function(t,n,r){return e="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n}),e)return E(s,i,e,t);if(i=i.replace(/(\d)_(?=\d)/g,"$1"),Fk.test(i))return s.s=45==i.charCodeAt(0)?(i=i.slice(1),-1):1,M(s,i);if(v)throw Error(Ck+"Not a number: "+t);s.s=s.c=s.e=null}else{if("string"!=o){if(v)throw Error(Ck+"String expected: "+t);t=String(t)}jk(e,2,_.length,"Base"),E(s,t.replace(c,""),e,t)}}function M(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(--i););if(e=e.slice(r,++i))if(i-=r,(n=n-r-1)>y)t.c=t.e=null;else if(n<g)t.c=[t.e=0];else{if(t.e=n,t.c=[],r=(n+1)%Rk,n<0&&(r+=Rk),r<i){for(r&&t.c.push(+e.slice(0,r)),i-=Rk;r<i;)t.c.push(+e.slice(r,r+=Rk));r=Rk-(e=e.slice(r)).length}else r-=i;for(;r--;e+="0");t.c.push(+e)}else t.c=[t.e=0]}function E(t,e,n,i){var o,a,u=_.slice(0,n),c=0,s="",f=!1,l=!1,h=!1;for(t.s=45===e.charCodeAt(0)?(e=e.slice(1),-1):1,a=e.length;c<a;c++){if(o=e.charAt(c),!(u.indexOf(o)>=0)){if("_"==o){if(l&&c+1<a){l=!1;continue}}else if("."==o){if(0==c||!f&&l){if(c+1==a)break;0==c&&(s="0"),s+=o,f=!0,l=!1;continue}}else if(!h&&(e==e.toUpperCase()&&u==u.toLowerCase()&&(e=e.toLowerCase())||e==e.toLowerCase()&&u==u.toUpperCase()&&(e=e.toUpperCase()))){c=-1,s="",h=!0,f=l=!1;continue}if(v)throw Error(Ck+"Not a base "+n+" number: "+i);return void(t.s=t.c=t.e=null)}s+=o,l=!0}M(t,r(s,n,10,t.s))}function B(t,e,n,r){var i,o,a,u,c;if(n=null==n?h:jk(n,0,8),!t.c)return t.toString();if(i=t.c[0],a=t.e,null==e)c=$k(t.c),c=1==r||2==r&&(a<=d||a>=p)?Yk(c,a):Gk(c,a,"0");else if(o=(t=N(new A(t),e,n)).e,u=(c=$k(t.c)).length,1==r||2==r&&(e<=o||o<=d)){for(;u<e;c+="0",u++);c=Yk(c,o)}else if(e-=a+(2===r&&o>a),c=Gk(c,o,"0"),o+1>u){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=o-u)>0)for(o+1==u&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function T(t){return t instanceof A||!!t&&!0===t._isBigNumber}function k(t,e){for(var n,r,i=1,o=new A(t[0]);i<t.length;i++)(!(r=new A(t[i])).s||(n=zk(o,r))===e||0===n&&o.s===e)&&(o=r);return o}function F(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*Rk-1)>y?t.c=t.e=null:n<g?t.c=[t.e=0]:(t.e=n,t.c=e),t}function S(t){var e,n={};for(e in w)w.hasOwnProperty(e)&&(n[e]=t.hasOwnProperty(e)?t[e]:w[e]);return n}function N(t,e,n,r){var i,o,a,u,c,s,f,l=t.c,h=Dk;if(l){t:{for(i=1,u=l[0];u>=10;u/=10,i++);if((o=e-i)<0)o+=Rk,a=e,c=l[s=0],f=Nk(c/h[i-a-1]%10);else if((s=Sk((o+1)/Rk))>=l.length){if(!r)break t;for(;l.length<=s;l.push(0));c=f=0,i=1,a=(o%=Rk)-Rk+1}else{for(c=u=l[s],i=1;u>=10;u/=10,i++);f=(a=(o%=Rk)-Rk+i)<0?0:Nk(c/h[i-a-1]%10)}if(r=r||e<0||null!=l[s+1]||(a<0?c:c%h[i-a-1]),r=n<4?(f||r)&&(0==n||n==(t.s<0?3:2)):f>5||5==f&&(4==n||r||6==n&&(o>0?a>0?c/h[i-a]:0:l[s-1])%10&1||n==(t.s<0?8:7)),e<1||!l[0])return l.length=0,r?(e-=t.e+1,l[0]=h[(Rk-e%Rk)%Rk],t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=s,u=1,s--):(l.length=s+1,u=h[Rk-o],l[s]=a>0?Nk(c/h[i-a]%h[a])*u:0),r)for(;;){if(0==s){for(o=1,a=l[0];a>=10;a/=10,o++);for(a=l[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(t.e++,l[0]==Ik&&(l[0]=1));break}if(l[s]+=u,l[s]!=Ik)break;l[s--]=0,u=1}for(o=l.length;0===l[--o];l.pop());}t.e>y?t.c=t.e=null:t.e<g&&(t.c=[t.e=0])}return t}function C(t){var e,n=t.e;return null===n?t.toString():(e=$k(t.c),e=n<=d||n>=p?Yk(e,n):Gk(e,n,"0"),t.s<0?"-"+e:e)}return A.clone=t,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(Ck+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(l=jk(t[e],0,Lk,e)),t.hasOwnProperty(e="ROUNDING_MODE")&&(h=jk(t[e],0,8,e)),t.hasOwnProperty(e="EXPONENTIAL_AT")&&(qk(n=t[e])?(jk(n[0],-Lk,0,e),jk(n[1],0,Lk,e),d=n[0],p=n[1]):d=-(p=jk(n,-Lk,Lk,e)<0?-n:n)),t.hasOwnProperty(e="RANGE")){if(!(n=t[e]))throw Error(Ck+e+" cannot be zero: "+n);qk(n)?(jk(n[0],-Lk,-1,e),jk(n[1],1,Lk,e),g=n[0],y=n[1]):g=-(y=jk(n,-Lk,Lk,e)<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(Ck+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!n,Error(Ck+"crypto unavailable");m=n}else m=n}if(t.hasOwnProperty(e="STRICT")){if((n=t[e])!==!!n)throw Error(Ck+e+" not true or false: "+n);v=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(b=jk(t[e],0,9,e)),t.hasOwnProperty(e="POW_PRECISION")&&(x=jk(t[e],0,Lk,e)),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(Ck+e+" not an object: "+n);for(e in n)n.hasOwnProperty(e)&&w.hasOwnProperty(e)&&(w[e]=n[e])}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(Ck+e+" invalid: "+n);_=n}}return{DECIMAL_PLACES:l,ROUNDING_MODE:h,EXPONENTIAL_AT:[d,p],RANGE:[g,y],CRYPTO:m,STRICT:v,MODULO_MODE:b,POW_PRECISION:x,FORMAT:w,ALPHABET:_}},A.fromFormat=function(t,e){if("string"!=typeof t)throw Error(Ck+"Not a string: "+t);if(null==e)e=w;else{if("object"!=typeof e)throw Error(Ck+"Argument not an object: "+e);e=S(e)}var n,r,i,o,a=e.negativeSign||"-",u=e.positiveSign||"",c=e.prefix||"",s=e.suffix||"",f=e.groupSeparator||"",l=e.decimalSeparator||".",h=e.fractionGroupSeparator||"";if(c&&0===t.indexOf(c)&&(t=t.slice(c.length)),s&&t.lastIndexOf(s)===t.length-s.length&&(t=t.slice(0,-s.length)),a&&0===t.indexOf(a)?(t=t.slice(a.length),r=!0):u&&0===t.indexOf(u)&&(t=t.slice(u.length)),(n=t.indexOf(l))<0){if(f)for(;t.indexOf(f)>-1;)t=t.replace(f,"")}else{if(i=t.slice(0,n),o=t.slice(n+l.length),f)for(;i.indexOf(f)>-1;)i=i.replace(f,"");if(h)for(;o.indexOf(h)>-1;)o=o.replace(h,"");t=i+"."+o}return new A(r?"-"+t:t)},A.isBigNumber=function(t){if(!T(t))return!1;var e,n,r=t.c,i=t.e,o=t.s;if(!qk(r))return null===r&&null===i&&(null===o||1===o||-1===o);if(1!==o&&-1!==o||i<-Lk||i>Lk||i!==Nk(i))return!1;if(0===r[0])return 0===i&&1===r.length;if((e=(i+1)%Rk)<1&&(e+=Rk),String(r[0]).length!==e)return!1;for(e=0;e<r.length;e++)if((n=r[e])<0||n>=Ik||n!==Nk(n))return!1;return 0!==n},A.maximum=A.max=function(){return k(arguments,-1)},A.minimum=A.min=function(){return k(arguments,1)},A.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return Nk(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,a,u=0,c=[],s=new A(f);if(t=null==t?l:jk(t,0,Lk),i=Sk(t/Rk),m)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));u<i;)(a=131072*e[u]+(e[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[u]=n[0],e[u+1]=n[1]):(c.push(a%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw m=!1,Error(Ck+"crypto unavailable");for(e=crypto.randomBytes(i*=7);u<i;)(a=281474976710656*(31&e[u])+1099511627776*e[u+1]+4294967296*e[u+2]+16777216*e[u+3]+(e[u+4]<<16)+(e[u+5]<<8)+e[u+6])>=9e15?crypto.randomBytes(7).copy(e,u):(c.push(a%1e14),u+=7);u=i/7}if(!m)for(;u<i;)(a=o())<9e15&&(c[u++]=a%1e14);for(i=c[--u],t%=Rk,i&&t&&(a=Dk[Rk-t],c[u]=Nk(i/a)*a);0===c[u];c.pop(),u--);if(u<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=Rk);for(u=1,a=c[0];a>=10;a/=10,u++);u<Rk&&(r-=Rk-u)}return s.e=r,s.c=c,s}),A.sum=function(){for(var t=0,e=new A(0);t<arguments.length;)e=e.plus(arguments[t++]);return e},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,a=[0],u=0,c=t.length;u<c;){for(o=a.length;o--;a[o]*=e);for(a[0]+=r.indexOf(t.charAt(u++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,u){var c,s,f,d,p,g,y,m,v=r.indexOf("."),b=l,w=h;for(v>=0&&(d=x,x=0,r=r.replace(".",""),g=(m=new A(i)).pow(r.length-v),x=d,m.c=e(Gk($k(g.c),g.e,"0"),10,o,t),m.e=m.c.length),f=d=(y=e(r,i,o,u?(c=_,t):(c=t,_))).length;0==y[--d];y.pop());if(!y[0])return c.charAt(0);if(v<0?--f:(g.c=y,g.e=f,g.s=a,y=(g=n(g,m,b,w,o)).c,p=g.r,f=g.e),v=y[s=f+b+1],d=o/2,p=p||s<0||null!=y[s+1],p=w<4?(null!=v||p)&&(0==w||w==(g.s<0?3:2)):v>d||v==d&&(4==w||p||6==w&&1&y[s-1]||w==(g.s<0?8:7)),s<1||!y[0])r=p?Gk(c.charAt(1),-b,c.charAt(0)):c.charAt(0);else{if(s<y.length&&(y.length=s),p)for(--o;++y[--s]>o;)y[s]=0,s||(++f,y=[1].concat(y));for(d=y.length;!y[--d];);for(v=0,r="";v<=d;r+=c.charAt(y[v++]));r=Gk(r,f,c.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,a,u=0,c=t.length,s=e%Pk,f=e/Pk|0;for(t=t.slice();c--;)u=((i=s*(o=t[c]%Pk)+(r=f*o+(a=t[c]/Pk|0)*s)%Pk*Pk+u)/n|0)+(r/Pk|0)+f*a,t[c]=i%n;return u&&(t=[u].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,a,u){var c,s,f,l,h,d,p,g,y,m,v,b,x,w,_,M,E,B=r.s==i.s?1:-1,T=r.c,k=i.c;if(!(T&&T[0]&&k&&k[0]))return new A(r.s&&i.s&&(T?!k||T[0]!=k[0]:k)?T&&0==T[0]||!k?0*B:B/0:NaN);for(y=(g=new A(B)).c=[],B=o+(s=r.e-i.e)+1,u||(u=Ik,s=Uk(r.e/Rk)-Uk(i.e/Rk),B=B/Rk|0),f=0;k[f]==(T[f]||0);f++);if(k[f]>(T[f]||0)&&s--,B<0)y.push(1),l=!0;else{for(w=T.length,M=k.length,f=0,B+=2,(h=Nk(u/(k[0]+1)))>1&&(k=t(k,h,u),T=t(T,h,u),M=k.length,w=T.length),x=M,v=(m=T.slice(0,M)).length;v<M;m[v++]=0);E=k.slice(),E=[0].concat(E),_=k[0],k[1]>=u/2&&_++;do{if(h=0,(c=e(k,m,M,v))<0){if(b=m[0],M!=v&&(b=b*u+(m[1]||0)),(h=Nk(b/_))>1)for(h>=u&&(h=u-1),p=(d=t(k,h,u)).length,v=m.length;1==e(d,m,p,v);)h--,n(d,M<p?E:k,p,u),p=d.length,c=1;else 0==h&&(c=h=1),p=(d=k.slice()).length;if(p<v&&(d=[0].concat(d)),n(m,d,v,u),v=m.length,-1==c)for(;e(k,m,M,v)<1;)h++,n(m,M<v?E:k,v,u),v=m.length}else 0===c&&(h++,m=[0]);y[f++]=h,m[0]?m[v++]=T[x]||0:(m=[T[x]],v=1)}while((x++<w||null!=m[0])&&B--);l=null!=m[0],y[0]||y.splice(0,1)}if(u==Ik){for(f=1,B=y[0];B>=10;B/=10,f++);N(g,o+(g.e=f+s*Rk-1)+1,a,l)}else g.e=s,g.r=+l;return g}}(),s.absoluteValue=s.abs=function(){var t=new A(this);return t.s<0&&(t.s=1),t},s.comparedTo=function(t,e){return zk(this,new A(t,e))},s.decimalPlaces=s.dp=function(t,e){var n,r,i,o=this;if(null!=t)return N(new A(o),jk(t,-Lk,Lk)+o.e+1,null==e?h:jk(e,0,8));if(!(n=o.c))return null;if(r=((i=n.length-1)-Uk(this.e/Rk))*Rk,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},s.dividedBy=s.div=function(t,e){return n(this,new A(t,e),l,h)},s.dividedToIntegerBy=s.idiv=function(t,e){return n(this,new A(t,e),0,1)},s.exponentiatedBy=s.pow=function(t,e){var n,r,i,o,a,u,c,s,l=this;if((t=new A(t)).c&&!t.isInteger())throw Error(Ck+"Exponent not an integer: "+C(t));if(null!=e&&(e=new A(e)),a=t.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!t.c||!t.c[0])return s=new A(Math.pow(+C(l),a?t.s*(2-Hk(t)):+C(t))),e?s.mod(e):s;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new A(NaN);(r=!u&&l.isInteger()&&e.isInteger())&&(l=l.mod(e))}else{if(t.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||a&&l.c[1]>=24e7:l.c[0]<8e13||a&&l.c[0]<=9999975e7)))return o=l.s<0&&Hk(t)?-0:0,l.e>-1&&(o=1/o),new A(u?1/o:o);x&&(o=Sk(x/Rk+2))}for(a?(n=new A(.5),u&&(t.s=1),c=Hk(t)):c=(i=Math.abs(+C(t)))%2,s=new A(f);;){if(c){if(!(s=s.times(l)).c)break;o?s.c.length>o&&(s.c.length=o):r&&(s=s.mod(e))}if(i){if(0===(i=Nk(i/2)))break;c=i%2}else if(N(t=t.times(n),t.e+1,1),t.e>14)c=Hk(t);else{if(0===(i=+C(t)))break;c=i%2}l=l.times(l),o?l.c&&l.c.length>o&&(l.c.length=o):r&&(l=l.mod(e))}return r?s:(u&&(s=f.div(s)),e?s.mod(e):o?N(s,x,h,void 0):s)},s.integerValue=function(t){var e=new A(this);return N(e,e.e+1,null==t?h:jk(t,0,8))},s.isEqualTo=s.eq=function(t,e){return 0===zk(this,new A(t,e))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(t,e){return zk(this,new A(t,e))>0},s.isGreaterThanOrEqualTo=s.gte=function(t,e){return 1===(e=zk(this,new A(t,e)))||0===e},s.isInteger=function(){return!!this.c&&Uk(this.e/Rk)>this.c.length-2},s.isLessThan=s.lt=function(t,e){return zk(this,new A(t,e))<0},s.isLessThanOrEqualTo=s.lte=function(t,e){return-1===(e=zk(this,new A(t,e)))||0===e},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(t,e){var n,r,i,o,a=this,u=a.s;if(e=(t=new A(t,e)).s,!u||!e)return new A(NaN);if(u!=e)return t.s=-e,a.plus(t);var c=a.e/Rk,s=t.e/Rk,f=a.c,l=t.c;if(!c||!s){if(!f||!l)return f?(t.s=-e,t):new A(l?a:NaN);if(!f[0]||!l[0])return l[0]?(t.s=-e,t):new A(f[0]?a:3==h?-0:0)}if(c=Uk(c),s=Uk(s),f=f.slice(),u=c-s){for((o=u<0)?(u=-u,i=f):(s=c,i=l),i.reverse(),e=u;e--;i.push(0));i.reverse()}else for(r=(o=(u=f.length)<(e=l.length))?u:e,u=e=0;e<r;e++)if(f[e]!=l[e]){o=f[e]<l[e];break}if(o&&(i=f,f=l,l=i,t.s=-t.s),(e=(r=l.length)-(n=f.length))>0)for(;e--;f[n++]=0);for(e=Ik-1;r>u;){if(f[--r]<l[r]){for(n=r;n&&!f[--n];f[n]=e);--f[n],f[r]+=Ik}f[r]-=l[r]}for(;0==f[0];f.splice(0,1),--s);return f[0]?F(t,f,s):(t.s=3==h?-1:1,t.c=[t.e=0],t)},s.modulo=s.mod=function(t,e){var r,i,o=this;return t=new A(t,e),!o.c||!t.s||t.c&&!t.c[0]?new A(NaN):!t.c||o.c&&!o.c[0]?new A(o):(9==b?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,b),(t=o.minus(r.times(t))).c[0]||1!=b||(t.s=o.s),t)},s.multipliedBy=s.times=function(t,e){var n,r,i,o,a,u,c,s,f,l,h,d,p,g,y,m=this,v=m.c,b=(t=new A(t,e)).c;if(!(v&&b&&v[0]&&b[0]))return!m.s||!t.s||v&&!v[0]&&!b||b&&!b[0]&&!v?t.c=t.e=t.s=null:(t.s*=m.s,v&&b?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=Uk(m.e/Rk)+Uk(t.e/Rk),t.s*=m.s,(c=v.length)<(l=b.length)&&(p=v,v=b,b=p,i=c,c=l,l=i),i=c+l,p=[];i--;p.push(0));for(g=Ik,y=Pk,i=l;--i>=0;){for(n=0,h=b[i]%y,d=b[i]/y|0,o=i+(a=c);o>i;)n=((s=h*(s=v[--a]%y)+(u=d*s+(f=v[a]/y|0)*h)%y*y+p[o]+n)/g|0)+(u/y|0)+d*f,p[o--]=s%g;p[o]=n}return n?++r:p.splice(0,1),F(t,p,r)},s.negated=function(){var t=new A(this);return t.s=-t.s||null,t},s.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new A(t,e)).s,!i||!e)return new A(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/Rk,a=t.e/Rk,u=r.c,c=t.c;if(!o||!a){if(!u||!c)return new A(i/0);if(!u[0]||!c[0])return c[0]?t:new A(u[0]?r:0*i)}if(o=Uk(o),a=Uk(a),u=u.slice(),i=o-a){for(i>0?(a=o,n=c):(i=-i,n=u),n.reverse();i--;n.push(0));n.reverse()}for((i=u.length)-(e=c.length)<0&&(n=c,c=u,u=n,e=i),i=0;e;)i=(u[--e]=u[e]+c[e]+i)/Ik|0,u[e]=Ik===u[e]?0:u[e]%Ik;return i&&(u=[i].concat(u),++a),F(t,u,a)},s.precision=s.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return N(new A(o),jk(t,1,Lk),null==e?h:jk(e,0,8));if(!(n=o.c))return null;if(r=(i=n.length-1)*Rk+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},s.shiftedBy=function(t){return this.times("1e"+jk(t,-Ok,Ok))},s.squareRoot=s.sqrt=function(){var t,e,r,i,o,a=this,u=a.c,c=a.s,s=a.e,f=l+4,d=new A("0.5");if(1!==c||!u||!u[0])return new A(!c||c<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(c=Math.sqrt(+C(a)))||c==1/0?(((e=$k(u)).length+s)%2==0&&(e+="0"),c=Math.sqrt(+e),s=Uk((s+1)/2)-(s<0||s%2),r=new A(e=c==1/0?"5e"+s:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+s)):r=new A(c+""),r.c[0])for((c=(s=r.e)+f)<3&&(c=0);;)if(o=r,r=d.times(o.plus(n(a,o,f,1))),$k(o.c).slice(0,c)===(e=$k(r.c)).slice(0,c)){if(r.e<s&&--c,"9999"!=(e=e.slice(c-3,c+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(N(r,r.e+l+2,1),t=!r.times(r).eq(a));break}if(!i&&(N(o,o.e+l+2,0),o.times(o).eq(a))){r=o;break}f+=4,c+=4,i=1}return N(r,r.e+l+1,h,t)},"function"==typeof BigInt&&(s.toBigInt=function(t){var e=this;return e.c?BigInt(B(e,e.e+1,t)):null}),s.toExponential=function(t,e){return B(this,null==t?t:jk(t,0,Lk)+1,e,1)},s.toFixed=function(t,e){return B(this,null==t?t:jk(t,-Lk,Lk)+this.e+1,e)},s.toFormat=function(t,e,n){var r,i,o,a,u=this;if(null==n)n=w,null!=t&&(null!=e?"object"==typeof e&&(n=S(e),e=null):"object"!=typeof t||qk(t)||(n=S(t),t=e=null));else{if("object"!=typeof n)throw Error(Ck+"Argument not an object: "+n);n=S(n)}if(null!=t)if(qk(t)&&t.length<=2){if(i=t[0],o=t[1],t=u.dp(),null!=o&&t>jk(o,0,Lk)&&(t=o),null!=i&&0!==jk(i,0,Lk)){if(null!=o&&i>o)throw Error(Ck+"Minimum must not exceed maximum");t<i&&(t=i)}}else jk(t,-Lk,Lk);if((r=45===(a=u.toFixed(t,e)).charCodeAt(0))&&(a=a.slice(1)),u.c){var c,s=a.split("."),f=+n.groupSize,l=+n.secondaryGroupSize,h=n.groupSeparator||"",d=s[0],p=s[1],g=d.length;if(l&&(c=f,f=l,l=c,g-=c),f>0&&g>0){for(c=g%f||f,a=d.substr(0,c);c<g;c+=f)a+=h+d.substr(c,f);l>0&&(a+=h+d.slice(c))}else a=d;p&&((c=+n.fractionGroupSize)&&(p=p.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||""))),a+=(n.decimalSeparator||"")+p)}return(n.prefix||"")+(r?n.negativeSign||"":u.s>0&&n.positiveSign||"")+a+(n.suffix||"")},s.toFraction=function(t){var e,r,i,o,a,u,c,s,l,h,d,p,g,m,v=this,b=v.c;if(null!=t&&(!(c=new A(t)).isInteger()&&(c.c||1!==c.s)||c.lt(f)))throw Error(Ck+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+C(c));if(!b)return[new A(v.s||0),new A(0)];for(e=new A(f),l=r=new A(f),i=s=new A(f),p=$k(b),a=e.e=p.length-v.e-1,e.c[0]=Dk[(u=a%Rk)<0?Rk+u:u],t=!t||c.comparedTo(e)>0?a>0?e:l:c,u=y,y=1/0,m=c=new A(p),g=e,s.c[0]=0;h=n(c,e,0,1),1!=(o=r.plus(h.times(i))).comparedTo(t);)r=i,i=o,l=s.plus(h.times(o=l)),s=o,e=c.minus(h.times(o=e)),c=o;return o=n(t.minus(r),i,0,1),s=s.plus(o.times(l)),r=r.plus(o.times(i)),(d=l.times(g).minus(m.times(i)).abs().times(r).comparedTo(s.times(g).minus(m.times(r)).abs().times(i))<1?[l,i]:[s,r])[0].s=v.s,y=u,d},s.toNumber=function(){return+C(this)},s.toObject=function(){var t=this;return{c:t.c?t.c.slice():null,e:t.e,s:t.s}},s.toPrecision=function(t,e){return B(this,null==t?t:jk(t,1,Lk),e,2)},s.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=d||o>=p?Yk($k(n.c),o):Gk($k(n.c),o,"0"):(jk(t,2,_.length,"Base"),e=r(Gk($k(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},s.valueOf=s.toJSON=function(){return C(this)},s._isBigNumber=!0,null!=e&&A.set(e),A}(),Fk=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Sk=Math.ceil,Nk=Math.floor,Ck="[BigNumber Error] ",Ik=1e14,Rk=14,Ok=9007199254740991,Dk=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Pk=1e7,Lk=1e9;function Uk(t){var e=0|t;return t>0||t===e?e:e-1}function $k(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=Rk-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function zk(t,e){var n,r,i=t.c,o=e.c,a=t.s,u=e.s,c=t.e,s=e.e;if(!a||!u)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-u:a;if(a!=u)return a;if(n=a<0,r=c==s,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>s^n?1:-1;for(u=(c=i.length)<(s=o.length)?c:s,a=0;a<u;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return c==s?0:c>s^n?1:-1}function jk(t,e,n,r){if(t<e||t>n||t!==Nk(t))throw Error(Ck+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t));return t}function qk(t){return"[object Array]"=={}.toString.call(t)}function Hk(t){var e=t.c.length-1;return Uk(t.e/Rk)==e&&t.c[e]%2!=0}function Yk(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function Gk(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}const Vk=kk;var Wk=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;o(this,t),this.bytes=e,this.length=this.bytes.length,this.position=n,this.bitPos=r}return s(t,[{key:"clone",value:function(){return new t(this.bytes,this.position,this.bitPos)}},{key:"getBytes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==t?this.position+t:this.length,n=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,n}}},{key:"readString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===t&&(t=this.length-this.position);for(var e="",n=this.position;n<this.position+t;n++){var r=this.bytes[n];if(0===r)break;e+=String.fromCharCode(r)}return this.position+=t,this.bitPos=0,e}}},{key:"readInt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var n=0;if("be"===e)for(var r=this.position;r<this.position+t;r++)n<<=8,n|=this.bytes[r];else for(var i=this.position+t-1;i>=this.position;i--)n<<=8,n|=this.bytes[i];return this.position+=t,this.bitPos=0,n}}},{key:"readBits",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var n,r=0,i=0;for(r=this.bytes[this.position++]&(n=this.bitPos,"be"===e?(1<<8-n)-1:256-(1<<n)),"be"!==e&&(r>>>=this.bitPos),i=8-this.bitPos,this.bitPos=0;i<t;)"be"===e?r=r<<i|this.bytes[this.position++]:r|=this.bytes[this.position++]<<i,i+=8;if(i>t){var o=i-t;"be"===e?r>>>=o:r&=(1<<t)-1,i-=o,this.position--,this.bitPos=8-o}return r}}},{key:"continueUntil",value:function(t){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof t){var e=t.length,n=t[e-1];this.position=e;for(var r,i=function(t,e){var n=new Array;return t.forEach(function(t,r){n[t]=e-r}),n}(t,e);this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==n;);r=!0;for(var o=e-1;o>=0;o--)if(this.bytes[this.position-e+o]!==t[o]){r=!1,this.position+=i[t[o]];break}if(r){this.position-=e;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==t;);}},{key:"consumeWhile",value:function(t){for(;this.position<this.length&&this.bytes[this.position]===t;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(t){this.bytes[this.position]===t&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(t){var e=this.position+t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(t){var e=this.position-t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(t){if(t<=this.bitPos)this.bitPos-=t;else for(this.bitPos>0&&(t-=this.bitPos,this.bitPos=0);t>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(t),t-=8}},{key:"moveTo",value:function(t){if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(t,e)}}])}();function Xk(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Jk(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jk(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function Jk(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Zk={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(t,e){for(var n=new Wk(t.slice(e));n.hasMore();){var r=n.getBytes(2);if(255!==r[0])throw new Error(`Invalid marker while parsing JPEG at pos ${n.position}: ${r}`);var i=0;switch(r[1]){case 216:case 1:break;case 217:return n.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=n.readInt(2,"be"),n.position+=i-2;break;case 223:n.position++;break;case 220:case 221:n.position+=2;break;case 218:i=n.readInt(2,"be"),n.position+=i-2,n.continueUntil(255);break;default:n.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(t,e){var n=new Wk(t.slice(e));for(n.continueUntil([33,255]),n.continueUntil([33,249]),n.moveForwardsBy(2);n.hasMore();){for(n.moveForwardsBy(n.readInt(1)+1),n.moveForwardsBy(11);!Array.from(n.getBytes(2)).equals([33,249])&&(n.moveBackwardsBy(2),n.moveForwardsBy(n.readInt(1)),n.readInt(1));)n.moveBackwardsBy(1);if(59===n.readInt(1))break;n.moveForwardsBy(1)}return n.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(8);for(var r=0,i="";"IEND"!==i;)r=n.readInt(4,"be"),i=n.readString(4),n.moveForwardsBy(r+4);return n.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(4);var r=n.readInt(4,"le");return n.moveForwardsBy(r),n.carve()}},{name:"High Efficiency Image File Format",extension:"heic,heif",mime:"image/heif",description:"",signature:{0:0,1:0,2:0,3:[36,24],4:102,5:116,6:121,7:112,8:104,9:101,10:105,11:99},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(2);var r=n.readInt(4,"le");return n.moveForwardsBy(r-6),n.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveTo(4);var r=n.readInt(2,"le");n.moveForwardsBy(8+16*(r-1));var i=n.readInt(4,"le"),o=n.readInt(4,"le");return n.moveTo(o+i),n.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(t,e){var n=new Wk(t);n.moveTo(e-8);var r=n.readInt(4,"le"),i=n.readInt(4,"le");function o(t,e){for(var r=0;r<t;r++){n.moveBackwardsBy(1);var i=n.readInt(e,"le")-1;if(n.moveBackwardsBy(e),i===r)break}}return n.moveBackwardsBy(8),r||i?r?(o(65535,2),n.moveBackwardsBy(r)):i&&(o(4294967295,4),n.moveBackwardsBy(6),n.moveBackwardsBy(i)):(function(){n.moveBackwardsBy(5);for(var t=0;t<1048576&&n.readInt(2,"le")*n.readInt(2,"le")*n.readInt(1)/8!=t-1;t++)n.moveBackwardsBy(6)}(),n.moveBackwardsBy(17)),n.carve(n.position,e+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(5);var r=n.readInt(4,"be");n.moveForwardsBy(r-9);for(var i=-11;n.hasMore();){var o=n.readInt(4,"be"),a=n.readInt(1);if([8,9,18].indexOf(a)<0){n.moveBackwardsBy(1);break}if(o!==i+11){n.moveBackwardsBy(i+11+5);break}i=n.readInt(3,"be"),n.moveForwardsBy(7+i)}return n.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(4),n.moveTo(n.readInt(4,"le")+8),n.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(t,e){var n=new Wk(t.slice(e)),r=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],i=[44100,48e3,32e3,"reserved"];if(n.getBytes(3).toString()===[73,68,51].toString()){n.moveTo(6);var o=n.readInt(1)<<21|n.readInt(1)<<14|n.readInt(1)<<7|n.readInt(1);n.moveForwardsBy(o)}else n.moveTo(0);for(;n.hasMore();){if(n.getBytes(3)===[84,65,71].toString()){n.moveForwardsBy(125);break}if(n.getBytes(2).toString()!==[255,251].toString()){n.moveBackwardsBy(2);break}var a=n.readInt(1),u=r[a>>4],c=i[(15&a)>>2],s=(2&a)>>1;if("free"===u||"bad"===u||"reserved"===c){n.moveBackwardsBy(1);break}var f=Math.floor(144*u/c+s);if(n.position+f>n.length){n.moveTo(n.length);break}n.moveForwardsBy(f-3)}return n.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(t,e){var n=new Wk(t.slice(e));return n.continueUntil([37,37,69,79,70]),n.moveForwardsBy(5),n.consumeIf(13),n.consumeIf(10),n.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(t,e){var n=new Wk(t.slice(e)),r=0;if(123!==n.readInt(1))throw new Error("Not a valid RTF file");for(r++;r>0&&n.hasMore();)switch(n.readInt(1)){case 123:r++;break;case 125:r--;break;case 92:n.consumeIf(92),n.position++}return n.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:Kk},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:Kk}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveTo(60);var r=n.readInt(4,"le");n.moveTo(r),n.moveForwardsBy(6);var i=n.readInt(2,"le");n.moveForwardsBy(16);var o=523===n.readInt(2,"le")?112:96;n.moveForwardsBy(o-2),n.moveForwardsBy(32);var a=n.readInt(4,"le"),u=n.readInt(4,"le");if(a>0)return n.moveTo(a+u),n.carve();n.moveForwardsBy(88),n.moveForwardsBy(40*(i-1)),n.moveForwardsBy(16);var c=n.readInt(4,"le"),s=n.readInt(4,"le");return n.moveTo(s+c),n.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(4);var r=1===n.readInt(1),i=1===n.readInt(1)?"le":"be";n.moveForwardsBy(r?26:34);var o=r?n.readInt(4,i):n.readInt(8,i);n.moveForwardsBy(10);var a=n.readInt(2,i),u=n.readInt(2,i);return n.moveTo(o),n.moveForwardsBy(a*u),n.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:Qk},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:Qk},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:Kk},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(t,e){for(var n=new Wk(t.slice(e)),r=function(){if(n.moveForwardsBy(257),n.getBytes(5).join("")!==[117,115,116,97,114].join(""))return n.moveBackwardsBy(262),1;n.moveBackwardsBy(138);var t=0;n.getBytes(11).forEach(function(e,n){t+=(e-48).toString()}),t=512*Math.ceil(parseInt(t,8)/512),n.moveForwardsBy(t+377)};n.hasMore()&&!r(););return n.consumeWhile(0),n.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveForwardsBy(3);var r=n.readInt(1);if(n.moveForwardsBy(4),n.readInt(1),n.moveForwardsBy(1),4&r){var i=n.readInt(2,"le");n.moveForwardsby(i)}return 8&r&&(n.continueUntil(0),n.moveForwardsBy(1)),16&r&&(n.continueUntil(0),n.moveForwardsBy(1)),2&r&&n.moveForwardsBy(2),oF(n),n.moveForwardsBy(8),n.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(t,e){for(var n=new Wk(t.slice(e)),r=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i<r.length&&(n.continueUntil(r[i]),n.getBytes(5).join("")!==r[i].join(""));i++)n.moveTo(0);return n.moveForwardsBy(4),n.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveForwardsBy(1),32&n.readInt(1)&&n.moveForwardsBy(4),oF(n),n.moveForwardsBy(4),n.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(t,e){var n=new Wk(t.slice(e));return n.continueUntil([0,0,0,0,4,89,90]),n.moveForwardsBy(7),n.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:Kk},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(t,e){var n=new Wk(t.slice(e)),r=0,i=0;n.moveForwardsBy(9);var o=n.readInt(2,"be");n.moveForwardsBy(6);var a=n.readInt(4,"be");2048&o&&n.moveForwardsBy(4),2&a&&r++,512&a&&r++,1&a&&i++,256&a&&i++,n.moveForwardsBy(8),o>=2368&&n.moveForwardsBy(4);var u=n.readInt(1,"be");if(n.moveForwardsBy(u),64&a){var c=n.readInt(4,"be");n.moveForwardsBy(c)}for(n.moveForwardsBy(4);n.hasMore();){var s=n.readInt(4,"be");if(0===s)break;var f=n.readInt(4,"be"),l=s===f?i:i+r;n.moveForwardsBy(f+4*l)}return n.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(t,e){var n=new Wk(t.slice(e));for(n.moveForwardsBy(8);n.hasMore();){n.moveForwardsBy(48);var r,i="",o=Xk(n.getBytes(10));try{for(o.s();!(r=o.n()).done;){var a=r.value;i+=String.fromCharCode(a)}}catch(t){o.e(t)}finally{o.f()}i=parseInt(i.trim(),10),n.moveForwardsBy(2),n.moveForwardsBy(i)}return n.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveTo(16);var r=n.readInt(2);n.moveTo(28);var i=n.readInt(4);return n.moveTo(r*i),n.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveTo(20);var r=n.readInt(4,"le");n.moveTo(r);var i=n.readInt(4,"le");return n.moveForwardsBy(i-4),n.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(t,e){var n=new Wk(t.slice(e));n.moveTo(40);var r=n.readInt(4,"le")-44;for(n.moveForwardsBy(r);n.hasMore()&&n.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)n.moveForwardsBy(65529);return n.consumeWhile(0),n.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(112),n.moveTo(4096*(n.readInt(4,"le")+1)),n.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(12),n.moveTo(n.readInt(4,"be")),n.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(n.readInt(4,"be")),n.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(t,e){var n=new Wk(t.slice(e)),r=0;for(n.continueUntil([60,112,108,105,115,116]),n.moveForwardsBy(6),r++;r>0&&n.hasMore();)60===n.readInt(1)&&(n.getBytes(5).join("")===[112,108,105,115,116].join("")?r++:n.moveBackwardsBy(5),n.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?r--:n.moveBackwardsBy(7));return n.consumeIf(10),n.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(20),n.moveForwardsBy(n.readInt(4)),n.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(t){return t>=1&&t<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(t){return t>=1&&t<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(t){return 0!==t},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(t,e){var n=new Wk(t.slice(e));return n.moveTo(52),n.moveTo(n.readInt(4,"le")),n.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function Kk(t,e){var n=new Wk(t.slice(e));n.continueUntil([80,75,5,6]),n.moveForwardsBy(20);var r=n.readInt(2,"le");return n.moveForwardsBy(r),n.carve()}function Qk(t,e){var n="207250237254",r=new Wk(t.slice(e)),i=r.getBytes(4).join("");return r.moveTo(function(t,e,n){var r=28;e&&(r+=4),t.moveTo(16);var i=t.readInt(4,n);return function(t,e,n,r){for(var i=0,o=0;o<r;o++){t.moveTo(e);var a=t.readInt(4,n);25===a?(t.moveTo(e+48),i+=t.readInt(8,n),t.moveTo(e+4),e+=t.readInt(4,n)):1===a&&(t.moveTo(e+36),i+=t.readInt(4,n),t.moveTo(e+4),e+=t.readInt(4,n))}return i}(t,r,n,i)}(r,function(t){return t===n||"254237250207"===t}(i),function(t){return"206250237254"===t||t===n}(i)?"le":"be")),r.carve()}for(var tF=new Array(288),eF=0;eF<tF.length;eF++)tF[eF]=eF<=143?8:eF<=255?9:eF<=279?7:8;var nF=sF(tF),rF=sF(new Array(30).fill(5)),iF=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function oF(t){for(var e=0;!e;){e=t.readBits(1,"le");var n=t.readBits(2,"le");if(0===n){t.moveForwardsBy(1);var r=t.readInt(2,"le");t.moveForwardsBy(2+r)}else if(1===n)cF(t,nF,rF);else{if(2!==n)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${t.position}`);for(var i=t.readBits(5,"le")+257,o=t.readBits(5,"le")+1,a=t.readBits(4,"le")+4,u=new Uint8Array(iF.length),c=0;c<a;c++)u[iF[c]]=t.readBits(3,"le");for(var s=sF(u),f=new Uint8Array(i+o),l=void 0,h=void 0,d=void 0,p=0;p<i+o;)switch(l=fF(t,s)){case 16:for(h=3+t.readBits(2,"le");h--;)f[p++]=d;break;case 17:for(h=3+t.readBits(3,"le");h--;)f[p++]=0;d=0;break;case 18:for(h=11+t.readBits(7,"le");h--;)f[p++]=0;d=0;break;default:f[p++]=l,d=l}cF(t,sF(f.subarray(0,i)),sF(f.subarray(i)))}}t.bitPos>0&&t.moveForwardsBy(1)}var aF=[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],uF=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function cF(t,e,n){for(var r,i=0;(r=fF(t,e))&&256!==r;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");r<256||(t.readBits(aF[r-257],"le"),r=fF(t,n),t.readBits(uF[r],"le"))}}function sF(t){for(var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t),r=1<<e,i=new Uint32Array(r),o=1,a=0,u=2;o<=e;){for(var c=0;c<t.length;c++)if(t[c]===o){var s=void 0,f=void 0,l=void 0;for(s=0,f=a,l=0;l<o;l++)s=s<<1|1&f,f>>=1;for(var h=o<<16|c,d=s;d<r;d+=u)i[d]=h;a++}o++,a<<=1,u<<=1}return[i,e,n]}function fF(t,e){var n,r,i=(r=2,function(t){if(Array.isArray(t))return t}(n=e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(n,r)||rk(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],u=o[t.readBits(a,"le")&(1<<a)-1],c=u>>>16;if(c>a)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${t.position}: ${c}`);return t.moveBackwardsByBits(a-c),65535&u}function lF(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length){for(var r=0;r<t.length;r++)if(hF(t[r],e,n))return!0;return!1}return hF(t,e,n)}function hF(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var r in t){var i=parseInt(r,10)+n;switch(typeof t[r]){case"number":if(e[i]!==t[r])return!1;break;case"object":if(t[r].indexOf(e[i])<0)return!1;break;case"function":if(!t[r](e[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${r}`)}}return!0}var dF=function(){return s(function t(){o(this,t)},null,[{key:"checkForValue",value:function(t){if(void 0===t)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}])}();const pF=dF;function gF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gF=function(){return!!t})()}const yF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,gF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}])}(pF);function mF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(mF=function(){return!!t})()}const vF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,mF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=Vk.isBigNumber(this.value)?Ek.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value);try{this.value=new Vk(Ek.arrayBufferToStr(this.value))}catch(t){this.value=new Vk(NaN)}}}])}(pF);function bF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(bF=function(){return!!t})()}const xF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,bF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){var t=this;if(e.checkForValue(this.value),!_k())return new Promise(function(e,n){Ek.readFile(t.value).then(function(e){return t.value=e.buffer}).then(e).catch(n)});this.value=Ek.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new File(this.value,"unknown")}}])}(pF);function wF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(wF=function(){return!!t})()}const _F=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,wF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?Ek.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?Ek.arrayBufferToStr(this.value):""}}])}(pF);function AF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(AF=function(){return!!t})()}const MF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,AF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?Ek.strToArrayBuffer(Ek.unescapeHtml(Ek.stripHtmlTags(this.value,!0))):new ArrayBuffer}}])}(_F);function EF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(EF=function(){return!!t})()}const BF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,EF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=void 0!==this.value?Ek.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=JSON.parse(Ek.arrayBufferToStr(this.value))}}])}(pF);function TF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(TF=function(){return!!t})()}var kF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,TF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:(r=QT(ek().mark(function t(){return ek().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.checkForValue(this.value),!_k()){t.next=1;break}this.value=this.value.map(function(t){return Uint8Array.from(t.data)}),t.next=3;break;case 1:return t.next=2,e.concatenateTypedArraysWithTypedElements.apply(e,ik(this.value));case 2:this.value=t.sent;case 3:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(n=QT(ek().mark(function t(){var e,n,r,i,o,a,u,c,s,f,l,h,d,p=arguments;return ek().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(e=0,n=p.length,r=new Array(n),i=0;i<n;i++)r[i]=p[i];for(o=0,a=r;o<a.length;o++)u=a[o],e+=u.size;c=new Uint8Array(e),s=0,f=0,l=r;case 1:if(!(f<l.length)){t.next=4;break}return h=l[f],t.next=2,Ek.readFile(h);case 2:d=t.sent,c.set(d,s),s+=d.length;case 3:f++,t.next=1;break;case 4:return t.abrupt("return",c);case 5:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var t=0,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++)t+=o[i].length;for(var a=new Uint8Array(t),u=0,c=0,s=n;c<s.length;c++){var f=s[c];a.set(f,u),u+=f.length}return a}}]);var n,r}(pF);const FF=kF;function SF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(SF=function(){return!!t})()}const NF=function(t){function e(){return o(this,e),t=this,r=arguments,n=l(n=e),f(t,SF()?Reflect.construct(n,r||[],l(t).constructor):n.apply(t,r));var t,n,r}return d(e,t),s(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value="number"==typeof this.value?Ek.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?parseFloat(Ek.arrayBufferToStr(this.value)):0}}])}(pF);var CF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(o(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==n)this.set(e,n);else if(e){var r=t.typeEnum(e.constructor.name);this.set(e,r)}}return s(t,[{key:"get",value:function(e){var n=this;return"string"==typeof e&&(e=t.typeEnum(e)),this.type!==e?_k()?(this._translate(e),this.value):new Promise(function(t,r){n._translate(e).then(function(){t(n.value)}).catch(r)}):this.value}},{key:"set",value:function(e,n){if("string"==typeof n&&(n=t.typeEnum(n)),ak().debug("Dish type: "+t.enumLookup(n)),this.value=e,this.type=n,!this.valid()){var r=Ek.truncate(JSON.stringify(this.value),25);throw new Tk(`Data is not a valid ${t.enumLookup(n)}: ${r}`)}}},{key:"presentAs",value:function(t){return this.clone().get(t)}},{key:"detectDishType",value:function(){var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(Zk);if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t&&t.length>1))return[];var n=[],r={};for(var i in Zk)e.includes(i)&&(r[i]=Zk[i]);for(var o in r)r[o].forEach(function(e){lF(e.signature,t)&&n.push(e)});return n}(new Uint8Array(this.value.slice(0,2048)));return t.length&&t[0].mime&&"text/plain"===t[0].mime?t[0].mime:null}},{key:"getTitle",value:(e=QT(ek().mark(function e(n){var r,i,o,a;return ek().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r="",o=this.type,e.next=o===t.FILE?1:o===t.LIST_FILE?2:o===t.JSON?3:o===t.NUMBER||o===t.BIG_NUMBER?4:o===t.ARRAY_BUFFER||o===t.BYTE_ARRAY?5:6;break;case 1:return r=this.value.name,e.abrupt("continue",9);case 2:return r=`${this.value.length} file(s)`,e.abrupt("continue",9);case 3:return r="application/json",e.abrupt("continue",9);case 4:return r=this.value.toString(),e.abrupt("continue",9);case 5:if(null===(r=this.detectDishType())){e.next=6;break}return e.abrupt("continue",9);case 6:return e.prev=6,(i=this.clone()).value=i.value.slice(0,256),e.next=7,i.get(t.STRING);case 7:r=e.sent,e.next=9;break;case 8:e.prev=8,a=e.catch(6),ak().error(`${t.enumLookup(this.type)} cannot be sliced. ${a}`);case 9:return e.abrupt("return",r.slice(0,n));case 10:case"end":return e.stop()}},e,this,[[6,8]])})),function(t){return e.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e<this.value.length;e++)if("number"!=typeof this.value[e]||this.value[e]<0||this.value[e]>255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:return!!Vk.isBigNumber(this.value)||!!Object.keys(this.value).sort().equals(["c","e","s"])&&(this.value=new Vk({s:this.value.s,e:this.value.e,c:this.value.c,_isBigNumber:!0}),!0);case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce(function(t,e){return t&&e instanceof File},!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce(function(t,e){return t+e.size},0);default:return-1}}},{key:"clone",value:function(){var e=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:e.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case t.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:e.set(this.value.map(function(t){return new File([t],t.name,{type:t.type,lastModified:t.lastModified})}),this.type);break;default:throw new Tk("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var n=this;if(ak().debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(e)}`),!_k())return new Promise(function(r,i){n._toArrayBuffer().then(function(){return n.type=t.ARRAY_BUFFER}).then(function(){n._fromArrayBuffer(e),r()}).catch(i)});this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,n={browser:{[t.STRING]:function(){return Promise.resolve(_F.toArrayBuffer.bind(e)())},[t.NUMBER]:function(){return Promise.resolve(NF.toArrayBuffer.bind(e)())},[t.HTML]:function(){return Promise.resolve(MF.toArrayBuffer.bind(e)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(vF.toArrayBuffer.bind(e)())},[t.JSON]:function(){return Promise.resolve(BF.toArrayBuffer.bind(e)())},[t.FILE]:function(){return xF.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Promise.resolve(FF.toArrayBuffer.bind(e)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(yF.toArrayBuffer.bind(e)())}},node:{[t.STRING]:function(){return _F.toArrayBuffer.bind(e)()},[t.NUMBER]:function(){return NF.toArrayBuffer.bind(e)()},[t.HTML]:function(){return MF.toArrayBuffer.bind(e)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return vF.toArrayBuffer.bind(e)()},[t.JSON]:function(){return BF.toArrayBuffer.bind(e)()},[t.FILE]:function(){return xF.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return FF.toArrayBuffer.bind(e)()},[t.BYTE_ARRAY]:function(){return yF.toArrayBuffer.bind(e)()}}};try{return n[_k()?"node":"browser"][this.type]()}catch(e){throw new Tk(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var n=this,r={[t.STRING]:function(){return _F.fromArrayBuffer.bind(n)()},[t.NUMBER]:function(){return NF.fromArrayBuffer.bind(n)()},[t.HTML]:function(){return MF.fromArrayBuffer.bind(n)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return vF.fromArrayBuffer.bind(n)()},[t.JSON]:function(){return BF.fromArrayBuffer.bind(n)()},[t.FILE]:function(){return xF.fromArrayBuffer.bind(n)()},[t.LIST_FILE]:function(){return FF.fromArrayBuffer.bind(n)()},[t.BYTE_ARRAY]:function(){return yF.fromArrayBuffer.bind(n)()}};try{r[e](),this.type=e}catch(n){throw new Tk(`Error translating from ArrayBuffer to ${t.enumLookup(e)}: ${n}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list<file>":return t.LIST_FILE;default:throw new Tk("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List<File>";default:throw new Tk("Invalid data type enum. No matching type.")}}}]);var e}();CF.BYTE_ARRAY=0,CF.STRING=1,CF.NUMBER=2,CF.HTML=3,CF.ARRAY_BUFFER=4,CF.BIG_NUMBER=5,CF.JSON=6,CF.FILE=7,CF.LIST_FILE=8;const IF=CF;var RF=function(){function t(e){o(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,this.integer=!1,this.allowEmpty=!0,e&&this._parseConfig(e)}return s(t,[{key:"_parseConfig",value:function(t){this.name=t.name,this.type=t.type,this.defaultValue=t.value,this.disabled=!!t.disabled,this.hint=t.hint||!1,this.rows=t.rows||!1,this.toggleValues=t.toggleValues,this.target=void 0!==t.target?t.target:null,this.defaultIndex=void 0!==t.defaultIndex?t.defaultIndex:0,this.maxLength=t.maxLength||null,this.min=t.min,this.max=t.max,this.step=t.step,this.integer=void 0!==t.integer&&!!t.integer,this.allowEmpty=void 0===t.allowEmpty||!!t.allowEmpty}},{key:"validate",value:function(t){if(this.disabled)return!0;var e,n=t;null==n&&(n=this.defaultValue),"toggleString"===this.type&&n&&"object"==typeof n&&"string"in n&&(n=n.string),"option"===this.type&&Array.isArray(n)&&(n=n[null!==(e=this.defaultIndex)&&void 0!==e?e:0]);var r=!1;if((null==n||""===n||"number"==typeof n.length&&0===n.length)&&(r=!0),r){var i=!1;if("option"===this.type&&Array.isArray(this.defaultValue)&&(i=this.defaultValue.includes("")),!1===this.allowEmpty||"option"===this.type&&!i)throw new dk(`${this.name} cannot be empty.`);return!0}if("number"==typeof this.maxLength&&null!=n){if("string"==typeof n&&n.length>this.maxLength)throw new dk(`${this.name} length cannot exceed ${this.maxLength}.`);if(Array.isArray(n)&&n.length>this.maxLength)throw new dk(`${this.name} length cannot exceed ${this.maxLength}.`);if(n instanceof Uint8Array&&n.length>this.maxLength)throw new dk(`${this.name} length cannot exceed ${this.maxLength}.`)}if("number"===this.type){if(null==n||isNaN(n))throw new dk(`${this.name} must be a number.`);if(this.integer&&!Number.isInteger(n))throw new dk(`${this.name} must be an integer.`);if("number"==typeof this.min&&n<this.min)throw new dk(`${this.name} must be greater than or equal to ${this.min}.`);if("number"==typeof this.max&&n>this.max)throw new dk(`${this.name} must be less than or equal to ${this.max}.`)}if("option"===this.type&&Array.isArray(this.defaultValue)){var o=this.defaultValue.filter(function(t){return"string"==typeof t&&!t.match(/^\[\/?[a-z0-9 -()^]+\]$/i)}),a=null!=n?String(n).toLowerCase():"";if(!o.find(function(t){return t.toLowerCase()===a}))throw new dk(`${this.name} must be one of the following: ${o.join(", ")}.`)}return!0}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=t.prepare(e,this.type)}}],[{key:"prepare",value:function(t,e){var n;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return Ek.parseEscapedChars(t);case"byteArray":return"string"==typeof t?yk(t=t.replace(/\s+/g,"")):t;case"number":if(null===t)return t;if(n=parseFloat(t),isNaN(n)){var r=Ek.truncate(t.toString(),10);throw new dk("Invalid ingredient value. Not a number: "+r)}return n;default:return t}}}])}();const OF=RF;var DF=function(){return s(function t(){o(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null},[{key:"run",value:function(t,e){return t}},{key:"highlight",value:function(t,e){return!1}},{key:"highlightReverse",value:function(t,e){return!1}},{key:"present",value:function(t,e){return t}},{key:"inputType",get:function(){return IF.enumLookup(this._inputType)},set:function(t){this._inputType=IF.typeEnum(t)}},{key:"outputType",get:function(){return IF.enumLookup(this._outputType)},set:function(t){this._outputType=IF.typeEnum(t),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return IF.enumLookup(this._presentType)},set:function(t){this._presentType=IF.typeEnum(t)}},{key:"args",get:function(){return this._ingList.map(function(t){var e={name:t.name,type:t.type,value:t.defaultValue};return t.toggleValues&&(e.toggleValues=t.toggleValues),t.hint&&(e.hint=t.hint),t.rows&&(e.rows=t.rows),t.disabled&&(e.disabled=t.disabled),t.target&&(e.target=t.target),t.defaultIndex&&(e.defaultIndex=t.defaultIndex),t.maxLength&&(e.maxLength=t.maxLength),"number"==typeof t.min&&(e.min=t.min),"number"==typeof t.max&&(e.max=t.max),t.step&&(e.step=t.step),void 0!==t.integer&&(e.integer=t.integer),void 0!==t.allowEmpty&&(e.allowEmpty=t.allowEmpty),e})},set:function(t){var e=this;t.forEach(function(t){var n=new OF(t);e.addIngredient(n)})}},{key:"validateIngredients",value:function(t){var e=t||this.ingValues;return this._ingList.forEach(function(t,n){n<e.length&&t.validate(e[n])}),!0}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map(function(t){return t.config})}}},{key:"addIngredient",value:function(t){this._ingList.push(t)}},{key:"ingValues",get:function(){return this._ingList.map(function(t){return t.value})},set:function(t){var e=this;t.forEach(function(t,n){try{e._ingList[n].value=t}catch(t){throw new dk(`Failed to set value of ingredient '${e._ingList[n].name}': ${t}`)}})}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(t){this._breakpoint=!!t}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=!!t}},{key:"flowControl",get:function(){return this._flowControl},set:function(t){this._flowControl=!!t}},{key:"manualBake",get:function(){return this._manualBake},set:function(t){this._manualBake=!!t}}])}();const PF=DF;function LF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(LF=function(){return!!t})()}var UF=t.default?t.default:e,$F=ZT()?ZT():JT,zF=function(t){function e(){var t,n,r,i;return o(this,e),n=this,r=l(r=e),(t=f(n,LF()?Reflect.construct(r,[],l(n).constructor):r.apply(n,i))).name="Entropy",t.module="Charts",t.description="Shannon Entropy, in the context of information theory, is a measure of the rate at which information is produced by a source of data. It can be used, in a broad sense, to detect whether data is likely to be structured or unstructured. 8 is the maximum, representing highly unstructured, 'random' data. English language text usually falls somewhere between 3.5 and 5. Properly encrypted or compressed data should have an entropy of over 7.5.",t.infoURL="https://wikipedia.org/wiki/Entropy_(information_theory)",t.inputType="ArrayBuffer",t.outputType="json",t.presentType="html",t.args=[{name:"Visualisation",type:"option",value:["Shannon scale","Histogram (Bar)","Histogram (Line)","Curve","Image"]}],t}return d(e,t),s(e,[{key:"calculateShannonEntropy",value:function(t){var e,n=[],r=new Array(256).fill(0);for(e=0;e<t.length;e++)r[t[e]]++;for(e=0;e<r.length;e++)r[e]>0&&n.push(r[e]/t.length);var i,o=0;for(e=0;e<n.length;e++)o+=(i=n[e])*Math.log(i)/Math.log(2);return-o}},{key:"calculateScanningEntropy",value:function(t){for(var e=[],n=t.length<256?8:256,r=0;r<t.length;r+=n){var i=t.slice(r,r+n);e.push(this.calculateShannonEntropy(i))}return{entropyData:e,binWidth:n}}},{key:"createAxes",value:function(t,e,n,r,i,o,a,u,c){var s=UF.axisLeft().scale(n),f=UF.axisBottom().scale(e);t.append("g").attr("transform",`translate(0, ${r-o.bottom})`).call(f),t.append("g").attr("transform",`translate(${o.left},0)`).call(s),t.append("text").attr("transform","rotate(-90)").attr("y",0-o.left).attr("x",0-r/2).attr("dy","1em").style("text-anchor","middle").text(c),t.append("text").attr("transform",`translate(${i/2}, ${r-o.bottom+40})`).style("text-anchor","middle").text(u),t.append("text").attr("transform",`translate(${i/2}, ${o.top-10})`).style("text-anchor","middle").text(a)}},{key:"calculateByteFrequency",value:function(t){var e,n=new Array(256).fill(0);if(0===t.length)return n;for(e=0;e<t.length;e++)n[t[e]]++;for(e=0;e<n.length;e++)n[e]=n[e]/t.length;return n}},{key:"createByteFrequencyLineHistogram",value:function(t){var e={top:30,right:20,bottom:50,left:30},n=(new $F.Document).createElement("svg");n=UF.select(n).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=UF.scaleLinear().domain([0,UF.max(t,function(t){return t})]).range([500-e.bottom,e.top]),i=UF.scaleLinear().domain([0,t.length-1]).range([e.left,500-e.right]),o=UF.line().x(function(t,e){return i(e)}).y(function(t){return r(t)}).curve(UF.curveMonotoneX);return n.append("path").datum(t).attr("fill","none").attr("stroke","steelblue").attr("d",o),this.createAxes(n,i,r,500,500,e,"","Byte","Byte Frequency"),n._groups[0][0].outerHTML}},{key:"createByteFrequencyBarHistogram",value:function(t){var e={top:30,right:20,bottom:50,left:30},n=(new $F.Document).createElement("svg");n=UF.select(n).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=UF.extent(t,function(t){return t}),i=UF.scaleLinear().domain(r).range([500-e.bottom,e.top]),o=UF.scaleLinear().domain([0,t.length-1]).range([e.left-1,500-e.right]);return n.selectAll("rect").data(t).enter().append("rect").attr("x",function(t,e){return o(e)+1}).attr("y",function(t){return i(t)}).attr("width",1).attr("height",function(t){return i(r[0])-i(t)}).attr("fill","blue"),this.createAxes(n,o,i,500,500,e,"","Byte","Byte Frequency"),n._groups[0][0].outerHTML}},{key:"createEntropyCurve",value:function(t){var e={top:30,right:20,bottom:50,left:30},n=(new $F.Document).createElement("svg");n=UF.select(n).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var r=UF.scaleLinear().domain([0,UF.max(t,function(t){return t})]).range([500-e.bottom,e.top]),i=UF.scaleLinear().domain([0,t.length]).range([e.left,500-e.right]),o=UF.line().x(function(t,e){return i(e)}).y(function(t){return r(t)}).curve(UF.curveMonotoneX);return t.length>0&&(n.append("path").datum(t).attr("d",o),n.selectAll("path").attr("fill","none").attr("stroke","steelblue")),this.createAxes(n,i,r,500,500,e,"Scanning Entropy","Block","Entropy"),n._groups[0][0].outerHTML}},{key:"createEntropyImage",value:function(t){for(var e=[],n=0;n<t.length;n++)e.push({x:n%100,y:Math.floor(n/100),entropy:t[n]});var r=(new $F.Document).createElement("svg");r=UF.select(r).attr("width","100%").attr("height","100%").attr("viewBox","0 0 100 100");var i=UF.scaleLinear().domain([0,UF.max(t,function(t){return t})]).range(["#000000","#FFFFFF"]).interpolate(UF.interpolateRgb);return r.selectAll("rect").data(e).enter().append("rect").attr("x",function(t){return 1*t.x}).attr("y",function(t){return 1*t.y}).attr("width",1).attr("height",1).style("fill",function(t){return i(t.entropy)}),r._groups[0][0].outerHTML}},{key:"createShannonEntropyVisualization",value:function(t){return`Shannon entropy: ${t}\n <br><canvas id='chart-area'></canvas><br>\n - 0 represents no randomness (i.e. all the bytes in the data have the same value) whereas 8, the maximum, represents a completely random string.\n - Standard English text usually falls somewhere between 3.5 and 5.\n - Properly encrypted or compressed data of a reasonable length should have an entropy of over 7.5.\n\n The following results show the entropy of chunks of the input data. Chunks with particularly high entropy could suggest encrypted or compressed sections.\n\n <br><script>\n var canvas = document.getElementById("chart-area"),\n parentRect = canvas.closest(".cm-scroller").getBoundingClientRect(),\n entropy = ${t},\n height = parentRect.height * 0.25;\n\n canvas.width = parentRect.width * 0.95;\n canvas.height = height > 150 ? 150 : height;\n\n CanvasComponents.drawScaleBar(canvas, entropy, 8, [\n {\n label: "English text",\n min: 3.5,\n max: 5\n },{\n label: "Encrypted/compressed",\n min: 7.5,\n max: 8\n }\n ]);\n <\/script>`}},{key:"run",value:function(t,e){var n=e[0];switch(t=new Uint8Array(t),n){case"Histogram (Bar)":case"Histogram (Line)":return this.calculateByteFrequency(t);case"Curve":case"Image":return this.calculateScanningEntropy(t).entropyData;default:return this.calculateShannonEntropy(t)}}},{key:"present",value:function(t,e){switch(e[0]){case"Histogram (Bar)":return this.createByteFrequencyBarHistogram(t);case"Histogram (Line)":return this.createByteFrequencyLineHistogram(t);case"Curve":return this.createEntropyCurve(t);case"Image":return this.createEntropyImage(t);default:return this.createShannonEntropyVisualization(t)}}}])}(PF);const jF=zF;var qF=["Line feed","CRLF"],HF=["Space","Comma","Semi-colon","Colon","Tab"],YF="white",GF="black";function VF(t,e,n,r,i){var o,a=[];return t.split(e).forEach(function(t,e){var u=t.split(n);if(u.length!==i)throw new dk(`Each row must have length ${i}.`);r&&0===e?o=u:a.push(u)}),{headings:o,values:a}}function WF(t,e,n,r){var i=VF(t,e,n,r,2),o=i.headings,a=i.values;return o&&(o={x:o[0],y:o[1]}),a=a.map(function(t){var e=parseFloat(t[0]),n=parseFloat(t[1]);if(Number.isNaN(e))throw new dk("Values must be numbers in base 10.");if(Number.isNaN(n))throw new dk("Values must be numbers in base 10.");return[e,n]}),{headings:o,values:a}}function XF(t,e,n,r){var i=VF(t,e,n,r,3),o=i.headings,a=i.values;return o&&(o={x:o[0],y:o[1]}),a=a.map(function(t){var e=parseFloat(t[0]),n=parseFloat(t[1]),r=t[2];if(Number.isNaN(e))throw new dk("Values must be numbers in base 10.");if(Number.isNaN(n))throw new dk("Values must be numbers in base 10.");return[e,n,Ek.escapeHtml(r)]}),{headings:o,values:a}}function JF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(JF=function(){return!!t})()}var ZF=t.default?t.default:e,KF=ZT()?ZT():JT,QF=function(t){function e(){var t,n,r,i;return o(this,e),n=this,r=l(r=e),(t=f(n,JF()?Reflect.construct(r,[],l(n).constructor):r.apply(n,i))).name="Heatmap chart",t.module="Charts",t.description="A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",t.infoURL="https://wikipedia.org/wiki/Heat_map",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:qF},{name:"Field delimiter",type:"option",value:HF},{name:"Number of vertical bins",type:"number",value:25},{name:"Number of horizontal bins",type:"number",value:25},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Draw bin edges",type:"boolean",value:!1},{name:"Min colour value",type:"string",value:YF},{name:"Max colour value",type:"string",value:GF}],t}return d(e,t),s(e,[{key:"run",value:function(t,e){var n=Ek.charRep(e[0]),r=Ek.charRep(e[1]),i=e[2],o=e[3],a=e[4],u=e[7],c=e[8],s=e[9];if(i<=0)throw new dk("Number of vertical bins must be greater than 0");if(o<=0)throw new dk("Number of horizontal bins must be greater than 0");var f=e[5],l=e[6],h=WF(t,n,r,a),d=h.headings,p=h.values;d&&(f=d.x,l=d.y);var g=(new KF.Document).createElement("svg");g=ZF.select(g).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500");var y=470,m=450,v=y/o,b=m/i,x=g.append("g").attr("transform","translate(30,10)"),w=this.getHeatmapPacking(p,i,o),_=Math.max.apply(Math,ik(w.map(function(t){var e=t.map(function(t){return t.length});return Math.max.apply(Math,ik(e))}))),A=ZF.extent(p,function(t){return t[0]}),M=ZF.extent(p,function(t){return t[1]}),E=ZF.scaleLinear().domain(A).range([0,y]),B=ZF.scaleLinear().domain(M).range([m,0]),T=ZF.scaleSequential(ZF.interpolateLab(c,s)).domain([0,_]);return x.append("clipPath").attr("id","clip").append("rect").attr("width",y).attr("height",m),x.append("g").attr("class","bins").attr("clip-path","url(#clip)").selectAll("g").data(w).enter().append("g").selectAll("rect").data(function(t){return t}).enter().append("rect").attr("x",function(t){return v*t.x}).attr("y",function(t){return m-b*(t.y+1)}).attr("width",v).attr("height",b).attr("fill",function(t){return T(t.length)}).attr("stroke",u?"rgba(0, 0, 0, 0.5)":"none").attr("stroke-width",u?"0.5":"none").append("title").text(function(t){return`Count: ${t.length}\n\n Percentage: ${(100*t.length/p.length).toFixed(2)}%\n\n `.replace(/\s{2,}/g,"\n")}),x.append("g").attr("class","axis axis--y").call(ZF.axisLeft(B).tickSizeOuter(-470)),g.append("text").attr("transform","rotate(-90)").attr("y",-30).attr("x",-225).attr("dy","1em").style("text-anchor","middle").text(l),x.append("g").attr("class","axis axis--x").attr("transform","translate(0,450)").call(ZF.axisBottom(E).tickSizeOuter(-450)),g.append("text").attr("x",235).attr("y",500).style("text-anchor","middle").text(f),g._groups[0][0].outerHTML}},{key:"getHeatmapPacking",value:function(t,e,n){var r=ZF.extent(t,function(t){return t[0]}),i=ZF.extent(t,function(t){return t[1]}),o=[];if(r[0]===r[1])throw"Cannot pack points. There is no difference between the minimum and maximum X coordinate.";if(i[0]===i[1])throw"Cannot pack points. There is no difference between the minimum and maximum Y coordinate.";for(var a=0;a<e;a++){o.push([]);for(var u=0;u<n;u++){var c=[];c.y=a,c.x=u,o[a].push(c)}}return t.forEach(function(t){var a=(t[1]-i[0])/(i[1]+1e-9-i[0]),u=(t[0]-r[0])/(r[1]+1e-9-r[0]),c=Math.floor(e*a),s=Math.floor(n*u);o[c][s].push({x:t[0],y:t[1]})}),o}}])}(PF);const tS=QF;n.dn(oS);var eS=Math.PI/3,nS=[0,eS,2*eS,3*eS,4*eS,5*eS];function rS(t){return t[0]}function iS(t){return t[1]}function oS(){var t,e,n,r=0,i=0,o=1,a=1,u=rS,c=iS;function s(t){var r,i={},o=[],a=t.length;for(r=0;r<a;++r)if(!isNaN(f=+u.call(null,s=t[r],r,t))&&!isNaN(l=+c.call(null,s,r,t))){var s,f,l,h=Math.round(l/=n),d=Math.round(f=f/e-(1&h)/2),p=l-h;if(3*Math.abs(p)>1){var g=f-d,y=d+(f<d?-1:1)/2,m=h+(l<h?-1:1),v=f-y,b=l-m;g*g+p*p>v*v+b*b&&(d=y+(1&h?1:-1)/2,h=m)}var x=d+"-"+h,w=i[x];w?w.push(s):(o.push(w=i[x]=[s]),w.x=(d+(1&h)/2)*e,w.y=h*n)}return o}function f(t){var e=0,n=0;return nS.map(function(r){var i=Math.sin(r)*t,o=-Math.cos(r)*t,a=i-e,u=o-n;return e=i,n=o,[a,u]})}return s.hexagon=function(e){return"m"+f(null==e?t:+e).join("l")+"z"},s.centers=function(){for(var u=[],c=Math.round(i/n),s=Math.round(r/e),f=c*n;f<a+t;f+=n,++c)for(var l=s*e+(1&c)*e/2;l<o+e/2;l+=e)u.push([l,f]);return u},s.mesh=function(){var e=f(t).slice(0,4).join("l");return s.centers().map(function(t){return"M"+t+"m"+e}).join("")},s.x=function(t){return arguments.length?(u=t,s):u},s.y=function(t){return arguments.length?(c=t,s):c},s.radius=function(r){return arguments.length?(e=2*(t=+r)*Math.sin(eS),n=1.5*t,s):t},s.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],s):[o-r,a-i]},s.extent=function(t){return arguments.length?(r=+t[0][0],i=+t[0][1],o=+t[1][0],a=+t[1][1],s):[[r,i],[o,a]]},s.radius(1)}function aS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(aS=function(){return!!t})()}var uS=t.default?t.default:e,cS=r.default?r.default:i,sS=ZT()?ZT():JT,fS=function(t){function e(){var t,n,r,i;return o(this,e),n=this,r=l(r=e),(t=f(n,aS()?Reflect.construct(r,[],l(n).constructor):r.apply(n,i))).name="Hex Density chart",t.module="Charts",t.description="Hex density charts are used in a similar way to scatter charts, however rather than rendering tens of thousands of points, it groups the points into a few hundred hexagons to show the distribution.",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:qF},{name:"Field delimiter",type:"option",value:HF},{name:"Pack radius",type:"number",value:25},{name:"Draw radius",type:"number",value:15},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Draw hexagon edges",type:"boolean",value:!1},{name:"Min colour value",type:"string",value:YF},{name:"Max colour value",type:"string",value:GF},{name:"Draw empty hexagons within data boundaries",type:"boolean",value:!1}],t}return d(e,t),s(e,[{key:"run",value:function(t,e){var n=Ek.charRep(e[0]),r=Ek.charRep(e[1]),i=e[2],o=e[3],a=e[4],u=e[7],c=e[8],s=e[9],f=e[10],l=e[5],h=e[6],d=WF(t,n,r,a),p=d.headings,g=d.values;p&&(l=p.x,h=p.y);var y=(new sS.Document).createElement("svg"),m=470,v=450,b=(y=uS.select(y).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500")).append("g").attr("transform","translate(30,10)"),x=cS.hexbin().radius(i).extent([0,0],[m,v]),w=x(g),_=Math.max.apply(Math,ik(w.map(function(t){return t.length}))),A=uS.extent(w,function(t){return t.x}),M=uS.extent(w,function(t){return t.y});A[0]-=2*i,A[1]+=3*i,M[0]-=2*i,M[1]+=2*i;var E=uS.scaleLinear().domain(A).range([0,m]),B=uS.scaleLinear().domain(M).range([v,0]),T=uS.scaleSequential(uS.interpolateLab(c,s)).domain([0,_]);return b.append("clipPath").attr("id","clip").append("rect").attr("width",m).attr("height",v),f&&b.append("g").attr("class","empty-hexagon").selectAll("path").data(this.getEmptyHexagons(w,i)).enter().append("path").attr("d",function(t){return`M${E(t.x)},${B(t.y)} ${x.hexagon(o)}`}).attr("fill",function(t){return T(0)}).attr("stroke",u?"black":"none").attr("stroke-width",u?"0.5":"none").append("title").text(function(t){return`Count: 0\n\n Percentage: ${(0).toFixed(2)}%\n\n Center: ${t.x.toFixed(2)}, ${t.y.toFixed(2)}\n\n `.replace(/\s{2,}/g,"\n")}),b.append("g").attr("class","hexagon").attr("clip-path","url(#clip)").selectAll("path").data(w).enter().append("path").attr("d",function(t){return`M${E(t.x)},${B(t.y)} ${x.hexagon(o)}`}).attr("fill",function(t){return T(t.length)}).attr("stroke",u?"black":"none").attr("stroke-width",u?"0.5":"none").append("title").text(function(t){var e=t.length,n=100*t.length/g.length,r=t.x,i=t.y,o=Math.min.apply(Math,ik(t.map(function(t){return t[0]}))),a=Math.max.apply(Math,ik(t.map(function(t){return t[0]}))),u=Math.min.apply(Math,ik(t.map(function(t){return t[1]}))),c=Math.max.apply(Math,ik(t.map(function(t){return t[1]})));return`Count: ${e}\n\n Percentage: ${n.toFixed(2)}%\n\n Center: ${r.toFixed(2)}, ${i.toFixed(2)}\n\n Min X: ${o.toFixed(2)}\n\n Max X: ${a.toFixed(2)}\n\n Min Y: ${u.toFixed(2)}\n\n Max Y: ${c.toFixed(2)}\n `.replace(/\s{2,}/g,"\n")}),b.append("g").attr("class","axis axis--y").call(uS.axisLeft(B).tickSizeOuter(-470)),y.append("text").attr("transform","rotate(-90)").attr("y",-30).attr("x",-225).attr("dy","1em").style("text-anchor","middle").text(h),b.append("g").attr("class","axis axis--x").attr("transform","translate(0,450)").call(uS.axisBottom(E).tickSizeOuter(-450)),y.append("text").attr("x",235).attr("y",500).style("text-anchor","middle").text(l),y._groups[0][0].outerHTML}},{key:"getEmptyHexagons",value:function(t,e){for(var n=[],r=[uS.extent(t,function(t){return t.x}),uS.extent(t,function(t){return t.y})],i=Math.cos(2*Math.PI/12)*e,o=Math.sin(2*Math.PI/12)*e,a=!1,u=r[1][0];u<=r[1][1]+e;u+=o+e){for(var c=r[0][0];c<=r[0][1]+e;c+=2*i){var s=c,f=u;if(a&&c>=r[0][1])break;a&&(s+=i),n.push({x:s,y:f})}a=!a}return n}}])}(PF);const lS=fS;function hS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(hS=function(){return!!t})()}var dS=t.default?t.default:e,pS=ZT()?ZT():JT,gS=function(t){function e(){var t,n,r,i;return o(this,e),n=this,r=l(r=e),(t=f(n,hS()?Reflect.construct(r,[],l(n).constructor):r.apply(n,i))).name="Scatter chart",t.module="Charts",t.description="Plots two-variable data as single points on a graph.",t.infoURL="https://wikipedia.org/wiki/Scatter_plot",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:qF},{name:"Field delimiter",type:"option",value:HF},{name:"Use column headers as labels",type:"boolean",value:!0},{name:"X label",type:"string",value:""},{name:"Y label",type:"string",value:""},{name:"Colour",type:"string",value:GF},{name:"Point radius",type:"number",value:10},{name:"Use colour from third column",type:"boolean",value:!1}],t}return d(e,t),s(e,[{key:"run",value:function(t,e){var n=Ek.charRep(e[0]),r=Ek.charRep(e[1]),i=e[2],o=Ek.escapeHtml(e[5]),a=e[6],u=e[7],c=e[3],s=e[4],f=(u?XF:WF)(t,n,r,i),l=f.headings,h=f.values;l&&(c=l.x,s=l.y);var d=(new pS.Document).createElement("svg"),p=470,g=450,y=(d=dS.select(d).attr("width","100%").attr("height","100%").attr("viewBox","0 0 500 500")).append("g").attr("transform","translate(30,10)"),m=dS.extent(h,function(t){return t[0]}),v=m[1]-m[0],b=dS.extent(h,function(t){return t[1]}),x=b[1]-b[0],w=dS.scaleLinear().domain([m[0]-.1*v,m[1]+.1*v]).range([0,p]),_=dS.scaleLinear().domain([b[0]-.1*x,b[1]+.1*x]).range([g,0]);return y.append("clipPath").attr("id","clip").append("rect").attr("width",p).attr("height",g),y.append("g").attr("class","points").attr("clip-path","url(#clip)").selectAll("circle").data(h).enter().append("circle").attr("cx",function(t){return w(t[0])}).attr("cy",function(t){return _(t[1])}).attr("r",function(t){return a}).attr("fill",function(t){return u?t[2]:o}).attr("stroke","rgba(0, 0, 0, 0.5)").attr("stroke-width","0.5").append("title").text(function(t){return`X: ${t[0]}\n\n Y: ${t[1]}\n\n `.replace(/\s{2,}/g,"\n")}),y.append("g").attr("class","axis axis--y").call(dS.axisLeft(_).tickSizeOuter(-470)),d.append("text").attr("transform","rotate(-90)").attr("y",-30).attr("x",-225).attr("dy","1em").style("text-anchor","middle").text(s),y.append("g").attr("class","axis axis--x").attr("transform","translate(0,450)").call(dS.axisBottom(w).tickSizeOuter(-450)),d.append("text").attr("x",235).attr("y",500).style("text-anchor","middle").text(c),d._groups[0][0].outerHTML}}])}(PF);const yS=gS;function mS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(mS=function(){return!!t})()}var vS=t.default?t.default:e,bS=ZT()?ZT():JT;function xS(t){delete t.__data__,t.childNodes&&t.childNodes.forEach(xS)}var wS=function(t){function e(){var t,n,r,i;return o(this,e),n=this,r=l(r=e),(t=f(n,mS()?Reflect.construct(r,[],l(n).constructor):r.apply(n,i))).name="Series chart",t.module="Charts",t.description="A time series graph is a line graph of repeated measurements taken over regular time intervals.",t.inputType="string",t.outputType="html",t.args=[{name:"Record delimiter",type:"option",value:qF},{name:"Field delimiter",type:"option",value:HF},{name:"X label",type:"string",value:""},{name:"Point radius",type:"number",value:1},{name:"Series colours",type:"string",value:"mediumseagreen, dodgerblue, tomato"}],t}return d(e,t),s(e,[{key:"run",value:function(t,e){var n=Ek.charRep(e[0]),r=Ek.charRep(e[1]),i=e[2],o=e[3],a=e[4].split(",").map(function(t){return Ek.escapeHtml(t)}),u=100,c=function(t,e,n){var r=VF(t,e,n,!1,3).values,i=new Set,o=Object.create(null);r.forEach(function(t){var e=t[0],n=t[1],r=parseFloat(t[2]);if(Number.isNaN(r))throw new dk("Values must be numbers in base 10.");i.add(n),void 0===o[e]&&(o[e]=Object.create(null)),o[e][n]=r}),i=fk(Array,ik(i));for(var a=[],u=0,c=Object.keys(o);u<c.length;u++){var s=c[u],f=o[s];a.push({name:s,data:f})}return{xValues:i,series:a}}(t,n,r),s=c.xValues,f=c.series,l=120*Object.keys(f).length,h=l+50+20,d=(new bS.Document).createElement("svg");d=vS.select(d).attr("width","100%").attr("height","100%").attr("viewBox",`0 0 500 ${h}`);var p=vS.scalePoint().domain(s).range([0,430]);d.append("g").attr("class","axis axis--x").attr("transform","translate(50, 50)").call(vS.axisTop(p).tickValues(s.filter(function(t,e){return[0,Math.round(s.length/2),s.length-1].indexOf(e)>=0}))),d.append("text").attr("x",250).attr("y",25).style("text-anchor","middle").text(i);var g={},y=430/s.length;s.forEach(function(t){var e=[];f.forEach(function(n){var r=n.data[t];void 0!==r&&e.push(`${n.name}: ${r}`)}),g[t]=e.join("\n")});var m=d.append("g").attr("transform","translate(50, 50)");m.append("g").selectAll("rect").data(s).enter().append("rect").attr("x",function(t){return p(t)-y/2}).attr("y",0).attr("width",y).attr("height",l).attr("stroke","none").attr("fill","transparent").append("title").text(function(t){return`${t}\n\n --\n\n ${g[t]}\n\n `.replace(/\s{2,}/g,"\n")});var v=d.append("g").attr("transform","translate(0, 50)");return f.forEach(function(t,e){var n=vS.extent(Object.values(t.data)),r=vS.scaleLinear().domain(n).range([u,0]),i=m.append("g").attr("transform",`translate(0, ${u*e+20*(e+1)})`),c="";s.forEach(function(e,n){var i=s[n+1],o=t.data[e],a=t.data[i];void 0!==o&&void 0!==a&&(e=p(e),i=p(i),o=r(o),a=r(a),c+=`M ${e} ${o} L ${i} ${a} z `)}),i.append("path").attr("d",c).attr("fill","none").attr("stroke",a[e%a.length]).attr("stroke-width","1"),s.forEach(function(n){var u=t.data[n];void 0!==u&&i.append("circle").attr("cx",p(n)).attr("cy",r(u)).attr("r",o).attr("fill",a[e%a.length]).append("title").text(function(t){return`${n}\n\n --\n\n ${g[n]}\n\n `.replace(/\s{2,}/g,"\n")})}),v.append("g").attr("transform",`translate(30, ${u*e+20*(e+1)})`).attr("class","axis axis--y").call(vS.axisLeft(r).ticks(5)),v.append("g").attr("transform",`translate(0, ${50+u*e+20*(e+1)})`).append("text").style("text-anchor","middle").attr("transform","rotate(-90)").text(t.name)}),xS(d.node()),d._groups[0][0].outerHTML}}])}(PF);const _S=wS;("undefined"==typeof self?{}:self.OpModules||{}).Charts={Entropy:jF,"Heatmap chart":tS,"Hex Density chart":lS,"Scatter chart":yS,"Series chart":_S}})()})(); |