d3-geo-zoom
Version:
Zoom and Pan D3 Geo projections
3 lines • 54.7 kB
JavaScript
// Version 1.5.5 d3-geo-zoom - https://github.com/vasturiano/d3-geo-zoom
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";var n="http://www.w3.org/1999/xhtml",e={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 r(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),e.hasOwnProperty(n)?{space:e[n],local:t}:t}function i(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===n&&e.documentElement.namespaceURI===n?e.createElement(t):e.createElementNS(r,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function u(t){var n=r(t);return(n.local?o:i)(n)}function a(){}function s(t){return null==t?a:function(){return this.querySelector(t)}}function l(){return[]}function c(t){return null==t?l:function(){return this.querySelectorAll(t)}}function h(t){return function(){return null==(n=t.apply(this,arguments))?[]:Array.isArray(n)?n:Array.from(n);var n}}function f(t){return function(){return this.matches(t)}}function p(t){return function(n){return n.matches(t)}}var v=Array.prototype.find;function d(){return this.firstElementChild}var m=Array.prototype.filter;function y(){return Array.from(this.children)}function g(t){return new Array(t.length)}function _(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function w(t,n,e,r,i,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new _(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function b(t,n,e,r,i,o,u){var a,s,l,c=new Map,h=n.length,f=o.length,p=new Array(h);for(a=0;a<h;++a)(s=n[a])&&(p[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?i[a]=s:c.set(l,s));for(a=0;a<f;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(r[a]=s,s.__data__=o[a],c.delete(l)):e[a]=new _(t,o[a]);for(a=0;a<h;++a)(s=n[a])&&c.get(p[a])===s&&(i[a]=s)}function x(t){return t.__data__}function k(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function A(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function M(t){return function(){this.removeAttribute(t)}}function E(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N(t,n){return function(){this.setAttribute(t,n)}}function z(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function S(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function T(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function j(t){return function(){this.style.removeProperty(t)}}function C(t,n,e){return function(){this.style.setProperty(t,n,e)}}function O(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function P(t,n){return t.style.getPropertyValue(n)||$(t).getComputedStyle(t,null).getPropertyValue(n)}function q(t){return function(){delete this[t]}}function X(t,n){return function(){this[t]=n}}function I(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Y(t){return t.trim().split(/^|\s+/)}function R(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=Y(t.getAttribute("class")||"")}function D(t,n){for(var e=R(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function B(t,n){for(var e=R(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function H(t){return function(){D(this,t)}}function L(t){return function(){B(this,t)}}function U(t,n){return function(){(n.apply(this,arguments)?D:B)(this,t)}}function G(){this.textContent=""}function F(t){return function(){this.textContent=t}}function K(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function W(){this.innerHTML=""}function Q(t){return function(){this.innerHTML=t}}function Z(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function J(){this.nextSibling&&this.parentNode.appendChild(this)}function tt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nt(){return null}function et(){var t=this.parentNode;t&&t.removeChild(this)}function rt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function it(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ot(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function ut(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).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=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function at(t,n,e){var r=$(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function st(t,n){return function(){return at(this,t,n)}}function lt(t,n){return function(){return at(this,t,n.apply(this,arguments))}}_.prototype={constructor:_,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},V.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ct=[null];function ht(t,n){this._groups=t,this._parents=n}function ft(){return new ht([[document.documentElement]],ct)}function pt(t){return"string"==typeof t?new ht([[document.querySelector(t)]],[document.documentElement]):new ht([[t]],ct)}function vt(t){let n;for(;n=t.sourceEvent;)t=n;return t}function dt(t,n){if(t=vt(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}ht.prototype=ft.prototype={constructor:ht,select:function(t){"function"!=typeof t&&(t=s(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],l=a.length,c=r[i]=new Array(l),h=0;h<l;++h)(o=a[h])&&(u=t.call(o,o.__data__,h,a))&&("__data__"in o&&(u.__data__=o.__data__),c[h]=u);return new ht(r,this._parents)},selectAll:function(t){t="function"==typeof t?h(t):c(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new ht(r,i)},selectChild:function(t){return this.select(null==t?d:function(t){return function(){return v.call(this.children,t)}}("function"==typeof t?t:p(t)))},selectChildren:function(t){return this.selectAll(null==t?y:function(t){return function(){return m.call(this.children,t)}}("function"==typeof t?t:p(t)))},filter:function(t){"function"!=typeof t&&(t=f(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new ht(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,x);var e,r=n?b:w,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var h=i[c],f=o[c],p=f.length,v=k(t.call(h,h&&h.__data__,c,i)),d=v.length,m=s[c]=new Array(d),y=a[c]=new Array(d);r(h,f,m,y,l[c]=new Array(p),v,n);for(var g,_,A=0,M=0;A<d;++A)if(g=m[A]){for(A>=M&&(M=A+1);!(_=y[M])&&++M<d;);g._next=_||null}}return(a=new ht(a,i))._enter=s,a._exit=l,a},enter:function(){return new ht(this._enter||this._groups.map(g),this._parents)},exit:function(){return new ht(this._exit||this._groups.map(g),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=new Array(i),s=0;s<u;++s)for(var l,c=e[s],h=r[s],f=c.length,p=a[s]=new Array(f),v=0;v<f;++v)(l=c[v]||h[v])&&(p[v]=l);for(;s<i;++s)a[s]=e[s];return new ht(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=A);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new ht(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=r(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?E:M:"function"==typeof n?e.local?T:S:e.local?z:N)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?j:"function"==typeof n?O:C)(t,n,null==e?"":e)):P(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?q:"function"==typeof n?I:X)(t,n)):this.node()[t]},classed:function(t,n){var e=Y(t+"");if(arguments.length<2){for(var r=R(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?U:n?H:L)(e,n))},text:function(t){return arguments.length?this.each(null==t?G:("function"==typeof t?K:F)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?Z:Q)(t)):this.node().innerHTML},raise:function(){return this.each(J)},lower:function(){return this.each(tt)},append:function(t){var n="function"==typeof t?t:u(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:u(t),r=null==n?nt:"function"==typeof n?n:s(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(et)},clone:function(t){return this.select(t?it:rt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?ut:ot,r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?lt:st)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var mt={value:()=>{}};function yt(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new gt(r)}function gt(t){this._=t}function _t(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function wt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=mt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}gt.prototype=yt.prototype={constructor:gt,on:function(t,n){var e,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");if(e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),u=-1,a=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++u<a;)if(e=(t=o[u]).type)i[e]=wt(i[e],t.name,n);else if(null==n)for(e in i)i[e]=wt(i[e],t.name,null);return this}for(;++u<a;)if((e=(t=o[u]).type)&&(e=_t(i[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new gt(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){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(n,e)}};const bt={capture:!0,passive:!1};function xt(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function At(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Mt(){}var Et=.7,Nt=1/Et,zt="\\s*([+-]?\\d+)\\s*",St="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$t=/^#([0-9a-f]{3,8})$/,jt=new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`),Ct=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),Ot=new RegExp(`^rgba\\(${zt},${zt},${zt},${St}\\)$`),Pt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${St}\\)$`),qt=new RegExp(`^hsl\\(${St},${Tt},${Tt}\\)$`),Xt=new RegExp(`^hsla\\(${St},${Tt},${Tt},${St}\\)$`),It={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 Yt(){return this.rgb().formatHex()}function Rt(){return this.rgb().formatRgb()}function Vt(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=$t.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Dt(n):3===e?new Lt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Bt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Bt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=jt.exec(t))?new Lt(n[1],n[2],n[3],1):(n=Ct.exec(t))?new Lt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ot.exec(t))?Bt(n[1],n[2],n[3],n[4]):(n=Pt.exec(t))?Bt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=qt.exec(t))?Qt(n[1],n[2]/100,n[3]/100,1):(n=Xt.exec(t))?Qt(n[1],n[2]/100,n[3]/100,n[4]):It.hasOwnProperty(t)?Dt(It[t]):"transparent"===t?new Lt(NaN,NaN,NaN,0):null}function Dt(t){return new Lt(t>>16&255,t>>8&255,255&t,1)}function Bt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Lt(t,n,e,r)}function Ht(t,n,e,r){return 1===arguments.length?((i=t)instanceof Mt||(i=Vt(i)),i?new Lt((i=i.rgb()).r,i.g,i.b,i.opacity):new Lt):new Lt(t,n,e,null==r?1:r);var i}function Lt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ut(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}`}function Gt(){const t=Ft(this.opacity);return`${1===t?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${1===t?")":`, ${t})`}`}function Ft(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Kt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wt(t){return((t=Kt(t))<16?"0":"")+t.toString(16)}function Qt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Jt(t,n,e,r)}function Zt(t){if(t instanceof Jt)return new Jt(t.h,t.s,t.l,t.opacity);if(t instanceof Mt||(t=Vt(t)),!t)return new Jt;if(t instanceof Jt)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new Jt(u,a,s,t.opacity)}function Jt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function tn(t){return(t=(t||0)%360)<0?t+360:t}function nn(t){return Math.max(0,Math.min(1,t||0))}function en(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}kt(Mt,Vt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Yt,formatHex:Yt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zt(this).formatHsl()},formatRgb:Rt,toString:Rt}),kt(Lt,Ht,At(Mt,{brighter(t){return t=null==t?Nt:Math.pow(Nt,t),new Lt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Et:Math.pow(Et,t),new Lt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Lt(Kt(this.r),Kt(this.g),Kt(this.b),Ft(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:Ut,formatHex:Ut,formatHex8:function(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}${Wt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gt,toString:Gt})),kt(Jt,(function(t,n,e,r){return 1===arguments.length?Zt(t):new Jt(t,n,e,null==r?1:r)}),At(Mt,{brighter(t){return t=null==t?Nt:Math.pow(Nt,t),new Jt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Et:Math.pow(Et,t),new Jt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Lt(en(t>=240?t-240:t+120,i,r),en(t,i,r),en(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Jt(tn(this.h),nn(this.s),nn(this.l),Ft(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=Ft(this.opacity);return`${1===t?"hsl(":"hsla("}${tn(this.h)}, ${100*nn(this.s)}%, ${100*nn(this.l)}%${1===t?")":`, ${t})`}`}}));var rn=t=>()=>t;function on(t){return 1==(t=+t)?un:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):rn(isNaN(n)?e:n)}}function un(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):rn(isNaN(t)?n:t)}var an=function t(n){var e=on(n);function r(t,n){var r=e((t=Ht(t)).r,(n=Ht(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=un(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function sn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var ln=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cn=new RegExp(ln.source,"g");function hn(t,n){var e,r,i,o=ln.lastIndex=cn.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=ln.exec(t))&&(r=cn.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:sn(e,r)})),o=cn.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})}var fn,pn=180/Math.PI,vn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dn(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*pn,skewX:Math.atan(s)*pn,scaleX:u,scaleY:a}}function mn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],s=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:sn(t,i)},{i:s-2,x:sn(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,s),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:sn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:sn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,s),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:sn(t,e)},{i:a-2,x:sn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var n,e=-1,r=s.length;++e<r;)a[(n=s[e]).i]=n.x(t);return a.join("")}}}var yn=mn((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?vn:dn(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),gn=mn((function(t){return null==t?vn:(fn||(fn=document.createElementNS("http://www.w3.org/2000/svg","g")),fn.setAttribute("transform",t),(t=fn.transform.baseVal.consolidate())?dn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):vn)}),", ",")",")");function _n(t){return((t=Math.exp(t))+1/t)/2}var wn,bn,xn=function t(n,e,r){function i(t,i){var o,u,a=t[0],s=t[1],l=t[2],c=i[0],h=i[1],f=i[2],p=c-a,v=h-s,d=p*p+v*v;if(d<1e-12)u=Math.log(f/l)/n,o=function(t){return[a+t*p,s+t*v,l*Math.exp(n*t*u)]};else{var m=Math.sqrt(d),y=(f*f-l*l+r*d)/(2*l*e*m),g=(f*f-l*l-r*d)/(2*f*e*m),_=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(g*g+1)-g);u=(w-_)/n,o=function(t){var r,i=t*u,o=_n(_),c=l/(e*m)*(o*(r=n*i+_,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[a+c*p,s+c*v,l*o/_n(n*i+_)]}}return o.duration=1e3*u*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4),kn=0,An=0,Mn=0,En=0,Nn=0,zn=0,Sn="object"==typeof performance&&performance.now?performance:Date,Tn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $n(){return Nn||(Tn(jn),Nn=Sn.now()+zn)}function jn(){Nn=0}function Cn(){this._call=this._time=this._next=null}function On(t,n,e){var r=new Cn;return r.restart(t,n,e),r}function Pn(){Nn=(En=Sn.now())+zn,kn=An=0;try{!function(){$n(),++kn;for(var t,n=wn;n;)(t=Nn-n._time)>=0&&n._call.call(void 0,t),n=n._next;--kn}()}finally{kn=0,function(){var t,n,e=wn,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:wn=n);bn=t,Xn(r)}(),Nn=0}}function qn(){var t=Sn.now(),n=t-En;n>1e3&&(zn-=n,En=t)}function Xn(t){kn||(An&&(An=clearTimeout(An)),t-Nn>24?(t<1/0&&(An=setTimeout(Pn,t-Sn.now()-zn)),Mn&&(Mn=clearInterval(Mn))):(Mn||(En=Sn.now(),Mn=setInterval(qn,1e3)),kn=1,Tn(Pn)))}function In(t,n,e){var r=new Cn;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Cn.prototype=On.prototype={constructor:Cn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$n():+e)+(null==n?0:+n),this._next||bn===this||(bn?bn._next=this:wn=this,bn=this),this._call=t,this._time=e,Xn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xn())}};var Yn=yt("start","end","cancel","interrupt"),Rn=[];function Vn(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}function u(o){var l,c,h,f;if(1!==e.state)return s();for(l in i)if((f=i[l]).name===e.name){if(3===f.state)return In(u);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(In((function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(h=e.tween.length),l=0,c=-1;l<h;++l)(f=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=f);r.length=c+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(s),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),s())}function s(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=On(o,0,e.time)}(t,e,{name:n,index:r,group:i,on:Yn,tween:Rn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Dn(t,n){var e=Hn(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Bn(t,n){var e=Hn(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Hn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ln(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function Un(t,n){var e,r;return function(){var i=Bn(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Gn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Bn(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function Fn(t,n,e){var r=t._id;return t.each((function(){var t=Bn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Hn(t,r).value[n]}}function Kn(t,n){var e;return("number"==typeof n?sn:n instanceof Vt?an:(e=Vt(n))?(n=e,an):hn)(t,n)}function Wn(t){return function(){this.removeAttribute(t)}}function Qn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zn(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Jn(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function te(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function ne(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function ee(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function re(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function ie(t,n){return function(){Dn(this,t).delay=+n.apply(this,arguments)}}function oe(t,n){return n=+n,function(){Dn(this,t).delay=n}}function ue(t,n){return function(){Bn(this,t).duration=+n.apply(this,arguments)}}function ae(t,n){return n=+n,function(){Bn(this,t).duration=n}}var se=ft.prototype.constructor;function le(t){return function(){this.style.removeProperty(t)}}var ce=0;function he(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function fe(){return++ce}var pe=ft.prototype;he.prototype={constructor:he,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=s(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,l,c=r[u],h=c.length,f=o[u]=new Array(h),p=0;p<h;++p)(a=c[p])&&(l=t.call(a,a.__data__,p,c))&&("__data__"in a&&(l.__data__=a.__data__),f[p]=l,Vn(f[p],n,e,p,f,Hn(a,e)));return new he(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=c(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],h=l.length,f=0;f<h;++f)if(s=l[f]){for(var p,v=t.call(s,s.__data__,f,l),d=Hn(s,e),m=0,y=v.length;m<y;++m)(p=v[m])&&Vn(p,n,e,m,v,d);o.push(v),u.push(s)}return new he(o,u,n,e)},selectChild:pe.selectChild,selectChildren:pe.selectChildren,filter:function(t){"function"!=typeof t&&(t=f(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new he(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],h=l.length,f=u[a]=new Array(h),p=0;p<h;++p)(s=l[p]||c[p])&&(f[p]=s);for(;a<r;++a)u[a]=n[a];return new he(u,this._parents,this._name,this._id)},selection:function(){return new se(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=fe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=Hn(u,n);Vn(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new he(r,this._parents,t,e)},call:pe.call,nodes:pe.nodes,node:pe.node,size:pe.size,empty:pe.empty,each:pe.each,on:function(t,n){var e=this._id;return arguments.length<2?Hn(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Dn:Bn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=r(t),i="transform"===e?gn:Kn;return this.attrTween(t,"function"==typeof n?(e.local?ne:te)(e,i,Fn(this,"attr."+t,n)):null==n?(e.local?Qn:Wn)(e):(e.local?Jn:Zn)(e,i,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=r(t);return this.tween(e,(i.local?ee:re)(i,n))},style:function(t,n,e){var r="transform"==(t+="")?yn:Kn;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=P(this,t),u=(this.style.removeProperty(t),P(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,le(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=P(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=P(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,Fn(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=Bn(this,t),l=s.on,c=null==s.value[u]?o||(o=le(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=P(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Fn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Hn(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Un:Gn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ie:oe)(n,t)):Hn(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ue:ae)(n,t)):Hn(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){Bn(this,t).ease=n}}(n,t)):Hn(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;Bn(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=Bn(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:pe[Symbol.iterator]};var ve={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function de(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}ft.prototype.interrupt=function(t){return this.each((function(){Ln(this,t)}))},ft.prototype.transition=function(t){var n,e;t instanceof he?(n=t._id,t=t._name):(n=fe(),(e=ve).time=$n(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&Vn(u,t,n,l,a,e||de(u,n));return new he(r,this._parents,t,n)};var me=t=>()=>t;function ye(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ge(t,n,e){this.k=t,this.x=n,this.y=e}ge.prototype={constructor:ge,scale:function(t){return 1===t?this:new ge(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ge(this.k,this.x+this.k*t,this.y+this.k*n)},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 _e=new ge(1,0,0);function we(t){t.stopImmediatePropagation()}function be(t){t.preventDefault(),t.stopImmediatePropagation()}function xe(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function ke(){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 Ae(){return this.__zoom||_e}function Me(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ee(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ne(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function ze(){var t,n,e,r=xe,i=ke,o=Ne,u=Me,a=Ee,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,h=xn,f=yt("start","zoom","end"),p=0,v=10;function d(t){t.property("__zoom",Ae).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,n){return(n=Math.max(s[0],Math.min(s[1],n)))===t.k?t:new ge(n,t.x,t.y)}function y(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new ge(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,n,e,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,u=w(t,o).event(r),a=i.apply(t,o),s=null==e?g(a):"function"==typeof e?e.apply(t,o):e,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=t.__zoom,f="function"==typeof n?n.apply(t,o):n,p=h(c.invert(s).concat(l/c.k),f.invert(s).concat(l/f.k));return function(t){if(1===t)t=f;else{var n=p(t),e=l/n[2];t=new ge(e,s[0]-n[0]*e,s[1]-n[1]*e)}u.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function x(t,...n){if(r.apply(this,arguments)){var e=w(this,n).event(t),i=this.__zoom,a=Math.max(s[0],Math.min(s[1],i.k*Math.pow(2,u.apply(this,arguments)))),c=dt(t);if(e.wheel)e.mouse[0][0]===c[0]&&e.mouse[0][1]===c[1]||(e.mouse[1]=i.invert(e.mouse[0]=c)),clearTimeout(e.wheel);else{if(i.k===a)return;e.mouse=[c,i.invert(c)],Ln(this),e.start()}be(t),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),150),e.zoom("mouse",o(y(m(i,a),e.mouse[0],e.mouse[1]),e.extent,l))}}function k(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,u=w(this,n,!0).event(t),a=pt(t.view).on("mousemove.zoom",(function(t){if(be(t),!u.moved){var n=t.clientX-c,e=t.clientY-h;u.moved=n*n+e*e>p}u.event(t).zoom("mouse",o(y(u.that.__zoom,u.mouse[0]=dt(t,i),u.mouse[1]),u.extent,l))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,n){var e=t.document.documentElement,r=pt(t).on("dragstart.drag",null);n&&(r.on("click.drag",xt,bt),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}(t.view,u.moved),be(t),u.event(t).end()}),!0),s=dt(t,i),c=t.clientX,h=t.clientY;!function(t){var n=t.document.documentElement,e=pt(t).on("dragstart.drag",xt,bt);"onselectstart"in n?e.on("selectstart.drag",xt,bt):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(t.view),we(t),u.mouse=[s,this.__zoom.invert(s)],Ln(this),u.start()}}function A(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,u=dt(t.changedTouches?t.changedTouches[0]:t,this),a=e.invert(u),s=e.k*(t.shiftKey?.5:2),h=o(y(m(e,s),u,a),i.apply(this,n),l);be(t),c>0?pt(this).transition().duration(c).call(_,h,u,t):pt(this).call(d.transform,h,u,t)}}function M(e,...i){if(r.apply(this,arguments)){var o,u,a,s,l=e.touches,c=l.length,h=w(this,i,e.changedTouches.length===c).event(e);for(we(e),u=0;u<c;++u)s=[s=dt(a=l[u],this),this.__zoom.invert(s),a.identifier],h.touch0?h.touch1||h.touch0[2]===s[2]||(h.touch1=s,h.taps=0):(h.touch0=s,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(n=s[0],t=setTimeout((function(){t=null}),500)),Ln(this),h.start())}}function E(t,...n){if(this.__zooming){var e,r,i,u,a=w(this,n).event(t),s=t.changedTouches,c=s.length;for(be(t),e=0;e<c;++e)i=dt(r=s[e],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var h=a.touch0[0],f=a.touch0[1],p=a.touch1[0],v=a.touch1[1],d=(d=p[0]-h[0])*d+(d=p[1]-h[1])*d,g=(g=v[0]-f[0])*g+(g=v[1]-f[1])*g;r=m(r,Math.sqrt(d/g)),i=[(h[0]+p[0])/2,(h[1]+p[1])/2],u=[(f[0]+v[0])/2,(f[1]+v[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],u=a.touch0[1]}a.zoom("touch",o(y(r,i,u),a.extent,l))}}function N(t,...r){if(this.__zooming){var i,o,u=w(this,r).event(t),a=t.changedTouches,s=a.length;for(we(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),500),i=0;i<s;++i)o=a[i],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=dt(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<v)){var l=pt(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return d.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",Ae),t!==i?_(t,n,e,r):i.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},d.scaleBy=function(t,n,e,r){d.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)}),e,r)},d.scaleTo=function(t,n,e,r){d.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,u=null==e?g(t):"function"==typeof e?e.apply(this,arguments):e,a=r.invert(u),s="function"==typeof n?n.apply(this,arguments):n;return o(y(m(r,s),u,a),t,l)}),e,r)},d.translateBy=function(t,n,e,r){d.transform(t,(function(){return o(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),i.apply(this,arguments),l)}),null,r)},d.translateTo=function(t,n,e,r,u){d.transform(t,(function(){var t=i.apply(this,arguments),u=this.__zoom,a=null==r?g(t):"function"==typeof r?r.apply(this,arguments):r;return o(_e.translate(a[0],a[1]).scale(u.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,l)}),r,u)},b.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,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=pt(this.that).datum();f.call(t,this.that,new ye(t,{sourceEvent:this.sourceEvent,target:d,type:t,transform:this.that.__zoom,dispatch:f}),n)}},d.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:me(+t),d):u},d.filter=function(t){return arguments.length?(r="function"==typeof t?t:me(!!t),d):r},d.touchable=function(t){return arguments.length?(a="function"==typeof t?t:me(!!t),d):a},d.extent=function(t){return arguments.length?(i="function"==typeof t?t:me([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),d):i},d.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],d):[s[0],s[1]]},d.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],d):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},d.constrain=function(t){return arguments.length?(o=t,d):o},d.duration=function(t){return arguments.length?(c=+t,d):c},d.interpolate=function(t){return arguments.length?(h=t,d):h},d.on=function(){var t=f.on.apply(f,arguments);return t===f?d:t},d.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,d):Math.sqrt(p)},d.tapDistance=function(t){return arguments.length?(v=+t,d):v},d}ge.prototype;var Se=Math.acos,Te=Math.asin,$e=Math.atan2,je=Math.cos,Ce=Math.hypot,Oe=Math.max,Pe=Math.min,qe=Math.PI,Xe=Math.sin,Ie=qe/180,Ye=180/qe;class Re{static fromCartesian([t,n,e]){return[0,e,-n,t]}static fromAngles([t,n,e]){n*=Ie/2,e=(e||0)*Ie/2;const r=Xe(t*=Ie/2),i=je(t),o=Xe(n),u=je(n),a=Xe(e),s=je(e);return[i*u*s+r*o*a,r*u*s-i*o*a,i*o*s+r*u*a,i*u*a-r*o*s]}static toAngles([t,n,e,r]){return[$e(2*(t*n+e*r),1-2*(n*n+e*e))*Ye,Te(Oe(-1,Pe(1,2*(t*e-r*n))))*Ye,$e(2*(t*r+n*e),1-2*(e*e+r*r))*Ye]}static interpolateAngles(t,n){const e=Re.interpolate(Re.fromAngles(t),Re.fromAngles(n));return t=>Re.toAngles(e(t))}static interpolateLinear([t,n,e,r],[i,o,u,a]){i-=t,o-=n,u-=e,a-=r;const s=new Array(4);return l=>{const c=Ce(s[0]=t+i*l,s[1]=n+o*l,s[2]=e+u*l,s[3]=r+a*l);return s[0]/=c,s[1]/=c,s[2]/=c,s[3]/=c,s}}static interpolate([t,n,e,r],[i,o,u,a]){let s=Re.dot([t,n,e,r],[i,o,u,a]);if(s<0&&(i=-i,o=-o,u=-u,a=-a,s=-s),s>.9995)return Re.interpolateLinear([t,n,e,r],[i,o,u,a]);const l=Se(Oe(-1,Pe(1,s))),c=new Array(4),h=Ce(i-=t*s,o-=n*s,u-=e*s,a-=r*s);return i/=h,o/=h,u/=h,a/=h,s=>{const h=l*s,f=Xe(h),p=je(h);return c[0]=t*p+i*f,c[1]=n*p+o*f,c[2]=e*p+u*f,c[3]=r*p+a*f,c}}static dot([t,n,e,r],[i,o,u,a]){return t*i+n*o+e*u+r*a}static multiply([t,n,e,r],[i,o,u,a]){return[t*i-n*o-e*u-r*a,t*o+n*i+e*a-r*u,t*u-n*a+e*i+r*o,t*a+n*u-e*o+r*i]}}var Ve=Re.fromAngles;function De(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}Ve.multiply=Re.multiply,Ve.rotation=Re.toAngles,Ve.interpolate=Re.interpolateAngles,Ve.cartesian=function(t){var n=t[0]*Ie,e=t[1]*Ie,r=je(e);return[r*je(n),r*Xe(n),Xe(e)]},Ve.delta=function(t,n,e){2==arguments.length&&(e=1);const r=Math.sqrt;function i(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}var o=function(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}(t,n),u=r(i(o,o));if(!u)return[1,0,0,0];var a=e*Se(Oe(-1,Pe(1,i(t,n))))/2,s=Xe(a);return[je(a),o[2]/u*s,-o[1]/u*s,o[0]/u*s]};var Be="object"==typeof global&&global&&global.Object===Object&&global,He="object"==typeof self&&self&&self.Object===Object&&self,Le=Be||He||Function("return this")(),Ue=function(){return Le.Date.now()},Ge=/\s/;var Fe=/^\s+/;function Ke(t){return t?t.slice(0,function(t){for(var n=t.length;n--&&Ge.test(t.charAt(n)););return n}(t)+1).replace(Fe,""):t}var We=Le.Symbol,Qe=Object.prototype,Ze=Qe.hasOwnProperty,Je=Qe.toString,tr=We?We.toStringTag:void 0;var nr=Object.prototype.toString;var er=We?We.toStringTag:void 0;function rr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":er&&er in Object(t)?function(t){var n=Ze.call(t,tr),e=t[tr];try{t[tr]=void 0;var r=!0}catch(t){}var i=Je.call(t);return r&&(n?t[tr]=e:delete t[tr]),i}(t):function(t){return nr.call(t)}(t)}var ir=/^[-+]0x[0-9a-f]+$/i,or=/^0b[01]+$/i,ur=/^0o[0-7]+$/i,ar=parseInt;function sr(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==rr(t)}(t))return NaN;if(De(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=De(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var e=or.test(t);return e||ur.test(t)?ar(t.slice(2),e?2:8):ir.test(t)?NaN:+t}var lr=Math.max,cr=Math.min;function hr(t,n,e){var r,i,o,u,a,s,l=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(n){var e=r,o=i;return r=i=void 0,l=n,u=t.apply(o,e)}function v(t){var e=t-s;return void 0===s||e>=n||e<0||h&&t-l>=o}function d(){var t=Ue();if(v(t))return m(t);a=setTimeout(d,function(t){var e=n-(t-s);return h?cr(e,o-(t-l)):e}(t))}function m(t){return a=void 0,f&&r?p(t):(r=i=void 0,u)}function y(){var t=Ue(),e=v(t);if(r=arguments,i=this,s=t,e){if(void 0===a)return function(t){return l=t,a=setTimeout(d,n),c?p(t):u}(s);if(h)return clearTimeout(a),a=setTimeout(d,n),p(s)}return void 0===a&&(a=setTimeout(d,n)),u}return n=sr(n)||0,De(e)&&(c=!!e.leading,o=(h="maxWait"in e)?lr(sr(e.maxWait)||0,n):o,f="trailing"in e?!!e.trailing:f),y.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=s=i=a=void 0},y.flush=function(){return void 0===a?u:m(Ue())},y}function fr(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function pr(t,n,e){return Object.defineProperty(t,"prototype",{writable:!1}),t}function vr(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,u,a=[],s=!0,l=!1;try{if(o=(e=e.call(t)).next,0===n);else for(;!(s=(r=o.call(e)).done)&&(a.push(r.value),a.length!==n);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw i}}return a}}(t,n)||function(t,n){if(t){if("string"==typeof t)return fr(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?fr(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var dr=pr((function t(n,e){var r=e.default,i=void 0===r?null:r,o=e.triggerUpdate,u=void 0===o||o,a=e.onChange,s=void 0===a?function(t,n){}:a;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=n,this.defaultVal=i,this.triggerUpdate=u,this.onChange=s}));var mr,yr,gr,_r,wr,br,xr,kr,Ar,Mr,Er,Nr,zr,Sr,Tr=(yr=(mr={props:{projection:{onChange:function(t,n){n.unityScale=t?t.scale():1}},scaleExtent:{default:[.1,1e3],onChange:function(t,n){n.zoom&&n.zoom.scaleExtent(t)}},northUp:{default:!1},onMove:{defaultVal:function(){}}},init:function(t,n){var e,r,i;function o(n){var e,r,i=(r=t,(e=n).target&&(e=vt(e),void 0===r&&(r=e.currentTarget),e=e.touches||[e]),Array.from(e,(t=>dt(t,r))));return i&&i.length>1?[0,1].map((function(t){return(n=i.map((function(n){return n[t]}))).reduce((function(t,n){return t+n}),0)/n.length;var n})):i.length?i[0]:[void 0,void 0]}pt(t).call(n.zoom=ze().scaleExtent(n.scaleExtent).on("start",(function(t){n.projection&&(e=Ve.cartesian(n.projection.invert(o(t))),r=n.projection.rotate(),i=Ve(r))})).on("zoom",(function(t){if(n.projection){var u=t.transform.k*n.unityScale;n.projection.scale(u);var a=Ve.cartesian(n.projection.rotate(r).invert(o(t))),s=Ve.multiply(i,Ve.delta(e,a)),l=Ve.rotation(s);n.northUp&&(l[2]=0),n.projection.rotate(l),n.onMove({scale:u,rotation:l})}})))}}).stateInit,gr=void 0===yr?function(){return{}}:yr,_r=mr.props,wr=void 0===_r?{}:_r,br=mr.methods,xr=void 0===br?{}:br,kr=mr.aliases,Ar=void 0===kr?{}:kr,Mr=mr.init,Er=void 0===Mr?function(){}:Mr,Nr=mr.update,zr=void 0===Nr?function(){}:Nr,Sr=Object.keys(wr).map((function(t){return new dr(t,wr[t])})),function t(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];var i=!!(this instanceof t?this.constructor:void 0),o=i?e.shift():void 0,u=e[0],a=void 0===u?{}:u,s=Object.assign({},gr instanceof Function?gr(a):gr,{initialised:!1}),l={};function c(t){return h(t,a),f(),c}var h=function(t,n){Er.call(c,t,s,n),s.initialised=!0},f=hr((function(){s.initialised&&(zr.call(c,s,l),l={})}),1);return Sr.forEach((function(t){c[t.name]=function(t){var n=t.name,e=t.triggerUpdate,r=void 0!==e&&e,i=t.onChange,o=void 0===i?function(t,n){}:i,u=t.defaultVal,a=void 0===u?null:u;return function(t){var e=s[n];if(!arguments.length)return e;var i=void 0===t?a:t;return s[n]=i,o.call(c,i,s,e),!l.hasOwnProperty(n)&&(l[n]=e),r&&f(),c}}(t)})),Object.keys(xr).forEach((function(t){c[t]=function(){for(var n,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return(n=xr[t]).call.apply(n,[c,s].concat(r))}})),Object.entries(Ar).forEach((function(t){var n=vr(t,2),e=n[0],r=n[1];return c[e]=c[r]})),c.resetProps=function(){return Sr.forEach((function(t){c[t.name](t.defaultVal)})),c},c.resetProps(),s._rerender=f,i&&o&&c(o),c});t.geoZoom=Tr}));