billboard.js 3.12.0 → 3.12.2-patch

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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +57 -35
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +9 -9
  6. package/dist/billboard.pkgd.js +224 -202
  7. package/dist/billboard.pkgd.min.js +16 -16
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +3 -3
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
  12. package/dist/plugin/billboardjs-plugin-stanford.js +3 -3
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +3 -3
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +3 -3
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +3 -3
  21. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +5 -5
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +3 -3
  23. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +6 -6
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +3 -3
  25. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +3 -3
  27. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  28. package/dist/theme/dark.css +1 -1
  29. package/dist/theme/dark.min.css +1 -1
  30. package/dist/theme/datalab.css +1 -1
  31. package/dist/theme/datalab.min.css +1 -1
  32. package/dist/theme/graph.css +1 -1
  33. package/dist/theme/graph.min.css +1 -1
  34. package/dist/theme/insight.css +1 -1
  35. package/dist/theme/insight.min.css +1 -1
  36. package/dist/theme/modern.css +1 -1
  37. package/dist/theme/modern.min.css +1 -1
  38. package/dist-esm/billboard.js +72 -39
  39. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  43. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  44. package/package.json +12 -12
  45. package/src/ChartInternal/data/load.ts +3 -0
  46. package/src/ChartInternal/interactions/zoom.ts +0 -4
  47. package/src/ChartInternal/shape/funnel.ts +49 -25
  48. package/src/ChartInternal/shape/treemap.ts +19 -10
  49. package/src/module/util.ts +2 -2
  50. package/types/types.d.ts +1 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.0
8
+ * @version 3.12.2-patch
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -22864,7 +22864,7 @@ function convertInputType(mouse, touch) {
22864
22864
  }
22865
22865
  }
22866
22866
  }
22867
- const hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some((v) => matchMedia == null ? void 0 : matchMedia(`(${v})`).matches);
22867
+ const hasMouse = mouse && ((matchMedia == null ? void 0 : matchMedia("any-hover:hover").matches) || (matchMedia == null ? void 0 : matchMedia("any-pointer:fine").matches));
22868
22868
  return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
22869
22869
  }
22870
22870
  function runUntil(fn, conditionFn) {
@@ -22958,7 +22958,7 @@ class Plugin {
22958
22958
  });
22959
22959
  }
22960
22960
  }
22961
- __publicField(Plugin, "version", "3.12.0");
22961
+ __publicField(Plugin, "version", "3.12.2-patch");
22962
22962
 
22963
22963
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/const.ts
22964
22964
 
