rolandbergergraph
Version:
1 lines • 109 kB
JavaScript
"use strict";var t=require("@babel/runtime-corejs3/core-js-stable/object/keys"),e=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"),n=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),r=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"),i=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),a=require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"),f=require("@babel/runtime-corejs3/core-js-stable/object/define-properties"),c=require("@babel/runtime-corejs3/core-js-stable/object/define-property"),o=require("@babel/runtime-corejs3/helpers/esm/classCallCheck"),u=require("@babel/runtime-corejs3/helpers/esm/createClass"),s=require("@babel/runtime-corejs3/helpers/esm/defineProperty"),h=require("@babel/runtime-corejs3/core-js-stable/instance/map"),l=require("@babel/runtime-corejs3/core-js-stable/instance/slice");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var b=d(t),_=d(e),p=d(n),y=d(r),g=d(i),v=d(a),m=d(f),w=d(c),x=d(o),M=d(u),A=d(s),T=d(h),N=d(l);function C(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function k(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function S(t){let e,n,r;function i(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=C,n=(e,n)=>C(t(e),n),r=(e,n)=>t(e)-n):(e=t===C||t===k?t:E,n=t,r=t),{left:i,center:function(t,e,n=0,a=t.length){const f=i(t,e,n,a-1);return f>n&&r(t[f-1],e)>-r(t[f],e)?f-1:f},right:function(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<=0?i=e+1:a=e}while(i<a)}return i}}}function E(){return 0}S(C),S((function(t){return null===t?NaN:+t})).center;var D={value:()=>{}};function U(){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 j(r)}function j(t){this._=t}function $(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function q(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=D,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}j.prototype=U.prototype={constructor:j,on:function(t,e){var n,r,i=this._,a=(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}}))),f=-1,c=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++f<c;)if(n=(t=a[f]).type)i[n]=q(i[n],t.name,e);else if(null==e)for(n in i)i[n]=q(i[n],t.name,null);return this}for(;++f<c;)if((n=(t=a[f]).type)&&(n=$(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new j(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].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,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Y="http://www.w3.org/1999/xhtml",F={svg:"http://www.w3.org/2000/svg",xhtml:Y,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function H(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),F.hasOwnProperty(e)?{space:F[e],local:t}:t}function P(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Y&&e.documentElement.namespaceURI===Y?e.createElement(t):e.createElementNS(n,t)}}function O(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function L(t){var e=H(t);return(e.local?O:P)(e)}function R(){}function z(t){return null==t?R:function(){return this.querySelector(t)}}function I(){return[]}function X(t){return null==t?I:function(){return this.querySelectorAll(t)}}function B(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}function Z(t){return function(){return this.matches(t)}}function V(t){return function(e){return e.matches(t)}}var W=Array.prototype.find;function Q(){return this.firstElementChild}var J=Array.prototype.filter;function G(){return Array.from(this.children)}function K(t){return new Array(t.length)}function tt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function et(t,e,n,r,i,a){for(var f,c=0,o=e.length,u=a.length;c<u;++c)(f=e[c])?(f.__data__=a[c],r[c]=f):n[c]=new tt(t,a[c]);for(;c<o;++c)(f=e[c])&&(i[c]=f)}function nt(t,e,n,r,i,a,f){var c,o,u,s=new Map,h=e.length,l=a.length,d=new Array(h);for(c=0;c<h;++c)(o=e[c])&&(d[c]=u=f.call(o,o.__data__,c,e)+"",s.has(u)?i[c]=o:s.set(u,o));for(c=0;c<l;++c)u=f.call(t,a[c],c,a)+"",(o=s.get(u))?(r[c]=o,o.__data__=a[c],s.delete(u)):n[c]=new tt(t,a[c]);for(c=0;c<h;++c)(o=e[c])&&s.get(d[c])===o&&(i[c]=o)}function rt(t){return t.__data__}function it(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function at(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ft(t){return function(){this.removeAttribute(t)}}function ct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ot(t,e){return function(){this.setAttribute(t,e)}}function ut(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function st(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ht(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 lt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dt(t){return function(){this.style.removeProperty(t)}}function bt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function _t(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function pt(t,e){return t.style.getPropertyValue(e)||lt(t).getComputedStyle(t,null).getPropertyValue(e)}function yt(t){return function(){delete this[t]}}function gt(t,e){return function(){this[t]=e}}function vt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function mt(t){return t.trim().split(/^|\s+/)}function wt(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=mt(t.getAttribute("class")||"")}function Mt(t,e){for(var n=wt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function At(t,e){for(var n=wt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Tt(t){return function(){Mt(this,t)}}function Nt(t){return function(){At(this,t)}}function Ct(t,e){return function(){(e.apply(this,arguments)?Mt:At)(this,t)}}function kt(){this.textContent=""}function St(t){return function(){this.textContent=t}}function Et(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Dt(){this.innerHTML=""}function Ut(t){return function(){this.innerHTML=t}}function jt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function $t(){this.nextSibling&&this.parentNode.appendChild(this)}function qt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yt(){return null}function Ft(){var t=this.parentNode;t&&t.removeChild(this)}function Ht(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ot(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++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 Lt(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var f=0,c=i.length;f<c;++f)if((r=i[f]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Rt(t,e,n){var r=lt(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 zt(t,e){return function(){return Rt(this,t,e)}}function It(t,e){return function(){return Rt(this,t,e.apply(this,arguments))}}tt.prototype={constructor:tt,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)}},xt.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}};var Xt=[null];function Bt(t,e){this._groups=t,this._parents=e}function Zt(){return new Bt([[document.documentElement]],Xt)}function Vt(t){return"string"==typeof t?new Bt([[document.querySelector(t)]],[document.documentElement]):new Bt([[t]],Xt)}Bt.prototype=Zt.prototype={constructor:Bt,select:function(t){"function"!=typeof t&&(t=z(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,f,c=e[i],o=c.length,u=r[i]=new Array(o),s=0;s<o;++s)(a=c[s])&&(f=t.call(a,a.__data__,s,c))&&("__data__"in a&&(f.__data__=a.__data__),u[s]=f);return new Bt(r,this._parents)},selectAll:function(t){t="function"==typeof t?B(t):X(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var f,c=e[a],o=c.length,u=0;u<o;++u)(f=c[u])&&(r.push(t.call(f,f.__data__,u,c)),i.push(f));return new Bt(r,i)},selectChild:function(t){return this.select(null==t?Q:function(t){return function(){return W.call(this.children,t)}}("function"==typeof t?t:V(t)))},selectChildren:function(t){return this.selectAll(null==t?G:function(t){return function(){return J.call(this.children,t)}}("function"==typeof t?t:V(t)))},filter:function(t){"function"!=typeof t&&(t=Z(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,f=e[i],c=f.length,o=r[i]=[],u=0;u<c;++u)(a=f[u])&&t.call(a,a.__data__,u,f)&&o.push(a);return new Bt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,rt);var n,r=e?nt:et,i=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var f=a.length,c=new Array(f),o=new Array(f),u=new Array(f),s=0;s<f;++s){var h=i[s],l=a[s],d=l.length,b=it(t.call(h,h&&h.__data__,s,i)),_=b.length,p=o[s]=new Array(_),y=c[s]=new Array(_);r(h,l,p,y,u[s]=new Array(d),b,e);for(var g,v,m=0,w=0;m<_;++m)if(g=p[m]){for(m>=w&&(w=m+1);!(v=y[w])&&++w<_;);g._next=v||null}}return(c=new Bt(c,i))._enter=o,c._exit=u,c},enter:function(){return new Bt(this._enter||this._groups.map(K),this._parents)},exit:function(){return new Bt(this._exit||this._groups.map(K),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=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?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,f=Math.min(i,a),c=new Array(i),o=0;o<f;++o)for(var u,s=n[o],h=r[o],l=s.length,d=c[o]=new Array(l),b=0;b<l;++b)(u=s[b]||h[b])&&(d[b]=u);for(;o<i;++o)c[o]=n[o];return new Bt(c,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,f=i[a];--a>=0;)(r=i[a])&&(f&&4^r.compareDocumentPosition(f)&&f.parentNode.insertBefore(r,f),f=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=at);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var f,c=n[a],o=c.length,u=i[a]=new Array(o),s=0;s<o;++s)(f=c[s])&&(u[s]=f);u.sort(e)}return new Bt(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,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var f=r[i];if(f)return f}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],f=0,c=a.length;f<c;++f)(i=a[f])&&t.call(i,i.__data__,f,a);return this},attr:function(t,e){var n=H(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?ct:ft:"function"==typeof e?n.local?ht:st:n.local?ut:ot)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?dt:"function"==typeof e?_t:bt)(t,e,null==n?"":n)):pt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?yt:"function"==typeof e?vt:gt)(t,e)):this.node()[t]},classed:function(t,e){var n=mt(t+"");if(arguments.length<2){for(var r=wt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Ct:e?Tt:Nt)(n,e))},text:function(t){return arguments.length?this.each(null==t?kt:("function"==typeof t?Et:St)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Dt:("function"==typeof t?jt:Ut)(t)):this.node().innerHTML},raise:function(){return this.each($t)},lower:function(){return this.each(qt)},append:function(t){var e="function"==typeof t?t:L(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:L(t),r=null==e?Yt:"function"==typeof e?e:z(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ft)},clone:function(t){return this.select(t?Pt:Ht)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=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+""),f=a.length;if(!(arguments.length<2)){for(c=e?Lt:Ot,r=0;r<f;++r)this.each(c(a[r],e,n));return this}var c=this.node().__on;if(c)for(var o,u=0,s=c.length;u<s;++u)for(r=0,o=c[u];r<f;++r)if((i=a[r]).type===o.type&&i.name===o.name)return o.value},dispatch:function(t,e){return this.each(("function"==typeof e?It:zt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,f=i.length;a<f;++a)(r=i[a])&&(yield r)}};var Wt=0;function Qt(){this._="@"+(++Wt).toString(36)}function Jt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Gt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Kt(){}Qt.prototype={constructor:Qt,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._}};var te=.7,ee=1/te,ne="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,fe=new RegExp(`^rgb\\(${ne},${ne},${ne}\\)$`),ce=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),oe=new RegExp(`^rgba\\(${ne},${ne},${ne},${re}\\)$`),ue=new RegExp(`^rgba\\(${ie},${ie},${ie},${re}\\)$`),se=new RegExp(`^hsl\\(${re},${ie},${ie}\\)$`),he=new RegExp(`^hsla\\(${re},${ie},${ie},${re}\\)$`),le={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 de(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function _e(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ae.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?pe(e):3===n?new me(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ye(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ye(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=fe.exec(t))?new me(e[1],e[2],e[3],1):(e=ce.exec(t))?new me(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=oe.exec(t))?ye(e[1],e[2],e[3],e[4]):(e=ue.exec(t))?ye(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=se.exec(t))?Ne(e[1],e[2]/100,e[3]/100,1):(e=he.exec(t))?Ne(e[1],e[2]/100,e[3]/100,e[4]):le.hasOwnProperty(t)?pe(le[t]):"transparent"===t?new me(NaN,NaN,NaN,0):null}function pe(t){return new me(t>>16&255,t>>8&255,255&t,1)}function ye(t,e,n,r){return r<=0&&(t=e=n=NaN),new me(t,e,n,r)}function ge(t){return t instanceof Kt||(t=_e(t)),t?new me((t=t.rgb()).r,t.g,t.b,t.opacity):new me}function ve(t,e,n,r){return 1===arguments.length?ge(t):new me(t,e,n,null==r?1:r)}function me(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function we(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}`}function xe(){const t=Me(this.opacity);return`${1===t?"rgb(":"rgba("}${Ae(this.r)}, ${Ae(this.g)}, ${Ae(this.b)}${1===t?")":`, ${t})`}`}function Me(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ae(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Te(t){return((t=Ae(t))<16?"0":"")+t.toString(16)}function Ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ke(t,e,n,r)}function Ce(t){if(t instanceof ke)return new ke(t.h,t.s,t.l,t.opacity);if(t instanceof Kt||(t=_e(t)),!t)return new ke;if(t instanceof ke)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),f=NaN,c=a-i,o=(a+i)/2;return c?(f=e===a?(n-r)/c+6*(n<r):n===a?(r-e)/c+2:(e-n)/c+4,c/=o<.5?a+i:2-a-i,f*=60):c=o>0&&o<1?0:f,new ke(f,c,o,t.opacity)}function ke(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Se(t){return(t=(t||0)%360)<0?t+360:t}function Ee(t){return Math.max(0,Math.min(1,t||0))}function De(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Jt(Kt,_e,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:de,formatHex:de,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ce(this).formatHsl()},formatRgb:be,toString:be}),Jt(me,ve,Gt(Kt,{brighter(t){return t=null==t?ee:Math.pow(ee,t),new me(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?te:Math.pow(te,t),new me(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new me(Ae(this.r),Ae(this.g),Ae(this.b),Me(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:we,formatHex:we,formatHex8:function(){return`#${Te(this.r)}${Te(this.g)}${Te(this.b)}${Te(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xe,toString:xe})),Jt(ke,(function(t,e,n,r){return 1===arguments.length?Ce(t):new ke(t,e,n,null==r?1:r)}),Gt(Kt,{brighter(t){return t=null==t?ee:Math.pow(ee,t),new ke(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?te:Math.pow(te,t),new ke(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 me(De(t>=240?t-240:t+120,i,r),De(t,i,r),De(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ke(Se(this.h),Ee(this.s),Ee(this.l),Me(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=Me(this.opacity);return`${1===t?"hsl(":"hsla("}${Se(this.h)}, ${100*Ee(this.s)}%, ${100*Ee(this.l)}%${1===t?")":`, ${t})`}`}}));const Ue=Math.PI/180,je=180/Math.PI,$e=.96422,qe=1,Ye=.82521,Fe=4/29,He=6/29,Pe=3*He*He,Oe=He*He*He;function Le(t){if(t instanceof Re)return new Re(t.l,t.a,t.b,t.opacity);if(t instanceof Ze)return Ve(t);t instanceof me||(t=ge(t));var e,n,r=Be(t.r),i=Be(t.g),a=Be(t.b),f=ze((.2225045*r+.7168786*i+.0606169*a)/qe);return r===i&&i===a?e=n=f:(e=ze((.4360747*r+.3850649*i+.1430804*a)/$e),n=ze((.0139322*r+.0971045*i+.7141733*a)/Ye)),new Re(116*f-16,500*(e-f),200*(f-n),t.opacity)}function Re(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function ze(t){return t>Oe?Math.pow(t,1/3):t/Pe+Fe}function Ie(t){return t>He?t*t*t:Pe*(t-Fe)}function Xe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Be(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ze(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ve(t){if(isNaN(t.h))return new Re(t.l,0,0,t.opacity);var e=t.h*Ue;return new Re(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Jt(Re,(function(t,e,n,r){return 1===arguments.length?Le(t):new Re(t,e,n,null==r?1:r)}),Gt(Kt,{brighter(t){return new Re(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Re(this.l-18*(null==t?1:t),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 me(Xe(3.1338561*(e=$e*Ie(e))-1.6168667*(t=qe*Ie(t))-.4906146*(n=Ye*Ie(n))),Xe(-.9787684*e+1.9161415*t+.033454*n),Xe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Jt(Ze,(function(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ze)return new Ze(t.h,t.c,t.l,t.opacity);if(t instanceof Re||(t=Le(t)),0===t.a&&0===t.b)return new Ze(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*je;return new Ze(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ze(t,e,n,null==r?1:r)}),Gt(Kt,{brighter(t){return new Ze(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Ze(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Ve(this).rgb()}}));var We=-.14861,Qe=1.78277,Je=-.29227,Ge=-.90649,Ke=1.97294,tn=Ke*Ge,en=Ke*Qe,nn=Qe*Je-Ge*We;function rn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof an)return new an(t.h,t.s,t.l,t.opacity);t instanceof me||(t=ge(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(nn*r+tn*e-en*n)/(nn+tn-en),a=r-i,f=(Ke*(n-i)-Je*a)/Ge,c=Math.sqrt(f*f+a*a)/(Ke*i*(1-i)),o=c?Math.atan2(f,a)*je-120:NaN;return new an(o<0?o+360:o,c,i,t.opacity)}(t):new an(t,e,n,null==r?1:r)}function an(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Jt(an,rn,Gt(Kt,{brighter(t){return t=null==t?ee:Math.pow(ee,t),new an(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?te:Math.pow(te,t),new an(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*Ue,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new me(255*(e+n*(We*r+Qe*i)),255*(e+n*(Je*r+Ge*i)),255*(e+n*(Ke*r)),this.opacity)}}));var fn=t=>()=>t;function cn(t,e){return function(n){return t+n*e}}function on(t){return 1==(t=+t)?un: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):fn(isNaN(e)?n:e)}}function un(t,e){var n=e-t;return n?cn(t,n):fn(isNaN(t)?e:t)}var sn=function t(e){var n=on(e);function r(t,e){var r=n((t=ve(t)).r,(e=ve(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),f=un(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=f(e),t+""}}return r.gamma=t,r}(1);var hn,ln=(hn=function(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],a=t[r+1],f=r>0?t[r-1]:2*i-a,c=r<e-1?t[r+2]:2*a-i;return function(t,e,n,r,i){var a=t*t,f=a*t;return((1-3*t+3*a-f)*e+(4-6*a+3*f)*n+(1+3*t+3*a-3*f)*r+f*i)/6}((n-r/e)*e,f,i,a,c)}},function(t){var e,n,r=t.length,i=new Array(r),a=new Array(r),f=new Array(r);for(e=0;e<r;++e)n=ve(t[e]),i[e]=n.r||0,a[e]=n.g||0,f[e]=n.b||0;return i=hn(i),a=hn(a),f=hn(f),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=f(t),n+""}});function dn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var bn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_n=new RegExp(bn.source,"g");function pn(t,e){var n,r,i,a=bn.lastIndex=_n.lastIndex=0,f=-1,c=[],o=[];for(t+="",e+="";(n=bn.exec(t))&&(r=_n.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),c[f]?c[f]+=i:c[++f]=i),(n=n[0])===(r=r[0])?c[f]?c[f]+=r:c[++f]=r:(c[++f]=null,o.push({i:f,x:dn(n,r)})),a=_n.lastIndex;return a<e.length&&(i=e.slice(a),c[f]?c[f]+=i:c[++f]=i),c.length<2?o[0]?function(t){return function(e){return t(e)+""}}(o[0].x):function(t){return function(){return t}}(e):(e=o.length,function(t){for(var n,r=0;r<e;++r)c[(n=o[r]).i]=n.x(t);return c.join("")})}var yn,gn=180/Math.PI,vn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mn(t,e,n,r,i,a){var f,c,o;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(o=t*n+e*r)&&(n-=t*o,r-=e*o),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,o/=c),t*r<e*n&&(t=-t,e=-e,o=-o,f=-f),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*gn,skewX:Math.atan(o)*gn,scaleX:f,scaleY:c}}function wn(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,f){var c=[],o=[];return a=t(a),f=t(f),function(t,r,i,a,f,c){if(t!==i||r!==a){var o=f.push("translate(",null,e,null,n);c.push({i:o-4,x:dn(t,i)},{i:o-2,x:dn(r,a)})}else(i||a)&&f.push("translate("+i+e+a+n)}(a.translateX,a.translateY,f.translateX,f.translateY,c,o),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:dn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,f.rotate,c,o),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:dn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,f.skewX,c,o),function(t,e,n,r,a,f){if(t!==n||e!==r){var c=a.push(i(a)+"scale(",null,",",null,")");f.push({i:c-4,x:dn(t,n)},{i:c-2,x:dn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,f.scaleX,f.scaleY,c,o),a=f=null,function(t){for(var e,n=-1,r=o.length;++n<r;)c[(e=o[n]).i]=e.x(t);return c.join("")}}}var xn=wn((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?vn:mn(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Mn=wn((function(t){return null==t?vn:(yn||(yn=document.createElementNS("http://www.w3.org/2000/svg","g")),yn.setAttribute("transform",t),(t=yn.transform.baseVal.consolidate())?mn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):vn)}),", ",")",")");function An(t){return((t=Math.exp(t))+1/t)/2}function Tn(t){return function e(n){function r(e,r){var i=t((e=rn(e)).h,(r=rn(r)).h),a=un(e.s,r.s),f=un(e.l,r.l),c=un(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=f(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}!function t(e,n,r){function i(t,i){var a,f,c=t[0],o=t[1],u=t[2],s=i[0],h=i[1],l=i[2],d=s-c,b=h-o,_=d*d+b*b;if(_<1e-12)f=Math.log(l/u)/e,a=function(t){return[c+t*d,o+t*b,u*Math.exp(e*t*f)]};else{var p=Math.sqrt(_),y=(l*l-u*u+r*_)/(2*u*n*p),g=(l*l-u*u-r*_)/(2*l*n*p),v=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(g*g+1)-g);f=(m-v)/e,a=function(t){var r,i=t*f,a=An(v),s=u/(n*p)*(a*(r=e*i+v,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[c+s*d,o+s*b,u*a/An(e*i+v)]}}return a.duration=1e3*f*e/Math.SQRT2,a}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),Tn((function(t,e){var n=e-t;return n?cn(t,n>180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(t)?e:t)}));var Nn,Cn,kn=Tn(un),Sn=0,En=0,Dn=0,Un=1e3,jn=0,$n=0,qn=0,Yn="object"==typeof performance&&performance.now?performance:Date,Fn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Hn(){return $n||(Fn(Pn),$n=Yn.now()+qn)}function Pn(){$n=0}function On(){this._call=this._time=this._next=null}function Ln(t,e,n){var r=new On;return r.restart(t,e,n),r}function Rn(){$n=(jn=Yn.now())+qn,Sn=En=0;try{!function(){Hn(),++Sn;for(var t,e=Nn;e;)(t=$n-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Sn}()}finally{Sn=0,function(){var t,e,n=Nn,r=1/0;for(;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:Nn=e);Cn=t,In(r)}(),$n=0}}function zn(){var t=Yn.now(),e=t-jn;e>Un&&(qn-=e,jn=t)}function In(t){Sn||(En&&(En=clearTimeout(En)),t-$n>24?(t<1/0&&(En=setTimeout(Rn,t-Yn.now()-qn)),Dn&&(Dn=clearInterval(Dn))):(Dn||(jn=Yn.now(),Dn=setInterval(zn,Un)),Sn=1,Fn(Rn)))}function Xn(t,e,n){var r=new On;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}On.prototype=Ln.prototype={constructor:On,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Hn():+n)+(null==e?0:+e),this._next||Cn===this||(Cn?Cn._next=this:Nn=this,Cn=this),this._call=t,this._time=n,In()},stop:function(){this._call&&(this._call=null,this._time=1/0,In())}};var Bn=U("start","end","cancel","interrupt"),Zn=[],Vn=0,Wn=1,Qn=2,Jn=3,Gn=4,Kn=5,tr=6;function er(t,e,n,r,i,a){var f=t.__transition;if(f){if(n in f)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=Wn,n.timer.restart(f,n.delay,n.time),n.delay<=t&&f(t-n.delay)}function f(a){var u,s,h,l;if(n.state!==Wn)return o();for(u in i)if((l=i[u]).name===n.name){if(l.state===Jn)return Xn(f);l.state===Gn?(l.state=tr,l.timer.stop(),l.on.call("interrupt",t,t.__data__,l.index,l.group),delete i[u]):+u<e&&(l.state=tr,l.timer.stop(),l.on.call("cancel",t,t.__data__,l.index,l.group),delete i[u])}if(Xn((function(){n.state===Jn&&(n.state=Gn,n.timer.restart(c,n.delay,n.time),c(a))})),n.state=Qn,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Qn){for(n.state=Jn,r=new Array(h=n.tween.length),u=0,s=-1;u<h;++u)(l=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++s]=l);r.length=s+1}}function c(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=Kn,1),a=-1,f=r.length;++a<f;)r[a].call(t,i);n.state===Kn&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){for(var r in n.state=tr,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Ln(a,0,n.time)}(t,n,{name:e,index:r,group:i,on:Bn,tween:Zn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Vn})}function nr(t,e){var n=ir(t,e);if(n.state>Vn)throw new Error("too late; already scheduled");return n}function rr(t,e){var n=ir(t,e);if(n.state>Jn)throw new Error("too late; already running");return n}function ir(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ar(t,e){var n,r;return function(){var i=rr(this,t),a=i.tween;if(a!==n)for(var f=0,c=(r=n=a).length;f<c;++f)if(r[f].name===e){(r=r.slice()).splice(f,1);break}i.tween=r}}function fr(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=rr(this,t),f=a.tween;if(f!==r){i=(r=f).slice();for(var c={name:e,value:n},o=0,u=i.length;o<u;++o)if(i[o].name===e){i[o]=c;break}o===u&&i.push(c)}a.tween=i}}function cr(t,e,n){var r=t._id;return t.each((function(){var t=rr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ir(t,r).value[e]}}function or(t,e){var n;return("number"==typeof e?dn:e instanceof _e?sn:(n=_e(e))?(e=n,sn):pn)(t,e)}function ur(t){return function(){this.removeAttribute(t)}}function sr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hr(t,e,n){var r,i,a=n+"";return function(){var f=this.getAttribute(t);return f===a?null:f===r?i:i=e(r=f,n)}}function lr(t,e,n){var r,i,a=n+"";return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===r?i:i=e(r=f,n)}}function dr(t,e,n){var r,i,a;return function(){var f,c,o=n(this);if(null!=o)return(f=this.getAttribute(t))===(c=o+"")?null:f===r&&c===i?a:(i=c,a=e(r=f,o));this.removeAttribute(t)}}function br(t,e,n){var r,i,a;return function(){var f,c,o=n(this);if(null!=o)return(f=this.getAttributeNS(t.space,t.local))===(c=o+"")?null:f===r&&c===i?a:(i=c,a=e(r=f,o));this.removeAttributeNS(t.space,t.local)}}function _r(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 pr(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 yr(t,e){return function(){nr(this,t).delay=+e.apply(this,arguments)}}function gr(t,e){return e=+e,function(){nr(this,t).delay=e}}function vr(t,e){return function(){rr(this,t).duration=+e.apply(this,arguments)}}function mr(t,e){return e=+e,function(){rr(this,t).duration=e}}var wr=Zt.prototype.constructor;function xr(t){return function(){this.style.removeProperty(t)}}var Mr=0;function Ar(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Tr(){return++Mr}var Nr=Zt.prototype;Ar.prototype={constructor:Ar,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=z(t));for(var r=this._groups,i=r.length,a=new Array(i),f=0;f<i;++f)for(var c,o,u=r[f],s=u.length,h=a[f]=new Array(s),l=0;l<s;++l)(c=u[l])&&(o=t.call(c,c.__data__,l,u))&&("__data__"in c&&(o.__data__=c.__data__),h[l]=o,er(h[l],e,n,l,h,ir(c,n)));return new Ar(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=X(t));for(var r=this._groups,i=r.length,a=[],f=[],c=0;c<i;++c)for(var o,u=r[c],s=u.length,h=0;h<s;++h)if(o=u[h]){for(var l,d=t.call(o,o.__data__,h,u),b=ir(o,n),_=0,p=d.length;_<p;++_)(l=d[_])&&er(l,e,n,_,d,b);a.push(d),f.push(o)}return new Ar(a,f,e,n)},selectChild:Nr.selectChild,selectChildren:Nr.selectChildren,filter:function(t){"function"!=typeof t&&(t=Z(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,f=e[i],c=f.length,o=r[i]=[],u=0;u<c;++u)(a=f[u])&&t.call(a,a.__data__,u,f)&&o.push(a);return new Ar(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),f=new Array(r),c=0;c<a;++c)for(var o,u=e[c],s=n[c],h=u.length,l=f[c]=new Array(h),d=0;d<h;++d)(o=u[d]||s[d])&&(l[d]=o);for(;c<r;++c)f[c]=e[c];return new Ar(f,this._parents,this._name,this._id)},selection:function(){return new wr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Tr(),r=this._groups,i=r.length,a=0;a<i;++a)for(var f,c=r[a],o=c.length,u=0;u<o;++u)if(f=c[u]){var s=ir(f,e);er(f,t,n,u,c,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new Ar(r,this._parents,t,n)},call:Nr.call,nodes:Nr.nodes,node:Nr.node,size:Nr.size,empty:Nr.empty,each:Nr.each,on:function(t,e){var n=this._id;return arguments.length<2?ir(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,a=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)?nr:rr;return function(){var f=a(this,t),c=f.on;c!==r&&(i=(r=c).copy()).on(e,n),f.on=i}}(n,t,e))},attr:function(t,e){var n=H(t),r="transform"===n?Mn:or;return this.attrTween(t,"function"==typeof e?(n.local?br:dr)(n,r,cr(this,"attr."+t,e)):null==e?(n.local?sr:ur)(n):(n.local?lr:hr)(n,r,e))},attrTween:function(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=H(t);return this.tween(n,(r.local?_r:pr)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?xn:or;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=pt(this,t),f=(this.style.removeProperty(t),pt(this,t));return a===f?null:a===n&&f===r?i:i=e(n=a,r=f)}}(t,r)).on("end.style."+t,xr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var f=pt(this,t),c=n(this),o=c+"";return null==c&&(this.style.removeProperty(t),o=c=pt(this,t)),f===o?null:f===r&&o===i?a:(i=o,a=e(r=f,c))}}(t,r,cr(this,"style."+t,e))).each(function(t,e){var n,r,i,a,f="style."+e,c="end."+f;return function(){var o=rr(this,t),u=o.on,s=null==o.value[f]?a||(a=xr(e)):void 0;u===n&&i===s||(r=(n=u).copy()).on(c,i=s),o.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var f=pt(this,t);return f===a?null:f===r?i:i=e(r=f,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(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 a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,a,n)),r}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(cr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(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))},remove:function(){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))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ir(this.node(),n).tween,a=0,f=i.length;a<f;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?ar:fr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?yr:gr)(e,t)):ir(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?vr:mr)(e,t)):ir(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){rr(this,t).ease=e}}(e,t)):ir(this.node(),e).ease},easeVarying:function(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;rr(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,f){var c={value:f},o={value:function(){0==--i&&a()}};n.each((function(){var n=rr(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(c),e._.interrupt.push(c),e._.end.push(o)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:Nr[Symbol.iterator]};function Cr(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}!function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),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);var kr=1.70158;!function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(kr),function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(kr),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}(kr);var Sr=2*Math.PI;!function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sr);function i(t){return e*Cr(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Sr)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sr);function i(t){return 1-e*Cr(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Sr)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sr);function i(t){return((t=2*t-1)<0?e*Cr(-t)*Math.sin((r-t)/n):2-e*Cr(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Sr)},i.period=function(n){return t(e,n)},i}(1,.3);var Er={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Dr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Zt.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,f=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>Qn&&n.state<Kn,n.state=tr,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):f=!1;f&&delete t.__transition}}(this,t)}))},Zt.prototype.transition=function(t){var e,n;t instanceof Ar?(e=t._id,t=t._name):(e=Tr(),(n=Er).time=Hn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var f,c=r[a],o=c.length,u=0;u<o;++u)(f=c[u])&&er(f,t,e,u,c,n||Dr(f,e));return new Ar(r,this._parents,t,e)};var Ur={},jr={};function $r(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function qr(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 Yr(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Fr(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+Yr(-e,6):e>9999?"+"+Yr(e,6):Yr(e,4))+"-"+Yr(t.getUTCMonth()+1,2)+"-"+Yr(t.getUTCDate(),2)+(a?"T"+Yr(n,2)+":"+Yr(r,2)+":"+Yr(i,2)+"."+Yr(a,3)+"Z":i?"T"+Yr(n,2)+":"+Yr(r,2)+":"+Yr(i,2)+"Z":r||n?"T"+Yr(n,2)+":"+Yr(r,2)+"Z":"")}function Hr(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,f=0,c=0,o=a<=0,u=!1;function s(){if(o)return jr;if(u)return u=!1,Ur;var e,r,i=f;if(34===t.charCodeAt(i)){for(;f++<a&&34!==t.charCodeAt(f)||34===t.charCodeAt(++f););return(e=f)>=a?o=!0:10===(r=t.charCodeAt(f++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(f)&&++f),t.slice(i+1,e-1).replace(/""/g,'"')}for(;f<a;){if(10===(r=t.charCodeAt(e=f++)))u=!0;else if(13===r)u=!0,10===t.charCodeAt(f)&&++f;else if(r!==n)continue;return t.slice(i,e)}return o=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=s())!==jr;){for(var h=[];r!==Ur&&r!==jr;)h.push(r),r=s();e&&null==(h=e(h,c++))||i.push(h)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return f(e[t])})).join(t)}))}function a(e){return e.map(f).join(t)}function f(t){return null==t?"":t instanceof Date?Fr(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=$r(t);return function(r,i){return e(n(r),i,t)}}(t,e):$r(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=qr(e)),[n.map(f).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=qr(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:f}}function Pr(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,f,c,o,u,s,h,l,d=t._root,b={data:r},_=t._x0,p=t._y0,y=t._x1,g=t._y1;if(!d)return t._root=b,t;for(;d.length;)if((u=e>=(a=(_+y)/2))?_=a:y=a,(s=n>=(f=(p+g)/2))?p=f:g=f,i=d,!(d=d[h=s<<1|u]))return i[h]=b,t;if(c=+t._x.call(null,d.data),o=+t._y.call(null,d.data),e===c&&n===o)return b.next=d,i?i[h]=b:t._root=b,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(_+y)/2))?_=a:y=a,(s=n>=(f=(p+g)/2))?p=f:g=f}while((h=s<<1|u)==(l=(o>=f)<<1|c>=a));return i[l]=d,i[h]=b,t}function Or(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Lr(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Rr(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}Hr(","),Hr("\t"),new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var zr=Lr.prototype;function Ir(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}zr.copy=function(){var t,e,n=new Lr(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=Rr(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]=Rr(e));return n},zr.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Pr(this.cover(e,n),e,n,t)},zr.addAll=function(t){var e,n,r,i,a=t.length,f=new Array(a),c=new Array(a),o=1/0,u=1/0,s=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(f[n]=r,c[n]=i,r<o&&(o=r),r>s&&(s=r),i<u&&(u=i),i>h&&(h=i));if(o>s||u>h)return this;for(this.cover(o,u).cover(s,h),n=0;n<a;++n)Pr(this,f[n],c[n],t[n]);return this},zr.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var f,c,o=i-n||1,u=this._root;n>t||t>=i||r>e||e>=a;)switch(c=(e<r)<<1|t<n,(f=new Array(4))[c]=u,u=f,o*=2,c){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},zr.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},zr.extent=function(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]]},zr.find=function(t,e,n){var r,i,a,f,c,o,u,s=this._x0,h=this._y0,l=this._x1,d=this._y1,b=[],_=this._root;for(_&&b.push(new Or(_,s,h,l,d)),null==n?n=1/0:(s=t-n,h=e-n,l=t+n,d=e+n,n*=n);o=b.pop();)if(!(!(_=o.node)||(i=o.x0)>l||(a=o.y0)>d||(f=o.x1)<s||(c=o.y1)<h))if(_.length){var p=(i+f)/2,y=(a+c)/2;b.push(new Or(_[3],p,y,f,c),new Or(_[2],i,y,p,c),new Or(_[1],p,a,f,y),new Or(_[0],i,a,p,y)),(u=(e>=y)<<1|t>=p)&&(o=b[b.length-1],b[b.length-1]=b[b.length-1-u],b[b.length-1-u]=o)}else{var g=t-+this._x.call(null,_.data),v=e-+this._y.call(null,_.data),m=g*g+v*v;if(m<n){var w=Math.sqrt(n=m);s=t-w,h=e-w,l=t+w,d=e+w,r=_.data}}return r},zr.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(f=+this._y.call(null,t)))return this;var e,n,r,i,a,f,c,o,u,s,h,l,d=this._root,b=this._x0,_=this._y0,p=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((u=a>=(c=(b+p)/2))?b=c:p=c,(s=f>=(o=(_+y)/2))?_=o:y=o,e=d,!(d=d[h=s<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,l=h)}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[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[l]=d:this._root=d),this):(this._root=i,this)},zr.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},zr.root=function(){return this._root},zr.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++