billboard.js 3.13.0 → 3.14.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +349 -176
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +572 -399
- package/dist/billboard.pkgd.min.js +18 -18
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +7 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +37 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +41 -15
- package/dist/plugin/billboardjs-plugin-stanford.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +37 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +6 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.js +36 -10
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +50 -50
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +178 -155
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +11 -11
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +150 -127
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +267 -67
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
- package/package.json +32 -31
- package/src/Chart/Chart.ts +11 -0
- package/src/ChartInternal/Axis/AxisRenderer.ts +6 -2
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +13 -8
- package/src/ChartInternal/ChartInternal.ts +9 -7
- package/src/ChartInternal/data/data.ts +18 -4
- package/src/ChartInternal/data/load.ts +4 -0
- package/src/ChartInternal/interactions/eventrect.ts +11 -7
- package/src/ChartInternal/interactions/interaction.ts +21 -6
- package/src/ChartInternal/interactions/zoom.ts +11 -3
- package/src/ChartInternal/internals/legend.ts +16 -6
- package/src/ChartInternal/internals/size.ts +10 -5
- package/src/ChartInternal/internals/tooltip.ts +54 -2
- package/src/ChartInternal/internals/type.ts +2 -1
- package/src/ChartInternal/shape/arc.ts +2 -1
- package/src/ChartInternal/shape/funnel.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +5 -1
- package/src/ChartInternal/shape/treemap.ts +4 -2
- package/src/config/Options/axis/axis.ts +30 -0
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/common/legend.ts +6 -3
- package/src/config/Options/common/main.ts +18 -7
- package/src/config/Options/interaction/interaction.ts +8 -2
- package/src/module/error.ts +11 -7
- package/src/module/util.ts +61 -7
- package/types/axis.d.ts +7 -0
- package/types/options.d.ts +15 -5
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.14.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/(function(kr,$r){typeof exports=="object"&&typeof module=="object"?module.exports=$r():typeof define=="function"&&define.amd?define("bb",[],$r):typeof exports=="object"?exports.bb=$r():(kr.bb=kr.bb||{},kr.bb.plugin=kr.bb.plugin||{},kr.bb.plugin["tableview.pkgd"]=$r())})(this,function(){return function(){"use strict";var Re={72611:function(i,d,t){t.d(d,{default:function(){return Bs}});function r(){}function n(e){return e==null?r:function(){return this.querySelector(e)}}function a(e){typeof e!="function"&&(e=n(e));for(var f=this._groups,h=f.length,E=new Array(h),O=0;O<h;++O)for(var M=f[O],L=M.length,V=E[O]=new Array(L),z,_,tt=0;tt<L;++tt)(z=M[tt])&&(_=e.call(z,z.__data__,tt,M))&&("__data__"in z&&(_.__data__=z.__data__),V[tt]=_);return new Lt(E,this._parents)}function o(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function s(){return[]}function u(e){return e==null?s:function(){return this.querySelectorAll(e)}}function l(e){return function(){return o(e.apply(this,arguments))}}function v(e){typeof e=="function"?e=l(e):e=u(e);for(var f=this._groups,h=f.length,E=[],O=[],M=0;M<h;++M)for(var L=f[M],V=L.length,z,_=0;_<V;++_)(z=L[_])&&(E.push(e.call(z,z.__data__,_,L)),O.push(z));return new Lt(E,O)}function c(e){return function(){return this.matches(e)}}function g(e){return function(f){return f.matches(e)}}var y=Array.prototype.find;function p(e){return function(){return y.call(this.children,e)}}function m(){return this.firstElementChild}function S(e){return this.select(e==null?m:p(typeof e=="function"?e:g(e)))}var x=Array.prototype.filter;function T(){return Array.from(this.children)}function R(e){return function(){return x.call(this.children,e)}}function I(e){return this.selectAll(e==null?T:R(typeof e=="function"?e:g(e)))}function A(e){typeof e!="function"&&(e=c(e));for(var f=this._groups,h=f.length,E=new Array(h),O=0;O<h;++O)for(var M=f[O],L=M.length,V=E[O]=[],z,_=0;_<L;++_)(z=M[_])&&e.call(z,z.__data__,_,M)&&V.push(z);return new Lt(E,this._parents)}function N(e){return new Array(e.length)}function P(){return new Lt(this._enter||this._groups.map(N),this._parents)}function C(e,f){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=f}C.prototype={constructor:C,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,f){return this._parent.insertBefore(e,f)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function F(e){return function(){return e}}function $(e,f,h,E,O,M){for(var L=0,V,z=f.length,_=M.length;L<_;++L)(V=f[L])?(V.__data__=M[L],E[L]=V):h[L]=new C(e,M[L]);for(;L<z;++L)(V=f[L])&&(O[L]=V)}function D(e,f,h,E,O,M,L){var V,z,_=new Map,tt=f.length,At=M.length,Mt=new Array(tt),Wt;for(V=0;V<tt;++V)(z=f[V])&&(Mt[V]=Wt=L.call(z,z.__data__,V,f)+"",_.has(Wt)?O[V]=z:_.set(Wt,z));for(V=0;V<At;++V)Wt=L.call(e,M[V],V,M)+"",(z=_.get(Wt))?(E[V]=z,z.__data__=M[V],_.delete(Wt)):h[V]=new C(e,M[V]);for(V=0;V<tt;++V)(z=f[V])&&_.get(Mt[V])===z&&(O[V]=z)}function b(e){return e.__data__}function w(e,f){if(!arguments.length)return Array.from(this,b);var h=f?D:$,E=this._parents,O=this._groups;typeof e!="function"&&(e=F(e));for(var M=O.length,L=new Array(M),V=new Array(M),z=new Array(M),_=0;_<M;++_){var tt=E[_],At=O[_],Mt=At.length,Wt=G(e.call(tt,tt&&tt.__data__,_,E)),fr=Wt.length,xr=V[_]=new Array(fr),Et=L[_]=new Array(fr),Ht=z[_]=new Array(Mt);h(tt,At,xr,Et,Ht,Wt,f);for(var Yt=0,Gt=0,tr,rr;Yt<fr;++Yt)if(tr=xr[Yt]){for(Yt>=Gt&&(Gt=Yt+1);!(rr=Et[Gt])&&++Gt<fr;);tr._next=rr||null}}return L=new Lt(L,E),L._enter=V,L._exit=z,L}function G(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U(){return new Lt(this._exit||this._groups.map(N),this._parents)}function B(e,f,h){var E=this.enter(),O=this,M=this.exit();return typeof e=="function"?(E=e(E),E&&(E=E.selection())):E=E.append(e+""),f!=null&&(O=f(O),O&&(O=O.selection())),h==null?M.remove():h(M),E&&O?E.merge(O).order():O}function j(e){for(var f=e.selection?e.selection():e,h=this._groups,E=f._groups,O=h.length,M=E.length,L=Math.min(O,M),V=new Array(O),z=0;z<L;++z)for(var _=h[z],tt=E[z],At=_.length,Mt=V[z]=new Array(At),Wt,fr=0;fr<At;++fr)(Wt=_[fr]||tt[fr])&&(Mt[fr]=Wt);for(;z<O;++z)V[z]=h[z];return new Lt(V,this._parents)}function W(){for(var e=this._groups,f=-1,h=e.length;++f<h;)for(var E=e[f],O=E.length-1,M=E[O],L;--O>=0;)(L=E[O])&&(M&&L.compareDocumentPosition(M)^4&&M.parentNode.insertBefore(L,M),M=L);return this}function Q(e){e||(e=X);function f(At,Mt){return At&&Mt?e(At.__data__,Mt.__data__):!At-!Mt}for(var h=this._groups,E=h.length,O=new Array(E),M=0;M<E;++M){for(var L=h[M],V=L.length,z=O[M]=new Array(V),_,tt=0;tt<V;++tt)(_=L[tt])&&(z[tt]=_);z.sort(f)}return new Lt(O,this._parents).order()}function X(e,f){return e<f?-1:e>f?1:e>=f?0:NaN}function k(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Z(){return Array.from(this)}function ht(){for(var e=this._groups,f=0,h=e.length;f<h;++f)for(var E=e[f],O=0,M=E.length;O<M;++O){var L=E[O];if(L)return L}return null}function lt(){let e=0;for(const f of this)++e;return e}function pt(){return!this.node()}function Tt(e){for(var f=this._groups,h=0,E=f.length;h<E;++h)for(var O=f[h],M=0,L=O.length,V;M<L;++M)(V=O[M])&&e.call(V,V.__data__,M,O);return this}var It="http://www.w3.org/1999/xhtml",Kt={svg:"http://www.w3.org/2000/svg",xhtml:It,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vt(e){var f=e+="",h=f.indexOf(":");return h>=0&&(f=e.slice(0,h))!=="xmlns"&&(e=e.slice(h+1)),Kt.hasOwnProperty(f)?{space:Kt[f],local:e}:e}function bt(e){return function(){this.removeAttribute(e)}}function vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mt(e,f){return function(){this.setAttribute(e,f)}}function Ft(e,f){return function(){this.setAttributeNS(e.space,e.local,f)}}function $t(e,f){return function(){var h=f.apply(this,arguments);h==null?this.removeAttribute(e):this.setAttribute(e,h)}}function Nt(e,f){return function(){var h=f.apply(this,arguments);h==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,h)}}function jt(e,f){var h=Vt(e);if(arguments.length<2){var E=this.node();return h.local?E.getAttributeNS(h.space,h.local):E.getAttribute(h)}return this.each((f==null?h.local?vt:bt:typeof f=="function"?h.local?Nt:$t:h.local?Ft:mt)(h,f))}function kt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _t(e){return function(){this.style.removeProperty(e)}}function Xt(e,f,h){return function(){this.style.setProperty(e,f,h)}}function Ut(e,f,h){return function(){var E=f.apply(this,arguments);E==null?this.style.removeProperty(e):this.style.setProperty(e,E,h)}}function Qt(e,f,h){return arguments.length>1?this.each((f==null?_t:typeof f=="function"?Ut:Xt)(e,f,h==null?"":h)):zt(this.node(),e)}function zt(e,f){return e.style.getPropertyValue(f)||kt(e).getComputedStyle(e,null).getPropertyValue(f)}function wt(e){return function(){delete this[e]}}function st(e,f){return function(){this[e]=f}}function dt(e,f){return function(){var h=f.apply(this,arguments);h==null?delete this[e]:this[e]=h}}function q(e,f){return arguments.length>1?this.each((f==null?wt:typeof f=="function"?dt:st)(e,f)):this.node()[e]}function Rt(e){return e.trim().split(/^|\s+/)}function Pt(e){return e.classList||new Ot(e)}function Ot(e){this._node=e,this._names=Rt(e.getAttribute("class")||"")}Ot.prototype={add:function(e){var f=this._names.indexOf(e);f<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var f=this._names.indexOf(e);f>=0&&(this._names.splice(f,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function St(e,f){for(var h=Pt(e),E=-1,O=f.length;++E<O;)h.add(f[E])}function er(e,f){for(var h=Pt(e),E=-1,O=f.length;++E<O;)h.remove(f[E])}function or(e){return function(){St(this,e)}}function Y(e){return function(){er(this,e)}}function et(e,f){return function(){(f.apply(this,arguments)?St:er)(this,e)}}function ut(e,f){var h=Rt(e+"");if(arguments.length<2){for(var E=Pt(this.node()),O=-1,M=h.length;++O<M;)if(!E.contains(h[O]))return!1;return!0}return this.each((typeof f=="function"?et:f?or:Y)(h,f))}function ot(){this.textContent=""}function ct(e){return function(){this.textContent=e}}function rt(e){return function(){var f=e.apply(this,arguments);this.textContent=f==null?"":f}}function Dt(e){return arguments.length?this.each(e==null?ot:(typeof e=="function"?rt:ct)(e)):this.node().textContent}function qt(){this.innerHTML=""}function nt(e){return function(){this.innerHTML=e}}function gt(e){return function(){var f=e.apply(this,arguments);this.innerHTML=f==null?"":f}}function yt(e){return arguments.length?this.each(e==null?qt:(typeof e=="function"?gt:nt)(e)):this.node().innerHTML}function xt(){this.nextSibling&&this.parentNode.appendChild(this)}function Bt(){return this.each(xt)}function Zt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nr(){return this.each(Zt)}function ar(e){return function(){var f=this.ownerDocument,h=this.namespaceURI;return h===It&&f.documentElement.namespaceURI===It?f.createElement(e):f.createElementNS(h,e)}}function ur(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cr(e){var f=Vt(e);return(f.local?ur:ar)(f)}function br(e){var f=typeof e=="function"?e:cr(e);return this.select(function(){return this.appendChild(f.apply(this,arguments))})}function gn(){return null}function Fn(e,f){var h=typeof e=="function"?e:cr(e),E=f==null?gn:typeof f=="function"?f:n(f);return this.select(function(){return this.insertBefore(h.apply(this,arguments),E.apply(this,arguments)||null)})}function yn(){var e=this.parentNode;e&&e.removeChild(this)}function qr(){return this.each(yn)}function Ur(){var e=this.cloneNode(!1),f=this.parentNode;return f?f.insertBefore(e,this.nextSibling):e}function Dn(){var e=this.cloneNode(!0),f=this.parentNode;return f?f.insertBefore(e,this.nextSibling):e}function Kr(e){return this.select(e?Dn:Ur)}function Br(e){return arguments.length?this.property("__data__",e):this.node().__data__}function pn(e){return function(f){e.call(this,f,this.__data__)}}function _r(e){return e.trim().split(/^|\s+/).map(function(f){var h="",E=f.indexOf(".");return E>=0&&(h=f.slice(E+1),f=f.slice(0,E)),{type:f,name:h}})}function mr(e){return function(){var f=this.__on;if(f){for(var h=0,E=-1,O=f.length,M;h<O;++h)M=f[h],(!e.type||M.type===e.type)&&M.name===e.name?this.removeEventListener(M.type,M.listener,M.options):f[++E]=M;++E?f.length=E:delete this.__on}}}function Fr(e,f,h){return function(){var E=this.__on,O,M=pn(f);if(E){for(var L=0,V=E.length;L<V;++L)if((O=E[L]).type===e.type&&O.name===e.name){this.removeEventListener(O.type,O.listener,O.options),this.addEventListener(O.type,O.listener=M,O.options=h),O.value=f;return}}this.addEventListener(e.type,M,h),O={type:e.type,name:e.name,value:f,listener:M,options:h},E?E.push(O):this.__on=[O]}}function Ln(e,f,h){var E=_r(e+""),O,M=E.length,L;if(arguments.length<2){var V=this.node().__on;if(V){for(var z=0,_=V.length,tt;z<_;++z)for(O=0,tt=V[z];O<M;++O)if((L=E[O]).type===tt.type&&L.name===tt.name)return tt.value}return}for(V=f?Fr:mr,O=0;O<M;++O)this.each(V(E[O],f,h));return this}function mn(e,f,h){var E=kt(e),O=E.CustomEvent;typeof O=="function"?O=new O(f,h):(O=E.document.createEvent("Event"),h?(O.initEvent(f,h.bubbles,h.cancelable),O.detail=h.detail):O.initEvent(f,!1,!1)),e.dispatchEvent(O)}function K(e,f){return function(){return mn(this,e,f)}}function ft(e,f){return function(){return mn(this,e,f.apply(this,arguments))}}function J(e,f){return this.each((typeof f=="function"?ft:K)(e,f))}function*H(){for(var e=this._groups,f=0,h=e.length;f<h;++f)for(var E=e[f],O=0,M=E.length,L;O<M;++O)(L=E[O])&&(yield L)}var at=[null];function Lt(e,f){this._groups=e,this._parents=f}function Ct(){return new Lt([[document.documentElement]],at)}function ir(){return this}Lt.prototype=Ct.prototype={constructor:Lt,select:a,selectAll:v,selectChild:S,selectChildren:I,filter:A,data:w,enter:P,exit:U,join:B,merge:j,selection:ir,order:W,sort:Q,call:k,nodes:Z,node:ht,size:lt,empty:pt,each:Tt,attr:jt,style:Qt,property:q,classed:ut,text:Dt,html:yt,raise:Bt,lower:nr,append:br,insert:Fn,remove:qr,clone:Kr,datum:Br,on:Ln,dispatch:J,[Symbol.iterator]:H};var sr=Ct,dr={value:()=>{}};function Nr(){for(var e=0,f=arguments.length,h={},E;e<f;++e){if(!(E=arguments[e]+"")||E in h||/[\s.]/.test(E))throw new Error("illegal type: "+E);h[E]=[]}return new it(h)}function it(e){this._=e}function lr(e,f){return e.trim().split(/^|\s+/).map(function(h){var E="",O=h.indexOf(".");if(O>=0&&(E=h.slice(O+1),h=h.slice(0,O)),h&&!f.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:E}})}it.prototype=Nr.prototype={constructor:it,on:function(e,f){var h=this._,E=lr(e+"",h),O,M=-1,L=E.length;if(arguments.length<2){for(;++M<L;)if((O=(e=E[M]).type)&&(O=jr(h[O],e.name)))return O;return}if(f!=null&&typeof f!="function")throw new Error("invalid callback: "+f);for(;++M<L;)if(O=(e=E[M]).type)h[O]=ln(h[O],e.name,f);else if(f==null)for(O in h)h[O]=ln(h[O],e.name,null);return this},copy:function(){var e={},f=this._;for(var h in f)e[h]=f[h].slice();return new it(e)},call:function(e,f){if((O=arguments.length-2)>0)for(var h=new Array(O),E=0,O,M;E<O;++E)h[E]=arguments[E+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(M=this._[e],E=0,O=M.length;E<O;++E)M[E].value.apply(f,h)},apply:function(e,f,h){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var E=this._[e],O=0,M=E.length;O<M;++O)E[O].value.apply(f,h)}};function jr(e,f){for(var h=0,E=e.length,O;h<E;++h)if((O=e[h]).name===f)return O.value}function ln(e,f,h){for(var E=0,O=e.length;E<O;++E)if(e[E].name===f){e[E]=dr,e=e.slice(0,E).concat(e.slice(E+1));break}return h!=null&&e.push({name:f,value:h}),e}var $n=Nr,Yr=0,Xr=0,xn=0,Pe=1e3,bn,Sn,Un=0,on=0,Bn=0,En=typeof performance=="object"&&performance.now?performance:Date,Ce=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oe(){return on||(Ce(Sa),on=En.now()+Bn)}function Sa(){on=0}function jn(){this._call=this._time=this._next=null}jn.prototype=Ne.prototype={constructor:jn,restart:function(e,f,h){if(typeof e!="function")throw new TypeError("callback is not a function");h=(h==null?oe():+h)+(f==null?0:+f),!this._next&&Sn!==this&&(Sn?Sn._next=this:bn=this,Sn=this),this._call=e,this._time=h,se()},stop:function(){this._call&&(this._call=null,this._time=1/0,se())}};function Ne(e,f,h){var E=new jn;return E.restart(e,f,h),E}function Ea(){oe(),++Yr;for(var e=bn,f;e;)(f=on-e._time)>=0&&e._call.call(void 0,f),e=e._next;--Yr}function Me(){on=(Un=En.now())+Bn,Yr=Xr=0;try{Ea()}finally{Yr=0,Ta(),on=0}}function Oa(){var e=En.now(),f=e-Un;f>Pe&&(Bn-=f,Un=e)}function Ta(){for(var e,f=bn,h,E=1/0;f;)f._call?(E>f._time&&(E=f._time),e=f,f=f._next):(h=f._next,f._next=null,f=e?e._next=h:bn=h);Sn=e,se(E)}function se(e){if(!Yr){Xr&&(Xr=clearTimeout(Xr));var f=e-on;f>24?(e<1/0&&(Xr=setTimeout(Me,e-En.now()-Bn)),xn&&(xn=clearInterval(xn))):(xn||(Un=En.now(),xn=setInterval(Oa,Pe)),Yr=1,Ce(Me))}}function Fe(e,f,h){var E=new jn;return f=f==null?0:+f,E.restart(O=>{E.stop(),e(O+f)},f,h),E}var Ia=$n("start","end","cancel","interrupt"),Aa=[],De=0,Le=1,ie=2,wn=3,$e=4,ue=5,Gn=6;function Vn(e,f,h,E,O,M){var L=e.__transition;if(!L)e.__transition={};else if(h in L)return;Ra(e,h,{name:f,index:E,group:O,on:Ia,tween:Aa,time:M.time,delay:M.delay,duration:M.duration,ease:M.ease,timer:null,state:De})}function fe(e,f){var h=wr(e,f);if(h.state>De)throw new Error("too late; already scheduled");return h}function Hr(e,f){var h=wr(e,f);if(h.state>wn)throw new Error("too late; already running");return h}function wr(e,f){var h=e.__transition;if(!h||!(h=h[f]))throw new Error("transition not found");return h}function Ra(e,f,h){var E=e.__transition,O;E[f]=h,h.timer=Ne(M,0,h.time);function M(_){h.state=Le,h.timer.restart(L,h.delay,h.time),h.delay<=_&&L(_-h.delay)}function L(_){var tt,At,Mt,Wt;if(h.state!==Le)return z();for(tt in E)if(Wt=E[tt],Wt.name===h.name){if(Wt.state===wn)return Fe(L);Wt.state===$e?(Wt.state=Gn,Wt.timer.stop(),Wt.on.call("interrupt",e,e.__data__,Wt.index,Wt.group),delete E[tt]):+tt<f&&(Wt.state=Gn,Wt.timer.stop(),Wt.on.call("cancel",e,e.__data__,Wt.index,Wt.group),delete E[tt])}if(Fe(function(){h.state===wn&&(h.state=$e,h.timer.restart(V,h.delay,h.time),V(_))}),h.state=ie,h.on.call("start",e,e.__data__,h.index,h.group),h.state===ie){for(h.state=wn,O=new Array(Mt=h.tween.length),tt=0,At=-1;tt<Mt;++tt)(Wt=h.tween[tt].value.call(e,e.__data__,h.index,h.group))&&(O[++At]=Wt);O.length=At+1}}function V(_){for(var tt=_<h.duration?h.ease.call(null,_/h.duration):(h.timer.restart(z),h.state=ue,1),At=-1,Mt=O.length;++At<Mt;)O[At].call(e,tt);h.state===ue&&(h.on.call("end",e,e.__data__,h.index,h.group),z())}function z(){h.state=Gn,h.timer.stop(),delete E[f];for(var _ in E)return;delete e.__transition}}function Pa(e,f){var h=e.__transition,E,O,M=!0,L;if(h){f=f==null?null:f+"";for(L in h){if((E=h[L]).name!==f){M=!1;continue}O=E.state>ie&&E.state<ue,E.state=Gn,E.timer.stop(),E.on.call(O?"interrupt":"cancel",e,e.__data__,E.index,E.group),delete h[L]}M&&delete e.__transition}}function Ca(e){return this.each(function(){Pa(this,e)})}function tn(e,f){return e=+e,f=+f,function(h){return e*(1-h)+f*h}}var be=180/Math.PI,le={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ue(e,f,h,E,O,M){var L,V,z;return(L=Math.sqrt(e*e+f*f))&&(e/=L,f/=L),(z=e*h+f*E)&&(h-=e*z,E-=f*z),(V=Math.sqrt(h*h+E*E))&&(h/=V,E/=V,z/=V),e*E<f*h&&(e=-e,f=-f,z=-z,L=-L),{translateX:O,translateY:M,rotate:Math.atan2(f,e)*be,skewX:Math.atan(z)*be,scaleX:L,scaleY:V}}var Hn;function Na(e){const f=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return f.isIdentity?le:Ue(f.a,f.b,f.c,f.d,f.e,f.f)}function Ma(e){return e==null||(Hn||(Hn=document.createElementNS("http://www.w3.org/2000/svg","g")),Hn.setAttribute("transform",e),!(e=Hn.transform.baseVal.consolidate()))?le:(e=e.matrix,Ue(e.a,e.b,e.c,e.d,e.e,e.f))}function Be(e,f,h,E){function O(_){return _.length?_.pop()+" ":""}function M(_,tt,At,Mt,Wt,fr){if(_!==At||tt!==Mt){var xr=Wt.push("translate(",null,f,null,h);fr.push({i:xr-4,x:tn(_,At)},{i:xr-2,x:tn(tt,Mt)})}else(At||Mt)&&Wt.push("translate("+At+f+Mt+h)}function L(_,tt,At,Mt){_!==tt?(_-tt>180?tt+=360:tt-_>180&&(_+=360),Mt.push({i:At.push(O(At)+"rotate(",null,E)-2,x:tn(_,tt)})):tt&&At.push(O(At)+"rotate("+tt+E)}function V(_,tt,At,Mt){_!==tt?Mt.push({i:At.push(O(At)+"skewX(",null,E)-2,x:tn(_,tt)}):tt&&At.push(O(At)+"skewX("+tt+E)}function z(_,tt,At,Mt,Wt,fr){if(_!==At||tt!==Mt){var xr=Wt.push(O(Wt)+"scale(",null,",",null,")");fr.push({i:xr-4,x:tn(_,At)},{i:xr-2,x:tn(tt,Mt)})}else(At!==1||Mt!==1)&&Wt.push(O(Wt)+"scale("+At+","+Mt+")")}return function(_,tt){var At=[],Mt=[];return _=e(_),tt=e(tt),M(_.translateX,_.translateY,tt.translateX,tt.translateY,At,Mt),L(_.rotate,tt.rotate,At,Mt),V(_.skewX,tt.skewX,At,Mt),z(_.scaleX,_.scaleY,tt.scaleX,tt.scaleY,At,Mt),_=tt=null,function(Wt){for(var fr=-1,xr=Mt.length,Et;++fr<xr;)At[(Et=Mt[fr]).i]=Et.x(Wt);return At.join("")}}}var Fa=Be(Na,"px, ","px)","deg)"),Da=Be(Ma,", ",")",")");function La(e,f){var h,E;return function(){var O=Hr(this,e),M=O.tween;if(M!==h){E=h=M;for(var L=0,V=E.length;L<V;++L)if(E[L].name===f){E=E.slice(),E.splice(L,1);break}}O.tween=E}}function $a(e,f,h){var E,O;if(typeof h!="function")throw new Error;return function(){var M=Hr(this,e),L=M.tween;if(L!==E){O=(E=L).slice();for(var V={name:f,value:h},z=0,_=O.length;z<_;++z)if(O[z].name===f){O[z]=V;break}z===_&&O.push(V)}M.tween=O}}function ba(e,f){var h=this._id;if(e+="",arguments.length<2){for(var E=wr(this.node(),h).tween,O=0,M=E.length,L;O<M;++O)if((L=E[O]).name===e)return L.value;return null}return this.each((f==null?La:$a)(h,e,f))}function ve(e,f,h){var E=e._id;return e.each(function(){var O=Hr(this,E);(O.value||(O.value={}))[f]=h.apply(this,arguments)}),function(O){return wr(O,E).value[f]}}function ce(e,f,h){e.prototype=f.prototype=h,h.constructor=e}function je(e,f){var h=Object.create(e.prototype);for(var E in f)h[E]=f[E];return h}function On(){}var Tn=.7,Wn=1/Tn,vn="\\s*([+-]?\\d+)\\s*",In="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ua=/^#([0-9a-f]{3,8})$/,Ba=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),ja=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),wa=new RegExp(`^rgba\\(${vn},${vn},${vn},${In}\\)$`),Ga=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${In}\\)$`),Va=new RegExp(`^hsl\\(${In},${Wr},${Wr}\\)$`),Ha=new RegExp(`^hsla\\(${In},${Wr},${Wr},${In}\\)$`),we={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};ce(On,An,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ge,formatHex:Ge,formatHex8:Wa,formatHsl:za,formatRgb:Ve,toString:Ve});function Ge(){return this.rgb().formatHex()}function Wa(){return this.rgb().formatHex8()}function za(){return Ye(this).formatHsl()}function Ve(){return this.rgb().formatRgb()}function An(e){var f,h;return e=(e+"").trim().toLowerCase(),(f=Ua.exec(e))?(h=f[1].length,f=parseInt(f[1],16),h===6?He(f):h===3?new Dr(f>>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1):h===8?zn(f>>24&255,f>>16&255,f>>8&255,(f&255)/255):h===4?zn(f>>12&15|f>>8&240,f>>8&15|f>>4&240,f>>4&15|f&240,((f&15)<<4|f&15)/255):null):(f=Ba.exec(e))?new Dr(f[1],f[2],f[3],1):(f=ja.exec(e))?new Dr(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=wa.exec(e))?zn(f[1],f[2],f[3],f[4]):(f=Ga.exec(e))?zn(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=Va.exec(e))?Ke(f[1],f[2]/100,f[3]/100,1):(f=Ha.exec(e))?Ke(f[1],f[2]/100,f[3]/100,f[4]):we.hasOwnProperty(e)?He(we[e]):e==="transparent"?new Dr(NaN,NaN,NaN,0):null}function He(e){return new Dr(e>>16&255,e>>8&255,e&255,1)}function zn(e,f,h,E){return E<=0&&(e=f=h=NaN),new Dr(e,f,h,E)}function Ka(e){return e instanceof On||(e=An(e)),e?(e=e.rgb(),new Dr(e.r,e.g,e.b,e.opacity)):new Dr}function Kn(e,f,h,E){return arguments.length===1?Ka(e):new Dr(e,f,h,E==null?1:E)}function Dr(e,f,h,E){this.r=+e,this.g=+f,this.b=+h,this.opacity=+E}ce(Dr,Kn,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tn:Math.pow(Tn,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dr(sn(this.r),sn(this.g),sn(this.b),Yn(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:Ya,formatRgb:ze,toString:ze}));function We(){return`#${un(this.r)}${un(this.g)}${un(this.b)}`}function Ya(){return`#${un(this.r)}${un(this.g)}${un(this.b)}${un((isNaN(this.opacity)?1:this.opacity)*255)}`}function ze(){const e=Yn(this.opacity);return`${e===1?"rgb(":"rgba("}${sn(this.r)}, ${sn(this.g)}, ${sn(this.b)}${e===1?")":`, ${e})`}`}function Yn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function un(e){return e=sn(e),(e<16?"0":"")+e.toString(16)}function Ke(e,f,h,E){return E<=0?e=f=h=NaN:h<=0||h>=1?e=f=NaN:f<=0&&(e=NaN),new Gr(e,f,h,E)}function Ye(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=An(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var f=e.r/255,h=e.g/255,E=e.b/255,O=Math.min(f,h,E),M=Math.max(f,h,E),L=NaN,V=M-O,z=(M+O)/2;return V?(f===M?L=(h-E)/V+(h<E)*6:h===M?L=(E-f)/V+2:L=(f-h)/V+4,V/=z<.5?M+O:2-M-O,L*=60):V=z>0&&z<1?0:L,new Gr(L,V,z,e.opacity)}function Xa(e,f,h,E){return arguments.length===1?Ye(e):new Gr(e,f,h,E==null?1:E)}function Gr(e,f,h,E){this.h=+e,this.s=+f,this.l=+h,this.opacity=+E}ce(Gr,Xa,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tn:Math.pow(Tn,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,f=isNaN(e)||isNaN(this.s)?0:this.s,h=this.l,E=h+(h<.5?h:1-h)*f,O=2*h-E;return new Dr(de(e>=240?e-240:e+120,O,E),de(e,O,E),de(e<120?e+240:e-120,O,E),this.opacity)},clamp(){return new Gr(Xe(this.h),Xn(this.s),Xn(this.l),Yn(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 e=Yn(this.opacity);return`${e===1?"hsl(":"hsla("}${Xe(this.h)}, ${Xn(this.s)*100}%, ${Xn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xe(e){return e=(e||0)%360,e<0?e+360:e}function Xn(e){return Math.max(0,Math.min(1,e||0))}function de(e,f,h){return(e<60?f+(h-f)*e/60:e<180?h:e<240?f+(h-f)*(240-e)/60:f)*255}function Je(e,f,h,E,O){var M=e*e,L=M*e;return((1-3*e+3*M-L)*f+(4-6*M+3*L)*h+(1+3*e+3*M-3*L)*E+L*O)/6}function Ja(e){var f=e.length-1;return function(h){var E=h<=0?h=0:h>=1?(h=1,f-1):Math.floor(h*f),O=e[E],M=e[E+1],L=E>0?e[E-1]:2*O-M,V=E<f-1?e[E+2]:2*M-O;return Je((h-E/f)*f,L,O,M,V)}}function Qa(e){var f=e.length;return function(h){var E=Math.floor(((h%=1)<0?++h:h)*f),O=e[(E+f-1)%f],M=e[E%f],L=e[(E+1)%f],V=e[(E+2)%f];return Je((h-E/f)*f,O,M,L,V)}}var Qe=e=>()=>e;function Ze(e,f){return function(h){return e+h*f}}function Za(e,f,h){return e=Math.pow(e,h),f=Math.pow(f,h)-e,h=1/h,function(E){return Math.pow(e+E*f,h)}}function Gs(e,f){var h=f-e;return h?Ze(e,h>180||h<-180?h-360*Math.round(h/360):h):constant(isNaN(e)?f:e)}function ka(e){return(e=+e)==1?ke:function(f,h){return h-f?Za(f,h,e):Qe(isNaN(f)?h:f)}}function ke(e,f){var h=f-e;return h?Ze(e,h):Qe(isNaN(e)?f:e)}var qe=function e(f){var h=ka(f);function E(O,M){var L=h((O=Kn(O)).r,(M=Kn(M)).r),V=h(O.g,M.g),z=h(O.b,M.b),_=ke(O.opacity,M.opacity);return function(tt){return O.r=L(tt),O.g=V(tt),O.b=z(tt),O.opacity=_(tt),O+""}}return E.gamma=e,E}(1);function _e(e){return function(f){var h=f.length,E=new Array(h),O=new Array(h),M=new Array(h),L,V;for(L=0;L<h;++L)V=Kn(f[L]),E[L]=V.r||0,O[L]=V.g||0,M[L]=V.b||0;return E=e(E),O=e(O),M=e(M),V.opacity=1,function(z){return V.r=E(z),V.g=O(z),V.b=M(z),V+""}}}var Vs=_e(Ja),Hs=_e(Qa),he=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(he.source,"g");function qa(e){return function(){return e}}function _a(e){return function(f){return e(f)+""}}function to(e,f){var h=he.lastIndex=ge.lastIndex=0,E,O,M,L=-1,V=[],z=[];for(e=e+"",f=f+"";(E=he.exec(e))&&(O=ge.exec(f));)(M=O.index)>h&&(M=f.slice(h,M),V[L]?V[L]+=M:V[++L]=M),(E=E[0])===(O=O[0])?V[L]?V[L]+=O:V[++L]=O:(V[++L]=null,z.push({i:L,x:tn(E,O)})),h=ge.lastIndex;return h<f.length&&(M=f.slice(h),V[L]?V[L]+=M:V[++L]=M),V.length<2?z[0]?_a(z[0].x):qa(f):(f=z.length,function(_){for(var tt=0,At;tt<f;++tt)V[(At=z[tt]).i]=At.x(_);return V.join("")})}function ta(e,f){var h;return(typeof f=="number"?tn:f instanceof An?qe:(h=An(f))?(f=h,qe):to)(e,f)}function ro(e){return function(){this.removeAttribute(e)}}function no(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eo(e,f,h){var E,O=h+"",M;return function(){var L=this.getAttribute(e);return L===O?null:L===E?M:M=f(E=L,h)}}function ao(e,f,h){var E,O=h+"",M;return function(){var L=this.getAttributeNS(e.space,e.local);return L===O?null:L===E?M:M=f(E=L,h)}}function oo(e,f,h){var E,O,M;return function(){var L,V=h(this),z;return V==null?void this.removeAttribute(e):(L=this.getAttribute(e),z=V+"",L===z?null:L===E&&z===O?M:(O=z,M=f(E=L,V)))}}function so(e,f,h){var E,O,M;return function(){var L,V=h(this),z;return V==null?void this.removeAttributeNS(e.space,e.local):(L=this.getAttributeNS(e.space,e.local),z=V+"",L===z?null:L===E&&z===O?M:(O=z,M=f(E=L,V)))}}function io(e,f){var h=Vt(e),E=h==="transform"?Da:ta;return this.attrTween(e,typeof f=="function"?(h.local?so:oo)(h,E,ve(this,"attr."+e,f)):f==null?(h.local?no:ro)(h):(h.local?ao:eo)(h,E,f))}function uo(e,f){return function(h){this.setAttribute(e,f.call(this,h))}}function fo(e,f){return function(h){this.setAttributeNS(e.space,e.local,f.call(this,h))}}function lo(e,f){var h,E;function O(){var M=f.apply(this,arguments);return M!==E&&(h=(E=M)&&fo(e,M)),h}return O._value=f,O}function vo(e,f){var h,E;function O(){var M=f.apply(this,arguments);return M!==E&&(h=(E=M)&&uo(e,M)),h}return O._value=f,O}function co(e,f){var h="attr."+e;if(arguments.length<2)return(h=this.tween(h))&&h._value;if(f==null)return this.tween(h,null);if(typeof f!="function")throw new Error;var E=Vt(e);return this.tween(h,(E.local?lo:vo)(E,f))}function ho(e,f){return function(){fe(this,e).delay=+f.apply(this,arguments)}}function go(e,f){return f=+f,function(){fe(this,e).delay=f}}function yo(e){var f=this._id;return arguments.length?this.each((typeof e=="function"?ho:go)(f,e)):wr(this.node(),f).delay}function po(e,f){return function(){Hr(this,e).duration=+f.apply(this,arguments)}}function mo(e,f){return f=+f,function(){Hr(this,e).duration=f}}function xo(e){var f=this._id;return arguments.length?this.each((typeof e=="function"?po:mo)(f,e)):wr(this.node(),f).duration}function So(e,f){if(typeof f!="function")throw new Error;return function(){Hr(this,e).ease=f}}function Eo(e){var f=this._id;return arguments.length?this.each(So(f,e)):wr(this.node(),f).ease}function Oo(e,f){return function(){var h=f.apply(this,arguments);if(typeof h!="function")throw new Error;Hr(this,e).ease=h}}function To(e){if(typeof e!="function")throw new Error;return this.each(Oo(this._id,e))}function Io(e){typeof e!="function"&&(e=c(e));for(var f=this._groups,h=f.length,E=new Array(h),O=0;O<h;++O)for(var M=f[O],L=M.length,V=E[O]=[],z,_=0;_<L;++_)(z=M[_])&&e.call(z,z.__data__,_,M)&&V.push(z);return new Jr(E,this._parents,this._name,this._id)}function Ao(e){if(e._id!==this._id)throw new Error;for(var f=this._groups,h=e._groups,E=f.length,O=h.length,M=Math.min(E,O),L=new Array(E),V=0;V<M;++V)for(var z=f[V],_=h[V],tt=z.length,At=L[V]=new Array(tt),Mt,Wt=0;Wt<tt;++Wt)(Mt=z[Wt]||_[Wt])&&(At[Wt]=Mt);for(;V<E;++V)L[V]=f[V];return new Jr(L,this._parents,this._name,this._id)}function Ro(e){return(e+"").trim().split(/^|\s+/).every(function(f){var h=f.indexOf(".");return h>=0&&(f=f.slice(0,h)),!f||f==="start"})}function Po(e,f,h){var E,O,M=Ro(f)?fe:Hr;return function(){var L=M(this,e),V=L.on;V!==E&&(O=(E=V).copy()).on(f,h),L.on=O}}function Co(e,f){var h=this._id;return arguments.length<2?wr(this.node(),h).on.on(e):this.each(Po(h,e,f))}function No(e){return function(){var f=this.parentNode;for(var h in this.__transition)if(+h!==e)return;f&&f.removeChild(this)}}function Mo(){return this.on("end.remove",No(this._id))}function Fo(e){var f=this._name,h=this._id;typeof e!="function"&&(e=n(e));for(var E=this._groups,O=E.length,M=new Array(O),L=0;L<O;++L)for(var V=E[L],z=V.length,_=M[L]=new Array(z),tt,At,Mt=0;Mt<z;++Mt)(tt=V[Mt])&&(At=e.call(tt,tt.__data__,Mt,V))&&("__data__"in tt&&(At.__data__=tt.__data__),_[Mt]=At,Vn(_[Mt],f,h,Mt,_,wr(tt,h)));return new Jr(M,this._parents,f,h)}function Do(e){var f=this._name,h=this._id;typeof e!="function"&&(e=u(e));for(var E=this._groups,O=E.length,M=[],L=[],V=0;V<O;++V)for(var z=E[V],_=z.length,tt,At=0;At<_;++At)if(tt=z[At]){for(var Mt=e.call(tt,tt.__data__,At,z),Wt,fr=wr(tt,h),xr=0,Et=Mt.length;xr<Et;++xr)(Wt=Mt[xr])&&Vn(Wt,f,h,xr,Mt,fr);M.push(Mt),L.push(tt)}return new Jr(M,L,f,h)}var Lo=sr.prototype.constructor;function $o(){return new Lo(this._groups,this._parents)}function bo(e,f){var h,E,O;return function(){var M=zt(this,e),L=(this.style.removeProperty(e),zt(this,e));return M===L?null:M===h&&L===E?O:O=f(h=M,E=L)}}function ra(e){return function(){this.style.removeProperty(e)}}function Uo(e,f,h){var E,O=h+"",M;return function(){var L=zt(this,e);return L===O?null:L===E?M:M=f(E=L,h)}}function Bo(e,f,h){var E,O,M;return function(){var L=zt(this,e),V=h(this),z=V+"";return V==null&&(z=V=(this.style.removeProperty(e),zt(this,e))),L===z?null:L===E&&z===O?M:(O=z,M=f(E=L,V))}}function jo(e,f){var h,E,O,M="style."+f,L="end."+M,V;return function(){var z=Hr(this,e),_=z.on,tt=z.value[M]==null?V||(V=ra(f)):void 0;(_!==h||O!==tt)&&(E=(h=_).copy()).on(L,O=tt),z.on=E}}function wo(e,f,h){var E=(e+="")=="transform"?Fa:ta;return f==null?this.styleTween(e,bo(e,E)).on("end.style."+e,ra(e)):typeof f=="function"?this.styleTween(e,Bo(e,E,ve(this,"style."+e,f))).each(jo(this._id,e)):this.styleTween(e,Uo(e,E,f),h).on("end.style."+e,null)}function Go(e,f,h){return function(E){this.style.setProperty(e,f.call(this,E),h)}}function Vo(e,f,h){var E,O;function M(){var L=f.apply(this,arguments);return L!==O&&(E=(O=L)&&Go(e,L,h)),E}return M._value=f,M}function Ho(e,f,h){var E="style."+(e+="");if(arguments.length<2)return(E=this.tween(E))&&E._value;if(f==null)return this.tween(E,null);if(typeof f!="function")throw new Error;return this.tween(E,Vo(e,f,h==null?"":h))}function Wo(e){return function(){this.textContent=e}}function zo(e){return function(){var f=e(this);this.textContent=f==null?"":f}}function Ko(e){return this.tween("text",typeof e=="function"?zo(ve(this,"text",e)):Wo(e==null?"":e+""))}function Yo(e){return function(f){this.textContent=e.call(this,f)}}function Xo(e){var f,h;function E(){var O=e.apply(this,arguments);return O!==h&&(f=(h=O)&&Yo(O)),f}return E._value=e,E}function Jo(e){var f="text";if(arguments.length<1)return(f=this.tween(f))&&f._value;if(e==null)return this.tween(f,null);if(typeof e!="function")throw new Error;return this.tween(f,Xo(e))}function Qo(){for(var e=this._name,f=this._id,h=na(),E=this._groups,O=E.length,M=0;M<O;++M)for(var L=E[M],V=L.length,z,_=0;_<V;++_)if(z=L[_]){var tt=wr(z,f);Vn(z,e,h,_,L,{time:tt.time+tt.delay+tt.duration,delay:0,duration:tt.duration,ease:tt.ease})}return new Jr(E,this._parents,e,h)}function Zo(){var e,f,h=this,E=h._id,O=h.size();return new Promise(function(M,L){var V={value:L},z={value:function(){--O===0&&M()}};h.each(function(){var _=Hr(this,E),tt=_.on;tt!==e&&(f=(e=tt).copy(),f._.cancel.push(V),f._.interrupt.push(V),f._.end.push(z)),_.on=f}),O===0&&M()})}var ko=0;function Jr(e,f,h,E){this._groups=e,this._parents=f,this._name=h,this._id=E}function qo(e){return sr().transition(e)}function na(){return++ko}var Qr=sr.prototype;Jr.prototype=qo.prototype={constructor:Jr,select:Fo,selectAll:Do,selectChild:Qr.selectChild,selectChildren:Qr.selectChildren,filter:Io,merge:Ao,selection:$o,transition:Qo,call:Qr.call,nodes:Qr.nodes,node:Qr.node,size:Qr.size,empty:Qr.empty,each:Qr.each,on:Co,attr:io,attrTween:co,style:wo,styleTween:Ho,text:Ko,textTween:Jo,remove:Mo,tween:ba,delay:yo,duration:xo,ease:Eo,easeVarying:To,end:Zo,[Symbol.iterator]:Qr[Symbol.iterator]};function Ws(e){return e*e*e}function zs(e){return--e*e*e+1}function _o(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ts={time:null,delay:0,duration:250,ease:_o};function rs(e,f){for(var h;!(h=e.__transition)||!(h=h[f]);)if(!(e=e.parentNode))throw new Error(`transition ${f} not found`);return h}function ns(e){var f,h;e instanceof Jr?(f=e._id,e=e._name):(f=na(),(h=ts).time=oe(),e=e==null?null:e+"");for(var E=this._groups,O=E.length,M=0;M<O;++M)for(var L=E[M],V=L.length,z,_=0;_<V;++_)(z=L[_])&&Vn(z,e,f,_,L,h||rs(z,f));return new Jr(E,this._parents,e,f)}sr.prototype.interrupt=Ca,sr.prototype.transition=ns;var ea={name:"drag"},ye={name:"space"},cn={name:"handle"},dn={name:"center"};const{abs:aa,max:Pr,min:Cr}=Math;function oa(e){return[+e[0],+e[1]]}function pe(e){return[oa(e[0]),oa(e[1])]}var Jn={name:"x",handles:["w","e"].map(Rn),input:function(e,f){return e==null?null:[[+e[0],f[0][1]],[+e[1],f[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Qn={name:"y",handles:["n","s"].map(Rn),input:function(e,f){return e==null?null:[[f[0][0],+e[0]],[f[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},es={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Rn),input:function(e){return e==null?null:pe(e)},output:function(e){return e}},Zr={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},sa={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ia={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},as={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},os={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Rn(e){return{type:e}}function ss(e){return!e.ctrlKey&&!e.button}function is(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function us(){return navigator.maxTouchPoints||"ontouchstart"in this}function me(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function fs(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ks(e){var f=e.__brush;return f?f.dim.output(f.selection):null}function Ys(){return xe(Jn)}function Xs(){return xe(Qn)}function Js(){return xe(es)}function xe(e){var f=is,h=ss,E=us,O=!0,M=dispatch("start","brush","end"),L=6,V;function z(Et){var Ht=Et.property("__brush",xr).selectAll(".overlay").data([Rn("overlay")]);Ht.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Zr.overlay).merge(Ht).each(function(){var Gt=me(this).extent;select(this).attr("x",Gt[0][0]).attr("y",Gt[0][1]).attr("width",Gt[1][0]-Gt[0][0]).attr("height",Gt[1][1]-Gt[0][1])}),Et.selectAll(".selection").data([Rn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Zr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Yt=Et.selectAll(".handle").data(e.handles,function(Gt){return Gt.type});Yt.exit().remove(),Yt.enter().append("rect").attr("class",function(Gt){return"handle handle--"+Gt.type}).attr("cursor",function(Gt){return Zr[Gt.type]}),Et.each(_).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Mt).filter(E).on("touchstart.brush",Mt).on("touchmove.brush",Wt).on("touchend.brush touchcancel.brush",fr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}z.move=function(Et,Ht,Yt){Et.tween?Et.on("start.brush",function(Gt){tt(this,arguments).beforestart().start(Gt)}).on("interrupt.brush end.brush",function(Gt){tt(this,arguments).end(Gt)}).tween("brush",function(){var Gt=this,tr=Gt.__brush,rr=tt(Gt,arguments),Mr=tr.selection,zr=e.input(typeof Ht=="function"?Ht.apply(this,arguments):Ht,tr.extent),hr=interpolate(Mr,zr);function Vr(vr){tr.selection=vr===1&&zr===null?null:hr(vr),_.call(Gt),rr.brush()}return Mr!==null&&zr!==null?Vr:Vr(1)}):Et.each(function(){var Gt=this,tr=arguments,rr=Gt.__brush,Mr=e.input(typeof Ht=="function"?Ht.apply(Gt,tr):Ht,rr.extent),zr=tt(Gt,tr).beforestart();interrupt(Gt),rr.selection=Mr===null?null:Mr,_.call(Gt),zr.start(Yt).brush(Yt).end(Yt)})},z.clear=function(Et,Ht){z.move(Et,null,Ht)};function _(){var Et=select(this),Ht=me(this).selection;Ht?(Et.selectAll(".selection").style("display",null).attr("x",Ht[0][0]).attr("y",Ht[0][1]).attr("width",Ht[1][0]-Ht[0][0]).attr("height",Ht[1][1]-Ht[0][1]),Et.selectAll(".handle").style("display",null).attr("x",function(Yt){return Yt.type[Yt.type.length-1]==="e"?Ht[1][0]-L/2:Ht[0][0]-L/2}).attr("y",function(Yt){return Yt.type[0]==="s"?Ht[1][1]-L/2:Ht[0][1]-L/2}).attr("width",function(Yt){return Yt.type==="n"||Yt.type==="s"?Ht[1][0]-Ht[0][0]+L:L}).attr("height",function(Yt){return Yt.type==="e"||Yt.type==="w"?Ht[1][1]-Ht[0][1]+L:L})):Et.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function tt(Et,Ht,Yt){var Gt=Et.__brush.emitter;return Gt&&(!Yt||!Gt.clean)?Gt:new At(Et,Ht,Yt)}function At(Et,Ht,Yt){this.that=Et,this.args=Ht,this.state=Et.__brush,this.active=0,this.clean=Yt}At.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(Et,Ht){return this.starting?(this.starting=!1,this.emit("start",Et,Ht)):this.emit("brush",Et),this},brush:function(Et,Ht){return this.emit("brush",Et,Ht),this},end:function(Et,Ht){return--this.active===0&&(delete this.state.emitter,this.emit("end",Et,Ht)),this},emit:function(Et,Ht,Yt){var Gt=select(this.that).datum();M.call(Et,this.that,new BrushEvent(Et,{sourceEvent:Ht,target:z,selection:e.output(this.state.selection),mode:Yt,dispatch:M}),Gt)}};function Mt(Et){if(V&&!Et.touches||!h.apply(this,arguments))return;var Ht=this,Yt=Et.target.__data__.type,Gt=(O&&Et.metaKey?Yt="overlay":Yt)==="selection"?ea:O&&Et.altKey?dn:cn,tr=e===Qn?null:as[Yt],rr=e===Jn?null:os[Yt],Mr=me(Ht),zr=Mr.extent,hr=Mr.selection,Vr=zr[0][0],vr,Sr,rn=zr[0][1],Er,Or,nn=zr[1][0],Tr,Ir,en=zr[1][1],Ar,Rr,gr=0,yr=0,Ae,re=tr&&rr&&O&&Et.shiftKey,ne,ee,Lr=Array.from(Et.touches||[Et],Jt=>{const pr=Jt.identifier;return Jt=pointer(Jt,Ht),Jt.point0=Jt.slice(),Jt.identifier=pr,Jt});interrupt(Ht);var Cn=tt(Ht,arguments,!0).beforestart();if(Yt==="overlay"){hr&&(Ae=!0);const Jt=[Lr[0],Lr[1]||Lr[0]];Mr.selection=hr=[[vr=e===Qn?Vr:Cr(Jt[0][0],Jt[1][0]),Er=e===Jn?rn:Cr(Jt[0][1],Jt[1][1])],[Tr=e===Qn?nn:Pr(Jt[0][0],Jt[1][0]),Ar=e===Jn?en:Pr(Jt[0][1],Jt[1][1])]],Lr.length>1&&fn(Et)}else vr=hr[0][0],Er=hr[0][1],Tr=hr[1][0],Ar=hr[1][1];Sr=vr,Or=Er,Ir=Tr,Rr=Ar;var ya=select(Ht).attr("pointer-events","none"),Nn=ya.selectAll(".overlay").attr("cursor",Zr[Yt]);if(Et.touches)Cn.moved=ma,Cn.ended=xa;else{var pa=select(Et.view).on("mousemove.brush",ma,!0).on("mouseup.brush",xa,!0);O&&pa.on("keydown.brush",js,!0).on("keyup.brush",ws,!0),dragDisable(Et.view)}_.call(Ht),Cn.start(Et,Gt.name);function ma(Jt){for(const pr of Jt.changedTouches||[Jt])for(const Mn of Lr)Mn.identifier===pr.identifier&&(Mn.cur=pointer(pr,Ht));if(re&&!ne&&!ee&&Lr.length===1){const pr=Lr[0];aa(pr.cur[0]-pr[0])>aa(pr.cur[1]-pr[1])?ee=!0:ne=!0}for(const pr of Lr)pr.cur&&(pr[0]=pr.cur[0],pr[1]=pr.cur[1]);Ae=!0,noevent(Jt),fn(Jt)}function fn(Jt){const pr=Lr[0],Mn=pr.point0;var an;switch(gr=pr[0]-Mn[0],yr=pr[1]-Mn[1],Gt){case ye:case ea:{tr&&(gr=Pr(Vr-vr,Cr(nn-Tr,gr)),Sr=vr+gr,Ir=Tr+gr),rr&&(yr=Pr(rn-Er,Cr(en-Ar,yr)),Or=Er+yr,Rr=Ar+yr);break}case cn:{Lr[1]?(tr&&(Sr=Pr(Vr,Cr(nn,Lr[0][0])),Ir=Pr(Vr,Cr(nn,Lr[1][0])),tr=1),rr&&(Or=Pr(rn,Cr(en,Lr[0][1])),Rr=Pr(rn,Cr(en,Lr[1][1])),rr=1)):(tr<0?(gr=Pr(Vr-vr,Cr(nn-vr,gr)),Sr=vr+gr,Ir=Tr):tr>0&&(gr=Pr(Vr-Tr,Cr(nn-Tr,gr)),Sr=vr,Ir=Tr+gr),rr<0?(yr=Pr(rn-Er,Cr(en-Er,yr)),Or=Er+yr,Rr=Ar):rr>0&&(yr=Pr(rn-Ar,Cr(en-Ar,yr)),Or=Er,Rr=Ar+yr));break}case dn:{tr&&(Sr=Pr(Vr,Cr(nn,vr-gr*tr)),Ir=Pr(Vr,Cr(nn,Tr+gr*tr))),rr&&(Or=Pr(rn,Cr(en,Er-yr*rr)),Rr=Pr(rn,Cr(en,Ar+yr*rr)));break}}Ir<Sr&&(tr*=-1,an=vr,vr=Tr,Tr=an,an=Sr,Sr=Ir,Ir=an,Yt in sa&&Nn.attr("cursor",Zr[Yt=sa[Yt]])),Rr<Or&&(rr*=-1,an=Er,Er=Ar,Ar=an,an=Or,Or=Rr,Rr=an,Yt in ia&&Nn.attr("cursor",Zr[Yt=ia[Yt]])),Mr.selection&&(hr=Mr.selection),ne&&(Sr=hr[0][0],Ir=hr[1][0]),ee&&(Or=hr[0][1],Rr=hr[1][1]),(hr[0][0]!==Sr||hr[0][1]!==Or||hr[1][0]!==Ir||hr[1][1]!==Rr)&&(Mr.selection=[[Sr,Or],[Ir,Rr]],_.call(Ht),Cn.brush(Jt,Gt.name))}function xa(Jt){if(nopropagation(Jt),Jt.touches){if(Jt.touches.length)return;V&&clearTimeout(V),V=setTimeout(function(){V=null},500)}else dragEnable(Jt.view,Ae),pa.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ya.attr("pointer-events","all"),Nn.attr("cursor",Zr.overlay),Mr.selection&&(hr=Mr.selection),fs(hr)&&(Mr.selection=null,_.call(Ht)),Cn.end(Jt,Gt.name)}function js(Jt){switch(Jt.keyCode){case 16:{re=tr&&rr;break}case 18:{Gt===cn&&(tr&&(Tr=Ir-gr*tr,vr=Sr+gr*tr),rr&&(Ar=Rr-yr*rr,Er=Or+yr*rr),Gt=dn,fn(Jt));break}case 32:{(Gt===cn||Gt===dn)&&(tr<0?Tr=Ir-gr:tr>0&&(vr=Sr-gr),rr<0?Ar=Rr-yr:rr>0&&(Er=Or-yr),Gt=ye,Nn.attr("cursor",Zr.selection),fn(Jt));break}default:return}noevent(Jt)}function ws(Jt){switch(Jt.keyCode){case 16:{re&&(ne=ee=re=!1,fn(Jt));break}case 18:{Gt===dn&&(tr<0?Tr=Ir:tr>0&&(vr=Sr),rr<0?Ar=Rr:rr>0&&(Er=Or),Gt=cn,fn(Jt));break}case 32:{Gt===ye&&(Jt.altKey?(tr&&(Tr=Ir-gr*tr,vr=Sr+gr*tr),rr&&(Ar=Rr-yr*rr,Er=Or+yr*rr),Gt=dn):(tr<0?Tr=Ir:tr>0&&(vr=Sr),rr<0?Ar=Rr:rr>0&&(Er=Or),Gt=cn),Nn.attr("cursor",Zr[Yt]),fn(Jt));break}default:return}noevent(Jt)}}function Wt(Et){tt(this,arguments).moved(Et)}function fr(Et){tt(this,arguments).ended(Et)}function xr(){var Et=this.__brush||{selection:null};return Et.extent=pe(f.apply(this,arguments)),Et.dim=e,Et}return z.extent=function(Et){return arguments.length?(f=typeof Et=="function"?Et:constant(pe(Et)),z):f},z.filter=function(Et){return arguments.length?(h=typeof Et=="function"?Et:constant(!!Et),z):h},z.touchable=function(Et){return arguments.length?(E=typeof Et=="function"?Et:constant(!!Et),z):E},z.handleSize=function(Et){return arguments.length?(L=+Et,z):L},z.keyModifiers=function(Et){return arguments.length?(O=!!Et,z):O},z.on=function(){var Et=M.on.apply(M,arguments);return Et===M?z:Et},z}function ls(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function vs(e){const f=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",h=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",E=M=>setTimeout(M,1),O=M=>clearTimeout(M);return[f?e.requestAnimationFrame:E,f?e.cancelAnimationFrame:O,h?e.requestIdleCallback:E,h?e.cancelIdleCallback:O]}const Zn=ls(),cs=Zn==null?void 0:Zn.document,[Qs,Zs,ks,qs]=vs(Zn);var ds=Object.defineProperty,ua=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,fa=(e,f,h)=>f in e?ds(e,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[f]=h,la=(e,f)=>{for(var h in f||(f={}))hs.call(f,h)&&fa(e,h,f[h]);if(ua)for(var h of ua(f))gs.call(f,h)&&fa(e,h,f[h]);return e};const _s=e=>e||e===0,ys=e=>typeof e=="function",kn=e=>typeof e=="string",qn=e=>typeof e=="number",ps=e=>typeof e=="undefined",va=e=>typeof e!="undefined",ti=e=>typeof e=="boolean",ri=e=>Math.ceil(e/10)*10,ni=e=>Math.ceil(e)+.5,ei=e=>e[1]-e[0],Se=e=>typeof e=="object",ms=e=>ps(e)||e===null||kn(e)&&e.length===0||Se(e)&&!(e instanceof Date)&&Object.keys(e).length===0||qn(e)&&isNaN(e),xs=e=>!ms(e),Ee=e=>Array.isArray(e),_n=e=>e&&!(e!=null&&e.nodeType)&&Se(e)&&!Ee(e);function ai(e,f,h){return va(e[f])?e[f]:h}function oi(e,f){let h=!1;return Object.keys(e).forEach(E=>e[E]===f&&(h=!0)),h}function si(e,f,...h){const E=ys(e);return E&&e.call(f,...h),E}function ii(e,f){let h=0;const E=function(...O){!--h&&f.apply(this,...O)};"duration"in e?e.each(()=>++h).on("end",E):(++h,e.call(E))}function ui(e){return kn(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function fi(e,f,h=[-1,1],E=!1){if(!(!e||!kn(f)))if(f.indexOf(`
|
|
12
12
|
`)===-1)e.text(f);else{const O=[e.text(),f].map(M=>M.replace(/[\s\n]/g,""));if(O[0]!==O[1]){const M=f.split(`
|
|
13
|
-
`),L=E?M.length-1:1;e.html(""),M.forEach((V,z)=>{e.append("tspan").attr("x",0).attr("dy",`${z===0?h[0]*L:h[1]}em`).text(V)})}}}function Ss(e){const{x:f,y:h,width:E,height:O}=e.getBBox();return[{x:f,y:h+O},{x:f,y:h},{x:f+E,y:h},{x:f+E,y:h+O}]}function li(e){const{width:f,height:h}=e.getBoundingClientRect(),E=Ss(e),O=E[0].x,M=Math.min(E[0].y,E[1].y);return{x:O,y:M,width:f,height:h}}function vi(e,f){var h;const E=e&&((h=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:h[0]);let O=[0,0];try{O=d3Pointer(E||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Es(e){const{event:f,$el:h}=e,E=h.subchart.main||h.main;let O;return f&&f.type==="brush"?O=f.selection:E&&(O=E.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function ci(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function di(e=!0,f=0,h=1e4){const E=window.crypto||window.msCrypto,O=E?f+E.getRandomValues(new Uint32Array(1))[0]%(h-f+1):Math.floor(Math.random()*(h-f)+f);return e?String(O):O}function ca(e,f,h,E,O){if(h>E)return-1;const M=Math.floor((h+E)/2);let{x:L,w:V=0}=e[M];return O&&(L=e[M].y,V=e[M].h),f>=L&&f<=L+V?M:f<L?ca(e,f,h,M-1,O):ca(e,f,M+1,E,O)}function hi(e){const f=Es(e);return f?f[0]===f[1]:!0}function gi(...e){const f=h=>{if(_n(h)&&h.constructor){const E=new h.constructor;for(const O in h)E[O]=f(h[O]);return E}return h};return e.map(h=>f(h)).reduce((h,E)=>la(la({},h),E))}function Os(e={},f){Ee(f)&&f.forEach(h=>Os(e,h));for(const h in f)/^\d+$/.test(h)||h in e||(e[h]=f[h]);return e}const yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function pi(e,f="-"){return e.split(f).map((h,E)=>E?h.charAt(0).toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()).join("")}const Ts=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,L=`${E} ${(V=>V.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"](L,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Ts(h.cssRules)))}catch(O){(E=window.console)==null||E.warn(`Error while reading rules from ${h.href}: ${O.toString()}`)}}),f}function Si(e){var f,h,E,O,M,L;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+((E=e.scrollLeft)!=null?E:0),y:((M=(O=window.pageYOffset)!=null?O:window.scrollY)!=null?M:0)+((L=e.scrollTop)!=null?L:0)}}function Ei(e){const f=e?e.transform:null,h=f&&f.baseVal;return h&&h.numberOfItems?h.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function
|
|
13
|
+
`),L=E?M.length-1:1;e.html(""),M.forEach((V,z)=>{e.append("tspan").attr("x",0).attr("dy",`${z===0?h[0]*L:h[1]}em`).text(V)})}}}function Ss(e){const{x:f,y:h,width:E,height:O}=e.getBBox();return[{x:f,y:h+O},{x:f,y:h},{x:f+E,y:h},{x:f+E,y:h+O}]}function li(e){const{width:f,height:h}=e.getBoundingClientRect(),E=Ss(e),O=E[0].x,M=Math.min(E[0].y,E[1].y);return{x:O,y:M,width:f,height:h}}function vi(e,f){var h;const E=e&&((h=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:h[0]);let O=[0,0];try{O=d3Pointer(E||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Es(e){const{event:f,$el:h}=e,E=h.subchart.main||h.main;let O;return f&&f.type==="brush"?O=f.selection:E&&(O=E.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function ci(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function di(e=!0,f=0,h=1e4){const E=window.crypto||window.msCrypto,O=E?f+E.getRandomValues(new Uint32Array(1))[0]%(h-f+1):Math.floor(Math.random()*(h-f)+f);return e?String(O):O}function ca(e,f,h,E,O){if(h>E)return-1;const M=Math.floor((h+E)/2);let{x:L,w:V=0}=e[M];return O&&(L=e[M].y,V=e[M].h),f>=L&&f<=L+V?M:f<L?ca(e,f,h,M-1,O):ca(e,f,M+1,E,O)}function hi(e){const f=Es(e);return f?f[0]===f[1]:!0}function gi(...e){const f=h=>{if(_n(h)&&h.constructor){const E=new h.constructor;for(const O in h)E[O]=f(h[O]);return E}return h};return e.map(h=>f(h)).reduce((h,E)=>la(la({},h),E))}function Os(e={},f){Ee(f)&&f.forEach(h=>Os(e,h));for(const h in f)/^\d+$/.test(h)||h in e||(e[h]=f[h]);return e}const yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function pi(e,f="-"){return e.split(f).map((h,E)=>E?h.charAt(0).toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()).join("")}const Ts=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,L=`${E} ${(V=>V.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"](L,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Ts(h.cssRules)))}catch(O){(E=window.console)==null||E.warn(`Error while reading rules from ${h.href}: ${O.toString()}`)}}),f}function Si(e){var f,h,E,O,M,L;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+((E=e.scrollLeft)!=null?E:0),y:((M=(O=window.pageYOffset)!=null?O:window.scrollY)!=null?M:0)+((L=e.scrollTop)!=null?L:0)}}function Ei(e,f=0,h=0,E=!0){const O=new DOMPoint(f,h),M=e.getScreenCTM();return O.matrixTransform(E?M==null?void 0:M.inverse():M)}function Oi(e){const f=e?e.transform:null,h=f&&f.baseVal;return h&&h.numberOfItems?h.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ti(e){const f=e[0]instanceof Date,h=(f?e.map(Number):e).filter((E,O,M)=>M.indexOf(E)===O);return f?h.map(E=>new Date(E)):h}function Ii(e){return e&&e.length?e.reduce((f,h)=>f.concat(h)):[]}function Oe(e,...f){if(!f.length||f.length===1&&!f[0])return e;const h=f.shift();return _n(e)&&_n(h)&&Object.keys(h).forEach(E=>{const O=h[E];_n(O)?(!e[E]&&(e[E]={}),e[E]=Oe(e[E],O)):e[E]=Ee(O)?O.concat():O}),Oe(e,...f)}function Is(e,f=!0){let h;return e[0]instanceof Date?h=f?(E,O)=>E-O:(E,O)=>O-E:f&&!e.every(isNaN)?h=(E,O)=>E-O:f||(h=(E,O)=>E>O&&-1||E<O&&1||E===O&&0),e.concat().sort(h)}function Ai(e,f){let h=f.filter(E=>xs(E));return h.length?qn(h[0])?h=Math[e](...h):h[0]instanceof Date&&(h=Is(h,e==="min")[0]):h=void 0,h}const Ri=(e,f,h=1)=>{const E=[],O=Math.max(0,Math.ceil((f-e)/h))|0;for(let M=e;M<O;M++)E.push(e+M*h);return E},Pi={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(f,h,E=e())=>{f.dispatchEvent(new MouseEvent(h,E))}}catch(f){return(h,E,O=e())=>{const M=cs.createEvent("MouseEvent");M.initMouseEvent(E,O.bubbles,O.cancelable,Zn,0,O.screenX,O.screenY,O.clientX,O.clientY,!1,!1,!1,!1,0,null),h.dispatchEvent(M)}}})(),touch:(e,f,h)=>{const E=new Touch(Oe({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},h));e.dispatchEvent(new TouchEvent(f,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[E],targetTouches:[],changedTouches:[E]}))}};function te(e,f){let h=e;for(const E in f)h=h.replace(new RegExp(`{=${E}}`,"g"),f[E]);return h}function Ci(e){var f;let h;if(e instanceof Date)h=e;else if(kn(e)){const{config:E,format:O}=this;h=(f=O.dataTime(E.data_xFormat)(e))!=null?f:new Date(e)}else qn(e)&&!isNaN(e)&&(h=new Date(+e));return(!h||isNaN(+h))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),h}function Ni(e){const f=e.attr("viewBox");return f?/(\d+(\.\d+)?){3}/.test(f):!1}function Mi(e,f,h=!1){const E=!!e.node;let O=!1;for(const[M,L]of Object.entries(f))if(O=E?e.style(M)===L:e.style[M]===L,h===!1&&O)break;return O}function Fi(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function Di(e,f){const{DocumentTouch:h,matchMedia:E,navigator:O}=window,M=E==null?void 0:E("(pointer:coarse)").matches;let L=!1;if(f)if(O&&"maxTouchPoints"in O)L=O.maxTouchPoints>0;else if("ontouchmove"in window||h&&document instanceof h)L=!0;else if(M)L=!0;else{const z=O.userAgent;L=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(z)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(z)}return e&&!M&&(E==null?void 0:E("(pointer:fine)").matches)&&"mouse"||L&&"touch"||"mouse"}function As(e,f){f()===!1?requestAnimationFrame(()=>As(e,f)):e()}function Rs(e){const f=this.config;let h,E,O;const M=()=>{const L=E.shift();if(L&&h&&Se(h)&&L in h)return h=h[L],M();if(!L)return h};Object.keys(f).forEach(L=>{h=e,E=L.split("_"),O=M(),va(O)&&(f[L]=O)}),this.api&&(this.state.orgConfig=e)}var Ps=Object.defineProperty,Cs=(e,f,h)=>f in e?Ps(e,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[f]=h,Te=(e,f,h)=>Cs(e,typeof f!="symbol"?f+"":f,h);class da{constructor(f={}){Te(this,"$$"),Te(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Te(da,"version","3.14.0-next.2");const hn={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
|
|
14
14
|
border-collapse:collapse;
|
|
15
15
|
border-spacing:0;
|
|
16
16
|
background:#fff;
|