@@ -5,12 +5,12 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.0
8
+ * @version 3.12.2-patch
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(Kr,Nr){typeof exports=="object"&&typeof module=="object"?module.exports=Nr():typeof define=="function"&&define.amd?define("bb",[],Nr):typeof exports=="object"?exports.bb=Nr():(Kr.bb=Kr.bb||{},Kr.bb.plugin=Kr.bb.plugin||{},Kr.bb.plugin["tableview.pkgd"]=Nr())})(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],$=M.length,G=E[O]=new Array($),Y,rt,nt=0;nt<$;++nt)(Y=M[nt])&&(rt=e.call(Y,Y.__data__,nt,M))&&("__data__"in Y&&(rt.__data__=Y.__data__),G[nt]=rt);return new Mt(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 $=f[M],G=$.length,Y,rt=0;rt<G;++rt)(Y=$[rt])&&(E.push(e.call(Y,Y.__data__,rt,$)),O.push(Y));return new Mt(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 I(){return Array.from(this.children)}function P(e){return function(){return x.call(this.children,e)}}function A(e){return this.selectAll(e==null?I:P(typeof e=="function"?e:g(e)))}function R(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],$=M.length,G=E[O]=[],Y,rt=0;rt<$;++rt)(Y=M[rt])&&e.call(Y,Y.__data__,rt,M)&&G.push(Y);return new Mt(E,this._parents)}function N(e){return new Array(e.length)}function T(){return new Mt(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 D(e){return function(){return e}}function L(e,f,h,E,O,M){for(var $=0,G,Y=f.length,rt=M.length;$<rt;++$)(G=f[$])?(G.__data__=M[$],E[$]=G):h[$]=new C(e,M[$]);for(;$<Y;++$)(G=f[$])&&(O[$]=G)}function F(e,f,h,E,O,M,$){var G,Y,rt=new Map,nt=f.length,Et=M.length,Ct=new Array(nt),Gt;for(G=0;G<nt;++G)(Y=f[G])&&(Ct[G]=Gt=$.call(Y,Y.__data__,G,f)+"",rt.has(Gt)?O[G]=Y:rt.set(Gt,Y));for(G=0;G<Et;++G)Gt=$.call(e,M[G],G,M)+"",(Y=rt.get(Gt))?(E[G]=Y,Y.__data__=M[G],rt.delete(Gt)):h[G]=new C(e,M[G]);for(G=0;G<nt;++G)(Y=f[G])&&rt.get(Ct[G])===Y&&(O[G]=Y)}function b(e){return e.__data__}function w(e,f){if(!arguments.length)return Array.from(this,b);var h=f?F:L,E=this._parents,O=this._groups;typeof e!="function"&&(e=D(e));for(var M=O.length,$=new Array(M),G=new Array(M),Y=new Array(M),rt=0;rt<M;++rt){var nt=E[rt],Et=O[rt],Ct=Et.length,Gt=V(e.call(nt,nt&&nt.__data__,rt,E)),or=Gt.length,hr=G[rt]=new Array(or),mt=$[rt]=new Array(or),wt=Y[rt]=new Array(Ct);h(nt,Et,hr,mt,wt,Gt,f);for(var Wt=0,Bt=0,qt,tr;Wt<or;++Wt)if(qt=hr[Wt]){for(Wt>=Bt&&(Bt=Wt+1);!(tr=mt[Bt])&&++Bt<or;);qt._next=tr||null}}return $=new Mt($,E),$._enter=G,$._exit=Y,$}function V(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U(){return new Mt(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,$=Math.min(O,M),G=new Array(O),Y=0;Y<$;++Y)for(var rt=h[Y],nt=E[Y],Et=rt.length,Ct=G[Y]=new Array(Et),Gt,or=0;or<Et;++or)(Gt=rt[or]||nt[or])&&(Ct[or]=Gt);for(;Y<O;++Y)G[Y]=h[Y];return new Mt(G,this._parents)}function z(){for(var e=this._groups,f=-1,h=e.length;++f<h;)for(var E=e[f],O=E.length-1,M=E[O],$;--O>=0;)($=E[O])&&(M&&$.compareDocumentPosition(M)^4&&M.parentNode.insertBefore($,M),M=$);return this}function k(e){e||(e=J);function f(Et,Ct){return Et&&Ct?e(Et.__data__,Ct.__data__):!Et-!Ct}for(var h=this._groups,E=h.length,O=new Array(E),M=0;M<E;++M){for(var $=h[M],G=$.length,Y=O[M]=new Array(G),rt,nt=0;nt<G;++nt)(rt=$[nt])&&(Y[nt]=rt);Y.sort(f)}return new Mt(O,this._parents).order()}function J(e,f){return e<f?-1:e>f?1:e>=f?0:NaN}function et(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _(){return Array.from(this)}function dt(){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 $=E[O];if($)return $}return null}function lt(){let e=0;for(const f of this)++e;return e}function pt(){return!this.node()}function St(e){for(var f=this._groups,h=0,E=f.length;h<E;++h)for(var O=f[h],M=0,$=O.length,G;M<$;++M)(G=O[M])&&e.call(G,G.__data__,M,O);return this}var Ot="http://www.w3.org/1999/xhtml",Ht={svg:"http://www.w3.org/2000/svg",xhtml:Ot,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $t(e){var f=e+="",h=f.indexOf(":");return h>=0&&(f=e.slice(0,h))!=="xmlns"&&(e=e.slice(h+1)),Ht.hasOwnProperty(f)?{space:Ht[f],local:e}:e}function bt(e){return function(){this.removeAttribute(e)}}function vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gt(e,f){return function(){this.setAttribute(e,f)}}function Pt(e,f){return function(){this.setAttributeNS(e.space,e.local,f)}}function Dt(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 Ut(e,f){var h=$t(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:Dt:h.local?Pt:gt)(h,f))}function Zt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function kt(e){return function(){this.style.removeProperty(e)}}function Jt(e,f,h){return function(){this.style.setProperty(e,f,h)}}function Lt(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?kt:typeof f=="function"?Lt:Jt)(e,f,h==null?"":h)):Vt(this.node(),e)}function Vt(e,f){return e.style.getPropertyValue(f)||Zt(e).getComputedStyle(e,null).getPropertyValue(f)}function jt(e){return function(){delete this[e]}}function st(e,f){return function(){this[e]=f}}function ht(e,f){return function(){var h=f.apply(this,arguments);h==null?delete this[e]:this[e]=h}}function tt(e,f){return arguments.length>1?this.each((f==null?jt:typeof f=="function"?ht:st)(e,f)):this.node()[e]}function It(e){return e.trim().split(/^|\s+/)}function Tt(e){return e.classList||new xt(e)}function xt(e){this._node=e,this._names=It(e.getAttribute("class")||"")}xt.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 yt(e,f){for(var h=Tt(e),E=-1,O=f.length;++E<O;)h.add(f[E])}function _t(e,f){for(var h=Tt(e),E=-1,O=f.length;++E<O;)h.remove(f[E])}function nr(e){return function(){yt(this,e)}}function Q(e){return function(){_t(this,e)}}function ot(e,f){return function(){(f.apply(this,arguments)?yt:_t)(this,e)}}function ut(e,f){var h=It(e+"");if(arguments.length<2){for(var E=Tt(this.node()),O=-1,M=h.length;++O<M;)if(!E.contains(h[O]))return!1;return!0}return this.each((typeof f=="function"?ot:f?nr:Q)(h,f))}function W(){this.textContent=""}function Z(e){return function(){this.textContent=e}}function K(e){return function(){var f=e.apply(this,arguments);this.textContent=f==null?"":f}}function ct(e){return arguments.length?this.each(e==null?W:(typeof e=="function"?K:Z)(e)):this.node().textContent}function Rt(){this.innerHTML=""}function Ft(e){return function(){this.innerHTML=e}}function Kt(e){return function(){var f=e.apply(this,arguments);this.innerHTML=f==null?"":f}}function Yt(e){return arguments.length?this.each(e==null?Rt:(typeof e=="function"?Kt:Ft)(e)):this.node().innerHTML}function zt(){this.nextSibling&&this.parentNode.appendChild(this)}function ar(){return this.each(zt)}function Yr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function an(){return this.each(Yr)}function on(e){return function(){var f=this.ownerDocument,h=this.namespaceURI;return h===Ot&&f.documentElement.namespaceURI===Ot?f.createElement(e):f.createElementNS(h,e)}}function dn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function sn(e){var f=$t(e);return(f.local?dn:on)(f)}function hn(e){var f=typeof e=="function"?e:sn(e);return this.select(function(){return this.appendChild(f.apply(this,arguments))})}function gn(){return null}function Dn(e,f){var h=typeof e=="function"?e:sn(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 Xr(){return this.each(yn)}function Mr(){var e=this.cloneNode(!1),f=this.parentNode;return f?f.insertBefore(e,this.nextSibling):e}function Fn(){var e=this.cloneNode(!0),f=this.parentNode;return f?f.insertBefore(e,this.nextSibling):e}function wr(e){return this.select(e?Fn:Mr)}function Dr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function pn(e){return function(f){e.call(this,f,this.__data__)}}function Jr(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 dr(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 Rr(e,f,h){return function(){var E=this.__on,O,M=pn(f);if(E){for(var $=0,G=E.length;$<G;++$)if((O=E[$]).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=Jr(e+""),O,M=E.length,$;if(arguments.length<2){var G=this.node().__on;if(G){for(var Y=0,rt=G.length,nt;Y<rt;++Y)for(O=0,nt=G[Y];O<M;++O)if(($=E[O]).type===nt.type&&$.name===nt.name)return nt.value}return}for(G=f?Rr:dr,O=0;O<M;++O)this.each(G(E[O],f,h));return this}function mn(e,f,h){var E=Zt(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 X(e,f){return function(){return mn(this,e,f)}}function ft(e,f){return function(){return mn(this,e,f.apply(this,arguments))}}function q(e,f){return this.each((typeof f=="function"?ft:X)(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,$;O<M;++O)($=E[O])&&(yield $)}var at=[null];function Mt(e,f){this._groups=e,this._parents=f}function At(){return new Mt([[document.documentElement]],at)}function er(){return this}Mt.prototype=At.prototype={constructor:Mt,select:a,selectAll:v,selectChild:S,selectChildren:A,filter:R,data:w,enter:T,exit:U,join:B,merge:j,selection:er,order:z,sort:k,call:et,nodes:_,node:dt,size:lt,empty:pt,each:St,attr:Ut,style:Qt,property:tt,classed:ut,text:ct,html:Yt,raise:ar,lower:an,append:hn,insert:Dn,remove:Xr,clone:wr,datum:Dr,on:Ln,dispatch:q,[Symbol.iterator]:H};var rr=At,ur={value:()=>{}};function Tr(){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 sr(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=Tr.prototype={constructor:it,on:function(e,f){var h=this._,E=sr(e+"",h),O,M=-1,$=E.length;if(arguments.length<2){for(;++M<$;)if((O=(e=E[M]).type)&&(O=Fr(h[O],e.name)))return O;return}if(f!=null&&typeof f!="function")throw new Error("invalid callback: "+f);for(;++M<$;)if(O=(e=E[M]).type)h[O]=un(h[O],e.name,f);else if(f==null)for(O in h)h[O]=un(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 Fr(e,f){for(var h=0,E=e.length,O;h<E;++h)if((O=e[h]).name===f)return O.value}function un(e,f,h){for(var E=0,O=e.length;E<O;++E)if(e[E].name===f){e[E]=ur,e=e.slice(0,E).concat(e.slice(E+1));break}return h!=null&&e.push({name:f,value:h}),e}var $n=Tr,Gr=0,Vr=0,xn=0,Pe=1e3,bn,Sn,Un=0,tn=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 tn||(Ce(Sa),tn=En.now()+Bn)}function Sa(){tn=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(),++Gr;for(var e=bn,f;e;)(f=tn-e._time)>=0&&e._call.call(void 0,f),e=e._next;--Gr}function Me(){tn=(Un=En.now())+Bn,Gr=Vr=0;try{Ea()}finally{Gr=0,Ia(),tn=0}}function Oa(){var e=En.now(),f=e-Un;f>Pe&&(Bn-=f,Un=e)}function Ia(){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(!Gr){Vr&&(Vr=clearTimeout(Vr));var f=e-tn;f>24?(e<1/0&&(Vr=setTimeout(Me,e-En.now()-Bn)),xn&&(xn=clearInterval(xn))):(xn||(Un=En.now(),xn=setInterval(Oa,Pe)),Gr=1,Ce(Me))}}function De(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 Ta=$n("start","end","cancel","interrupt"),Aa=[],Fe=0,Le=1,ie=2,wn=3,$e=4,ue=5,Gn=6;function Vn(e,f,h,E,O,M){var $=e.__transition;if(!$)e.__transition={};else if(h in $)return;Ra(e,h,{name:f,index:E,group:O,on:Ta,tween:Aa,time:M.time,delay:M.delay,duration:M.duration,ease:M.ease,timer:null,state:Fe})}function fe(e,f){var h=Lr(e,f);if(h.state>Fe)throw new Error("too late; already scheduled");return h}function Ur(e,f){var h=Lr(e,f);if(h.state>wn)throw new Error("too late; already running");return h}function Lr(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(rt){h.state=Le,h.timer.restart($,h.delay,h.time),h.delay<=rt&&$(rt-h.delay)}function $(rt){var nt,Et,Ct,Gt;if(h.state!==Le)return Y();for(nt in E)if(Gt=E[nt],Gt.name===h.name){if(Gt.state===wn)return De($);Gt.state===$e?(Gt.state=Gn,Gt.timer.stop(),Gt.on.call("interrupt",e,e.__data__,Gt.index,Gt.group),delete E[nt]):+nt<f&&(Gt.state=Gn,Gt.timer.stop(),Gt.on.call("cancel",e,e.__data__,Gt.index,Gt.group),delete E[nt])}if(De(function(){h.state===wn&&(h.state=$e,h.timer.restart(G,h.delay,h.time),G(rt))}),h.state=ie,h.on.call("start",e,e.__data__,h.index,h.group),h.state===ie){for(h.state=wn,O=new Array(Ct=h.tween.length),nt=0,Et=-1;nt<Ct;++nt)(Gt=h.tween[nt].value.call(e,e.__data__,h.index,h.group))&&(O[++Et]=Gt);O.length=Et+1}}function G(rt){for(var nt=rt<h.duration?h.ease.call(null,rt/h.duration):(h.timer.restart(Y),h.state=ue,1),Et=-1,Ct=O.length;++Et<Ct;)O[Et].call(e,nt);h.state===ue&&(h.on.call("end",e,e.__data__,h.index,h.group),Y())}function Y(){h.state=Gn,h.timer.stop(),delete E[f];for(var rt in E)return;delete e.__transition}}function Pa(e,f){var h=e.__transition,E,O,M=!0,$;if(h){f=f==null?null:f+"";for($ in h){if((E=h[$]).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[$]}M&&delete e.__transition}}function Ca(e){return this.each(function(){Pa(this,e)})}function Qr(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 $,G,Y;return($=Math.sqrt(e*e+f*f))&&(e/=$,f/=$),(Y=e*h+f*E)&&(h-=e*Y,E-=f*Y),(G=Math.sqrt(h*h+E*E))&&(h/=G,E/=G,Y/=G),e*E<f*h&&(e=-e,f=-f,Y=-Y,$=-$),{translateX:O,translateY:M,rotate:Math.atan2(f,e)*be,skewX:Math.atan(Y)*be,scaleX:$,scaleY:G}}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(rt){return rt.length?rt.pop()+" ":""}function M(rt,nt,Et,Ct,Gt,or){if(rt!==Et||nt!==Ct){var hr=Gt.push("translate(",null,f,null,h);or.push({i:hr-4,x:Qr(rt,Et)},{i:hr-2,x:Qr(nt,Ct)})}else(Et||Ct)&&Gt.push("translate("+Et+f+Ct+h)}function $(rt,nt,Et,Ct){rt!==nt?(rt-nt>180?nt+=360:nt-rt>180&&(rt+=360),Ct.push({i:Et.push(O(Et)+"rotate(",null,E)-2,x:Qr(rt,nt)})):nt&&Et.push(O(Et)+"rotate("+nt+E)}function G(rt,nt,Et,Ct){rt!==nt?Ct.push({i:Et.push(O(Et)+"skewX(",null,E)-2,x:Qr(rt,nt)}):nt&&Et.push(O(Et)+"skewX("+nt+E)}function Y(rt,nt,Et,Ct,Gt,or){if(rt!==Et||nt!==Ct){var hr=Gt.push(O(Gt)+"scale(",null,",",null,")");or.push({i:hr-4,x:Qr(rt,Et)},{i:hr-2,x:Qr(nt,Ct)})}else(Et!==1||Ct!==1)&&Gt.push(O(Gt)+"scale("+Et+","+Ct+")")}return function(rt,nt){var Et=[],Ct=[];return rt=e(rt),nt=e(nt),M(rt.translateX,rt.translateY,nt.translateX,nt.translateY,Et,Ct),$(rt.rotate,nt.rotate,Et,Ct),G(rt.skewX,nt.skewX,Et,Ct),Y(rt.scaleX,rt.scaleY,nt.scaleX,nt.scaleY,Et,Ct),rt=nt=null,function(Gt){for(var or=-1,hr=Ct.length,mt;++or<hr;)Et[(mt=Ct[or]).i]=mt.x(Gt);return Et.join("")}}}var Da=Be(Na,"px, ","px)","deg)"),Fa=Be(Ma,", ",")",")");function La(e,f){var h,E;return function(){var O=Ur(this,e),M=O.tween;if(M!==h){E=h=M;for(var $=0,G=E.length;$<G;++$)if(E[$].name===f){E=E.slice(),E.splice($,1);break}}O.tween=E}}function $a(e,f,h){var E,O;if(typeof h!="function")throw new Error;return function(){var M=Ur(this,e),$=M.tween;if($!==E){O=(E=$).slice();for(var G={name:f,value:h},Y=0,rt=O.length;Y<rt;++Y)if(O[Y].name===f){O[Y]=G;break}Y===rt&&O.push(G)}M.tween=O}}function ba(e,f){var h=this._id;if(e+="",arguments.length<2){for(var E=Lr(this.node(),h).tween,O=0,M=E.length,$;O<M;++O)if(($=E[O]).name===e)return $.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=Ur(this,E);(O.value||(O.value={}))[f]=h.apply(this,arguments)}),function(O){return Lr(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 In=.7,Wn=1/In,fn="\\s*([+-]?\\d+)\\s*",Tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ua=/^#([0-9a-f]{3,8})$/,Ba=new RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),ja=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),wa=new RegExp(`^rgba\\(${fn},${fn},${fn},${Tn}\\)$`),Ga=new RegExp(`^rgba\\(${Br},${Br},${Br},${Tn}\\)$`),Va=new RegExp(`^hsl\\(${Tn},${Br},${Br}\\)$`),Ha=new RegExp(`^hsla\\(${Tn},${Br},${Br},${Tn}\\)$`),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 Pr(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 Pr(f[1],f[2],f[3],1):(f=ja.exec(e))?new Pr(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 Pr(NaN,NaN,NaN,0):null}function He(e){return new Pr(e>>16&255,e>>8&255,e&255,1)}function zn(e,f,h,E){return E<=0&&(e=f=h=NaN),new Pr(e,f,h,E)}function Ka(e){return e instanceof On||(e=An(e)),e?(e=e.rgb(),new Pr(e.r,e.g,e.b,e.opacity)):new Pr}function Kn(e,f,h,E){return arguments.length===1?Ka(e):new Pr(e,f,h,E==null?1:E)}function Pr(e,f,h,E){this.r=+e,this.g=+f,this.b=+h,this.opacity=+E}ce(Pr,Kn,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pr(rn(this.r),rn(this.g),rn(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`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function Ya(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function ze(){const e=Yn(this.opacity);return`${e===1?"rgb(":"rgba("}${rn(this.r)}, ${rn(this.g)}, ${rn(this.b)}${e===1?")":`, ${e})`}`}function Yn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nn(e){return e=rn(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 $r(e,f,h,E)}function Ye(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=An(e)),!e)return new $r;if(e instanceof $r)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),$=NaN,G=M-O,Y=(M+O)/2;return G?(f===M?$=(h-E)/G+(h<E)*6:h===M?$=(E-f)/G+2:$=(f-h)/G+4,G/=Y<.5?M+O:2-M-O,$*=60):G=Y>0&&Y<1?0:$,new $r($,G,Y,e.opacity)}function Xa(e,f,h,E){return arguments.length===1?Ye(e):new $r(e,f,h,E==null?1:E)}function $r(e,f,h,E){this.h=+e,this.s=+f,this.l=+h,this.opacity=+E}ce($r,Xa,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new $r(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 Pr(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 $r(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,$=M*e;return((1-3*e+3*M-$)*f+(4-6*M+3*$)*h+(1+3*e+3*M-3*$)*E+$*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],$=E>0?e[E-1]:2*O-M,G=E<f-1?e[E+2]:2*M-O;return Je((h-E/f)*f,$,O,M,G)}}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],$=e[(E+1)%f],G=e[(E+2)%f];return Je((h-E/f)*f,O,M,$,G)}}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 $=h((O=Kn(O)).r,(M=Kn(M)).r),G=h(O.g,M.g),Y=h(O.b,M.b),rt=ke(O.opacity,M.opacity);return function(nt){return O.r=$(nt),O.g=G(nt),O.b=Y(nt),O.opacity=rt(nt),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),$,G;for($=0;$<h;++$)G=Kn(f[$]),E[$]=G.r||0,O[$]=G.g||0,M[$]=G.b||0;return E=e(E),O=e(O),M=e(M),G.opacity=1,function(Y){return G.r=E(Y),G.g=O(Y),G.b=M(Y),G+""}}}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,$=-1,G=[],Y=[];for(e=e+"",f=f+"";(E=he.exec(e))&&(O=ge.exec(f));)(M=O.index)>h&&(M=f.slice(h,M),G[$]?G[$]+=M:G[++$]=M),(E=E[0])===(O=O[0])?G[$]?G[$]+=O:G[++$]=O:(G[++$]=null,Y.push({i:$,x:Qr(E,O)})),h=ge.lastIndex;return h<f.length&&(M=f.slice(h),G[$]?G[$]+=M:G[++$]=M),G.length<2?Y[0]?_a(Y[0].x):qa(f):(f=Y.length,function(rt){for(var nt=0,Et;nt<f;++nt)G[(Et=Y[nt]).i]=Et.x(rt);return G.join("")})}function ta(e,f){var h;return(typeof f=="number"?Qr: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 $=this.getAttribute(e);return $===O?null:$===E?M:M=f(E=$,h)}}function ao(e,f,h){var E,O=h+"",M;return function(){var $=this.getAttributeNS(e.space,e.local);return $===O?null:$===E?M:M=f(E=$,h)}}function oo(e,f,h){var E,O,M;return function(){var $,G=h(this),Y;return G==null?void this.removeAttribute(e):($=this.getAttribute(e),Y=G+"",$===Y?null:$===E&&Y===O?M:(O=Y,M=f(E=$,G)))}}function so(e,f,h){var E,O,M;return function(){var $,G=h(this),Y;return G==null?void this.removeAttributeNS(e.space,e.local):($=this.getAttributeNS(e.space,e.local),Y=G+"",$===Y?null:$===E&&Y===O?M:(O=Y,M=f(E=$,G)))}}function io(e,f){var h=$t(e),E=h==="transform"?Fa: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=$t(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)):Lr(this.node(),f).delay}function po(e,f){return function(){Ur(this,e).duration=+f.apply(this,arguments)}}function mo(e,f){return f=+f,function(){Ur(this,e).duration=f}}function xo(e){var f=this._id;return arguments.length?this.each((typeof e=="function"?po:mo)(f,e)):Lr(this.node(),f).duration}function So(e,f){if(typeof f!="function")throw new Error;return function(){Ur(this,e).ease=f}}function Eo(e){var f=this._id;return arguments.length?this.each(So(f,e)):Lr(this.node(),f).ease}function Oo(e,f){return function(){var h=f.apply(this,arguments);if(typeof h!="function")throw new Error;Ur(this,e).ease=h}}function Io(e){if(typeof e!="function")throw new Error;return this.each(Oo(this._id,e))}function To(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],$=M.length,G=E[O]=[],Y,rt=0;rt<$;++rt)(Y=M[rt])&&e.call(Y,Y.__data__,rt,M)&&G.push(Y);return new Hr(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),$=new Array(E),G=0;G<M;++G)for(var Y=f[G],rt=h[G],nt=Y.length,Et=$[G]=new Array(nt),Ct,Gt=0;Gt<nt;++Gt)(Ct=Y[Gt]||rt[Gt])&&(Et[Gt]=Ct);for(;G<E;++G)$[G]=f[G];return new Hr($,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:Ur;return function(){var $=M(this,e),G=$.on;G!==E&&(O=(E=G).copy()).on(f,h),$.on=O}}function Co(e,f){var h=this._id;return arguments.length<2?Lr(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 Do(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),$=0;$<O;++$)for(var G=E[$],Y=G.length,rt=M[$]=new Array(Y),nt,Et,Ct=0;Ct<Y;++Ct)(nt=G[Ct])&&(Et=e.call(nt,nt.__data__,Ct,G))&&("__data__"in nt&&(Et.__data__=nt.__data__),rt[Ct]=Et,Vn(rt[Ct],f,h,Ct,rt,Lr(nt,h)));return new Hr(M,this._parents,f,h)}function Fo(e){var f=this._name,h=this._id;typeof e!="function"&&(e=u(e));for(var E=this._groups,O=E.length,M=[],$=[],G=0;G<O;++G)for(var Y=E[G],rt=Y.length,nt,Et=0;Et<rt;++Et)if(nt=Y[Et]){for(var Ct=e.call(nt,nt.__data__,Et,Y),Gt,or=Lr(nt,h),hr=0,mt=Ct.length;hr<mt;++hr)(Gt=Ct[hr])&&Vn(Gt,f,h,hr,Ct,or);M.push(Ct),$.push(nt)}return new Hr(M,$,f,h)}var Lo=rr.prototype.constructor;function $o(){return new Lo(this._groups,this._parents)}function bo(e,f){var h,E,O;return function(){var M=Vt(this,e),$=(this.style.removeProperty(e),Vt(this,e));return M===$?null:M===h&&$===E?O:O=f(h=M,E=$)}}function ra(e){return function(){this.style.removeProperty(e)}}function Uo(e,f,h){var E,O=h+"",M;return function(){var $=Vt(this,e);return $===O?null:$===E?M:M=f(E=$,h)}}function Bo(e,f,h){var E,O,M;return function(){var $=Vt(this,e),G=h(this),Y=G+"";return G==null&&(Y=G=(this.style.removeProperty(e),Vt(this,e))),$===Y?null:$===E&&Y===O?M:(O=Y,M=f(E=$,G))}}function jo(e,f){var h,E,O,M="style."+f,$="end."+M,G;return function(){var Y=Ur(this,e),rt=Y.on,nt=Y.value[M]==null?G||(G=ra(f)):void 0;(rt!==h||O!==nt)&&(E=(h=rt).copy()).on($,O=nt),Y.on=E}}function wo(e,f,h){var E=(e+="")=="transform"?Da: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 $=f.apply(this,arguments);return $!==O&&(E=(O=$)&&Go(e,$,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 $=E[M],G=$.length,Y,rt=0;rt<G;++rt)if(Y=$[rt]){var nt=Lr(Y,f);Vn(Y,e,h,rt,$,{time:nt.time+nt.delay+nt.duration,delay:0,duration:nt.duration,ease:nt.ease})}return new Hr(E,this._parents,e,h)}function Zo(){var e,f,h=this,E=h._id,O=h.size();return new Promise(function(M,$){var G={value:$},Y={value:function(){--O===0&&M()}};h.each(function(){var rt=Ur(this,E),nt=rt.on;nt!==e&&(f=(e=nt).copy(),f._.cancel.push(G),f._.interrupt.push(G),f._.end.push(Y)),rt.on=f}),O===0&&M()})}var ko=0;function Hr(e,f,h,E){this._groups=e,this._parents=f,this._name=h,this._id=E}function qo(e){return rr().transition(e)}function na(){return++ko}var Wr=rr.prototype;Hr.prototype=qo.prototype={constructor:Hr,select:Do,selectAll:Fo,selectChild:Wr.selectChild,selectChildren:Wr.selectChildren,filter:To,merge:Ao,selection:$o,transition:Qo,call:Wr.call,nodes:Wr.nodes,node:Wr.node,size:Wr.size,empty:Wr.empty,each:Wr.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:Io,end:Zo,[Symbol.iterator]:Wr[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 Hr?(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 $=E[M],G=$.length,Y,rt=0;rt<G;++rt)(Y=$[rt])&&Vn(Y,e,f,rt,$,h||rs(Y,f));return new Hr(E,this._parents,e,f)}rr.prototype.interrupt=Ca,rr.prototype.transition=ns;var ea={name:"drag"},ye={name:"space"},ln={name:"handle"},vn={name:"center"};const{abs:aa,max:Or,min:Ir}=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"),$=6,G;function Y(mt){var wt=mt.property("__brush",hr).selectAll(".overlay").data([Rn("overlay")]);wt.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",zr.overlay).merge(wt).each(function(){var Bt=me(this).extent;select(this).attr("x",Bt[0][0]).attr("y",Bt[0][1]).attr("width",Bt[1][0]-Bt[0][0]).attr("height",Bt[1][1]-Bt[0][1])}),mt.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 Wt=mt.selectAll(".handle").data(e.handles,function(Bt){return Bt.type});Wt.exit().remove(),Wt.enter().append("rect").attr("class",function(Bt){return"handle handle--"+Bt.type}).attr("cursor",function(Bt){return zr[Bt.type]}),mt.each(rt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Ct).filter(E).on("touchstart.brush",Ct).on("touchmove.brush",Gt).on("touchend.brush touchcancel.brush",or).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Y.move=function(mt,wt,Wt){mt.tween?mt.on("start.brush",function(Bt){nt(this,arguments).beforestart().start(Bt)}).on("interrupt.brush end.brush",function(Bt){nt(this,arguments).end(Bt)}).tween("brush",function(){var Bt=this,qt=Bt.__brush,tr=nt(Bt,arguments),Ar=qt.selection,jr=e.input(typeof wt=="function"?wt.apply(this,arguments):wt,qt.extent),fr=interpolate(Ar,jr);function br(ir){qt.selection=ir===1&&jr===null?null:fr(ir),rt.call(Bt),tr.brush()}return Ar!==null&&jr!==null?br:br(1)}):mt.each(function(){var Bt=this,qt=arguments,tr=Bt.__brush,Ar=e.input(typeof wt=="function"?wt.apply(Bt,qt):wt,tr.extent),jr=nt(Bt,qt).beforestart();interrupt(Bt),tr.selection=Ar===null?null:Ar,rt.call(Bt),jr.start(Wt).brush(Wt).end(Wt)})},Y.clear=function(mt,wt){Y.move(mt,null,wt)};function rt(){var mt=select(this),wt=me(this).selection;wt?(mt.selectAll(".selection").style("display",null).attr("x",wt[0][0]).attr("y",wt[0][1]).attr("width",wt[1][0]-wt[0][0]).attr("height",wt[1][1]-wt[0][1]),mt.selectAll(".handle").style("display",null).attr("x",function(Wt){return Wt.type[Wt.type.length-1]==="e"?wt[1][0]-$/2:wt[0][0]-$/2}).attr("y",function(Wt){return Wt.type[0]==="s"?wt[1][1]-$/2:wt[0][1]-$/2}).attr("width",function(Wt){return Wt.type==="n"||Wt.type==="s"?wt[1][0]-wt[0][0]+$:$}).attr("height",function(Wt){return Wt.type==="e"||Wt.type==="w"?wt[1][1]-wt[0][1]+$:$})):mt.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function nt(mt,wt,Wt){var Bt=mt.__brush.emitter;return Bt&&(!Wt||!Bt.clean)?Bt:new Et(mt,wt,Wt)}function Et(mt,wt,Wt){this.that=mt,this.args=wt,this.state=mt.__brush,this.active=0,this.clean=Wt}Et.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(mt,wt){return this.starting?(this.starting=!1,this.emit("start",mt,wt)):this.emit("brush",mt),this},brush:function(mt,wt){return this.emit("brush",mt,wt),this},end:function(mt,wt){return--this.active===0&&(delete this.state.emitter,this.emit("end",mt,wt)),this},emit:function(mt,wt,Wt){var Bt=select(this.that).datum();M.call(mt,this.that,new BrushEvent(mt,{sourceEvent:wt,target:Y,selection:e.output(this.state.selection),mode:Wt,dispatch:M}),Bt)}};function Ct(mt){if(G&&!mt.touches||!h.apply(this,arguments))return;var wt=this,Wt=mt.target.__data__.type,Bt=(O&&mt.metaKey?Wt="overlay":Wt)==="selection"?ea:O&&mt.altKey?vn:ln,qt=e===Qn?null:as[Wt],tr=e===Jn?null:os[Wt],Ar=me(wt),jr=Ar.extent,fr=Ar.selection,br=jr[0][0],ir,gr,Zr=jr[0][1],yr,pr,kr=jr[1][0],mr,xr,qr=jr[1][1],Sr,Er,lr=0,vr=0,Ae,re=qt&&tr&&O&&mt.shiftKey,ne,ee,Cr=Array.from(mt.touches||[mt],Xt=>{const cr=Xt.identifier;return Xt=pointer(Xt,wt),Xt.point0=Xt.slice(),Xt.identifier=cr,Xt});interrupt(wt);var Cn=nt(wt,arguments,!0).beforestart();if(Wt==="overlay"){fr&&(Ae=!0);const Xt=[Cr[0],Cr[1]||Cr[0]];Ar.selection=fr=[[ir=e===Qn?br:Ir(Xt[0][0],Xt[1][0]),yr=e===Jn?Zr:Ir(Xt[0][1],Xt[1][1])],[mr=e===Qn?kr:Or(Xt[0][0],Xt[1][0]),Sr=e===Jn?qr:Or(Xt[0][1],Xt[1][1])]],Cr.length>1&&en(mt)}else ir=fr[0][0],yr=fr[0][1],mr=fr[1][0],Sr=fr[1][1];gr=ir,pr=yr,xr=mr,Er=Sr;var ya=select(wt).attr("pointer-events","none"),Nn=ya.selectAll(".overlay").attr("cursor",zr[Wt]);if(mt.touches)Cn.moved=ma,Cn.ended=xa;else{var pa=select(mt.view).on("mousemove.brush",ma,!0).on("mouseup.brush",xa,!0);O&&pa.on("keydown.brush",js,!0).on("keyup.brush",ws,!0),dragDisable(mt.view)}rt.call(wt),Cn.start(mt,Bt.name);function ma(Xt){for(const cr of Xt.changedTouches||[Xt])for(const Mn of Cr)Mn.identifier===cr.identifier&&(Mn.cur=pointer(cr,wt));if(re&&!ne&&!ee&&Cr.length===1){const cr=Cr[0];aa(cr.cur[0]-cr[0])>aa(cr.cur[1]-cr[1])?ee=!0:ne=!0}for(const cr of Cr)cr.cur&&(cr[0]=cr.cur[0],cr[1]=cr.cur[1]);Ae=!0,noevent(Xt),en(Xt)}function en(Xt){const cr=Cr[0],Mn=cr.point0;var _r;switch(lr=cr[0]-Mn[0],vr=cr[1]-Mn[1],Bt){case ye:case ea:{qt&&(lr=Or(br-ir,Ir(kr-mr,lr)),gr=ir+lr,xr=mr+lr),tr&&(vr=Or(Zr-yr,Ir(qr-Sr,vr)),pr=yr+vr,Er=Sr+vr);break}case ln:{Cr[1]?(qt&&(gr=Or(br,Ir(kr,Cr[0][0])),xr=Or(br,Ir(kr,Cr[1][0])),qt=1),tr&&(pr=Or(Zr,Ir(qr,Cr[0][1])),Er=Or(Zr,Ir(qr,Cr[1][1])),tr=1)):(qt<0?(lr=Or(br-ir,Ir(kr-ir,lr)),gr=ir+lr,xr=mr):qt>0&&(lr=Or(br-mr,Ir(kr-mr,lr)),gr=ir,xr=mr+lr),tr<0?(vr=Or(Zr-yr,Ir(qr-yr,vr)),pr=yr+vr,Er=Sr):tr>0&&(vr=Or(Zr-Sr,Ir(qr-Sr,vr)),pr=yr,Er=Sr+vr));break}case vn:{qt&&(gr=Or(br,Ir(kr,ir-lr*qt)),xr=Or(br,Ir(kr,mr+lr*qt))),tr&&(pr=Or(Zr,Ir(qr,yr-vr*tr)),Er=Or(Zr,Ir(qr,Sr+vr*tr)));break}}xr<gr&&(qt*=-1,_r=ir,ir=mr,mr=_r,_r=gr,gr=xr,xr=_r,Wt in sa&&Nn.attr("cursor",zr[Wt=sa[Wt]])),Er<pr&&(tr*=-1,_r=yr,yr=Sr,Sr=_r,_r=pr,pr=Er,Er=_r,Wt in ia&&Nn.attr("cursor",zr[Wt=ia[Wt]])),Ar.selection&&(fr=Ar.selection),ne&&(gr=fr[0][0],xr=fr[1][0]),ee&&(pr=fr[0][1],Er=fr[1][1]),(fr[0][0]!==gr||fr[0][1]!==pr||fr[1][0]!==xr||fr[1][1]!==Er)&&(Ar.selection=[[gr,pr],[xr,Er]],rt.call(wt),Cn.brush(Xt,Bt.name))}function xa(Xt){if(nopropagation(Xt),Xt.touches){if(Xt.touches.length)return;G&&clearTimeout(G),G=setTimeout(function(){G=null},500)}else dragEnable(Xt.view,Ae),pa.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ya.attr("pointer-events","all"),Nn.attr("cursor",zr.overlay),Ar.selection&&(fr=Ar.selection),fs(fr)&&(Ar.selection=null,rt.call(wt)),Cn.end(Xt,Bt.name)}function js(Xt){switch(Xt.keyCode){case 16:{re=qt&&tr;break}case 18:{Bt===ln&&(qt&&(mr=xr-lr*qt,ir=gr+lr*qt),tr&&(Sr=Er-vr*tr,yr=pr+vr*tr),Bt=vn,en(Xt));break}case 32:{(Bt===ln||Bt===vn)&&(qt<0?mr=xr-lr:qt>0&&(ir=gr-lr),tr<0?Sr=Er-vr:tr>0&&(yr=pr-vr),Bt=ye,Nn.attr("cursor",zr.selection),en(Xt));break}default:return}noevent(Xt)}function ws(Xt){switch(Xt.keyCode){case 16:{re&&(ne=ee=re=!1,en(Xt));break}case 18:{Bt===vn&&(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),Bt=ln,en(Xt));break}case 32:{Bt===ye&&(Xt.altKey?(qt&&(mr=xr-lr*qt,ir=gr+lr*qt),tr&&(Sr=Er-vr*tr,yr=pr+vr*tr),Bt=vn):(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),Bt=ln),Nn.attr("cursor",zr[Wt]),en(Xt));break}default:return}noevent(Xt)}}function Gt(mt){nt(this,arguments).moved(mt)}function or(mt){nt(this,arguments).ended(mt)}function hr(){var mt=this.__brush||{selection:null};return mt.extent=pe(f.apply(this,arguments)),mt.dim=e,mt}return Y.extent=function(mt){return arguments.length?(f=typeof mt=="function"?mt:constant(pe(mt)),Y):f},Y.filter=function(mt){return arguments.length?(h=typeof mt=="function"?mt:constant(!!mt),Y):h},Y.touchable=function(mt){return arguments.length?(E=typeof mt=="function"?mt:constant(!!mt),Y):E},Y.handleSize=function(mt){return arguments.length?($=+mt,Y):$},Y.keyModifiers=function(mt){return arguments.length?(O=!!mt,Y):O},Y.on=function(){var mt=M.on.apply(M,arguments);return mt===M?Y:mt},Y}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,"&lt;").replace(/(script)?>/ig,"&gt;"):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
- `),$=E?M.length-1:1;e.html(""),M.forEach((G,Y)=>{e.append("tspan").attr("x",0).attr("dy",`${Y===0?h[0]*$:h[1]}em`).text(G)})}}}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:$,w:G=0}=e[M];return O&&($=e[M].y,G=e[M].h),f>=$&&f<=$+G?M:f<$?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 Is=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,$=`${E} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"]($,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Is(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;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+e.scrollLeft,y:((O=(E=window.pageYOffset)!=null?E:window.scrollY)!=null?O:0)+e.scrollTop}}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 Oi(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 Ts(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 Ti(e,f){let h=f.filter(E=>xs(E));return h.length?qn(h[0])?h=Math[e](...h):h[0]instanceof Date&&(h=Ts(h,e==="min")[0]):h=void 0,h}const Ai=(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},Ri={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 Pi(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 Ci(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function Ni(e,f){const{DocumentTouch:h,matchMedia:E,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||h&&document instanceof h)M=!0;else if(E!=null&&E("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&["any-hover:hover","any-pointer:fine"].some(G=>E==null?void 0:E(`(${G})`).matches)&&"mouse"||M&&"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 $=E.shift();if($&&h&&Se(h)&&$ in h)return h=h[$],M();if(!$)return h};Object.keys(f).forEach($=>{h=e,E=$.split("_"),O=M(),va(O)&&(f[$]=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,Ie=(e,f,h)=>(Cs(e,typeof f!="symbol"?f+"":f,h),h);class da{constructor(f={}){Ie(this,"$$"),Ie(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ie(da,"version","3.12.0");const cn={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
13
+ `),$=E?M.length-1:1;e.html(""),M.forEach((G,Y)=>{e.append("tspan").attr("x",0).attr("dy",`${Y===0?h[0]*$:h[1]}em`).text(G)})}}}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:$,w:G=0}=e[M];return O&&($=e[M].y,G=e[M].h),f>=$&&f<=$+G?M:f<$?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 Is=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,$=`${E} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"]($,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Is(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;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+e.scrollLeft,y:((O=(E=window.pageYOffset)!=null?E:window.scrollY)!=null?O:0)+e.scrollTop}}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 Oi(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 Ts(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 Ti(e,f){let h=f.filter(E=>xs(E));return h.length?qn(h[0])?h=Math[e](...h):h[0]instanceof Date&&(h=Ts(h,e==="min")[0]):h=void 0,h}const Ai=(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},Ri={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 Pi(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 Ci(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function Ni(e,f){const{DocumentTouch:h,matchMedia:E,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||h&&document instanceof h)M=!0;else if(E!=null&&E("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&((E==null?void 0:E("any-hover:hover").matches)||(E==null?void 0:E("any-pointer:fine").matches))&&"mouse"||M&&"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 $=E.shift();if($&&h&&Se(h)&&$ in h)return h=h[$],M();if(!$)return h};Object.keys(f).forEach($=>{h=e,E=$.split("_"),O=M(),va(O)&&(f[$]=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,Ie=(e,f,h)=>(Cs(e,typeof f!="symbol"?f+"":f,h),h);class da{constructor(f={}){Ie(this,"$$"),Ie(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ie(da,"version","3.12.2-patch");const cn={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
14
14
  border-collapse:collapse;
15
15
  border-spacing:0;
16
16
  background:#fff;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.0
8
+ * @version 3.12.2-patch
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -26370,7 +26370,7 @@ function convertInputType(mouse, touch) {
26370
26370
  }
26371
26371
  }
26372
26372
  }
26373
- const hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some((v) => matchMedia == null ? void 0 : matchMedia(`(${v})`).matches);
26373
+ const hasMouse = mouse && ((matchMedia == null ? void 0 : matchMedia("any-hover:hover").matches) || (matchMedia == null ? void 0 : matchMedia("any-pointer:fine").matches));
26374
26374
  return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
26375
26375
  }
26376
26376
  function runUntil(fn, conditionFn) {
@@ -26464,7 +26464,7 @@ class Plugin {
26464
26464
  });
26465
26465
  }
26466
26466
  }
26467
- __publicField(Plugin, "version", "3.12.0");
26467
+ __publicField(Plugin, "version", "3.12.2-patch");
26468
26468
 
26469
26469
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
26470
26470
  class Options {