vue-chrts 0.0.40 → 0.0.41
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/dist/vue-chrts.js +2772 -3001
- package/dist/vue-chrts.umd.cjs +68 -89
- package/package.json +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +0 -17
package/dist/vue-chrts.umd.cjs
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
(function(Ct,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(Ct=typeof globalThis<"u"?globalThis:Ct||self,m(Ct["vue-chrts"]={},Ct.Vue))})(this,function(Ct,m){"use strict";var mi="http://www.w3.org/1999/xhtml";const Kr={svg:"http://www.w3.org/2000/svg",xhtml:mi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function tn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Kr.hasOwnProperty(e)?{space:Kr[e],local:t}:t}function Ul(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mi&&e.documentElement.namespaceURI===mi?e.createElement(t):e.createElementNS(n,t)}}function Hl(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function to(t){var e=tn(t);return(e.local?Hl:Ul)(e)}function Wl(){}function _i(t){return t==null?Wl:function(){return this.querySelector(t)}}function Yl(t){typeof t!="function"&&(t=_i(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new et(i,this._parents)}function Vl(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xl(){return[]}function eo(t){return t==null?Xl:function(){return this.querySelectorAll(t)}}function ql(t){return function(){return Vl(t.apply(this,arguments))}}function Gl(t){typeof t=="function"?t=ql(t):t=eo(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(t.call(l,l.__data__,c,s)),r.push(l));return new et(i,r)}function no(t){return function(){return this.matches(t)}}function io(t){return function(e){return e.matches(t)}}var jl=Array.prototype.find;function Zl(t){return function(){return jl.call(this.children,t)}}function Ql(){return this.firstElementChild}function Jl(t){return this.select(t==null?Ql:Zl(typeof t=="function"?t:io(t)))}var Kl=Array.prototype.filter;function tc(){return Array.from(this.children)}function ec(t){return function(){return Kl.call(this.children,t)}}function nc(t){return this.selectAll(t==null?tc:ec(typeof t=="function"?t:io(t)))}function ic(t){typeof t!="function"&&(t=no(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new et(i,this._parents)}function ro(t){return new Array(t.length)}function rc(){return new et(this._enter||this._groups.map(ro),this._parents)}function en(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}en.prototype={constructor:en,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function oc(t){return function(){return t}}function sc(t,e,n,i,r,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new en(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function ac(t,e,n,i,r,o,s){var a,l,c=new Map,h=e.length,u=o.length,f=new Array(h),d;for(a=0;a<h;++a)(l=e[a])&&(f[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<u;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(i[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new en(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function lc(t){return t.__data__}function cc(t,e){if(!arguments.length)return Array.from(this,lc);var n=e?ac:sc,i=this._parents,r=this._groups;typeof t!="function"&&(t=oc(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],f=u.length,d=uc(t.call(h,h&&h.__data__,c,i)),g=d.length,p=a[c]=new Array(g),_=s[c]=new Array(g),v=l[c]=new Array(f);n(h,u,p,_,v,d,e);for(var x=0,y=0,T,k;x<g;++x)if(T=p[x]){for(x>=y&&(y=x+1);!(k=_[y])&&++y<g;);T._next=k||null}}return s=new et(s,i),s._enter=a,s._exit=l,s}function uc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function hc(){return new et(this._exit||this._groups.map(ro),this._parents)}function fc(t,e,n){var i=this.enter(),r=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function dc(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],h=i[l],u=c.length,f=a[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<r;++l)a[l]=n[l];return new et(a,this._parents)}function pc(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function gc(t){t||(t=mc);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new et(r,this._parents).order()}function mc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function _c(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vc(){return Array.from(this)}function yc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function xc(){let t=0;for(const e of this)++t;return t}function bc(){return!this.node()}function wc(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function kc(t){return function(){this.removeAttribute(t)}}function Tc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sc(t,e){return function(){this.setAttribute(t,e)}}function Cc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ac(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $c(t,e){var n=tn(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Tc:kc:typeof e=="function"?n.local?Ac:Mc:n.local?Cc:Sc)(n,e))}function oo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ec(t){return function(){this.style.removeProperty(t)}}function Nc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Oc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Dc(t,e,n){return arguments.length>1?this.each((e==null?Ec:typeof e=="function"?Oc:Nc)(t,e,n??"")):oe(this.node(),t)}function oe(t,e){return t.style.getPropertyValue(e)||oo(t).getComputedStyle(t,null).getPropertyValue(e)}function Rc(t){return function(){delete this[t]}}function Fc(t,e){return function(){this[t]=e}}function Pc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Bc(t,e){return arguments.length>1?this.each((e==null?Rc:typeof e=="function"?Pc:Fc)(t,e)):this.node()[t]}function so(t){return t.trim().split(/^|\s+/)}function vi(t){return t.classList||new ao(t)}function ao(t){this._node=t,this._names=so(t.getAttribute("class")||"")}ao.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function lo(t,e){for(var n=vi(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function co(t,e){for(var n=vi(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Lc(t){return function(){lo(this,t)}}function zc(t){return function(){co(this,t)}}function Ic(t,e){return function(){(e.apply(this,arguments)?lo:co)(this,t)}}function Uc(t,e){var n=so(t+"");if(arguments.length<2){for(var i=vi(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Ic:e?Lc:zc)(n,e))}function Hc(){this.textContent=""}function Wc(t){return function(){this.textContent=t}}function Yc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Vc(t){return arguments.length?this.each(t==null?Hc:(typeof t=="function"?Yc:Wc)(t)):this.node().textContent}function Xc(){this.innerHTML=""}function qc(t){return function(){this.innerHTML=t}}function Gc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function jc(t){return arguments.length?this.each(t==null?Xc:(typeof t=="function"?Gc:qc)(t)):this.node().innerHTML}function Zc(){this.nextSibling&&this.parentNode.appendChild(this)}function Qc(){return this.each(Zc)}function Jc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kc(){return this.each(Jc)}function tu(t){var e=typeof t=="function"?t:to(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function eu(){return null}function nu(t,e){var n=typeof t=="function"?t:to(t),i=e==null?eu:typeof e=="function"?e:_i(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function iu(){var t=this.parentNode;t&&t.removeChild(this)}function ru(){return this.each(iu)}function ou(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function su(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function au(t){return this.select(t?su:ou)}function lu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function cu(t){return function(e){t.call(this,e,this.__data__)}}function uu(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function hu(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function fu(t,e,n){return function(){var i=this.__on,r,o=cu(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function du(t,e,n){var i=uu(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(r=0,h=a[l];r<o;++r)if((s=i[r]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?fu:hu,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function uo(t,e,n){var i=oo(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function pu(t,e){return function(){return uo(this,t,e)}}function gu(t,e){return function(){return uo(this,t,e.apply(this,arguments))}}function mu(t,e){return this.each((typeof e=="function"?gu:pu)(t,e))}function*_u(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var ho=[null];function et(t,e){this._groups=t,this._parents=e}function ke(){return new et([[document.documentElement]],ho)}function vu(){return this}et.prototype=ke.prototype={constructor:et,select:Yl,selectAll:Gl,selectChild:Jl,selectChildren:nc,filter:ic,data:cc,enter:rc,exit:hc,join:fc,merge:dc,selection:vu,order:pc,sort:gc,call:_c,nodes:vc,node:yc,size:xc,empty:bc,each:wc,attr:$c,style:Dc,property:Bc,classed:Uc,text:Vc,html:jc,raise:Qc,lower:Kc,append:tu,insert:nu,remove:ru,clone:au,datum:lu,on:du,dispatch:mu,[Symbol.iterator]:_u};function Z(t){return typeof t=="string"?new et([[document.querySelector(t)]],[document.documentElement]):new et([[t]],ho)}function yu(t){let e;for(;e=t.sourceEvent;)t=e;return t}function nn(t,e){if(t=yu(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var Te;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Te||(Te={}));var se;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(se||(se={}));function Se(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xu(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rn(t){let e,n,i;t.length!==2?(e=Se,n=(a,l)=>Se(t(a),l),i=(a,l)=>t(a)-l):(e=t===Se||t===xu?t:bu,n=t,i=t);function r(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=r(a,l,c,h-1);return u>c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:r,center:s,right:o}}function bu(){return 0}function fo(t){return t===null?NaN:+t}const on=rn(Se).right;rn(fo).center;function wu(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class po extends Map{constructor(e,n=Su){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(go(this,e))}has(e){return super.has(go(this,e))}set(e,n){return super.set(ku(this,e),n)}delete(e){return super.delete(Tu(this,e))}}function go({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function ku({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Tu({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Su(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Cu=Math.sqrt(50),Mu=Math.sqrt(10),Au=Math.sqrt(2);function sn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=Cu?10:o>=Mu?5:o>=Au?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?sn(t,e,n*2):[a,l,c]}function yi(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,o,s]=i?sn(e,t,n):sn(t,e,n);if(!(o>=r))return[];const a=o-r+1,l=new Array(a);if(i)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(r+c)/-s;else for(let c=0;c<a;++c)l[c]=(r+c)*s;return l}function xi(t,e,n){return e=+e,t=+t,n=+n,sn(t,e,n)[2]}function bi(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?xi(e,t,n):xi(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function mo(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function _o(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function $u(t,e,n=fo){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}}function Eu(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function*Nu(t){for(const e of t)yield*e}function Ou(t){return Array.from(Nu(t))}function Du(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(r);++i<r;)o[i]=t+i*n;return o}function Ru(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Fu(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,l=i.debounceMode,c=l===void 0?void 0:l,h,u=!1,f=0;function d(){h&&clearTimeout(h)}function g(_){var v=_||{},x=v.upcomingOnly,y=x===void 0?!1:x;d(),u=!y}function p(){for(var _=arguments.length,v=new Array(_),x=0;x<_;x++)v[x]=arguments[x];var y=this,T=Date.now()-f;if(u)return;function k(){f=Date.now(),e.apply(y,v)}function w(){h=void 0}!a&&c&&!h&&k(),d(),c===void 0&&T>t?a?(f=Date.now(),o||(h=setTimeout(c?w:k,t))):k():o!==!0&&(h=setTimeout(c?w:k,c===void 0?t-T:t))}return p.cancel=g,p}const vt=t=>typeof t=="number",wi=t=>typeof t=="function",It=t=>Array.isArray(t),Pu=t=>t instanceof Object,an=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",vo=t=>Pu(t)&&!It(t)&&!wi(t)&&!an(t),Ce=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Ce(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(s=>!n.includes(s)),o=Object.keys(e).filter(s=>!n.includes(s));if(r.length!==o.length)return!1;if(i.has(t))return!0;i.add(t);for(const s of r)if(!Ce(t[s],e[s],n,i))return!1;return!0}return t===e},ki=t=>t.flat(),ln=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):ln(i,e));return n}if(an(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,o)=>(r[o]=e.has(i[o])?e.get(i[o]):ln(i[o],e),r),n),n}return t},Ut=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=an(t)?t:ln(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(vo(t[r])&&vo(e[r])?i[r]=Ut(t[r],e[r],n):an(e)?i[r]=e:i[r]=ln(e[r]))}),i)},cn=(t,e,n)=>Fu(e,t);function Ti(t,e,n){return wi(e)?e(t,n):e}function un(t,e,n){return Ti(t,e,n)}function Y(t,e,n){return Ti(t,e,n)}function Me(t){return t.filter(e=>e&&!vt(e))}function Rt(t,e,n){return Math.min(Math.max(t,e),n)}function Bu(t,...e){if(!t)return[void 0,void 0];if(It(e)){let n=0,i=0;return t.forEach((r,o)=>{let s=0,a=0;for(const l of e){const c=Y(r,l,o)||0;c>=0?s+=c:a+=c}s>i&&(i=s),a<n&&(n=a)}),[n,i]}}function Lu(t,e,...n){const i=[];let r=0,o=0;for(const s of n){const a=Y(t,s,e)||0;a>=0?i.push(r+=a):i.push(o+=a)}return i}function zu(t,e,n,i){const r=t.map((a,l)=>Y(a,e,l)||0),o=n.map((a,l)=>{const c=Eu(t,(h,u)=>Y(h,a,u)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),s=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],h=r[l];n.forEach((u,f)=>{const d=Y(a,u,l)||0;d>=0?s[f].push([c,c+=d]):s[f].push([h,h+=d])})}),s.forEach((a,l)=>{a.isMostlyNegative=o[l]}),s}function Iu(t,...e){return t?_o(t,(i,r)=>_o(e,o=>Y(i,o,r))):void 0}function Uu(t,...e){return t?mo(t,(i,r)=>mo(e,o=>Y(i,o,r))):void 0}function Si(t,...e){return[Iu(t,...e),Uu(t,...e)]}function Hu(t,e,n){if(t.length<=1)return t[0];const i=t.map((s,a)=>Y(s,n,a));i.sort((s,a)=>s-a);const r=rn(s=>s).left,o=r(i,e,1,t.length-1);return e-i[o-1]>i[o]-e?t[o]:t[o-1]}function yo(t,e,n){return t.filter((r,o)=>{const s=Y(r,n,o);return s>=e[0]&&s<=e[1]})}var Ht=[],Wu=function(){return Ht.some(function(t){return t.activeTargets.length>0})},Yu=function(){return Ht.some(function(t){return t.skippedTargets.length>0})},xo="ResizeObserver loop completed with undelivered notifications.",Vu=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:xo}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=xo),window.dispatchEvent(t)},Ae;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ae||(Ae={}));var Wt=function(t){return Object.freeze(t)},Xu=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Wt(this)}return t}(),bo=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Wt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,o=e.right,s=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Ci=function(t){return t instanceof SVGElement&&"getBBox"in t},wo=function(t){if(Ci(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},ko=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},qu=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$e=typeof window<"u"?window:{},hn=new WeakMap,To=/auto|scroll/,Gu=/^tb|vertical/,ju=/msie|trident/i.test($e.navigator&&$e.navigator.userAgent),yt=function(t){return parseFloat(t||"0")},ae=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Xu((n?e:t)||0,(n?t:e)||0)},So=Wt({devicePixelContentBoxSize:ae(),borderBoxSize:ae(),contentBoxSize:ae(),contentRect:new bo(0,0,0,0)}),Co=function(t,e){if(e===void 0&&(e=!1),hn.has(t)&&!e)return hn.get(t);if(wo(t))return hn.set(t,So),So;var n=getComputedStyle(t),i=Ci(t)&&t.ownerSVGElement&&t.getBBox(),r=!ju&&n.boxSizing==="border-box",o=Gu.test(n.writingMode||""),s=!i&&To.test(n.overflowY||""),a=!i&&To.test(n.overflowX||""),l=i?0:yt(n.paddingTop),c=i?0:yt(n.paddingRight),h=i?0:yt(n.paddingBottom),u=i?0:yt(n.paddingLeft),f=i?0:yt(n.borderTopWidth),d=i?0:yt(n.borderRightWidth),g=i?0:yt(n.borderBottomWidth),p=i?0:yt(n.borderLeftWidth),_=u+c,v=l+h,x=p+d,y=f+g,T=a?t.offsetHeight-y-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,w=r?_+x:0,S=r?v+y:0,z=i?i.width:yt(n.width)-w-k,P=i?i.height:yt(n.height)-S-T,rt=z+_+k+x,A=P+v+T+y,H=Wt({devicePixelContentBoxSize:ae(Math.round(z*devicePixelRatio),Math.round(P*devicePixelRatio),o),borderBoxSize:ae(rt,A,o),contentBoxSize:ae(z,P,o),contentRect:new bo(u,l,z,P)});return hn.set(t,H),H},Mo=function(t,e,n){var i=Co(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Ae.DEVICE_PIXEL_CONTENT_BOX:return s;case Ae.BORDER_BOX:return r;default:return o}},Zu=function(){function t(e){var n=Co(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Wt([n.borderBoxSize]),this.contentBoxSize=Wt([n.contentBoxSize]),this.devicePixelContentBoxSize=Wt([n.devicePixelContentBoxSize])}return t}(),Ao=function(t){if(wo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Qu=function(){var t=1/0,e=[];Ht.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var h=new Zu(c.target),u=Ao(c.target);a.push(h),c.lastReportedSize=Mo(c.target,c.observedBox),u<t&&(t=u)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},$o=function(t){Ht.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Ao(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Ju=function(){var t=0;for($o(t);Wu();)t=Qu(),$o(t);return Yu()&&Vu(),t>0},Mi,Eo=[],Ku=function(){return Eo.splice(0).forEach(function(t){return t()})},th=function(t){if(!Mi){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Ku()}).observe(n,i),Mi=function(){n.textContent="".concat(e?e--:e++)}}Eo.push(t),Mi()},eh=function(t){th(function(){requestAnimationFrame(t)})},fn=0,nh=function(){return!!fn},ih=250,rh={attributes:!0,characterData:!0,childList:!0,subtree:!0},No=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Oo=function(t){return t===void 0&&(t=0),Date.now()+t},Ai=!1,oh=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=ih),!Ai){Ai=!0;var i=Oo(e);eh(function(){var r=!1;try{r=Ju()}finally{if(Ai=!1,e=i-Oo(),!nh())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,rh)};document.body?n():$e.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),No.forEach(function(n){return $e.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),No.forEach(function(n){return $e.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),$i=new oh,Do=function(t){!fn&&t>0&&$i.start(),fn+=t,!fn&&$i.stop()},sh=function(t){return!Ci(t)&&!qu(t)&&getComputedStyle(t).display==="inline"},ah=function(){function t(e,n){this.target=e,this.observedBox=n||Ae.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Mo(this.target,this.observedBox,!0);return sh(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),lh=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),dn=new WeakMap,Ro=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},pn=function(){function t(){}return t.connect=function(e,n){var i=new lh(e,n);dn.set(e,i)},t.observe=function(e,n,i){var r=dn.get(e),o=r.observationTargets.length===0;Ro(r.observationTargets,n)<0&&(o&&Ht.push(r),r.observationTargets.push(new ah(n,i&&i.box)),Do(1),$i.schedule())},t.unobserve=function(e,n){var i=dn.get(e),r=Ro(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&Ht.splice(Ht.indexOf(i),1),i.observationTargets.splice(r,1),Do(-1))},t.disconnect=function(e){var n=this,i=dn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),ch=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");pn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ko(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");pn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ko(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");pn.unobserve(this,e)},t.prototype.disconnect=function(){pn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const uh=globalThis.ResizeObserver||ch,Fo={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:se.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Ee{constructor(e){this._defaultConfig=Fo,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Z(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Ee.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Ut(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;Z(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Ee.DEFAULT_CONTAINER_HEIGHT}get width(){return Rt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Rt(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===se.Fit||e.sizing===se.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new uh((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!Ce(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Ee.DEFAULT_CONTAINER_HEIGHT=300;function hh(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function fh(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var dh=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fh(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=hh(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),j="-ms-",gn="-moz-",D="-webkit-",Po="comm",Ei="rule",Ni="decl",ph="@import",Bo="@keyframes",gh="@layer",mh=Math.abs,mn=String.fromCharCode,_h=Object.assign;function vh(t,e){return G(t,0)^45?(((e<<2^G(t,0))<<2^G(t,1))<<2^G(t,2))<<2^G(t,3):0}function Lo(t){return t.trim()}function yh(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Oi(t,e){return t.indexOf(e)}function G(t,e){return t.charCodeAt(e)|0}function Ne(t,e,n){return t.slice(e,n)}function xt(t){return t.length}function Di(t){return t.length}function _n(t,e){return e.push(t),t}function xh(t,e){return t.map(e).join("")}var vn=1,le=1,zo=0,Q=0,W=0,ce="";function yn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:vn,column:le,length:s,return:""}}function Oe(t,e){return _h(yn("",null,null,"",null,null,0),t,{length:-t.length},e)}function bh(){return W}function wh(){return W=Q>0?G(ce,--Q):0,le--,W===10&&(le=1,vn--),W}function nt(){return W=Q<zo?G(ce,Q++):0,le++,W===10&&(le=1,vn++),W}function bt(){return G(ce,Q)}function xn(){return Q}function De(t,e){return Ne(ce,t,e)}function Re(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Io(t){return vn=le=1,zo=xt(ce=t),Q=0,[]}function Uo(t){return ce="",t}function bn(t){return Lo(De(Q-1,Ri(t===91?t+2:t===40?t+1:t)))}function kh(t){for(;(W=bt())&&W<33;)nt();return Re(t)>2||Re(W)>3?"":" "}function Th(t,e){for(;--e&&nt()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return De(t,xn()+(e<6&&bt()==32&&nt()==32))}function Ri(t){for(;nt();)switch(W){case t:return Q;case 34:case 39:t!==34&&t!==39&&Ri(W);break;case 40:t===41&&Ri(t);break;case 92:nt();break}return Q}function Sh(t,e){for(;nt()&&t+W!==57;)if(t+W===84&&bt()===47)break;return"/*"+De(e,Q-1)+"*"+mn(t===47?t:nt())}function Ch(t){for(;!Re(bt());)nt();return De(t,Q)}function Mh(t){return Uo(wn("",null,null,null,[""],t=Io(t),0,[0],t))}function wn(t,e,n,i,r,o,s,a,l){for(var c=0,h=0,u=s,f=0,d=0,g=0,p=1,_=1,v=1,x=0,y="",T=r,k=o,w=i,S=y;_;)switch(g=x,x=nt()){case 40:if(g!=108&&G(S,u-1)==58){Oi(S+=R(bn(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=bn(x);break;case 9:case 10:case 13:case 32:S+=kh(g);break;case 92:S+=Th(xn()-1,7);continue;case 47:switch(bt()){case 42:case 47:_n(Ah(Sh(nt(),xn()),e,n),l);break;default:S+="/"}break;case 123*p:a[c++]=xt(S)*v;case 125*p:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+h:v==-1&&(S=R(S,/\f/g,"")),d>0&&xt(S)-u&&_n(d>32?Wo(S+";",i,n,u-1):Wo(R(S," ","")+";",i,n,u-2),l);break;case 59:S+=";";default:if(_n(w=Ho(S,e,n,c,h,r,a,y,T=[],k=[],u),o),x===123)if(h===0)wn(S,e,w,w,T,o,u,a,k);else switch(f===99&&G(S,3)===110?100:f){case 100:case 108:case 109:case 115:wn(t,w,w,i&&_n(Ho(t,w,w,0,0,r,a,y,r,T=[],u),k),r,k,u,a,i?T:k);break;default:wn(S,w,w,w,[""],k,0,a,k)}}c=h=d=0,p=v=1,y=S="",u=s;break;case 58:u=1+xt(S),d=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&wh()==125)continue}switch(S+=mn(x),x*p){case 38:v=h>0?1:(S+="\f",-1);break;case 44:a[c++]=(xt(S)-1)*v,v=1;break;case 64:bt()===45&&(S+=bn(nt())),f=bt(),h=u=xt(y=S+=Ch(xn())),x++;break;case 45:g===45&&xt(S)==2&&(p=0)}}return o}function Ho(t,e,n,i,r,o,s,a,l,c,h){for(var u=r-1,f=r===0?o:[""],d=Di(f),g=0,p=0,_=0;g<i;++g)for(var v=0,x=Ne(t,u+1,u=mh(p=s[g])),y=t;v<d;++v)(y=Lo(p>0?f[v]+" "+x:R(x,/&\f/g,f[v])))&&(l[_++]=y);return yn(t,e,n,r===0?Ei:a,l,c,h)}function Ah(t,e,n){return yn(t,e,n,Po,mn(bh()),Ne(t,2,-2),0)}function Wo(t,e,n,i){return yn(t,e,n,Ni,Ne(t,0,i),Ne(t,i+1,-1),i)}function ue(t,e){for(var n="",i=Di(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function $h(t,e,n,i){switch(t.type){case gh:if(t.children.length)break;case ph:case Ni:return t.return=t.return||t.value;case Po:return"";case Bo:return t.return=t.value+"{"+ue(t.children,i)+"}";case Ei:t.value=t.props.join(",")}return xt(n=ue(t.children,i))?t.return=t.value+"{"+n+"}":""}function Eh(t){var e=Di(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function Nh(t){return function(e){e.root||(e=e.return)&&t(e)}}function Oh(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Dh=function(e,n,i){for(var r=0,o=0;r=o,o=bt(),r===38&&o===12&&(n[i]=1),!Re(o);)nt();return De(e,Q)},Rh=function(e,n){var i=-1,r=44;do switch(Re(r)){case 0:r===38&&bt()===12&&(n[i]=1),e[i]+=Dh(Q-1,n,i);break;case 2:e[i]+=bn(r);break;case 4:if(r===44){e[++i]=bt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=mn(r)}while(r=nt());return e},Fh=function(e,n){return Uo(Rh(Io(e),n))},Yo=new WeakMap,Ph=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Yo.get(i))&&!r){Yo.set(e,!0);for(var o=[],s=Fh(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var h=0;h<a.length;h++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[h]):a[h]+" "+s[l]}}},Bh=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Vo(t,e){switch(vh(t,e)){case 5103:return D+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return D+t+gn+t+j+t+t;case 6828:case 4268:return D+t+j+t+t;case 6165:return D+t+j+"flex-"+t+t;case 5187:return D+t+R(t,/(\w+).+(:[^]+)/,D+"box-$1$2"+j+"flex-$1$2")+t;case 5443:return D+t+j+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return D+t+j+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return D+t+j+R(t,"shrink","negative")+t;case 5292:return D+t+j+R(t,"basis","preferred-size")+t;case 6060:return D+"box-"+R(t,"-grow","")+D+t+j+R(t,"grow","positive")+t;case 4554:return D+R(t,/([^-])(transform)/g,"$1"+D+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,D+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xt(t)-1-e>6)switch(G(t,e+1)){case 109:if(G(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+gn+(G(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Oi(t,"stretch")?Vo(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(G(t,e+1)!==115)break;case 6444:switch(G(t,xt(t)-3-(~Oi(t,"!important")&&10))){case 107:return R(t,":",":"+D)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(G(t,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+j+"$2box$3")+t}break;case 5936:switch(G(t,e+11)){case 114:return D+t+j+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return D+t+j+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return D+t+j+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return D+t+j+t+t}return t}var Lh=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Ni:e.return=Vo(e.value,e.length);break;case Bo:return ue([Oe(e,{value:R(e.value,"@","@"+D)})],r);case Ei:if(e.length)return xh(e.props,function(o){switch(yh(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([Oe(e,{props:[R(o,/:(read-\w+)/,":"+gn+"$1")]})],r);case"::placeholder":return ue([Oe(e,{props:[R(o,/:(plac\w+)/,":"+D+"input-$1")]}),Oe(e,{props:[R(o,/:(plac\w+)/,":"+gn+"$1")]}),Oe(e,{props:[R(o,/:(plac\w+)/,j+"input-$1")]})],r)}return""})}},zh=[Lh],Ih=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var _=p.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=e.stylisPlugins||zh,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var _=p.getAttribute("data-emotion").split(" "),v=1;v<_.length;v++)o[_[v]]=!0;a.push(p)});var l,c=[Ph,Bh];{var h,u=[$h,Nh(function(p){h.insert(p)})],f=Eh(c.concat(r,u)),d=function(_){return ue(Mh(_),f)};l=function(_,v,x,y){h=x,d(_?_+"{"+v.styles+"}":v.styles),y&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new dh({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g};function Uh(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Hh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wh=/[A-Z]|^ms/g,Yh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xo=function(e){return e.charCodeAt(1)===45},qo=function(e){return e!=null&&typeof e!="boolean"},Fi=Oh(function(t){return Xo(t)?t:t.replace(Wh,"-$&").toLowerCase()}),Go=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yh,function(i,r,o){return Ft={name:r,styles:o,next:Ft},r})}return Hh[e]!==1&&!Xo(e)&&typeof n=="number"&&n!==0?n+"px":n};function kn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ft={name:r.name,styles:r.styles,next:Ft},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ft={name:s.name,styles:s.styles,next:Ft},s=s.next;var a=o.styles+";";return a}return Vh(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function Vh(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=kn(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":qo(a)&&(i+=Fi(o)+":"+Go(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)qo(s[l])&&(i+=Fi(o)+":"+Go(o,s[l])+";");else{var c=kn(t,e,s);switch(o){case"animation":case"animationName":{i+=Fi(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var jo=/label:\s*([^\s;{]+)\s*(;|$)/g,Ft;function Pi(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ft=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=kn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=kn(n,e,t[a]),i){var l=o;r+=l[a]}jo.lastIndex=0;for(var c="",h;(h=jo.exec(r))!==null;)c+="-"+h[1];var u=Uh(r)+c;return{name:u,styles:r,next:Ft}}function Zo(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Xh=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},qh=function(e,n,i){Xh(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Qo(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Jo(t,e,n){var i=[],r=Zo(t,i,n);return i.length<2?n:r+e(i)}var Gh=function(e){var n=Ih(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Pi(c,n.registered,void 0);return qh(n,u),n.key+"-"+u.name},r=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Pi(c,n.registered),f="animation-"+u.name;return Qo(n,{name:u.name,styles:"@keyframes "+f+"{"+u.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Pi(c,n.registered);Qo(n,u)},s=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return Jo(n.registered,i,jh(c))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Zo.bind(null,n.registered),merge:Jo.bind(null,n.registered,i)}},jh=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=t(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(n&&(n+=" "),n+=o)}}return n},Ko=Gh({key:"css"}),Yt=Ko.injectGlobal,E=Ko.css;function Zh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bi,ts;function Qh(){return ts||(ts=1,Bi=function(e,n){n||(n=[0,""]),e=String(e);var i=parseFloat(e,10);return n[0]=i,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Bi}var Li,es;function Jh(){if(es)return Li;es=1;var t=Qh();Li=r;var e=i("in",document.body);function n(o,s){var a=t(getComputedStyle(o).getPropertyValue(s));return a[0]*r(a[1],o)}function i(o,s){var a=document.createElement("div");a.style.height="128"+o,s.appendChild(a);var l=n(a,"height")/128;return s.removeChild(a),l}function r(o,s){if(!o)return null;switch(s=s||document.body,o=(o+""||"px").trim().toLowerCase(),(s===window||s===document)&&(s=document.body),o){case"%":return s.clientHeight/100;case"ch":case"ex":return i(o,s);case"em":return n(s,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var a=t(o);if(!isNaN(a[0])&&a[1]){var l=r(a[1],s);return typeof l=="number"?a[0]*l:null}return null}return Li}Jh();function ns(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function Kh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function tf(t,e,n=0){const[i,r,o,s]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,l,c,h]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<h||l<s||o<a||c<i)}function zi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function is(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Fe(){}var Pe=.7,Tn=1/Pe,he="\\s*([+-]?\\d+)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ef=/^#([0-9a-f]{3,8})$/,nf=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),rf=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),of=new RegExp(`^rgba\\(${he},${he},${he},${Be}\\)$`),sf=new RegExp(`^rgba\\(${wt},${wt},${wt},${Be}\\)$`),af=new RegExp(`^hsl\\(${Be},${wt},${wt}\\)$`),lf=new RegExp(`^hsla\\(${Be},${wt},${wt},${Be}\\)$`),rs={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};zi(Fe,Vt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:os,formatHex:os,formatHex8:cf,formatHsl:uf,formatRgb:ss,toString:ss});function os(){return this.rgb().formatHex()}function cf(){return this.rgb().formatHex8()}function uf(){return hs(this).formatHsl()}function ss(){return this.rgb().formatRgb()}function Vt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ef.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?as(e):n===3?new J(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Sn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Sn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=nf.exec(t))?new J(e[1],e[2],e[3],1):(e=rf.exec(t))?new J(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=of.exec(t))?Sn(e[1],e[2],e[3],e[4]):(e=sf.exec(t))?Sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=af.exec(t))?us(e[1],e[2]/100,e[3]/100,1):(e=lf.exec(t))?us(e[1],e[2]/100,e[3]/100,e[4]):rs.hasOwnProperty(t)?as(rs[t]):t==="transparent"?new J(NaN,NaN,NaN,0):null}function as(t){return new J(t>>16&255,t>>8&255,t&255,1)}function Sn(t,e,n,i){return i<=0&&(t=e=n=NaN),new J(t,e,n,i)}function hf(t){return t instanceof Fe||(t=Vt(t)),t?(t=t.rgb(),new J(t.r,t.g,t.b,t.opacity)):new J}function Ii(t,e,n,i){return arguments.length===1?hf(t):new J(t,e,n,i??1)}function J(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}zi(J,Ii,is(Fe,{brighter(t){return t=t==null?Tn:Math.pow(Tn,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Pe:Math.pow(Pe,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new J(Xt(this.r),Xt(this.g),Xt(this.b),Cn(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:ls,formatHex:ls,formatHex8:ff,formatRgb:cs,toString:cs}));function ls(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}`}function ff(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}${qt((isNaN(this.opacity)?1:this.opacity)*255)}`}function cs(){const t=Cn(this.opacity);return`${t===1?"rgb(":"rgba("}${Xt(this.r)}, ${Xt(this.g)}, ${Xt(this.b)}${t===1?")":`, ${t})`}`}function Cn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Xt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qt(t){return t=Xt(t),(t<16?"0":"")+t.toString(16)}function us(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ht(t,e,n,i)}function hs(t){if(t instanceof ht)return new ht(t.h,t.s,t.l,t.opacity);if(t instanceof Fe||(t=Vt(t)),!t)return new ht;if(t instanceof ht)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new ht(s,a,l,t.opacity)}function Ui(t,e,n,i){return arguments.length===1?hs(t):new ht(t,e,n,i??1)}function ht(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}zi(ht,Ui,is(Fe,{brighter(t){return t=t==null?Tn:Math.pow(Tn,t),new ht(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Pe:Math.pow(Pe,t),new ht(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new J(Hi(t>=240?t-240:t+120,r,i),Hi(t,r,i),Hi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new ht(fs(this.h),Mn(this.s),Mn(this.l),Cn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Cn(this.opacity);return`${t===1?"hsl(":"hsla("}${fs(this.h)}, ${Mn(this.s)*100}%, ${Mn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function fs(t){return t=(t||0)%360,t<0?t+360:t}function Mn(t){return Math.max(0,Math.min(1,t||0))}function Hi(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Le=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],df=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Pt=t=>`--vis-${vt(t)?`color${t%Le.length}`:t}`;function pf(t,e=.4){const n=Ui(t);return n.l=n.l*(1+e),n.formatHex()}function gf(t,e=.4,n=.6){const i=Ui(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const ze=10,Wi=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Yi=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Bt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const mf=t=>`<mask id="${Bt(t)}">
|
|
1
|
+
(function(kt,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],_):(kt=typeof globalThis<"u"?globalThis:kt||self,_(kt["vue-chrts"]={},kt.Vue))})(this,function(kt,_){"use strict";var di="http://www.w3.org/1999/xhtml";const Qr={svg:"http://www.w3.org/2000/svg",xhtml:di,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ke(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Qr.hasOwnProperty(e)?{space:Qr[e],local:t}:t}function Pl(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===di&&e.documentElement.namespaceURI===di?e.createElement(t):e.createElementNS(n,t)}}function Ll(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Jr(t){var e=Ke(t);return(e.local?Ll:Pl)(e)}function zl(){}function pi(t){return t==null?zl:function(){return this.querySelector(t)}}function Bl(t){typeof t!="function"&&(t=pi(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),l,c,f=0;f<s;++f)(l=o[f])&&(c=t.call(l,l.__data__,f,o))&&("__data__"in l&&(c.__data__=l.__data__),a[f]=c);return new tt(i,this._parents)}function Il(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ul(){return[]}function Kr(t){return t==null?Ul:function(){return this.querySelectorAll(t)}}function Hl(t){return function(){return Il(t.apply(this,arguments))}}function Yl(t){typeof t=="function"?t=Hl(t):t=Kr(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(t.call(l,l.__data__,c,s)),r.push(l));return new tt(i,r)}function to(t){return function(){return this.matches(t)}}function eo(t){return function(e){return e.matches(t)}}var Wl=Array.prototype.find;function Vl(t){return function(){return Wl.call(this.children,t)}}function Xl(){return this.firstElementChild}function ql(t){return this.select(t==null?Xl:Vl(typeof t=="function"?t:eo(t)))}var Gl=Array.prototype.filter;function jl(){return Array.from(this.children)}function Zl(t){return function(){return Gl.call(this.children,t)}}function Ql(t){return this.selectAll(t==null?jl:Zl(typeof t=="function"?t:eo(t)))}function Jl(t){typeof t!="function"&&(t=to(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new tt(i,this._parents)}function no(t){return new Array(t.length)}function Kl(){return new tt(this._enter||this._groups.map(no),this._parents)}function tn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}tn.prototype={constructor:tn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function tc(t){return function(){return t}}function ec(t,e,n,i,r,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new tn(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function nc(t,e,n,i,r,o,s){var a,l,c=new Map,f=e.length,u=o.length,h=new Array(f),d;for(a=0;a<f;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<u;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(i[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new tn(t,o[a]);for(a=0;a<f;++a)(l=e[a])&&c.get(h[a])===l&&(r[a]=l)}function ic(t){return t.__data__}function rc(t,e){if(!arguments.length)return Array.from(this,ic);var n=e?nc:ec,i=this._parents,r=this._groups;typeof t!="function"&&(t=tc(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var f=i[c],u=r[c],h=u.length,d=oc(t.call(f,f&&f.__data__,c,i)),g=d.length,p=a[c]=new Array(g),m=s[c]=new Array(g),v=l[c]=new Array(h);n(f,u,p,m,v,d,e);for(var x=0,y=0,T,k;x<g;++x)if(T=p[x]){for(x>=y&&(y=x+1);!(k=m[y])&&++y<g;);T._next=k||null}}return s=new tt(s,i),s._enter=a,s._exit=l,s}function oc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function sc(){return new tt(this._exit||this._groups.map(no),this._parents)}function ac(t,e,n){var i=this.enter(),r=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function lc(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],f=i[l],u=c.length,h=a[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||f[g])&&(h[g]=d);for(;l<r;++l)a[l]=n[l];return new tt(a,this._parents)}function cc(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function uc(t){t||(t=fc);function e(u,h){return u&&h?t(u.__data__,h.__data__):!u-!h}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,f=0;f<a;++f)(c=s[f])&&(l[f]=c);l.sort(e)}return new tt(r,this._parents).order()}function fc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function hc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function dc(){return Array.from(this)}function pc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function gc(){let t=0;for(const e of this)++t;return t}function mc(){return!this.node()}function _c(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function vc(t){return function(){this.removeAttribute(t)}}function yc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xc(t,e){return function(){this.setAttribute(t,e)}}function bc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function wc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function kc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Tc(t,e){var n=Ke(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?yc:vc:typeof e=="function"?n.local?kc:wc:n.local?bc:xc)(n,e))}function io(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Sc(t){return function(){this.style.removeProperty(t)}}function Cc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Mc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ac(t,e,n){return arguments.length>1?this.each((e==null?Sc:typeof e=="function"?Mc:Cc)(t,e,n??"")):te(this.node(),t)}function te(t,e){return t.style.getPropertyValue(e)||io(t).getComputedStyle(t,null).getPropertyValue(e)}function $c(t){return function(){delete this[t]}}function Ec(t,e){return function(){this[t]=e}}function Nc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Oc(t,e){return arguments.length>1?this.each((e==null?$c:typeof e=="function"?Nc:Ec)(t,e)):this.node()[t]}function ro(t){return t.trim().split(/^|\s+/)}function gi(t){return t.classList||new oo(t)}function oo(t){this._node=t,this._names=ro(t.getAttribute("class")||"")}oo.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function so(t,e){for(var n=gi(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function ao(t,e){for(var n=gi(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Dc(t){return function(){so(this,t)}}function Rc(t){return function(){ao(this,t)}}function Fc(t,e){return function(){(e.apply(this,arguments)?so:ao)(this,t)}}function Pc(t,e){var n=ro(t+"");if(arguments.length<2){for(var i=gi(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Fc:e?Dc:Rc)(n,e))}function Lc(){this.textContent=""}function zc(t){return function(){this.textContent=t}}function Bc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ic(t){return arguments.length?this.each(t==null?Lc:(typeof t=="function"?Bc:zc)(t)):this.node().textContent}function Uc(){this.innerHTML=""}function Hc(t){return function(){this.innerHTML=t}}function Yc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Wc(t){return arguments.length?this.each(t==null?Uc:(typeof t=="function"?Yc:Hc)(t)):this.node().innerHTML}function Vc(){this.nextSibling&&this.parentNode.appendChild(this)}function Xc(){return this.each(Vc)}function qc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gc(){return this.each(qc)}function jc(t){var e=typeof t=="function"?t:Jr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Zc(){return null}function Qc(t,e){var n=typeof t=="function"?t:Jr(t),i=e==null?Zc:typeof e=="function"?e:pi(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Jc(){var t=this.parentNode;t&&t.removeChild(this)}function Kc(){return this.each(Jc)}function tu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function nu(t){return this.select(t?eu:tu)}function iu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ru(t){return function(e){t.call(this,e,this.__data__)}}function ou(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function su(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function au(t,e,n){return function(){var i=this.__on,r,o=ru(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function lu(t,e,n){var i=ou(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,f;l<c;++l)for(r=0,f=a[l];r<o;++r)if((s=i[r]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?au:su,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function lo(t,e,n){var i=io(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function cu(t,e){return function(){return lo(this,t,e)}}function uu(t,e){return function(){return lo(this,t,e.apply(this,arguments))}}function fu(t,e){return this.each((typeof e=="function"?uu:cu)(t,e))}function*hu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var co=[null];function tt(t,e){this._groups=t,this._parents=e}function we(){return new tt([[document.documentElement]],co)}function du(){return this}tt.prototype=we.prototype={constructor:tt,select:Bl,selectAll:Yl,selectChild:ql,selectChildren:Ql,filter:Jl,data:rc,enter:Kl,exit:sc,join:ac,merge:lc,selection:du,order:cc,sort:uc,call:hc,nodes:dc,node:pc,size:gc,empty:mc,each:_c,attr:Tc,style:Ac,property:Oc,classed:Pc,text:Ic,html:Wc,raise:Xc,lower:Gc,append:jc,insert:Qc,remove:Kc,clone:nu,datum:iu,on:lu,dispatch:fu,[Symbol.iterator]:hu};function j(t){return typeof t=="string"?new tt([[document.querySelector(t)]],[document.documentElement]):new tt([[t]],co)}function pu(t){let e;for(;e=t.sourceEvent;)t=e;return t}function uo(t,e){if(t=pu(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var ke;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(ke||(ke={}));var ee;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ee||(ee={}));function Te(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gu(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mi(t){let e,n,i;t.length!==2?(e=Te,n=(a,l)=>Te(t(a),l),i=(a,l)=>t(a)-l):(e=t===Te||t===gu?t:mu,n=t,i=t);function r(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const u=c+f>>>1;n(a[u],l)<0?c=u+1:f=u}while(c<f)}return c}function o(a,l,c=0,f=a.length){if(c<f){if(e(l,l)!==0)return f;do{const u=c+f>>>1;n(a[u],l)<=0?c=u+1:f=u}while(c<f)}return c}function s(a,l,c=0,f=a.length){const u=r(a,l,c,f-1);return u>c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:r,center:s,right:o}}function mu(){return 0}function fo(t){return t===null?NaN:+t}const en=mi(Te).right;mi(fo).center;function _u(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class ho extends Map{constructor(e,n=xu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(po(this,e))}has(e){return super.has(po(this,e))}set(e,n){return super.set(vu(this,e),n)}delete(e){return super.delete(yu(this,e))}}function po({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function vu({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function yu({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function xu(t){return t!==null&&typeof t=="object"?t.valueOf():t}const bu=Math.sqrt(50),wu=Math.sqrt(10),ku=Math.sqrt(2);function nn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=bu?10:o>=wu?5:o>=ku?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?nn(t,e,n*2):[a,l,c]}function _i(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,o,s]=i?nn(e,t,n):nn(t,e,n);if(!(o>=r))return[];const a=o-r+1,l=new Array(a);if(i)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(r+c)/-s;else for(let c=0;c<a;++c)l[c]=(r+c)*s;return l}function vi(t,e,n){return e=+e,t=+t,n=+n,nn(t,e,n)[2]}function yi(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?vi(e,t,n):vi(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function go(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function mo(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function Tu(t,e,n=fo){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}}function Su(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function*Cu(t){for(const e of t)yield*e}function Mu(t){return Array.from(Cu(t))}function Au(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(r);++i<r;)o[i]=t+i*n;return o}function $u(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Eu(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,l=i.debounceMode,c=l===void 0?void 0:l,f,u=!1,h=0;function d(){f&&clearTimeout(f)}function g(m){var v=m||{},x=v.upcomingOnly,y=x===void 0?!1:x;d(),u=!y}function p(){for(var m=arguments.length,v=new Array(m),x=0;x<m;x++)v[x]=arguments[x];var y=this,T=Date.now()-h;if(u)return;function k(){h=Date.now(),e.apply(y,v)}function w(){f=void 0}!a&&c&&!f&&k(),d(),c===void 0&&T>t?a?(h=Date.now(),o||(f=setTimeout(c?w:k,t))):k():o!==!0&&(f=setTimeout(c?w:k,c===void 0?t-T:t))}return p.cancel=g,p}const Lt=t=>typeof t=="number",_o=t=>typeof t=="function",ne=t=>Array.isArray(t),Nu=t=>t instanceof Object,rn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",vo=t=>Nu(t)&&!ne(t)&&!_o(t)&&!rn(t),Se=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Se(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(s=>!n.includes(s)),o=Object.keys(e).filter(s=>!n.includes(s));if(r.length!==o.length)return!1;if(i.has(t))return!0;i.add(t);for(const s of r)if(!Se(t[s],e[s],n,i))return!1;return!0}return t===e},xi=t=>t.flat(),on=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):on(i,e));return n}if(rn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,o)=>(r[o]=e.has(i[o])?e.get(i[o]):on(i[o],e),r),n),n}return t},zt=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=rn(t)?t:on(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(vo(t[r])&&vo(e[r])?i[r]=zt(t[r],e[r],n):rn(e)?i[r]=e:i[r]=on(e[r]))}),i)},sn=(t,e,n)=>Eu(e,t);function bi(t,e,n){return _o(e)?e(t,n):e}function an(t,e,n){return bi(t,e,n)}function ct(t,e,n){return bi(t,e,n)}function Ce(t){return t.filter(e=>e&&!Lt(e))}function ie(t,e,n){return Math.min(Math.max(t,e),n)}function Ou(t,...e){if(!t)return[void 0,void 0];if(ne(e)){let n=0,i=0;return t.forEach((r,o)=>{let s=0,a=0;for(const l of e){const c=ct(r,l,o)||0;c>=0?s+=c:a+=c}s>i&&(i=s),a<n&&(n=a)}),[n,i]}}function Du(t,e,n,i){const r=t.map((a,l)=>ct(a,e,l)||0),o=n.map((a,l)=>{const c=Su(t,(f,u)=>ct(f,a,u)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),s=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],f=r[l];n.forEach((u,h)=>{const d=ct(a,u,l)||0;d>=0?s[h].push([c,c+=d]):s[h].push([f,f+=d])})}),s.forEach((a,l)=>{a.isMostlyNegative=o[l]}),s}function Ru(t,...e){return t?mo(t,(i,r)=>mo(e,o=>ct(i,o,r))):void 0}function Fu(t,...e){return t?go(t,(i,r)=>go(e,o=>ct(i,o,r))):void 0}function wi(t,...e){return[Ru(t,...e),Fu(t,...e)]}function yo(t,e,n){return t.filter((r,o)=>{const s=ct(r,n,o);return s>=e[0]&&s<=e[1]})}var Bt=[],Pu=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Lu=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},xo="ResizeObserver loop completed with undelivered notifications.",zu=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:xo}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=xo),window.dispatchEvent(t)},Me;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Me||(Me={}));var It=function(t){return Object.freeze(t)},Bu=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,It(this)}return t}(),bo=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,It(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,o=e.right,s=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),ki=function(t){return t instanceof SVGElement&&"getBBox"in t},wo=function(t){if(ki(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},ko=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Iu=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ae=typeof window<"u"?window:{},ln=new WeakMap,To=/auto|scroll/,Uu=/^tb|vertical/,Hu=/msie|trident/i.test(Ae.navigator&&Ae.navigator.userAgent),_t=function(t){return parseFloat(t||"0")},re=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Bu((n?e:t)||0,(n?t:e)||0)},So=It({devicePixelContentBoxSize:re(),borderBoxSize:re(),contentBoxSize:re(),contentRect:new bo(0,0,0,0)}),Co=function(t,e){if(e===void 0&&(e=!1),ln.has(t)&&!e)return ln.get(t);if(wo(t))return ln.set(t,So),So;var n=getComputedStyle(t),i=ki(t)&&t.ownerSVGElement&&t.getBBox(),r=!Hu&&n.boxSizing==="border-box",o=Uu.test(n.writingMode||""),s=!i&&To.test(n.overflowY||""),a=!i&&To.test(n.overflowX||""),l=i?0:_t(n.paddingTop),c=i?0:_t(n.paddingRight),f=i?0:_t(n.paddingBottom),u=i?0:_t(n.paddingLeft),h=i?0:_t(n.borderTopWidth),d=i?0:_t(n.borderRightWidth),g=i?0:_t(n.borderBottomWidth),p=i?0:_t(n.borderLeftWidth),m=u+c,v=l+f,x=p+d,y=h+g,T=a?t.offsetHeight-y-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,w=r?m+x:0,S=r?v+y:0,B=i?i.width:_t(n.width)-w-k,P=i?i.height:_t(n.height)-S-T,it=B+m+k+x,A=P+v+T+y,H=It({devicePixelContentBoxSize:re(Math.round(B*devicePixelRatio),Math.round(P*devicePixelRatio),o),borderBoxSize:re(it,A,o),contentBoxSize:re(B,P,o),contentRect:new bo(u,l,B,P)});return ln.set(t,H),H},Mo=function(t,e,n){var i=Co(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Me.DEVICE_PIXEL_CONTENT_BOX:return s;case Me.BORDER_BOX:return r;default:return o}},Yu=function(){function t(e){var n=Co(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=It([n.borderBoxSize]),this.contentBoxSize=It([n.contentBoxSize]),this.devicePixelContentBoxSize=It([n.devicePixelContentBoxSize])}return t}(),Ao=function(t){if(wo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Wu=function(){var t=1/0,e=[];Bt.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var f=new Yu(c.target),u=Ao(c.target);a.push(f),c.lastReportedSize=Mo(c.target,c.observedBox),u<t&&(t=u)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},$o=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Ao(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Vu=function(){var t=0;for($o(t);Pu();)t=Wu(),$o(t);return Lu()&&zu(),t>0},Ti,Eo=[],Xu=function(){return Eo.splice(0).forEach(function(t){return t()})},qu=function(t){if(!Ti){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Xu()}).observe(n,i),Ti=function(){n.textContent="".concat(e?e--:e++)}}Eo.push(t),Ti()},Gu=function(t){qu(function(){requestAnimationFrame(t)})},cn=0,ju=function(){return!!cn},Zu=250,Qu={attributes:!0,characterData:!0,childList:!0,subtree:!0},No=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Oo=function(t){return t===void 0&&(t=0),Date.now()+t},Si=!1,Ju=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Zu),!Si){Si=!0;var i=Oo(e);Gu(function(){var r=!1;try{r=Vu()}finally{if(Si=!1,e=i-Oo(),!ju())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Qu)};document.body?n():Ae.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),No.forEach(function(n){return Ae.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),No.forEach(function(n){return Ae.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Ci=new Ju,Do=function(t){!cn&&t>0&&Ci.start(),cn+=t,!cn&&Ci.stop()},Ku=function(t){return!ki(t)&&!Iu(t)&&getComputedStyle(t).display==="inline"},tf=function(){function t(e,n){this.target=e,this.observedBox=n||Me.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Mo(this.target,this.observedBox,!0);return Ku(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),ef=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),un=new WeakMap,Ro=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},fn=function(){function t(){}return t.connect=function(e,n){var i=new ef(e,n);un.set(e,i)},t.observe=function(e,n,i){var r=un.get(e),o=r.observationTargets.length===0;Ro(r.observationTargets,n)<0&&(o&&Bt.push(r),r.observationTargets.push(new tf(n,i&&i.box)),Do(1),Ci.schedule())},t.unobserve=function(e,n){var i=un.get(e),r=Ro(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&Bt.splice(Bt.indexOf(i),1),i.observationTargets.splice(r,1),Do(-1))},t.disconnect=function(e){var n=this,i=un.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),nf=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");fn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ko(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");fn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ko(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");fn.unobserve(this,e)},t.prototype.disconnect=function(){fn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const rf=globalThis.ResizeObserver||nf,Fo={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ee.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class $e{constructor(e){this._defaultConfig=Fo,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=j(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",$e.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=zt(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;j(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||$e.DEFAULT_CONTAINER_HEIGHT}get width(){return ie(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return ie(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ee.Fit||e.sizing===ee.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new rf((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!Se(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}$e.DEFAULT_CONTAINER_HEIGHT=300;function of(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function sf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var af=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sf(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=of(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),G="-ms-",hn="-moz-",O="-webkit-",Po="comm",Mi="rule",Ai="decl",lf="@import",Lo="@keyframes",cf="@layer",uf=Math.abs,dn=String.fromCharCode,ff=Object.assign;function hf(t,e){return q(t,0)^45?(((e<<2^q(t,0))<<2^q(t,1))<<2^q(t,2))<<2^q(t,3):0}function zo(t){return t.trim()}function df(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,n){return t.replace(e,n)}function $i(t,e){return t.indexOf(e)}function q(t,e){return t.charCodeAt(e)|0}function Ee(t,e,n){return t.slice(e,n)}function vt(t){return t.length}function Ei(t){return t.length}function pn(t,e){return e.push(t),t}function pf(t,e){return t.map(e).join("")}var gn=1,oe=1,Bo=0,Z=0,Y=0,se="";function mn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:gn,column:oe,length:s,return:""}}function Ne(t,e){return ff(mn("",null,null,"",null,null,0),t,{length:-t.length},e)}function gf(){return Y}function mf(){return Y=Z>0?q(se,--Z):0,oe--,Y===10&&(oe=1,gn--),Y}function et(){return Y=Z<Bo?q(se,Z++):0,oe++,Y===10&&(oe=1,gn++),Y}function yt(){return q(se,Z)}function _n(){return Z}function Oe(t,e){return Ee(se,t,e)}function De(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Io(t){return gn=oe=1,Bo=vt(se=t),Z=0,[]}function Uo(t){return se="",t}function vn(t){return zo(Oe(Z-1,Ni(t===91?t+2:t===40?t+1:t)))}function _f(t){for(;(Y=yt())&&Y<33;)et();return De(t)>2||De(Y)>3?"":" "}function vf(t,e){for(;--e&&et()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Oe(t,_n()+(e<6&&yt()==32&&et()==32))}function Ni(t){for(;et();)switch(Y){case t:return Z;case 34:case 39:t!==34&&t!==39&&Ni(Y);break;case 40:t===41&&Ni(t);break;case 92:et();break}return Z}function yf(t,e){for(;et()&&t+Y!==57;)if(t+Y===84&&yt()===47)break;return"/*"+Oe(e,Z-1)+"*"+dn(t===47?t:et())}function xf(t){for(;!De(yt());)et();return Oe(t,Z)}function bf(t){return Uo(yn("",null,null,null,[""],t=Io(t),0,[0],t))}function yn(t,e,n,i,r,o,s,a,l){for(var c=0,f=0,u=s,h=0,d=0,g=0,p=1,m=1,v=1,x=0,y="",T=r,k=o,w=i,S=y;m;)switch(g=x,x=et()){case 40:if(g!=108&&q(S,u-1)==58){$i(S+=D(vn(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=vn(x);break;case 9:case 10:case 13:case 32:S+=_f(g);break;case 92:S+=vf(_n()-1,7);continue;case 47:switch(yt()){case 42:case 47:pn(wf(yf(et(),_n()),e,n),l);break;default:S+="/"}break;case 123*p:a[c++]=vt(S)*v;case 125*p:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+f:v==-1&&(S=D(S,/\f/g,"")),d>0&&vt(S)-u&&pn(d>32?Yo(S+";",i,n,u-1):Yo(D(S," ","")+";",i,n,u-2),l);break;case 59:S+=";";default:if(pn(w=Ho(S,e,n,c,f,r,a,y,T=[],k=[],u),o),x===123)if(f===0)yn(S,e,w,w,T,o,u,a,k);else switch(h===99&&q(S,3)===110?100:h){case 100:case 108:case 109:case 115:yn(t,w,w,i&&pn(Ho(t,w,w,0,0,r,a,y,r,T=[],u),k),r,k,u,a,i?T:k);break;default:yn(S,w,w,w,[""],k,0,a,k)}}c=f=d=0,p=v=1,y=S="",u=s;break;case 58:u=1+vt(S),d=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&mf()==125)continue}switch(S+=dn(x),x*p){case 38:v=f>0?1:(S+="\f",-1);break;case 44:a[c++]=(vt(S)-1)*v,v=1;break;case 64:yt()===45&&(S+=vn(et())),h=yt(),f=u=vt(y=S+=xf(_n())),x++;break;case 45:g===45&&vt(S)==2&&(p=0)}}return o}function Ho(t,e,n,i,r,o,s,a,l,c,f){for(var u=r-1,h=r===0?o:[""],d=Ei(h),g=0,p=0,m=0;g<i;++g)for(var v=0,x=Ee(t,u+1,u=uf(p=s[g])),y=t;v<d;++v)(y=zo(p>0?h[v]+" "+x:D(x,/&\f/g,h[v])))&&(l[m++]=y);return mn(t,e,n,r===0?Mi:a,l,c,f)}function wf(t,e,n){return mn(t,e,n,Po,dn(gf()),Ee(t,2,-2),0)}function Yo(t,e,n,i){return mn(t,e,n,Ai,Ee(t,0,i),Ee(t,i+1,-1),i)}function ae(t,e){for(var n="",i=Ei(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function kf(t,e,n,i){switch(t.type){case cf:if(t.children.length)break;case lf:case Ai:return t.return=t.return||t.value;case Po:return"";case Lo:return t.return=t.value+"{"+ae(t.children,i)+"}";case Mi:t.value=t.props.join(",")}return vt(n=ae(t.children,i))?t.return=t.value+"{"+n+"}":""}function Tf(t){var e=Ei(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function Sf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Cf(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Mf=function(e,n,i){for(var r=0,o=0;r=o,o=yt(),r===38&&o===12&&(n[i]=1),!De(o);)et();return Oe(e,Z)},Af=function(e,n){var i=-1,r=44;do switch(De(r)){case 0:r===38&&yt()===12&&(n[i]=1),e[i]+=Mf(Z-1,n,i);break;case 2:e[i]+=vn(r);break;case 4:if(r===44){e[++i]=yt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=dn(r)}while(r=et());return e},$f=function(e,n){return Uo(Af(Io(e),n))},Wo=new WeakMap,Ef=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Wo.get(i))&&!r){Wo.set(e,!0);for(var o=[],s=$f(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var f=0;f<a.length;f++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[f]):a[f]+" "+s[l]}}},Nf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Vo(t,e){switch(hf(t,e)){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+hn+t+G+t+t;case 6828:case 4268:return O+t+G+t+t;case 6165:return O+t+G+"flex-"+t+t;case 5187:return O+t+D(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return O+t+G+"flex-item-"+D(t,/flex-|-self/,"")+t;case 4675:return O+t+G+"flex-line-pack"+D(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+G+D(t,"shrink","negative")+t;case 5292:return O+t+G+D(t,"basis","preferred-size")+t;case 6060:return O+"box-"+D(t,"-grow","")+O+t+G+D(t,"grow","positive")+t;case 4554:return O+D(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(vt(t)-1-e>6)switch(q(t,e+1)){case 109:if(q(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+hn+(q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$i(t,"stretch")?Vo(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(q(t,e+1)!==115)break;case 6444:switch(q(t,vt(t)-3-(~$i(t,"!important")&&10))){case 107:return D(t,":",":"+O)+t;case 101:return D(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(q(t,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+G+"$2box$3")+t}break;case 5936:switch(q(t,e+11)){case 114:return O+t+G+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+G+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+G+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+G+t+t}return t}var Of=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Ai:e.return=Vo(e.value,e.length);break;case Lo:return ae([Ne(e,{value:D(e.value,"@","@"+O)})],r);case Mi:if(e.length)return pf(e.props,function(o){switch(df(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ae([Ne(e,{props:[D(o,/:(read-\w+)/,":"+hn+"$1")]})],r);case"::placeholder":return ae([Ne(e,{props:[D(o,/:(plac\w+)/,":"+O+"input-$1")]}),Ne(e,{props:[D(o,/:(plac\w+)/,":"+hn+"$1")]}),Ne(e,{props:[D(o,/:(plac\w+)/,G+"input-$1")]})],r)}return""})}},Df=[Of],Rf=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=e.stylisPlugins||Df,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),v=1;v<m.length;v++)o[m[v]]=!0;a.push(p)});var l,c=[Ef,Nf];{var f,u=[kf,Sf(function(p){f.insert(p)})],h=Tf(c.concat(r,u)),d=function(m){return ae(bf(m),h)};l=function(m,v,x,y){f=x,d(m?m+"{"+v.styles+"}":v.styles),y&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new af({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g};function Ff(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Pf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lf=/[A-Z]|^ms/g,zf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xo=function(e){return e.charCodeAt(1)===45},qo=function(e){return e!=null&&typeof e!="boolean"},Oi=Cf(function(t){return Xo(t)?t:t.replace(Lf,"-$&").toLowerCase()}),Go=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(zf,function(i,r,o){return Ot={name:r,styles:o,next:Ot},r})}return Pf[e]!==1&&!Xo(e)&&typeof n=="number"&&n!==0?n+"px":n};function xn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ot={name:r.name,styles:r.styles,next:Ot},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ot={name:s.name,styles:s.styles,next:Ot},s=s.next;var a=o.styles+";";return a}return Bf(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function Bf(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=xn(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":qo(a)&&(i+=Oi(o)+":"+Go(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)qo(s[l])&&(i+=Oi(o)+":"+Go(o,s[l])+";");else{var c=xn(t,e,s);switch(o){case"animation":case"animationName":{i+=Oi(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var jo=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function Di(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ot=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=xn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=xn(n,e,t[a]),i){var l=o;r+=l[a]}jo.lastIndex=0;for(var c="",f;(f=jo.exec(r))!==null;)c+="-"+f[1];var u=Ff(r)+c;return{name:u,styles:r,next:Ot}}function Zo(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var If=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},Uf=function(e,n,i){If(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Qo(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Jo(t,e,n){var i=[],r=Zo(t,i,n);return i.length<2?n:r+e(i)}var Hf=function(e){var n=Rf(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var u=Di(c,n.registered,void 0);return Uf(n,u),n.key+"-"+u.name},r=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var u=Di(c,n.registered),h="animation-"+u.name;return Qo(n,{name:u.name,styles:"@keyframes "+h+"{"+u.styles+"}"}),h},o=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var u=Di(c,n.registered);Qo(n,u)},s=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return Jo(n.registered,i,Yf(c))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Zo.bind(null,n.registered),merge:Jo.bind(null,n.registered,i)}},Yf=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=t(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(n&&(n+=" "),n+=o)}}return n},Ko=Hf({key:"css"}),le=Ko.injectGlobal,R=Ko.css;function Wf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ri,ts;function Vf(){return ts||(ts=1,Ri=function(e,n){n||(n=[0,""]),e=String(e);var i=parseFloat(e,10);return n[0]=i,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Ri}var Fi,es;function Xf(){if(es)return Fi;es=1;var t=Vf();Fi=r;var e=i("in",document.body);function n(o,s){var a=t(getComputedStyle(o).getPropertyValue(s));return a[0]*r(a[1],o)}function i(o,s){var a=document.createElement("div");a.style.height="128"+o,s.appendChild(a);var l=n(a,"height")/128;return s.removeChild(a),l}function r(o,s){if(!o)return null;switch(s=s||document.body,o=(o+""||"px").trim().toLowerCase(),(s===window||s===document)&&(s=document.body),o){case"%":return s.clientHeight/100;case"ch":case"ex":return i(o,s);case"em":return n(s,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var a=t(o);if(!isNaN(a[0])&&a[1]){var l=r(a[1],s);return typeof l=="number"?a[0]*l:null}return null}return Fi}Xf();function ns(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function qf(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function Gf(t,e,n=0){const[i,r,o,s]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,l,c,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<f||l<s||o<a||c<i)}function Pi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function is(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Re(){}var Fe=.7,bn=1/Fe,ce="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jf=/^#([0-9a-f]{3,8})$/,Zf=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),Qf=new RegExp(`^rgb\\(${xt},${xt},${xt}\\)$`),Jf=new RegExp(`^rgba\\(${ce},${ce},${ce},${Pe}\\)$`),Kf=new RegExp(`^rgba\\(${xt},${xt},${xt},${Pe}\\)$`),th=new RegExp(`^hsl\\(${Pe},${xt},${xt}\\)$`),eh=new RegExp(`^hsla\\(${Pe},${xt},${xt},${Pe}\\)$`),rs={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};Pi(Re,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:os,formatHex:os,formatHex8:nh,formatHsl:ih,formatRgb:ss,toString:ss});function os(){return this.rgb().formatHex()}function nh(){return this.rgb().formatHex8()}function ih(){return fs(this).formatHsl()}function ss(){return this.rgb().formatRgb()}function Ut(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?as(e):n===3?new Q(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?wn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?wn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Zf.exec(t))?new Q(e[1],e[2],e[3],1):(e=Qf.exec(t))?new Q(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Jf.exec(t))?wn(e[1],e[2],e[3],e[4]):(e=Kf.exec(t))?wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=th.exec(t))?us(e[1],e[2]/100,e[3]/100,1):(e=eh.exec(t))?us(e[1],e[2]/100,e[3]/100,e[4]):rs.hasOwnProperty(t)?as(rs[t]):t==="transparent"?new Q(NaN,NaN,NaN,0):null}function as(t){return new Q(t>>16&255,t>>8&255,t&255,1)}function wn(t,e,n,i){return i<=0&&(t=e=n=NaN),new Q(t,e,n,i)}function rh(t){return t instanceof Re||(t=Ut(t)),t?(t=t.rgb(),new Q(t.r,t.g,t.b,t.opacity)):new Q}function Li(t,e,n,i){return arguments.length===1?rh(t):new Q(t,e,n,i??1)}function Q(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Pi(Q,Li,is(Re,{brighter(t){return t=t==null?bn:Math.pow(bn,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Fe:Math.pow(Fe,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Q(Ht(this.r),Ht(this.g),Ht(this.b),kn(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:ls,formatHex:ls,formatHex8:oh,formatRgb:cs,toString:cs}));function ls(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function oh(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function cs(){const t=kn(this.opacity);return`${t===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${t===1?")":`, ${t})`}`}function kn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ht(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Yt(t){return t=Ht(t),(t<16?"0":"")+t.toString(16)}function us(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ut(t,e,n,i)}function fs(t){if(t instanceof ut)return new ut(t.h,t.s,t.l,t.opacity);if(t instanceof Re||(t=Ut(t)),!t)return new ut;if(t instanceof ut)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new ut(s,a,l,t.opacity)}function zi(t,e,n,i){return arguments.length===1?fs(t):new ut(t,e,n,i??1)}function ut(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Pi(ut,zi,is(Re,{brighter(t){return t=t==null?bn:Math.pow(bn,t),new ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Fe:Math.pow(Fe,t),new ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Q(Bi(t>=240?t-240:t+120,r,i),Bi(t,r,i),Bi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new ut(hs(this.h),Tn(this.s),Tn(this.l),kn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=kn(this.opacity);return`${t===1?"hsl(":"hsla("}${hs(this.h)}, ${Tn(this.s)*100}%, ${Tn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function hs(t){return t=(t||0)%360,t<0?t+360:t}function Tn(t){return Math.max(0,Math.min(1,t||0))}function Bi(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Le=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],sh=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Dt=t=>`--vis-${Lt(t)?`color${t%Le.length}`:t}`;function ah(t,e=.4){const n=zi(t);return n.l=n.l*(1+e),n.formatHex()}function lh(t,e=.4,n=.6){const i=zi(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const ze=10,Ii=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Ui=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Rt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const ch=t=>`<mask id="${Rt(t)}">
|
|
2
2
|
<pattern id="${t.id}" viewBox="0 0 10 10" width="${ze}" height="${ze}" patternUnits="userSpaceOnUse">
|
|
3
3
|
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
4
|
${t.svg}
|
|
5
5
|
</pattern>
|
|
6
6
|
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
|
|
7
|
-
</mask>`,
|
|
8
|
-
fill="var(${
|
|
7
|
+
</mask>`,uh=(t,e)=>`<marker id="${Rt(t)}"
|
|
8
|
+
fill="var(${Dt(e)})"
|
|
9
9
|
markerUnits="userSpaceOnUse"
|
|
10
10
|
refX="5"
|
|
11
11
|
refY="5"
|
|
12
12
|
markerWidth="${ze}"
|
|
13
13
|
markerHeight="${ze}">
|
|
14
14
|
${t.marker}
|
|
15
|
-
</marker>`;function
|
|
15
|
+
</marker>`;function fh(){const t=Ii.map(ch).concat(Ui.map(uh)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&fh();const ds=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,ps=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],gs=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",ms=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};le`
|
|
16
16
|
:root {
|
|
17
17
|
label: vis-root-styles;
|
|
18
18
|
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
19
|
--vis-font-wh-ratio: ${ds};
|
|
20
|
-
--vis-color-main: var(${
|
|
21
|
-
--vis-color-main-light: ${
|
|
22
|
-
--vis-color-main-dark: ${
|
|
20
|
+
--vis-color-main: var(${Dt(0)});
|
|
21
|
+
--vis-color-main-light: ${ah(Le[0])};
|
|
22
|
+
--vis-color-main-dark: ${lh(Le[0])};
|
|
23
23
|
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${Le.map((t,e)=>`${
|
|
25
|
-
${
|
|
26
|
-
${
|
|
27
|
-
--${
|
|
28
|
-
--vis-pattern-fill${e}: var(--${
|
|
24
|
+
${Le.map((t,e)=>`${Dt(e)}: ${t};`)}
|
|
25
|
+
${sh.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
+
${Ii.map((t,e)=>`
|
|
27
|
+
--${Rt(t)}: url(#${Rt(t)});
|
|
28
|
+
--vis-pattern-fill${e}: var(--${Rt(t)});
|
|
29
29
|
`)}
|
|
30
|
-
${
|
|
31
|
-
--${
|
|
32
|
-
--vis-pattern-marker${e}: var(--${
|
|
30
|
+
${Ui.map((t,e)=>{var n;return`
|
|
31
|
+
--${Rt(t)}: url(#${Rt(t)});
|
|
32
|
+
--vis-pattern-marker${e}: var(--${Rt(t)});
|
|
33
33
|
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
34
|
`})}
|
|
35
35
|
|
|
36
36
|
body.theme-dark {
|
|
37
|
-
${Le.map((t,e)=>`${
|
|
37
|
+
${Le.map((t,e)=>`${Dt(e)}: var(--vis-dark-color${e});`)}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
body.theme-patterns {
|
|
41
|
-
${
|
|
41
|
+
${Ii.map((t,e)=>`path[style*="fill: var(${Dt(e)})"] {
|
|
42
42
|
mask: var(--vis-pattern-fill${e});
|
|
43
43
|
}`)}
|
|
44
|
-
${
|
|
45
|
-
path[stroke="var(${
|
|
46
|
-
path[style*="stroke: var(${
|
|
44
|
+
${Ui.map((t,e)=>`
|
|
45
|
+
path[stroke="var(${Dt(e)})"]:not([style*="fill"]),
|
|
46
|
+
path[style*="stroke: var(${Dt(e)})"]:not([style*="fill"]) {
|
|
47
47
|
marker: var(--vis-pattern-marker${e});
|
|
48
48
|
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
49
|
}
|
|
50
50
|
`)}
|
|
51
51
|
}
|
|
52
|
-
`;function yf(t=window==null?void 0:window.document.body){return t?+Kh("var(--vis-font-wh-ratio)",t):ds}var xf={value:()=>{}};function _s(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new An(n)}function An(t){this._=t}function bf(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}An.prototype=_s.prototype={constructor:An,on:function(t,e){var n=this._,i=bf(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=wf(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=vs(n[r],t.name,e);else if(e==null)for(r in n)n[r]=vs(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new An(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function wf(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function vs(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=xf,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var fe=0,Ie=0,Ue=0,ys=1e3,$n,He,En=0,Gt=0,Nn=0,We=typeof performance=="object"&&performance.now?performance:Date,xs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Vi(){return Gt||(xs(kf),Gt=We.now()+Nn)}function kf(){Gt=0}function On(){this._call=this._time=this._next=null}On.prototype=bs.prototype={constructor:On,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Vi():+n)+(e==null?0:+e),!this._next&&He!==this&&(He?He._next=this:$n=this,He=this),this._call=t,this._time=n,Xi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xi())}};function bs(t,e,n){var i=new On;return i.restart(t,e,n),i}function Tf(){Vi(),++fe;for(var t=$n,e;t;)(e=Gt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fe}function ws(){Gt=(En=We.now())+Nn,fe=Ie=0;try{Tf()}finally{fe=0,Cf(),Gt=0}}function Sf(){var t=We.now(),e=t-En;e>ys&&(Nn-=e,En=t)}function Cf(){for(var t,e=$n,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:$n=n);He=t,Xi(i)}function Xi(t){if(!fe){Ie&&(Ie=clearTimeout(Ie));var e=t-Gt;e>24?(t<1/0&&(Ie=setTimeout(ws,t-We.now()-Nn)),Ue&&(Ue=clearInterval(Ue))):(Ue||(En=We.now(),Ue=setInterval(Sf,ys)),fe=1,xs(ws))}}function ks(t,e,n){var i=new On;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var Mf=_s("start","end","cancel","interrupt"),Af=[],Ts=0,Ss=1,qi=2,Dn=3,Cs=4,Gi=5,Rn=6;function Fn(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;$f(t,n,{name:e,index:i,group:r,on:Mf,tween:Af,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ts})}function ji(t,e){var n=ft(t,e);if(n.state>Ts)throw new Error("too late; already scheduled");return n}function kt(t,e){var n=ft(t,e);if(n.state>Dn)throw new Error("too late; already running");return n}function ft(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function $f(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=bs(o,0,n.time);function o(c){n.state=Ss,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,f,d;if(n.state!==Ss)return l();for(h in i)if(d=i[h],d.name===n.name){if(d.state===Dn)return ks(s);d.state===Cs?(d.state=Rn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[h]):+h<e&&(d.state=Rn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[h])}if(ks(function(){n.state===Dn&&(n.state=Cs,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=qi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===qi){for(n.state=Dn,r=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Gi,1),u=-1,f=r.length;++u<f;)r[u].call(t,h);n.state===Gi&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Rn,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function Zi(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>qi&&i.state<Gi,i.state=Rn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function Ef(t){return this.each(function(){Zi(this,t)})}const Qi=t=>()=>t;function Nf(t,e){return function(n){return t+n*e}}function Of(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function Df(t){return(t=+t)==1?Ms:function(e,n){return n-e?Of(e,n,t):Qi(isNaN(e)?n:e)}}function Ms(t,e){var n=e-t;return n?Nf(t,n):Qi(isNaN(t)?e:t)}const Pn=function t(e){var n=Df(e);function i(r,o){var s=n((r=Ii(r)).r,(o=Ii(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=Ms(r.opacity,o.opacity);return function(h){return r.r=s(h),r.g=a(h),r.b=l(h),r.opacity=c(h),r+""}}return i.gamma=t,i}(1);function Rf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Ff(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Pf(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=de(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function Bf(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function dt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Lf(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=de(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var Ji=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ki=new RegExp(Ji.source,"g");function zf(t){return function(){return t}}function If(t){return function(e){return t(e)+""}}function As(t,e){var n=Ji.lastIndex=Ki.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=Ji.exec(t))&&(r=Ki.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:dt(i,r)})),n=Ki.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?If(l[0].x):zf(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function de(t,e){var n=typeof e,i;return e==null||n==="boolean"?Qi(e):(n==="number"?dt:n==="string"?(i=Vt(e))?(e=i,Pn):As:e instanceof Vt?Pn:e instanceof Date?Bf:Ff(e)?Rf:Array.isArray(e)?Pf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Lf:dt)(t,e)}function tr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var $s=180/Math.PI,er={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Es(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*$s,skewX:Math.atan(l)*$s,scaleX:s,scaleY:a}}var Bn;function Uf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?er:Es(e.a,e.b,e.c,e.d,e.e,e.f)}function Hf(t){return t==null||(Bn||(Bn=document.createElementNS("http://www.w3.org/2000/svg","g")),Bn.setAttribute("transform",t),!(t=Bn.transform.baseVal.consolidate()))?er:(t=t.matrix,Es(t.a,t.b,t.c,t.d,t.e,t.f))}function Ns(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push("translate(",null,e,null,n);g.push({i:p-4,x:dt(c,u)},{i:p-2,x:dt(h,f)})}else(u||f)&&d.push("translate("+u+e+f+n)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(r(u)+"rotate(",null,i)-2,x:dt(c,h)})):h&&u.push(r(u)+"rotate("+h+i)}function a(c,h,u,f){c!==h?f.push({i:u.push(r(u)+"skewX(",null,i)-2,x:dt(c,h)}):h&&u.push(r(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push(r(d)+"scale(",null,",",null,")");g.push({i:p-4,x:dt(c,u)},{i:p-2,x:dt(h,f)})}else(u!==1||f!==1)&&d.push(r(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),a(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,p=f.length,_;++g<p;)u[(_=f[g]).i]=_.x(d);return u.join("")}}}var Wf=Ns(Uf,"px, ","px)","deg)"),Yf=Ns(Hf,", ",")",")");function Vf(t,e){e===void 0&&(e=t,t=de);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(s){var a=Math.max(0,Math.min(i-1,Math.floor(s*=i)));return o[a](s-a)}}function Xf(t,e){var n,i;return function(){var r=kt(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function qf(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=kt(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function Gf(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=ft(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?Xf:qf)(n,t,e))}function nr(t,e,n){var i=t._id;return t.each(function(){var r=kt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return ft(r,i).value[e]}}function Os(t,e){var n;return(typeof e=="number"?dt:e instanceof Vt?Pn:(n=Vt(e))?(e=n,Pn):As)(t,e)}function jf(t){return function(){this.removeAttribute(t)}}function Zf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qf(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function Jf(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function Kf(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function td(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function ed(t,e){var n=tn(t),i=n==="transform"?Yf:Os;return this.attrTween(t,typeof e=="function"?(n.local?td:Kf)(n,i,nr(this,"attr."+t,e)):e==null?(n.local?Zf:jf)(n):(n.local?Jf:Qf)(n,i,e))}function nd(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function id(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function rd(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&id(t,o)),n}return r._value=e,r}function od(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&nd(t,o)),n}return r._value=e,r}function sd(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=tn(t);return this.tween(n,(i.local?rd:od)(i,e))}function ad(t,e){return function(){ji(this,t).delay=+e.apply(this,arguments)}}function ld(t,e){return e=+e,function(){ji(this,t).delay=e}}function cd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ad:ld)(e,t)):ft(this.node(),e).delay}function ud(t,e){return function(){kt(this,t).duration=+e.apply(this,arguments)}}function hd(t,e){return e=+e,function(){kt(this,t).duration=e}}function fd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ud:hd)(e,t)):ft(this.node(),e).duration}function dd(t,e){if(typeof e!="function")throw new Error;return function(){kt(this,t).ease=e}}function pd(t){var e=this._id;return arguments.length?this.each(dd(e,t)):ft(this.node(),e).ease}function gd(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;kt(this,t).ease=n}}function md(t){if(typeof t!="function")throw new Error;return this.each(gd(this._id,t))}function _d(t){typeof t!="function"&&(t=no(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Mt(i,this._parents,this._name,this._id)}function vd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l=e[a],c=n[a],h=l.length,u=s[a]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;a<i;++a)s[a]=e[a];return new Mt(s,this._parents,this._name,this._id)}function yd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function xd(t,e,n){var i,r,o=yd(e)?ji:kt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function bd(t,e){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(t):this.each(xd(n,t,e))}function wd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function kd(){return this.on("end.remove",wd(this._id))}function Td(t){var e=this._name,n=this._id;typeof t!="function"&&(t=_i(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],l=a.length,c=o[s]=new Array(l),h,u,f=0;f<l;++f)(h=a[f])&&(u=t.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,Fn(c[f],e,n,f,c,ft(h,n)));return new Mt(o,this._parents,e,n)}function Sd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=eo(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l=i[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=t.call(h,h.__data__,u,l),d,g=ft(h,n),p=0,_=f.length;p<_;++p)(d=f[p])&&Fn(d,e,n,p,f,g);o.push(f),s.push(h)}return new Mt(o,s,e,n)}var Cd=ke.prototype.constructor;function Md(){return new Cd(this._groups,this._parents)}function Ad(t,e){var n,i,r;return function(){var o=oe(this,t),s=(this.style.removeProperty(t),oe(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function Ds(t){return function(){this.style.removeProperty(t)}}function $d(t,e,n){var i,r=n+"",o;return function(){var s=oe(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function Ed(t,e,n){var i,r,o;return function(){var s=oe(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),oe(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function Nd(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=kt(this,t),c=l.on,h=l.value[o]==null?a||(a=Ds(e)):void 0;(c!==n||r!==h)&&(i=(n=c).copy()).on(s,r=h),l.on=i}}function Od(t,e,n){var i=(t+="")=="transform"?Wf:Os;return e==null?this.styleTween(t,Ad(t,i)).on("end.style."+t,Ds(t)):typeof e=="function"?this.styleTween(t,Ed(t,i,nr(this,"style."+t,e))).each(Nd(this._id,t)):this.styleTween(t,$d(t,i,e),n).on("end.style."+t,null)}function Dd(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Rd(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Dd(t,s,n)),i}return o._value=e,o}function Fd(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Rd(t,e,n??""))}function Pd(t){return function(){this.textContent=t}}function Bd(t){return function(){var e=t(this);this.textContent=e??""}}function Ld(t){return this.tween("text",typeof t=="function"?Bd(nr(this,"text",t)):Pd(t==null?"":t+""))}function zd(t){return function(e){this.textContent=t.call(this,e)}}function Id(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&zd(r)),e}return i._value=t,i}function Ud(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Id(t))}function Hd(){for(var t=this._name,e=this._id,n=Rs(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=ft(l,e);Fn(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Mt(i,this._parents,t,n)}function Wd(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--r===0&&o()}};n.each(function(){var c=kt(this,i),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&o()})}var Yd=0;function Mt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Rs(){return++Yd}var At=ke.prototype;Mt.prototype={constructor:Mt,select:Td,selectAll:Sd,selectChild:At.selectChild,selectChildren:At.selectChildren,filter:_d,merge:vd,selection:Md,transition:Hd,call:At.call,nodes:At.nodes,node:At.node,size:At.size,empty:At.empty,each:At.each,on:bd,attr:ed,attrTween:sd,style:Od,styleTween:Fd,text:Ld,textTween:Ud,remove:kd,tween:Gf,delay:cd,duration:fd,ease:pd,easeVarying:md,end:Wd,[Symbol.iterator]:At[Symbol.iterator]};const Fs=t=>+t;function Vd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xd={time:null,delay:0,duration:250,ease:Vd};function qd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Gd(t){var e,n;t instanceof Mt?(e=t._id,t=t._name):(e=Rs(),(n=Xd).time=Vi(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Fn(l,t,e,c,s,n||qd(l,e));return new Mt(i,this._parents,t,e)}ke.prototype.interrupt=Ef,ke.prototype.transition=Gd;function at(t,e,n){if(t.nodes().forEach(i=>Zi(i)),e){const i=t.transition().duration(e);return n&&i.ease(n),i}else return t}class ir{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var F;(function(t){t.X="x",t.Y="y"})(F||(F={}));function pt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Ps(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const Bs=Symbol("implicit");function rr(){var t=new po,e=[],n=[],i=Bs;function r(o){let s=t.get(o);if(s===void 0){if(i!==Bs)return i;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new po;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return rr(e,n).unknown(i)},pt.apply(r,arguments),r}function or(){var t=rr().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,l=0,c=0,h=.5;delete t.unknown;function u(){var f=e().length,d=r<i,g=d?r:i,p=d?i:r;o=(p-g)/Math.max(1,f-l+c*2),a&&(o=Math.floor(o)),g+=(p-g-o*(f-l))*h,s=o*(1-l),a&&(g=Math.round(g),s=Math.round(s));var _=Du(f).map(function(v){return g+o*v});return n(d?_.reverse():_)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?([i,r]=f,i=+i,r=+r,u()):[i,r]},t.rangeRound=function(f){return[i,r]=f,i=+i,r=+r,a=!0,u()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(f){return arguments.length?(a=!!f,u()):a},t.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),u()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),u()):l},t.paddingOuter=function(f){return arguments.length?(c=+f,u()):c},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},t.copy=function(){return or(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(h)},pt.apply(u(),arguments)}function Ls(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ls(e())},t}function jd(){return Ls(or.apply(null,arguments).paddingInner(1))}function Zd(t){return function(){return t}}function sr(t){return+t}var zs=[0,1];function K(t){return t}function ar(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Zd(isNaN(e)?NaN:.5)}function Qd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Jd(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=ar(r,i),o=n(s,o)):(i=ar(i,r),o=n(o,s)),function(a){return o(i(a))}}function Kd(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=ar(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=on(t,a,1,i)-1;return o[l](r[l](a))}}function Ye(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ln(){var t=zs,e=zs,n=de,i,r,o,s=K,a,l,c;function h(){var f=Math.min(t.length,e.length);return s!==K&&(s=Qd(t[0],t[f-1])),a=f>2?Kd:Jd,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=a(t.map(i),e,n)))(i(s(f)))}return u.invert=function(f){return s(r((c||(c=a(e,t.map(i),dt)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,sr),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=tr,h()},u.clamp=function(f){return arguments.length?(s=f?!0:K,h()):s!==K},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,d){return i=f,r=d,h()}}function Is(){return Ln()(K,K)}function tp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function zn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function pe(t){return t=zn(Math.abs(t)),t?t[1]:NaN}function ep(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function np(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var ip=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ve(t){if(!(e=ip.exec(t)))throw new Error("invalid format: "+t);var e;return new lr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Ve.prototype=lr.prototype;function lr(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}lr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rp(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var Us;function op(t,e){var n=zn(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(Us=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+zn(t,Math.max(0,e+o-1))[0]}function Hs(t,e){var n=zn(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Ws={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:tp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Hs(t*100,e),r:Hs,s:op,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ys(t){return t}var Vs=Array.prototype.map,Xs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sp(t){var e=t.grouping===void 0||t.thousands===void 0?Ys:ep(Vs.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ys:np(Vs.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=Ve(u);var f=u.fill,d=u.align,g=u.sign,p=u.symbol,_=u.zero,v=u.width,x=u.comma,y=u.precision,T=u.trim,k=u.type;k==="n"?(x=!0,k="g"):Ws[k]||(y===void 0&&(y=12),T=!0,k="g"),(_||f==="0"&&d==="=")&&(_=!0,f="0",d="=");var w=p==="$"?n:p==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",S=p==="$"?i:/[%p]/.test(k)?s:"",z=Ws[k],P=/[defgprs%]/.test(k);y=y===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function rt(A){var H=w,X=S,zt,gi,xe;if(k==="c")X=z(A)+X,A="";else{A=+A;var be=A<0||1/A<0;if(A=isNaN(A)?l:z(Math.abs(A),y),T&&(A=rp(A)),be&&+A==0&&g!=="+"&&(be=!1),H=(be?g==="("?g:a:g==="-"||g==="("?"":g)+H,X=(k==="s"?Xs[8+Us/3]:"")+X+(be&&g==="("?")":""),P){for(zt=-1,gi=A.length;++zt<gi;)if(xe=A.charCodeAt(zt),48>xe||xe>57){X=(xe===46?r+A.slice(zt+1):A.slice(zt))+X,A=A.slice(0,zt);break}}}x&&!_&&(A=e(A,1/0));var we=H.length+A.length+X.length,_t=we<v?new Array(v-we+1).join(f):"";switch(x&&_&&(A=e(_t+A,_t.length?v-X.length:1/0),_t=""),d){case"<":A=H+A+X+_t;break;case"=":A=H+_t+A+X;break;case"^":A=_t.slice(0,we=_t.length>>1)+H+A+X+_t.slice(we);break;default:A=_t+H+A+X;break}return o(A)}return rt.toString=function(){return u+""},rt}function h(u,f){var d=c((u=Ve(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(pe(f)/3)))*3,p=Math.pow(10,-g),_=Xs[8+g/3];return function(v){return d(p*v)+_}}return{format:c,formatPrefix:h}}var In,cr,qs;ap({thousands:",",grouping:[3],currency:["$",""]});function ap(t){return In=sp(t),cr=In.format,qs=In.formatPrefix,In}function lp(t){return Math.max(0,-pe(Math.abs(t)))}function cp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pe(e)/3)))*3-pe(Math.abs(t)))}function up(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pe(e)-pe(t))+1}function hp(t,e,n,i){var r=bi(t,e,n),o;switch(i=Ve(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=cp(r,s))&&(i.precision=o),qs(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=up(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=lp(r))&&(i.precision=o-(i.type==="%")*2);break}}return cr(i)}function jt(t){var e=t.domain;return t.ticks=function(n){var i=e();return yi(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return hp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,o=i.length-1,s=i[r],a=i[o],l,c,h=10;for(a<s&&(c=s,s=a,a=c,c=r,r=o,o=c);h-- >0;){if(c=xi(s,a,n),c===l)return i[r]=s,i[o]=a,e(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function Gs(){var t=Is();return t.copy=function(){return Ye(t,Gs())},pt.apply(t,arguments),jt(t)}function js(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,sr),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return js(t).unknown(e)},t=arguments.length?Array.from(t,sr):[0,1],jt(n)}function Zs(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),t[n]=e.floor(r),t[i]=e.ceil(o),t}function Qs(t){return Math.log(t)}function Js(t){return Math.exp(t)}function fp(t){return-Math.log(-t)}function dp(t){return-Math.exp(-t)}function pp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function gp(t){return t===10?pp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function mp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Ks(t){return(e,n)=>-t(-e,n)}function _p(t){const e=t(Qs,Js),n=e.domain;let i=10,r,o;function s(){return r=mp(i),o=gp(i),n()[0]<0?(r=Ks(r),o=Ks(o),t(fp,dp)):t(Qs,Js),e}return e.base=function(a){return arguments.length?(i=+a,s()):i},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const l=n();let c=l[0],h=l[l.length-1];const u=h<c;u&&([c,h]=[h,c]);let f=r(c),d=r(h),g,p;const _=a==null?10:+a;let v=[];if(!(i%1)&&d-f<_){if(f=Math.floor(f),d=Math.ceil(d),c>0){for(;f<=d;++f)for(g=1;g<i;++g)if(p=f<0?g/o(-f):g*o(f),!(p<c)){if(p>h)break;v.push(p)}}else for(;f<=d;++f)for(g=i-1;g>=1;--g)if(p=f>0?g/o(-f):g*o(f),!(p<c)){if(p>h)break;v.push(p)}v.length*2<_&&(v=yi(c,h,_))}else v=yi(f,d,Math.min(d-f,_)).map(o);return u?v.reverse():v},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=Ve(l)).precision==null&&(l.trim=!0),l=cr(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return h=>{let u=h/o(Math.round(r(h)));return u*i<i-.5&&(u*=i),u<=c?l(h):""}},e.nice=()=>n(Zs(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function ta(){const t=_p(Ln()).domain([1,10]);return t.copy=()=>Ye(t,ta()).base(t.base()),pt.apply(t,arguments),t}function ea(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function na(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function vp(t){var e=1,n=t(ea(e),na(e));return n.constant=function(i){return arguments.length?t(ea(e=+i),na(e)):e},jt(n)}function ia(){var t=vp(Ln());return t.copy=function(){return Ye(t,ia()).constant(t.constant())},pt.apply(t,arguments)}function ra(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function yp(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function xp(t){return t<0?-t*t:t*t}function bp(t){var e=t(K,K),n=1;function i(){return n===1?t(K,K):n===.5?t(yp,xp):t(ra(n),ra(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},jt(e)}function ur(){var t=bp(Ln());return t.copy=function(){return Ye(t,ur()).exponent(t.exponent())},pt.apply(t,arguments),t}function wp(){return ur.apply(null,arguments).exponent(.5)}function oa(){var t=[],e=[],n=[],i;function r(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=$u(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[on(n,s)]}return o.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(Se),r()},o.range=function(s){return arguments.length?(e=Array.from(s),r()):e.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.quantiles=function(){return n.slice()},o.copy=function(){return oa().domain(t).range(e).unknown(i)},pt.apply(o,arguments)}function sa(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(l){return l!=null&&l<=l?r[on(i,l,0,n)]:o}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return s}return s.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},s.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},s.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return i.slice()},s.copy=function(){return sa().domain([t,e]).range(r).unknown(o)},pt.apply(jt(s),arguments)}function aa(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[on(t,o,0,i)]:n}return r.domain=function(o){return arguments.length?(t=Array.from(o),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return aa().domain(t).range(e).unknown(n)},pt.apply(r,arguments)}const hr=new Date,fr=new Date;function V(t,e,n,i){function r(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(t(o=new Date(+o)),o),r.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const l=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),e(o,a),t(o);while(c<o&&o<s);return l},r.filter=o=>V(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!o(s););else for(;--a>=0;)for(;e(s,1),!o(s););}),n&&(r.count=(o,s)=>(hr.setTime(+o),fr.setTime(+s),t(hr),t(fr),Math.floor(n(hr,fr))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}const Un=V(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Un.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?V(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Un),Un.range;const $t=1e3,lt=$t*60,Et=lt*60,Nt=Et*24,dr=Nt*7,la=Nt*30,pr=Nt*365,Zt=V(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*$t)},(t,e)=>(e-t)/$t,t=>t.getUTCSeconds());Zt.range;const gr=V(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*$t)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getMinutes());gr.range;const mr=V(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCMinutes());mr.range;const _r=V(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*$t-t.getMinutes()*lt)},(t,e)=>{t.setTime(+t+e*Et)},(t,e)=>(e-t)/Et,t=>t.getHours());_r.range;const vr=V(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Et)},(t,e)=>(e-t)/Et,t=>t.getUTCHours());vr.range;const Xe=V(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*lt)/Nt,t=>t.getDate()-1);Xe.range;const Hn=V(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Nt,t=>t.getUTCDate()-1);Hn.range;const ca=V(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Nt,t=>Math.floor(t/Nt));ca.range;function Qt(t){return V(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*lt)/dr)}const Wn=Qt(0),Yn=Qt(1),kp=Qt(2),Tp=Qt(3),ge=Qt(4),Sp=Qt(5),Cp=Qt(6);Wn.range,Yn.range,kp.range,Tp.range,ge.range,Sp.range,Cp.range;function Jt(t){return V(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/dr)}const Vn=Jt(0),Xn=Jt(1),Mp=Jt(2),Ap=Jt(3),me=Jt(4),$p=Jt(5),Ep=Jt(6);Vn.range,Xn.range,Mp.range,Ap.range,me.range,$p.range,Ep.range;const yr=V(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());yr.range;const xr=V(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xr.range;const Ot=V(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ot.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:V(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),Ot.range;const Dt=V(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Dt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:V(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Dt.range;function ua(t,e,n,i,r,o){const s=[[Zt,1,$t],[Zt,5,5*$t],[Zt,15,15*$t],[Zt,30,30*$t],[o,1,lt],[o,5,5*lt],[o,15,15*lt],[o,30,30*lt],[r,1,Et],[r,3,3*Et],[r,6,6*Et],[r,12,12*Et],[i,1,Nt],[i,2,2*Nt],[n,1,dr],[e,1,la],[e,3,3*la],[t,1,pr]];function a(c,h,u){const f=h<c;f&&([c,h]=[h,c]);const d=u&&typeof u.range=="function"?u:l(c,h,u),g=d?d.range(c,+h+1):[];return f?g.reverse():g}function l(c,h,u){const f=Math.abs(h-c)/u,d=rn(([,,_])=>_).right(s,f);if(d===s.length)return t.every(bi(c/pr,h/pr,u));if(d===0)return Un.every(Math.max(bi(c,h,u),1));const[g,p]=s[f/s[d-1][2]<s[d][2]/f?d-1:d];return g.every(p)}return[a,l]}const[Np,Op]=ua(Dt,xr,Vn,ca,vr,mr),[Dp,Rp]=ua(Ot,yr,Wn,Xe,_r,gr);function br(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function wr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qe(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Fp(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Ge(r),h=je(r),u=Ge(o),f=je(o),d=Ge(s),g=je(s),p=Ge(a),_=je(a),v=Ge(l),x=je(l),y={a:be,A:we,b:_t,B:t_,c:null,d:ma,e:ma,f:rg,g:pg,G:mg,H:eg,I:ng,j:ig,L:_a,m:og,M:sg,p:e_,q:n_,Q:ka,s:Ta,S:ag,u:lg,U:cg,V:ug,w:hg,W:fg,x:null,X:null,y:dg,Y:gg,Z:_g,"%":wa},T={a:i_,A:r_,b:o_,B:s_,c:null,d:ya,e:ya,f:bg,g:Ng,G:Dg,H:vg,I:yg,j:xg,L:xa,m:wg,M:kg,p:a_,q:l_,Q:ka,s:Ta,S:Tg,u:Sg,U:Cg,V:Mg,w:Ag,W:$g,x:null,X:null,y:Eg,Y:Og,Z:Rg,"%":wa},k={a:rt,A,b:H,B:X,c:zt,d:pa,e:pa,f:Qp,g:da,G:fa,H:ga,I:ga,j:qp,L:Zp,m:Xp,M:Gp,p:P,q:Vp,Q:Kp,s:tg,S:jp,u:Ip,U:Up,V:Hp,w:zp,W:Wp,x:gi,X:xe,y:da,Y:fa,Z:Yp,"%":Jp};y.x=w(n,y),y.X=w(i,y),y.c=w(e,y),T.x=w(n,T),T.X=w(i,T),T.c=w(e,T);function w(M,$){return function(O){var b=[],tt=-1,B=0,ot=M.length,st,re,Il;for(O instanceof Date||(O=new Date(+O));++tt<ot;)M.charCodeAt(tt)===37&&(b.push(M.slice(B,tt)),(re=ha[st=M.charAt(++tt)])!=null?st=M.charAt(++tt):re=st==="e"?" ":"0",(Il=$[st])&&(st=Il(O,re)),b.push(st),B=tt+1);return b.push(M.slice(B,tt)),b.join("")}}function S(M,$){return function(O){var b=qe(1900,void 0,1),tt=z(b,M,O+="",0),B,ot;if(tt!=O.length)return null;if("Q"in b)return new Date(b.Q);if("s"in b)return new Date(b.s*1e3+("L"in b?b.L:0));if($&&!("Z"in b)&&(b.Z=0),"p"in b&&(b.H=b.H%12+b.p*12),b.m===void 0&&(b.m="q"in b?b.q:0),"V"in b){if(b.V<1||b.V>53)return null;"w"in b||(b.w=1),"Z"in b?(B=wr(qe(b.y,0,1)),ot=B.getUTCDay(),B=ot>4||ot===0?Xn.ceil(B):Xn(B),B=Hn.offset(B,(b.V-1)*7),b.y=B.getUTCFullYear(),b.m=B.getUTCMonth(),b.d=B.getUTCDate()+(b.w+6)%7):(B=br(qe(b.y,0,1)),ot=B.getDay(),B=ot>4||ot===0?Yn.ceil(B):Yn(B),B=Xe.offset(B,(b.V-1)*7),b.y=B.getFullYear(),b.m=B.getMonth(),b.d=B.getDate()+(b.w+6)%7)}else("W"in b||"U"in b)&&("w"in b||(b.w="u"in b?b.u%7:"W"in b?1:0),ot="Z"in b?wr(qe(b.y,0,1)).getUTCDay():br(qe(b.y,0,1)).getDay(),b.m=0,b.d="W"in b?(b.w+6)%7+b.W*7-(ot+5)%7:b.w+b.U*7-(ot+6)%7);return"Z"in b?(b.H+=b.Z/100|0,b.M+=b.Z%100,wr(b)):br(b)}}function z(M,$,O,b){for(var tt=0,B=$.length,ot=O.length,st,re;tt<B;){if(b>=ot)return-1;if(st=$.charCodeAt(tt++),st===37){if(st=$.charAt(tt++),re=k[st in ha?$.charAt(tt++):st],!re||(b=re(M,O,b))<0)return-1}else if(st!=O.charCodeAt(b++))return-1}return b}function P(M,$,O){var b=c.exec($.slice(O));return b?(M.p=h.get(b[0].toLowerCase()),O+b[0].length):-1}function rt(M,$,O){var b=d.exec($.slice(O));return b?(M.w=g.get(b[0].toLowerCase()),O+b[0].length):-1}function A(M,$,O){var b=u.exec($.slice(O));return b?(M.w=f.get(b[0].toLowerCase()),O+b[0].length):-1}function H(M,$,O){var b=v.exec($.slice(O));return b?(M.m=x.get(b[0].toLowerCase()),O+b[0].length):-1}function X(M,$,O){var b=p.exec($.slice(O));return b?(M.m=_.get(b[0].toLowerCase()),O+b[0].length):-1}function zt(M,$,O){return z(M,e,$,O)}function gi(M,$,O){return z(M,n,$,O)}function xe(M,$,O){return z(M,i,$,O)}function be(M){return s[M.getDay()]}function we(M){return o[M.getDay()]}function _t(M){return l[M.getMonth()]}function t_(M){return a[M.getMonth()]}function e_(M){return r[+(M.getHours()>=12)]}function n_(M){return 1+~~(M.getMonth()/3)}function i_(M){return s[M.getUTCDay()]}function r_(M){return o[M.getUTCDay()]}function o_(M){return l[M.getUTCMonth()]}function s_(M){return a[M.getUTCMonth()]}function a_(M){return r[+(M.getUTCHours()>=12)]}function l_(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var $=w(M+="",y);return $.toString=function(){return M},$},parse:function(M){var $=S(M+="",!1);return $.toString=function(){return M},$},utcFormat:function(M){var $=w(M+="",T);return $.toString=function(){return M},$},utcParse:function(M){var $=S(M+="",!0);return $.toString=function(){return M},$}}}var ha={"-":"",_:" ",0:"0"},q=/^\s*\d+/,Pp=/^%/,Bp=/[\\^$*+?|[\]().{}]/g;function N(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Lp(t){return t.replace(Bp,"\\$&")}function Ge(t){return new RegExp("^(?:"+t.map(Lp).join("|")+")","i")}function je(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function zp(t,e,n){var i=q.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Ip(t,e,n){var i=q.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Up(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Hp(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Wp(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function fa(t,e,n){var i=q.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function da(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Yp(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Vp(t,e,n){var i=q.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Xp(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function pa(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function qp(t,e,n){var i=q.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function ga(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Gp(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function jp(t,e,n){var i=q.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Zp(t,e,n){var i=q.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Qp(t,e,n){var i=q.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Jp(t,e,n){var i=Pp.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Kp(t,e,n){var i=q.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function tg(t,e,n){var i=q.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ma(t,e){return N(t.getDate(),e,2)}function eg(t,e){return N(t.getHours(),e,2)}function ng(t,e){return N(t.getHours()%12||12,e,2)}function ig(t,e){return N(1+Xe.count(Ot(t),t),e,3)}function _a(t,e){return N(t.getMilliseconds(),e,3)}function rg(t,e){return _a(t,e)+"000"}function og(t,e){return N(t.getMonth()+1,e,2)}function sg(t,e){return N(t.getMinutes(),e,2)}function ag(t,e){return N(t.getSeconds(),e,2)}function lg(t){var e=t.getDay();return e===0?7:e}function cg(t,e){return N(Wn.count(Ot(t)-1,t),e,2)}function va(t){var e=t.getDay();return e>=4||e===0?ge(t):ge.ceil(t)}function ug(t,e){return t=va(t),N(ge.count(Ot(t),t)+(Ot(t).getDay()===4),e,2)}function hg(t){return t.getDay()}function fg(t,e){return N(Yn.count(Ot(t)-1,t),e,2)}function dg(t,e){return N(t.getFullYear()%100,e,2)}function pg(t,e){return t=va(t),N(t.getFullYear()%100,e,2)}function gg(t,e){return N(t.getFullYear()%1e4,e,4)}function mg(t,e){var n=t.getDay();return t=n>=4||n===0?ge(t):ge.ceil(t),N(t.getFullYear()%1e4,e,4)}function _g(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function ya(t,e){return N(t.getUTCDate(),e,2)}function vg(t,e){return N(t.getUTCHours(),e,2)}function yg(t,e){return N(t.getUTCHours()%12||12,e,2)}function xg(t,e){return N(1+Hn.count(Dt(t),t),e,3)}function xa(t,e){return N(t.getUTCMilliseconds(),e,3)}function bg(t,e){return xa(t,e)+"000"}function wg(t,e){return N(t.getUTCMonth()+1,e,2)}function kg(t,e){return N(t.getUTCMinutes(),e,2)}function Tg(t,e){return N(t.getUTCSeconds(),e,2)}function Sg(t){var e=t.getUTCDay();return e===0?7:e}function Cg(t,e){return N(Vn.count(Dt(t)-1,t),e,2)}function ba(t){var e=t.getUTCDay();return e>=4||e===0?me(t):me.ceil(t)}function Mg(t,e){return t=ba(t),N(me.count(Dt(t),t)+(Dt(t).getUTCDay()===4),e,2)}function Ag(t){return t.getUTCDay()}function $g(t,e){return N(Xn.count(Dt(t)-1,t),e,2)}function Eg(t,e){return N(t.getUTCFullYear()%100,e,2)}function Ng(t,e){return t=ba(t),N(t.getUTCFullYear()%100,e,2)}function Og(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function Dg(t,e){var n=t.getUTCDay();return t=n>=4||n===0?me(t):me.ceil(t),N(t.getUTCFullYear()%1e4,e,4)}function Rg(){return"+0000"}function wa(){return"%"}function ka(t){return+t}function Ta(t){return Math.floor(+t/1e3)}var _e,Sa,Ca;Fg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Fg(t){return _e=Fp(t),Sa=_e.format,_e.parse,Ca=_e.utcFormat,_e.utcParse,_e}function Pg(t){return new Date(t)}function Bg(t){return t instanceof Date?+t:+new Date(+t)}function kr(t,e,n,i,r,o,s,a,l,c){var h=Is(),u=h.invert,f=h.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),_=c("%I %p"),v=c("%a %d"),x=c("%b %d"),y=c("%B"),T=c("%Y");function k(w){return(l(w)<w?d:a(w)<w?g:s(w)<w?p:o(w)<w?_:i(w)<w?r(w)<w?v:x:n(w)<w?y:T)(w)}return h.invert=function(w){return new Date(u(w))},h.domain=function(w){return arguments.length?f(Array.from(w,Bg)):f().map(Pg)},h.ticks=function(w){var S=f();return t(S[0],S[S.length-1],w??10)},h.tickFormat=function(w,S){return S==null?k:c(S)},h.nice=function(w){var S=f();return(!w||typeof w.range!="function")&&(w=e(S[0],S[S.length-1],w??10)),w?f(Zs(S,w)):h},h.copy=function(){return Ye(h,kr(t,e,n,i,r,o,s,a,l,c))},h}function Lg(){return pt.apply(kr(Dp,Rp,Ot,yr,Wn,Xe,_r,gr,Zt,Sa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zg(){return pt.apply(kr(Np,Op,Dt,xr,Vn,Hn,vr,mr,Zt,Ca).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ig(){var t=0,e=1,n,i,r,o,s=K,a=!1,l;function c(u){return u==null||isNaN(u=+u)?l:s(r===0?.5:(u=(o(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([t,e]=u,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(u){return arguments.length?(a=!!u,c):a},c.interpolator=function(u){return arguments.length?(s=u,c):s};function h(u){return function(f){var d,g;return arguments.length?([d,g]=f,s=u(d,g),c):[s(0),s(1)]}}return c.range=h(de),c.rangeRound=h(tr),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return o=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),c}}function Ma(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Aa(){var t=jt(Ig()(K));return t.copy=function(){return Ma(t,Aa())},Ps.apply(t,arguments)}function Ug(){var t=0,e=.5,n=1,i=1,r,o,s,a,l,c=K,h,u=!1,f;function d(p){return isNaN(p=+p)?f:(p=.5+((p=+h(p))-o)*(i*p<i*o?a:l),c(u?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([t,e,n]=p,r=h(t=+t),o=h(e=+e),s=h(n=+n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d):[t,e,n]},d.clamp=function(p){return arguments.length?(u=!!p,d):u},d.interpolator=function(p){return arguments.length?(c=p,d):c};function g(p){return function(_){var v,x,y;return arguments.length?([v,x,y]=_,c=Vf(p,[v,x,y]),d):[c(0),c(.5),c(1)]}}return d.range=g(de),d.rangeRound=g(tr),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return h=p,r=p(t),o=p(e),s=p(n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function $a(){var t=jt(Ug()(K));return t.copy=function(){return Ma(t,$a())},Ps.apply(t,arguments)}const Ea={scaleLinear:Gs,scalePow:ur,scaleSqrt:wp,scaleLog:ta,scaleSymlog:ia,scaleIdentity:js,scaleTime:Lg,scaleUtc:zg,scaleSequential:Aa,scaleDiverging:$a,scaleQuantize:sa,scaleQuantile:oa,scaleThreshold:aa,scaleOrdinal:rr,scaleBand:or,scalePoint:jd};var U;(function(t){t.X="x",t.Y="y"})(U||(U={}));var Kt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Kt||(Kt={}));const Hg=Object.assign(Object.assign({},Fo),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Kt.North,preventEmptyDomain:null,scaleByDomain:!1});class Wg extends Ee{constructor(e,n,i){var r,o;super(e),this._defaultConfig=Hg,this.datamodel=new ir,this.config=this._defaultConfig,this._clipPathId=ns(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const s="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",E`
|
|
52
|
+
`;function hh(t=window==null?void 0:window.document.body){return t?+qf("var(--vis-font-wh-ratio)",t):ds}var dh={value:()=>{}};function _s(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Sn(n)}function Sn(t){this._=t}function ph(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Sn.prototype=_s.prototype={constructor:Sn,on:function(t,e){var n=this._,i=ph(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=gh(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=vs(n[r],t.name,e);else if(e==null)for(r in n)n[r]=vs(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Sn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function gh(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function vs(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=dh,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var ue=0,Be=0,Ie=0,ys=1e3,Cn,Ue,Mn=0,Wt=0,An=0,He=typeof performance=="object"&&performance.now?performance:Date,xs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Hi(){return Wt||(xs(mh),Wt=He.now()+An)}function mh(){Wt=0}function $n(){this._call=this._time=this._next=null}$n.prototype=bs.prototype={constructor:$n,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Hi():+n)+(e==null?0:+e),!this._next&&Ue!==this&&(Ue?Ue._next=this:Cn=this,Ue=this),this._call=t,this._time=n,Yi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yi())}};function bs(t,e,n){var i=new $n;return i.restart(t,e,n),i}function _h(){Hi(),++ue;for(var t=Cn,e;t;)(e=Wt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ue}function ws(){Wt=(Mn=He.now())+An,ue=Be=0;try{_h()}finally{ue=0,yh(),Wt=0}}function vh(){var t=He.now(),e=t-Mn;e>ys&&(An-=e,Mn=t)}function yh(){for(var t,e=Cn,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Cn=n);Ue=t,Yi(i)}function Yi(t){if(!ue){Be&&(Be=clearTimeout(Be));var e=t-Wt;e>24?(t<1/0&&(Be=setTimeout(ws,t-He.now()-An)),Ie&&(Ie=clearInterval(Ie))):(Ie||(Mn=He.now(),Ie=setInterval(vh,ys)),ue=1,xs(ws))}}function ks(t,e,n){var i=new $n;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var xh=_s("start","end","cancel","interrupt"),bh=[],Ts=0,Ss=1,Wi=2,En=3,Cs=4,Vi=5,Nn=6;function On(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;wh(t,n,{name:e,index:i,group:r,on:xh,tween:bh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ts})}function Xi(t,e){var n=ft(t,e);if(n.state>Ts)throw new Error("too late; already scheduled");return n}function bt(t,e){var n=ft(t,e);if(n.state>En)throw new Error("too late; already running");return n}function ft(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function wh(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=bs(o,0,n.time);function o(c){n.state=Ss,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var f,u,h,d;if(n.state!==Ss)return l();for(f in i)if(d=i[f],d.name===n.name){if(d.state===En)return ks(s);d.state===Cs?(d.state=Nn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[f]):+f<e&&(d.state=Nn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[f])}if(ks(function(){n.state===En&&(n.state=Cs,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Wi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Wi){for(n.state=En,r=new Array(h=n.tween.length),f=0,u=-1;f<h;++f)(d=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function a(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Vi,1),u=-1,h=r.length;++u<h;)r[u].call(t,f);n.state===Vi&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Nn,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function qi(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>Wi&&i.state<Vi,i.state=Nn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function kh(t){return this.each(function(){qi(this,t)})}const Gi=t=>()=>t;function Th(t,e){return function(n){return t+n*e}}function Sh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function Ch(t){return(t=+t)==1?Ms:function(e,n){return n-e?Sh(e,n,t):Gi(isNaN(e)?n:e)}}function Ms(t,e){var n=e-t;return n?Th(t,n):Gi(isNaN(t)?e:t)}const Dn=function t(e){var n=Ch(e);function i(r,o){var s=n((r=Li(r)).r,(o=Li(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=Ms(r.opacity,o.opacity);return function(f){return r.r=s(f),r.g=a(f),r.b=l(f),r.opacity=c(f),r+""}}return i.gamma=t,i}(1);function Mh(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Ah(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $h(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=fe(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function Eh(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function ht(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Nh(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=fe(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var ji=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zi=new RegExp(ji.source,"g");function Oh(t){return function(){return t}}function Dh(t){return function(e){return t(e)+""}}function As(t,e){var n=ji.lastIndex=Zi.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=ji.exec(t))&&(r=Zi.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:ht(i,r)})),n=Zi.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Dh(l[0].x):Oh(e):(e=l.length,function(c){for(var f=0,u;f<e;++f)a[(u=l[f]).i]=u.x(c);return a.join("")})}function fe(t,e){var n=typeof e,i;return e==null||n==="boolean"?Gi(e):(n==="number"?ht:n==="string"?(i=Ut(e))?(e=i,Dn):As:e instanceof Ut?Dn:e instanceof Date?Eh:Ah(e)?Mh:Array.isArray(e)?$h:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Nh:ht)(t,e)}function Qi(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var $s=180/Math.PI,Ji={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Es(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*$s,skewX:Math.atan(l)*$s,scaleX:s,scaleY:a}}var Rn;function Rh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ji:Es(e.a,e.b,e.c,e.d,e.e,e.f)}function Fh(t){return t==null||(Rn||(Rn=document.createElementNS("http://www.w3.org/2000/svg","g")),Rn.setAttribute("transform",t),!(t=Rn.transform.baseVal.consolidate()))?Ji:(t=t.matrix,Es(t.a,t.b,t.c,t.d,t.e,t.f))}function Ns(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,f,u,h,d,g){if(c!==u||f!==h){var p=d.push("translate(",null,e,null,n);g.push({i:p-4,x:ht(c,u)},{i:p-2,x:ht(f,h)})}else(u||h)&&d.push("translate("+u+e+h+n)}function s(c,f,u,h){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),h.push({i:u.push(r(u)+"rotate(",null,i)-2,x:ht(c,f)})):f&&u.push(r(u)+"rotate("+f+i)}function a(c,f,u,h){c!==f?h.push({i:u.push(r(u)+"skewX(",null,i)-2,x:ht(c,f)}):f&&u.push(r(u)+"skewX("+f+i)}function l(c,f,u,h,d,g){if(c!==u||f!==h){var p=d.push(r(d)+"scale(",null,",",null,")");g.push({i:p-4,x:ht(c,u)},{i:p-2,x:ht(f,h)})}else(u!==1||h!==1)&&d.push(r(d)+"scale("+u+","+h+")")}return function(c,f){var u=[],h=[];return c=t(c),f=t(f),o(c.translateX,c.translateY,f.translateX,f.translateY,u,h),s(c.rotate,f.rotate,u,h),a(c.skewX,f.skewX,u,h),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,u,h),c=f=null,function(d){for(var g=-1,p=h.length,m;++g<p;)u[(m=h[g]).i]=m.x(d);return u.join("")}}}var Ph=Ns(Rh,"px, ","px)","deg)"),Lh=Ns(Fh,", ",")",")");function zh(t,e){e===void 0&&(e=t,t=fe);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(s){var a=Math.max(0,Math.min(i-1,Math.floor(s*=i)));return o[a](s-a)}}function Bh(t,e){var n,i;return function(){var r=bt(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function Ih(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=bt(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function Uh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=ft(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?Bh:Ih)(n,t,e))}function Ki(t,e,n){var i=t._id;return t.each(function(){var r=bt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return ft(r,i).value[e]}}function Os(t,e){var n;return(typeof e=="number"?ht:e instanceof Ut?Dn:(n=Ut(e))?(e=n,Dn):As)(t,e)}function Hh(t){return function(){this.removeAttribute(t)}}function Yh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Wh(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function Vh(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function Xh(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function qh(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function Gh(t,e){var n=Ke(t),i=n==="transform"?Lh:Os;return this.attrTween(t,typeof e=="function"?(n.local?qh:Xh)(n,i,Ki(this,"attr."+t,e)):e==null?(n.local?Yh:Hh)(n):(n.local?Vh:Wh)(n,i,e))}function jh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Zh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Qh(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&Zh(t,o)),n}return r._value=e,r}function Jh(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&jh(t,o)),n}return r._value=e,r}function Kh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=Ke(t);return this.tween(n,(i.local?Qh:Jh)(i,e))}function td(t,e){return function(){Xi(this,t).delay=+e.apply(this,arguments)}}function ed(t,e){return e=+e,function(){Xi(this,t).delay=e}}function nd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?td:ed)(e,t)):ft(this.node(),e).delay}function id(t,e){return function(){bt(this,t).duration=+e.apply(this,arguments)}}function rd(t,e){return e=+e,function(){bt(this,t).duration=e}}function od(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?id:rd)(e,t)):ft(this.node(),e).duration}function sd(t,e){if(typeof e!="function")throw new Error;return function(){bt(this,t).ease=e}}function ad(t){var e=this._id;return arguments.length?this.each(sd(e,t)):ft(this.node(),e).ease}function ld(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;bt(this,t).ease=n}}function cd(t){if(typeof t!="function")throw new Error;return this.each(ld(this._id,t))}function ud(t){typeof t!="function"&&(t=to(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Tt(i,this._parents,this._name,this._id)}function fd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l=e[a],c=n[a],f=l.length,u=s[a]=new Array(f),h,d=0;d<f;++d)(h=l[d]||c[d])&&(u[d]=h);for(;a<i;++a)s[a]=e[a];return new Tt(s,this._parents,this._name,this._id)}function hd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function dd(t,e,n){var i,r,o=hd(e)?Xi:bt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function pd(t,e){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(t):this.each(dd(n,t,e))}function gd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function md(){return this.on("end.remove",gd(this._id))}function _d(t){var e=this._name,n=this._id;typeof t!="function"&&(t=pi(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],l=a.length,c=o[s]=new Array(l),f,u,h=0;h<l;++h)(f=a[h])&&(u=t.call(f,f.__data__,h,a))&&("__data__"in f&&(u.__data__=f.__data__),c[h]=u,On(c[h],e,n,h,c,ft(f,n)));return new Tt(o,this._parents,e,n)}function vd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Kr(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l=i[a],c=l.length,f,u=0;u<c;++u)if(f=l[u]){for(var h=t.call(f,f.__data__,u,l),d,g=ft(f,n),p=0,m=h.length;p<m;++p)(d=h[p])&&On(d,e,n,p,h,g);o.push(h),s.push(f)}return new Tt(o,s,e,n)}var yd=we.prototype.constructor;function xd(){return new yd(this._groups,this._parents)}function bd(t,e){var n,i,r;return function(){var o=te(this,t),s=(this.style.removeProperty(t),te(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function Ds(t){return function(){this.style.removeProperty(t)}}function wd(t,e,n){var i,r=n+"",o;return function(){var s=te(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function kd(t,e,n){var i,r,o;return function(){var s=te(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),te(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function Td(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=bt(this,t),c=l.on,f=l.value[o]==null?a||(a=Ds(e)):void 0;(c!==n||r!==f)&&(i=(n=c).copy()).on(s,r=f),l.on=i}}function Sd(t,e,n){var i=(t+="")=="transform"?Ph:Os;return e==null?this.styleTween(t,bd(t,i)).on("end.style."+t,Ds(t)):typeof e=="function"?this.styleTween(t,kd(t,i,Ki(this,"style."+t,e))).each(Td(this._id,t)):this.styleTween(t,wd(t,i,e),n).on("end.style."+t,null)}function Cd(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Md(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Cd(t,s,n)),i}return o._value=e,o}function Ad(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Md(t,e,n??""))}function $d(t){return function(){this.textContent=t}}function Ed(t){return function(){var e=t(this);this.textContent=e??""}}function Nd(t){return this.tween("text",typeof t=="function"?Ed(Ki(this,"text",t)):$d(t==null?"":t+""))}function Od(t){return function(e){this.textContent=t.call(this,e)}}function Dd(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Od(r)),e}return i._value=t,i}function Rd(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Dd(t))}function Fd(){for(var t=this._name,e=this._id,n=Rs(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var f=ft(l,e);On(l,t,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Tt(i,this._parents,t,n)}function Pd(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--r===0&&o()}};n.each(function(){var c=bt(this,i),f=c.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&o()})}var Ld=0;function Tt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Rs(){return++Ld}var St=we.prototype;Tt.prototype={constructor:Tt,select:_d,selectAll:vd,selectChild:St.selectChild,selectChildren:St.selectChildren,filter:ud,merge:fd,selection:xd,transition:Fd,call:St.call,nodes:St.nodes,node:St.node,size:St.size,empty:St.empty,each:St.each,on:pd,attr:Gh,attrTween:Kh,style:Sd,styleTween:Ad,text:Nd,textTween:Rd,remove:md,tween:Uh,delay:nd,duration:od,ease:ad,easeVarying:cd,end:Pd,[Symbol.iterator]:St[Symbol.iterator]};function zd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Bd={time:null,delay:0,duration:250,ease:zd};function Id(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ud(t){var e,n;t instanceof Tt?(e=t._id,t=t._name):(e=Rs(),(n=Bd).time=Hi(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&On(l,t,e,c,s,n||Id(l,e));return new Tt(i,this._parents,t,e)}we.prototype.interrupt=kh,we.prototype.transition=Ud;function Ct(t,e,n){return t.nodes().forEach(i=>qi(i)),e?t.transition().duration(e):t}class tr{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var F;(function(t){t.X="x",t.Y="y"})(F||(F={}));function dt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Fs(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const Ps=Symbol("implicit");function er(){var t=new ho,e=[],n=[],i=Ps;function r(o){let s=t.get(o);if(s===void 0){if(i!==Ps)return i;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new ho;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return er(e,n).unknown(i)},dt.apply(r,arguments),r}function nr(){var t=er().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,l=0,c=0,f=.5;delete t.unknown;function u(){var h=e().length,d=r<i,g=d?r:i,p=d?i:r;o=(p-g)/Math.max(1,h-l+c*2),a&&(o=Math.floor(o)),g+=(p-g-o*(h-l))*f,s=o*(1-l),a&&(g=Math.round(g),s=Math.round(s));var m=Au(h).map(function(v){return g+o*v});return n(d?m.reverse():m)}return t.domain=function(h){return arguments.length?(e(h),u()):e()},t.range=function(h){return arguments.length?([i,r]=h,i=+i,r=+r,u()):[i,r]},t.rangeRound=function(h){return[i,r]=h,i=+i,r=+r,a=!0,u()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(h){return arguments.length?(a=!!h,u()):a},t.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),u()):l},t.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),u()):l},t.paddingOuter=function(h){return arguments.length?(c=+h,u()):c},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),u()):f},t.copy=function(){return nr(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(f)},dt.apply(u(),arguments)}function Ls(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ls(e())},t}function Hd(){return Ls(nr.apply(null,arguments).paddingInner(1))}function Yd(t){return function(){return t}}function ir(t){return+t}var zs=[0,1];function J(t){return t}function rr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Yd(isNaN(e)?NaN:.5)}function Wd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Vd(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=rr(r,i),o=n(s,o)):(i=rr(i,r),o=n(o,s)),function(a){return o(i(a))}}function Xd(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=rr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=en(t,a,1,i)-1;return o[l](r[l](a))}}function Ye(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Fn(){var t=zs,e=zs,n=fe,i,r,o,s=J,a,l,c;function f(){var h=Math.min(t.length,e.length);return s!==J&&(s=Wd(t[0],t[h-1])),a=h>2?Xd:Vd,l=c=null,u}function u(h){return h==null||isNaN(h=+h)?o:(l||(l=a(t.map(i),e,n)))(i(s(h)))}return u.invert=function(h){return s(r((c||(c=a(e,t.map(i),ht)))(h)))},u.domain=function(h){return arguments.length?(t=Array.from(h,ir),f()):t.slice()},u.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},u.rangeRound=function(h){return e=Array.from(h),n=Qi,f()},u.clamp=function(h){return arguments.length?(s=h?!0:J,f()):s!==J},u.interpolate=function(h){return arguments.length?(n=h,f()):n},u.unknown=function(h){return arguments.length?(o=h,u):o},function(h,d){return i=h,r=d,f()}}function Bs(){return Fn()(J,J)}function qd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function he(t){return t=Pn(Math.abs(t)),t?t[1]:NaN}function Gd(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function jd(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Zd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function We(t){if(!(e=Zd.exec(t)))throw new Error("invalid format: "+t);var e;return new or({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}We.prototype=or.prototype;function or(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}or.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Qd(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var Is;function Jd(t,e){var n=Pn(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(Is=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Pn(t,Math.max(0,e+o-1))[0]}function Us(t,e){var n=Pn(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Hs={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:qd,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Us(t*100,e),r:Us,s:Jd,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ys(t){return t}var Ws=Array.prototype.map,Vs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kd(t){var e=t.grouping===void 0||t.thousands===void 0?Ys:Gd(Ws.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ys:jd(Ws.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=We(u);var h=u.fill,d=u.align,g=u.sign,p=u.symbol,m=u.zero,v=u.width,x=u.comma,y=u.precision,T=u.trim,k=u.type;k==="n"?(x=!0,k="g"):Hs[k]||(y===void 0&&(y=12),T=!0,k="g"),(m||h==="0"&&d==="=")&&(m=!0,h="0",d="=");var w=p==="$"?n:p==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",S=p==="$"?i:/[%p]/.test(k)?s:"",B=Hs[k],P=/[defgprs%]/.test(k);y=y===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function it(A){var H=w,V=S,Pt,hi,ye;if(k==="c")V=B(A)+V,A="";else{A=+A;var xe=A<0||1/A<0;if(A=isNaN(A)?l:B(Math.abs(A),y),T&&(A=Qd(A)),xe&&+A==0&&g!=="+"&&(xe=!1),H=(xe?g==="("?g:a:g==="-"||g==="("?"":g)+H,V=(k==="s"?Vs[8+Is/3]:"")+V+(xe&&g==="("?")":""),P){for(Pt=-1,hi=A.length;++Pt<hi;)if(ye=A.charCodeAt(Pt),48>ye||ye>57){V=(ye===46?r+A.slice(Pt+1):A.slice(Pt))+V,A=A.slice(0,Pt);break}}}x&&!m&&(A=e(A,1/0));var be=H.length+A.length+V.length,mt=be<v?new Array(v-be+1).join(h):"";switch(x&&m&&(A=e(mt+A,mt.length?v-V.length:1/0),mt=""),d){case"<":A=H+A+V+mt;break;case"=":A=H+mt+A+V;break;case"^":A=mt.slice(0,be=mt.length>>1)+H+A+V+mt.slice(be);break;default:A=mt+H+A+V;break}return o(A)}return it.toString=function(){return u+""},it}function f(u,h){var d=c((u=We(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(he(h)/3)))*3,p=Math.pow(10,-g),m=Vs[8+g/3];return function(v){return d(p*v)+m}}return{format:c,formatPrefix:f}}var Ln,sr,Xs;tp({thousands:",",grouping:[3],currency:["$",""]});function tp(t){return Ln=Kd(t),sr=Ln.format,Xs=Ln.formatPrefix,Ln}function ep(t){return Math.max(0,-he(Math.abs(t)))}function np(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(he(e)/3)))*3-he(Math.abs(t)))}function ip(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,he(e)-he(t))+1}function rp(t,e,n,i){var r=yi(t,e,n),o;switch(i=We(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=np(r,s))&&(i.precision=o),Xs(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=ip(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=ep(r))&&(i.precision=o-(i.type==="%")*2);break}}return sr(i)}function Vt(t){var e=t.domain;return t.ticks=function(n){var i=e();return _i(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return rp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,o=i.length-1,s=i[r],a=i[o],l,c,f=10;for(a<s&&(c=s,s=a,a=c,c=r,r=o,o=c);f-- >0;){if(c=vi(s,a,n),c===l)return i[r]=s,i[o]=a,e(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function qs(){var t=Bs();return t.copy=function(){return Ye(t,qs())},dt.apply(t,arguments),Vt(t)}function Gs(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,ir),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return Gs(t).unknown(e)},t=arguments.length?Array.from(t,ir):[0,1],Vt(n)}function js(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),t[n]=e.floor(r),t[i]=e.ceil(o),t}function Zs(t){return Math.log(t)}function Qs(t){return Math.exp(t)}function op(t){return-Math.log(-t)}function sp(t){return-Math.exp(-t)}function ap(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lp(t){return t===10?ap:t===Math.E?Math.exp:e=>Math.pow(t,e)}function cp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Js(t){return(e,n)=>-t(-e,n)}function up(t){const e=t(Zs,Qs),n=e.domain;let i=10,r,o;function s(){return r=cp(i),o=lp(i),n()[0]<0?(r=Js(r),o=Js(o),t(op,sp)):t(Zs,Qs),e}return e.base=function(a){return arguments.length?(i=+a,s()):i},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const l=n();let c=l[0],f=l[l.length-1];const u=f<c;u&&([c,f]=[f,c]);let h=r(c),d=r(f),g,p;const m=a==null?10:+a;let v=[];if(!(i%1)&&d-h<m){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(g=1;g<i;++g)if(p=h<0?g/o(-h):g*o(h),!(p<c)){if(p>f)break;v.push(p)}}else for(;h<=d;++h)for(g=i-1;g>=1;--g)if(p=h>0?g/o(-h):g*o(h),!(p<c)){if(p>f)break;v.push(p)}v.length*2<m&&(v=_i(c,f,m))}else v=_i(h,d,Math.min(d-h,m)).map(o);return u?v.reverse():v},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=We(l)).precision==null&&(l.trim=!0),l=sr(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return f=>{let u=f/o(Math.round(r(f)));return u*i<i-.5&&(u*=i),u<=c?l(f):""}},e.nice=()=>n(js(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function Ks(){const t=up(Fn()).domain([1,10]);return t.copy=()=>Ye(t,Ks()).base(t.base()),dt.apply(t,arguments),t}function ta(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ea(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function fp(t){var e=1,n=t(ta(e),ea(e));return n.constant=function(i){return arguments.length?t(ta(e=+i),ea(e)):e},Vt(n)}function na(){var t=fp(Fn());return t.copy=function(){return Ye(t,na()).constant(t.constant())},dt.apply(t,arguments)}function ia(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function hp(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function dp(t){return t<0?-t*t:t*t}function pp(t){var e=t(J,J),n=1;function i(){return n===1?t(J,J):n===.5?t(hp,dp):t(ia(n),ia(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},Vt(e)}function ar(){var t=pp(Fn());return t.copy=function(){return Ye(t,ar()).exponent(t.exponent())},dt.apply(t,arguments),t}function gp(){return ar.apply(null,arguments).exponent(.5)}function ra(){var t=[],e=[],n=[],i;function r(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=Tu(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[en(n,s)]}return o.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(Te),r()},o.range=function(s){return arguments.length?(e=Array.from(s),r()):e.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.quantiles=function(){return n.slice()},o.copy=function(){return ra().domain(t).range(e).unknown(i)},dt.apply(o,arguments)}function oa(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(l){return l!=null&&l<=l?r[en(i,l,0,n)]:o}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return s}return s.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},s.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},s.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return i.slice()},s.copy=function(){return oa().domain([t,e]).range(r).unknown(o)},dt.apply(Vt(s),arguments)}function sa(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[en(t,o,0,i)]:n}return r.domain=function(o){return arguments.length?(t=Array.from(o),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return sa().domain(t).range(e).unknown(n)},dt.apply(r,arguments)}const lr=new Date,cr=new Date;function W(t,e,n,i){function r(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(t(o=new Date(+o)),o),r.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const l=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),e(o,a),t(o);while(c<o&&o<s);return l},r.filter=o=>W(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!o(s););else for(;--a>=0;)for(;e(s,1),!o(s););}),n&&(r.count=(o,s)=>(lr.setTime(+o),cr.setTime(+s),t(lr),t(cr),Math.floor(n(lr,cr))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}const zn=W(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?W(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):zn),zn.range;const Mt=1e3,st=Mt*60,At=st*60,$t=At*24,ur=$t*7,aa=$t*30,fr=$t*365,Xt=W(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Mt)},(t,e)=>(e-t)/Mt,t=>t.getUTCSeconds());Xt.range;const hr=W(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Mt)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getMinutes());hr.range;const dr=W(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getUTCMinutes());dr.range;const pr=W(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Mt-t.getMinutes()*st)},(t,e)=>{t.setTime(+t+e*At)},(t,e)=>(e-t)/At,t=>t.getHours());pr.range;const gr=W(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*At)},(t,e)=>(e-t)/At,t=>t.getUTCHours());gr.range;const Ve=W(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*st)/$t,t=>t.getDate()-1);Ve.range;const Bn=W(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/$t,t=>t.getUTCDate()-1);Bn.range;const la=W(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/$t,t=>Math.floor(t/$t));la.range;function qt(t){return W(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*st)/ur)}const In=qt(0),Un=qt(1),mp=qt(2),_p=qt(3),de=qt(4),vp=qt(5),yp=qt(6);In.range,Un.range,mp.range,_p.range,de.range,vp.range,yp.range;function Gt(t){return W(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ur)}const Hn=Gt(0),Yn=Gt(1),xp=Gt(2),bp=Gt(3),pe=Gt(4),wp=Gt(5),kp=Gt(6);Hn.range,Yn.range,xp.range,bp.range,pe.range,wp.range,kp.range;const mr=W(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());mr.range;const _r=W(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());_r.range;const Et=W(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Et.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:W(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),Et.range;const Nt=W(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Nt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:W(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Nt.range;function ca(t,e,n,i,r,o){const s=[[Xt,1,Mt],[Xt,5,5*Mt],[Xt,15,15*Mt],[Xt,30,30*Mt],[o,1,st],[o,5,5*st],[o,15,15*st],[o,30,30*st],[r,1,At],[r,3,3*At],[r,6,6*At],[r,12,12*At],[i,1,$t],[i,2,2*$t],[n,1,ur],[e,1,aa],[e,3,3*aa],[t,1,fr]];function a(c,f,u){const h=f<c;h&&([c,f]=[f,c]);const d=u&&typeof u.range=="function"?u:l(c,f,u),g=d?d.range(c,+f+1):[];return h?g.reverse():g}function l(c,f,u){const h=Math.abs(f-c)/u,d=mi(([,,m])=>m).right(s,h);if(d===s.length)return t.every(yi(c/fr,f/fr,u));if(d===0)return zn.every(Math.max(yi(c,f,u),1));const[g,p]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return g.every(p)}return[a,l]}const[Tp,Sp]=ca(Nt,_r,Hn,la,gr,dr),[Cp,Mp]=ca(Et,mr,In,Ve,pr,hr);function vr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function yr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Xe(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Ap(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=qe(r),f=Ge(r),u=qe(o),h=Ge(o),d=qe(s),g=Ge(s),p=qe(a),m=Ge(a),v=qe(l),x=Ge(l),y={a:xe,A:be,b:mt,B:Pm,c:null,d:ga,e:ga,f:Qp,g:ag,G:cg,H:Gp,I:jp,j:Zp,L:ma,m:Jp,M:Kp,p:Lm,q:zm,Q:wa,s:ka,S:tg,u:eg,U:ng,V:ig,w:rg,W:og,x:null,X:null,y:sg,Y:lg,Z:ug,"%":ba},T={a:Bm,A:Im,b:Um,B:Hm,c:null,d:va,e:va,f:pg,g:Tg,G:Cg,H:fg,I:hg,j:dg,L:ya,m:gg,M:mg,p:Ym,q:Wm,Q:wa,s:ka,S:_g,u:vg,U:yg,V:xg,w:bg,W:wg,x:null,X:null,y:kg,Y:Sg,Z:Mg,"%":ba},k={a:it,A,b:H,B:V,c:Pt,d:da,e:da,f:Wp,g:ha,G:fa,H:pa,I:pa,j:Ip,L:Yp,m:Bp,M:Up,p:P,q:zp,Q:Xp,s:qp,S:Hp,u:Dp,U:Rp,V:Fp,w:Op,W:Pp,x:hi,X:ye,y:ha,Y:fa,Z:Lp,"%":Vp};y.x=w(n,y),y.X=w(i,y),y.c=w(e,y),T.x=w(n,T),T.X=w(i,T),T.c=w(e,T);function w(C,$){return function(N){var b=[],K=-1,L=0,rt=C.length,ot,Kt,Fl;for(N instanceof Date||(N=new Date(+N));++K<rt;)C.charCodeAt(K)===37&&(b.push(C.slice(L,K)),(Kt=ua[ot=C.charAt(++K)])!=null?ot=C.charAt(++K):Kt=ot==="e"?" ":"0",(Fl=$[ot])&&(ot=Fl(N,Kt)),b.push(ot),L=K+1);return b.push(C.slice(L,K)),b.join("")}}function S(C,$){return function(N){var b=Xe(1900,void 0,1),K=B(b,C,N+="",0),L,rt;if(K!=N.length)return null;if("Q"in b)return new Date(b.Q);if("s"in b)return new Date(b.s*1e3+("L"in b?b.L:0));if($&&!("Z"in b)&&(b.Z=0),"p"in b&&(b.H=b.H%12+b.p*12),b.m===void 0&&(b.m="q"in b?b.q:0),"V"in b){if(b.V<1||b.V>53)return null;"w"in b||(b.w=1),"Z"in b?(L=yr(Xe(b.y,0,1)),rt=L.getUTCDay(),L=rt>4||rt===0?Yn.ceil(L):Yn(L),L=Bn.offset(L,(b.V-1)*7),b.y=L.getUTCFullYear(),b.m=L.getUTCMonth(),b.d=L.getUTCDate()+(b.w+6)%7):(L=vr(Xe(b.y,0,1)),rt=L.getDay(),L=rt>4||rt===0?Un.ceil(L):Un(L),L=Ve.offset(L,(b.V-1)*7),b.y=L.getFullYear(),b.m=L.getMonth(),b.d=L.getDate()+(b.w+6)%7)}else("W"in b||"U"in b)&&("w"in b||(b.w="u"in b?b.u%7:"W"in b?1:0),rt="Z"in b?yr(Xe(b.y,0,1)).getUTCDay():vr(Xe(b.y,0,1)).getDay(),b.m=0,b.d="W"in b?(b.w+6)%7+b.W*7-(rt+5)%7:b.w+b.U*7-(rt+6)%7);return"Z"in b?(b.H+=b.Z/100|0,b.M+=b.Z%100,yr(b)):vr(b)}}function B(C,$,N,b){for(var K=0,L=$.length,rt=N.length,ot,Kt;K<L;){if(b>=rt)return-1;if(ot=$.charCodeAt(K++),ot===37){if(ot=$.charAt(K++),Kt=k[ot in ua?$.charAt(K++):ot],!Kt||(b=Kt(C,N,b))<0)return-1}else if(ot!=N.charCodeAt(b++))return-1}return b}function P(C,$,N){var b=c.exec($.slice(N));return b?(C.p=f.get(b[0].toLowerCase()),N+b[0].length):-1}function it(C,$,N){var b=d.exec($.slice(N));return b?(C.w=g.get(b[0].toLowerCase()),N+b[0].length):-1}function A(C,$,N){var b=u.exec($.slice(N));return b?(C.w=h.get(b[0].toLowerCase()),N+b[0].length):-1}function H(C,$,N){var b=v.exec($.slice(N));return b?(C.m=x.get(b[0].toLowerCase()),N+b[0].length):-1}function V(C,$,N){var b=p.exec($.slice(N));return b?(C.m=m.get(b[0].toLowerCase()),N+b[0].length):-1}function Pt(C,$,N){return B(C,e,$,N)}function hi(C,$,N){return B(C,n,$,N)}function ye(C,$,N){return B(C,i,$,N)}function xe(C){return s[C.getDay()]}function be(C){return o[C.getDay()]}function mt(C){return l[C.getMonth()]}function Pm(C){return a[C.getMonth()]}function Lm(C){return r[+(C.getHours()>=12)]}function zm(C){return 1+~~(C.getMonth()/3)}function Bm(C){return s[C.getUTCDay()]}function Im(C){return o[C.getUTCDay()]}function Um(C){return l[C.getUTCMonth()]}function Hm(C){return a[C.getUTCMonth()]}function Ym(C){return r[+(C.getUTCHours()>=12)]}function Wm(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var $=w(C+="",y);return $.toString=function(){return C},$},parse:function(C){var $=S(C+="",!1);return $.toString=function(){return C},$},utcFormat:function(C){var $=w(C+="",T);return $.toString=function(){return C},$},utcParse:function(C){var $=S(C+="",!0);return $.toString=function(){return C},$}}}var ua={"-":"",_:" ",0:"0"},X=/^\s*\d+/,$p=/^%/,Ep=/[\\^$*+?|[\]().{}]/g;function E(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Np(t){return t.replace(Ep,"\\$&")}function qe(t){return new RegExp("^(?:"+t.map(Np).join("|")+")","i")}function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Op(t,e,n){var i=X.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Dp(t,e,n){var i=X.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Rp(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Fp(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Pp(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function fa(t,e,n){var i=X.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ha(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Lp(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function zp(t,e,n){var i=X.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Bp(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function da(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ip(t,e,n){var i=X.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function pa(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Up(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Hp(t,e,n){var i=X.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Yp(t,e,n){var i=X.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Wp(t,e,n){var i=X.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Vp(t,e,n){var i=$p.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Xp(t,e,n){var i=X.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function qp(t,e,n){var i=X.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ga(t,e){return E(t.getDate(),e,2)}function Gp(t,e){return E(t.getHours(),e,2)}function jp(t,e){return E(t.getHours()%12||12,e,2)}function Zp(t,e){return E(1+Ve.count(Et(t),t),e,3)}function ma(t,e){return E(t.getMilliseconds(),e,3)}function Qp(t,e){return ma(t,e)+"000"}function Jp(t,e){return E(t.getMonth()+1,e,2)}function Kp(t,e){return E(t.getMinutes(),e,2)}function tg(t,e){return E(t.getSeconds(),e,2)}function eg(t){var e=t.getDay();return e===0?7:e}function ng(t,e){return E(In.count(Et(t)-1,t),e,2)}function _a(t){var e=t.getDay();return e>=4||e===0?de(t):de.ceil(t)}function ig(t,e){return t=_a(t),E(de.count(Et(t),t)+(Et(t).getDay()===4),e,2)}function rg(t){return t.getDay()}function og(t,e){return E(Un.count(Et(t)-1,t),e,2)}function sg(t,e){return E(t.getFullYear()%100,e,2)}function ag(t,e){return t=_a(t),E(t.getFullYear()%100,e,2)}function lg(t,e){return E(t.getFullYear()%1e4,e,4)}function cg(t,e){var n=t.getDay();return t=n>=4||n===0?de(t):de.ceil(t),E(t.getFullYear()%1e4,e,4)}function ug(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+E(e/60|0,"0",2)+E(e%60,"0",2)}function va(t,e){return E(t.getUTCDate(),e,2)}function fg(t,e){return E(t.getUTCHours(),e,2)}function hg(t,e){return E(t.getUTCHours()%12||12,e,2)}function dg(t,e){return E(1+Bn.count(Nt(t),t),e,3)}function ya(t,e){return E(t.getUTCMilliseconds(),e,3)}function pg(t,e){return ya(t,e)+"000"}function gg(t,e){return E(t.getUTCMonth()+1,e,2)}function mg(t,e){return E(t.getUTCMinutes(),e,2)}function _g(t,e){return E(t.getUTCSeconds(),e,2)}function vg(t){var e=t.getUTCDay();return e===0?7:e}function yg(t,e){return E(Hn.count(Nt(t)-1,t),e,2)}function xa(t){var e=t.getUTCDay();return e>=4||e===0?pe(t):pe.ceil(t)}function xg(t,e){return t=xa(t),E(pe.count(Nt(t),t)+(Nt(t).getUTCDay()===4),e,2)}function bg(t){return t.getUTCDay()}function wg(t,e){return E(Yn.count(Nt(t)-1,t),e,2)}function kg(t,e){return E(t.getUTCFullYear()%100,e,2)}function Tg(t,e){return t=xa(t),E(t.getUTCFullYear()%100,e,2)}function Sg(t,e){return E(t.getUTCFullYear()%1e4,e,4)}function Cg(t,e){var n=t.getUTCDay();return t=n>=4||n===0?pe(t):pe.ceil(t),E(t.getUTCFullYear()%1e4,e,4)}function Mg(){return"+0000"}function ba(){return"%"}function wa(t){return+t}function ka(t){return Math.floor(+t/1e3)}var ge,Ta,Sa;Ag({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ag(t){return ge=Ap(t),Ta=ge.format,ge.parse,Sa=ge.utcFormat,ge.utcParse,ge}function $g(t){return new Date(t)}function Eg(t){return t instanceof Date?+t:+new Date(+t)}function xr(t,e,n,i,r,o,s,a,l,c){var f=Bs(),u=f.invert,h=f.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),x=c("%b %d"),y=c("%B"),T=c("%Y");function k(w){return(l(w)<w?d:a(w)<w?g:s(w)<w?p:o(w)<w?m:i(w)<w?r(w)<w?v:x:n(w)<w?y:T)(w)}return f.invert=function(w){return new Date(u(w))},f.domain=function(w){return arguments.length?h(Array.from(w,Eg)):h().map($g)},f.ticks=function(w){var S=h();return t(S[0],S[S.length-1],w??10)},f.tickFormat=function(w,S){return S==null?k:c(S)},f.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=e(S[0],S[S.length-1],w??10)),w?h(js(S,w)):f},f.copy=function(){return Ye(f,xr(t,e,n,i,r,o,s,a,l,c))},f}function Ng(){return dt.apply(xr(Cp,Mp,Et,mr,In,Ve,pr,hr,Xt,Ta).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Og(){return dt.apply(xr(Tp,Sp,Nt,_r,Hn,Bn,gr,dr,Xt,Sa).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dg(){var t=0,e=1,n,i,r,o,s=J,a=!1,l;function c(u){return u==null||isNaN(u=+u)?l:s(r===0?.5:(u=(o(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([t,e]=u,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(u){return arguments.length?(a=!!u,c):a},c.interpolator=function(u){return arguments.length?(s=u,c):s};function f(u){return function(h){var d,g;return arguments.length?([d,g]=h,s=u(d,g),c):[s(0),s(1)]}}return c.range=f(fe),c.rangeRound=f(Qi),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return o=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),c}}function Ca(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ma(){var t=Vt(Dg()(J));return t.copy=function(){return Ca(t,Ma())},Fs.apply(t,arguments)}function Rg(){var t=0,e=.5,n=1,i=1,r,o,s,a,l,c=J,f,u=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+f(p))-o)*(i*p<i*o?a:l),c(u?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([t,e,n]=p,r=f(t=+t),o=f(e=+e),s=f(n=+n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d):[t,e,n]},d.clamp=function(p){return arguments.length?(u=!!p,d):u},d.interpolator=function(p){return arguments.length?(c=p,d):c};function g(p){return function(m){var v,x,y;return arguments.length?([v,x,y]=m,c=zh(p,[v,x,y]),d):[c(0),c(.5),c(1)]}}return d.range=g(fe),d.rangeRound=g(Qi),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return f=p,r=p(t),o=p(e),s=p(n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function Aa(){var t=Vt(Rg()(J));return t.copy=function(){return Ca(t,Aa())},Fs.apply(t,arguments)}const $a={scaleLinear:qs,scalePow:ar,scaleSqrt:gp,scaleLog:Ks,scaleSymlog:na,scaleIdentity:Gs,scaleTime:Ng,scaleUtc:Og,scaleSequential:Ma,scaleDiverging:Aa,scaleQuantize:oa,scaleQuantile:ra,scaleThreshold:sa,scaleOrdinal:er,scaleBand:nr,scalePoint:Hd};var U;(function(t){t.X="x",t.Y="y"})(U||(U={}));var jt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(jt||(jt={}));const Fg=Object.assign(Object.assign({},Fo),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:jt.North,preventEmptyDomain:null,scaleByDomain:!1});class Pg extends $e{constructor(e,n,i){var r,o;super(e),this._defaultConfig=Fg,this.datamodel=new tr,this.config=this._defaultConfig,this._clipPathId=ns(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const s="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",R`
|
|
53
53
|
--highlight-filter-id: url(${a}#${s}); // defining a css variable
|
|
54
|
-
`),this._svgDefs.append("filter").attr("id",s).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(l=>l.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Rt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Rt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:l}=this;e&&(this.datamodel.data=e,a.forEach(c=>{c.setData(e)}),(i=l.crosshair)===null||i===void 0||i.setData(e),(r=l.xAxis)===null||r===void 0||r.setData(e),(o=l.yAxis)===null||o===void 0||o.setData(e),(s=l.tooltip)===null||s===void 0||s.hide(),n||this.render())}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=F.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=F.Y,this.element.appendChild(e.yAxis.element));for(const s of this.components)this.element.appendChild(s.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,o)=>{e[o]&&r.setConfig(e[o])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=Me([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]);for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,o,s;const{config:a}=this;super._render();const l=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(e);this._renderAxes(this._firstRender?0:e);const c=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*c).attr("height",this.height+2*c),(n=a.tooltip)===null||n===void 0||n.update();const h=a.crosshair;if(h){const u=this.components.filter(p=>!p.stacked).map(p=>p.config.y),f=this.components.filter(p=>p.stacked).map(p=>p.config.y),d=(i=this.components.find(p=>p.config.baseline))===null||i===void 0?void 0:i.config,g=d==null?void 0:d.baseline;h.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:ki(u),yStacked:ki(f),baseline:g},h.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),h.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${l.left},${l.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=Me(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(U.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(U.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(U).forEach(r=>{var o,s,a,l,c,h,u,f;const[d,g]=wu(Ou(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),p=r===U.Y?n.yDomain:n.xDomain,_=r===U.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,v=r===U.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(s=(o=p==null?void 0:p[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,y=(l=(a=p==null?void 0:p[1])!==null&&a!==void 0?a:g)!==null&&l!==void 0?l:1,T=[Rt(x,(c=_==null?void 0:_[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(h=_==null?void 0:_[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY),Rt(y,(u=v==null?void 0:v[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=v==null?void 0:v[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(T[0]===T[1]){const k=i.some(w=>{var S;return((S=w.datamodel.data)===null||S===void 0?void 0:S.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===U.Y))&&(T[1]=T[0]+1)}e.forEach(k=>k.setScaleDomain(r,T))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:l}=this;if(!e)return;const c=l.yDirection===Kt.South,h=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],u=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(o=l.padding.top)!==null&&o!==void 0?o:0];c&&u.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(U.X,(s=l.xRange)!==null&&s!==void 0?s:h),d.setScaleRange(U.Y,(a=l.yRange)!==null&&a!==void 0?a:u);const f=e.map(d=>d.bleed).reduce((d,g)=>{for(const p of Object.keys(d)){const _=p;d[_]<g[_]&&(d[_]=g[_])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(U.X,[h[0]+f.left,h[1]-f.right]),d.setScaleRange(U.Y,c?[u[0]+f.top,u[1]-f.bottom]:[u[0]-f.bottom,u[1]+f.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();Me([n,i]).forEach(s=>{const a=s.getOffset(r);s.g.attr("transform",`translate(${a.left},${a.top})`),s.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=Me([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let o=0;o<r;o+=1){const s={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),Me([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();s.top<c.top&&(s.top=c.top),s.bottom<c.bottom&&(s.bottom=c.bottom),s.left<c.left&&(s.left=c.left),s.right<c.right&&(s.right=c.right)}),this._axisMargin=s}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:o,yAxis:s}}=this;super.destroy();for(const a of e)a==null||a.destroy();n==null||n.destroy(),i==null||i.destroy(),r==null||r.destroy(),o==null||o.destroy(),s==null||s.destroy()}}const Na={duration:600,events:{},attributes:{}};class Yg{constructor(e=Te.SVG){var n,i;this.type=Te.SVG,this.datamodel=new ir,this.sizing=se.Fit,this.events={},this._defaultConfig=Na,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=cn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=cn(this._setCustomAttributes,500),e===Te.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=ns(),this.g=Z(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setConfig(e){this.prevConfig=this.config,this.config=Ut(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const o=this.g.selectAll(`.${i}`);o.on(r+n,(s,a)=>{const l=o.nodes(),c=l.indexOf(s.currentTarget),h=e[i][r];return h==null?void 0:h(a,s,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Vg extends ir{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const Ze=Object.assign(Object.assign({},Na),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class qn extends Yg{constructor(){super(...arguments),this.datamodel=new Vg,this.clippable=!0,this.stacked=!1,this._defaultConfig=Ze,this._xScale=Ea.scaleLinear(),this._yScale=Ea.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===U.X&&(this._xScale=n),n&&e===U.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case U.X:return this.getXDataExtent();case U.Y:return this.getYDataExtent(n);default:return Si(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return Si(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?yo(i.data,this.xScale.domain(),n.x):i.data,o=It(n.y)?n.y:[n.y];return Si(r,...o)}}var C;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(C||(C={}));var Oa;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Oa||(Oa={}));var Da;(function(t){t.Inside="inside",t.Outside="outside"})(Da||(Da={}));var Ra;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Ra||(Ra={}));const Xg={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:C.Auto,horizontalShift:0,verticalPlacement:C.Top,verticalShift:0,attributes:{},triggers:{},className:void 0},Gn=E`
|
|
54
|
+
`),this._svgDefs.append("filter").attr("id",s).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(l=>l.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return ie(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return ie(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:l}=this;e&&(this.datamodel.data=e,a.forEach(c=>{c.setData(e)}),(i=l.crosshair)===null||i===void 0||i.setData(e),(r=l.xAxis)===null||r===void 0||r.setData(e),(o=l.yAxis)===null||o===void 0||o.setData(e),(s=l.tooltip)===null||s===void 0||s.hide(),n||this.render())}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=F.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=F.Y,this.element.appendChild(e.yAxis.element));for(const s of this.components)this.element.appendChild(s.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,o)=>{e[o]&&r.setConfig(e[o])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=Ce([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]);for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,o,s;const{config:a}=this;super._render();const l=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(e);this._renderAxes(this._firstRender?0:e);const c=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*c).attr("height",this.height+2*c),(n=a.tooltip)===null||n===void 0||n.update();const f=a.crosshair;if(f){const u=this.components.filter(p=>!p.stacked).map(p=>p.config.y),h=this.components.filter(p=>p.stacked).map(p=>p.config.y),d=(i=this.components.find(p=>p.config.baseline))===null||i===void 0?void 0:i.config,g=d==null?void 0:d.baseline;f.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:xi(u),yStacked:xi(h),baseline:g},f.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),f.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${l.left},${l.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=Ce(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(U.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(U.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(U).forEach(r=>{var o,s,a,l,c,f,u,h;const[d,g]=_u(Mu(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),p=r===U.Y?n.yDomain:n.xDomain,m=r===U.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,v=r===U.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(s=(o=p==null?void 0:p[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,y=(l=(a=p==null?void 0:p[1])!==null&&a!==void 0?a:g)!==null&&l!==void 0?l:1,T=[ie(x,(c=m==null?void 0:m[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(f=m==null?void 0:m[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),ie(y,(u=v==null?void 0:v[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(h=v==null?void 0:v[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(T[0]===T[1]){const k=i.some(w=>{var S;return((S=w.datamodel.data)===null||S===void 0?void 0:S.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===U.Y))&&(T[1]=T[0]+1)}e.forEach(k=>k.setScaleDomain(r,T))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:l}=this;if(!e)return;const c=l.yDirection===jt.South,f=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],u=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(o=l.padding.top)!==null&&o!==void 0?o:0];c&&u.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(U.X,(s=l.xRange)!==null&&s!==void 0?s:f),d.setScaleRange(U.Y,(a=l.yRange)!==null&&a!==void 0?a:u);const h=e.map(d=>d.bleed).reduce((d,g)=>{for(const p of Object.keys(d)){const m=p;d[m]<g[m]&&(d[m]=g[m])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(U.X,[f[0]+h.left,f[1]-h.right]),d.setScaleRange(U.Y,c?[u[0]+h.top,u[1]-h.bottom]:[u[0]-h.bottom,u[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();Ce([n,i]).forEach(s=>{const a=s.getOffset(r);s.g.attr("transform",`translate(${a.left},${a.top})`),s.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=Ce([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let o=0;o<r;o+=1){const s={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),Ce([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();s.top<c.top&&(s.top=c.top),s.bottom<c.bottom&&(s.bottom=c.bottom),s.left<c.left&&(s.left=c.left),s.right<c.right&&(s.right=c.right)}),this._axisMargin=s}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:o,yAxis:s}}=this;super.destroy();for(const a of e)a==null||a.destroy();n==null||n.destroy(),i==null||i.destroy(),r==null||r.destroy(),o==null||o.destroy(),s==null||s.destroy()}}const Ea={duration:600,events:{},attributes:{}};class Lg{constructor(e=ke.SVG){var n,i;this.type=ke.SVG,this.datamodel=new tr,this.sizing=ee.Fit,this.events={},this._defaultConfig=Ea,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=sn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=sn(this._setCustomAttributes,500),e===ke.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=ns(),this.g=j(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setConfig(e){this.prevConfig=this.config,this.config=zt(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const o=this.g.selectAll(`.${i}`);o.on(r+n,(s,a)=>{const l=o.nodes(),c=l.indexOf(s.currentTarget),f=e[i][r];return f==null?void 0:f(a,s,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class zg extends tr{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const Wn=Object.assign(Object.assign({},Ea),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class br extends Lg{constructor(){super(...arguments),this.datamodel=new zg,this.clippable=!0,this.stacked=!1,this._defaultConfig=Wn,this._xScale=$a.scaleLinear(),this._yScale=$a.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===U.X&&(this._xScale=n),n&&e===U.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case U.X:return this.getXDataExtent();case U.Y:return this.getYDataExtent(n);default:return wi(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return wi(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?yo(i.data,this.xScale.domain(),n.x):i.data,o=ne(n.y)?n.y:[n.y];return wi(r,...o)}}var M;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(M||(M={}));var Na;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Na||(Na={}));var Oa;(function(t){t.Inside="inside",t.Outside="outside"})(Oa||(Oa={}));var Da;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Da||(Da={}));const Bg={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:M.Auto,horizontalShift:0,verticalPlacement:M.Top,verticalShift:0,attributes:{},triggers:{},className:void 0},Vn=R`
|
|
55
55
|
label: tooltip;
|
|
56
56
|
display: inline-block;
|
|
57
57
|
left: 0;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
border: solid 1px var(--vis-tooltip-border-color);
|
|
70
70
|
background-color: var(--vis-tooltip-background-color);
|
|
71
71
|
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
72
|
-
`,
|
|
72
|
+
`,Ig=Vn,Ug=le`
|
|
73
73
|
:root {
|
|
74
74
|
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
75
75
|
--vis-tooltip-border-color: #e5e9f7;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
body.theme-dark ${`.${
|
|
90
|
+
body.theme-dark ${`.${Vn}`} {
|
|
91
91
|
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
92
92
|
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
93
93
|
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
101
101
|
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
102
102
|
}
|
|
103
|
-
`,
|
|
103
|
+
`,Ra=R`
|
|
104
104
|
bottom: unset;
|
|
105
105
|
position: fixed;
|
|
106
|
-
`,
|
|
106
|
+
`,wr=R`
|
|
107
107
|
opacity: 1;
|
|
108
|
-
`,
|
|
108
|
+
`,kr=R`
|
|
109
109
|
display: none;
|
|
110
|
-
`,
|
|
110
|
+
`,Fa=R`
|
|
111
111
|
label: non-interactive;
|
|
112
112
|
pointer-events: none;
|
|
113
113
|
user-select: none;
|
|
114
|
-
`,jg=Object.freeze(Object.defineProperty({__proto__:null,hidden:Sr,nonInteractive:Pa,positionFixed:Fa,root:Gn,show:Tr,tooltip:qg,variables:Gg},Symbol.toStringTag,{value:"Module"}));class Ba{constructor(e={}){this._defaultConfig=Xg,this.config=this._defaultConfig,this._setUpEventsThrottled=cn(this._setUpEvents,500),this._setContainerPositionThrottled=cn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=Z(this.element).attr("class",Gn),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=Ut(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}hide(){this.div.classed(Tr,!1).on("transitionend",()=>{this.div.classed(Sr,!this._isShown)}),this._isShown=!1}display(){this.div.classed(Sr,!1).classed(Tr,!0),this._isShown=!0}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,i=this.element.offsetWidth,r=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===C.Auto?C.Center:n.horizontalPlacement),s=n.verticalPlacement===C.Auto?e.y-r<0?C.Bottom:C.Top:n.verticalPlacement,a=5,l=o===C.Left?-i-a-n.horizontalShift:o===C.Center?-i/2:a+n.horizontalShift,c=s===C.Bottom?a+n.verticalShift:s===C.Center?-r/2:-5-n.verticalShift-r,[h,u]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(h,u,r)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const i=5,r=this.element.offsetWidth,o=this.element.offsetHeight,s=this.isContainerBody(),a=s?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=s?[l.x,l.y]:nn({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),h=this._overriddenHorizontalPlacement||(n.horizontalPlacement===C.Auto?c[0]-r<0?C.Right:c[0]+r>a?C.Left:C.Center:n.horizontalPlacement);let u=0;switch(h){case C.Left:u=-r-i-n.horizontalShift;break;case C.Right:u=l.width+i+n.horizontalShift;break;case C.Center:default:u=(-r+l.width)/2;break}const f=n.verticalPlacement===C.Auto?h!==C.Center?C.Center:c[1]-o<0?C.Bottom:C.Top:n.verticalPlacement;let d=-o;switch(f){case C.Center:d+=(o+l.height)/2;break;case C.Bottom:d+=o+l.height+i+n.verticalShift;break;case C.Top:default:d+=-5-n.verticalShift;break}const[g,p]=this._constraintPosToContainer(c[0]+u,c[1]+d,r,o);this._applyPosition(g,p,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:i,prevConfig:r}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e&&this.div.html(e),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed(Pa,!i.allowHover||i.followCursor),r!=null&&r.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),o=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Fa,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${o-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const o=this.isContainerBody(),s=o?window.innerHeight:this._container.scrollHeight,a=o?window.innerWidth:this._container.scrollWidth,l=10,c=e>a-i-l,h=e<l,u=c?a-i-l:h?l:e,f=10,d=n>s-r-f,g=n<f,p=d?s-r-f:g?f:n;return[a<i?0:u,s<r?0:p]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const i=Z(n.element);i.on("mousemove.tooltip",r=>{const o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const s of Object.keys(e.triggers)){const a=e.triggers[s];if(!a)continue;const l=i.selectAll(`.${s}`).nodes();for(const c of o){if(c===i.node())break;if(c.classList.contains(s)){const h=l.indexOf(c),u=Z(c).datum(),f=a(u,h,l),[d,g]=this.isContainerBody()?[r.clientX,r.clientY]:nn(r,this._container);f===null?this.hide():(this.render(f),e.followCursor?this.place({x:d,y:g}):this.placeByElement(c)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover&&!e.followCursor?this.div.on("mouseenter.tooltip",this.display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),(e=this.div)===null||e===void 0||e.remove()}}Ba.selectors=jg;function I(t){return function(){return t}}const La=Math.cos,jn=Math.sin,gt=Math.sqrt,za=1e-12,Zn=Math.PI,Qn=2*Zn,Cr=Math.PI,Mr=2*Cr,te=1e-6,Zg=Mr-te;function Ia(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Qg(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ia;const n=10**e;return function(i){this._+=i[0];for(let r=1,o=i.length;r<o;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class Jg{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Ia:Qg(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,o,s){this._append`C${+e},${+n},${+i},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,i,r,o){if(e=+e,n=+n,i=+i,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=i-e,c=r-n,h=s-e,u=a-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>te)if(!(Math.abs(u*l-c*h)>te)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,g=r-a,p=l*l+c*c,_=d*d+g*g,v=Math.sqrt(p),x=Math.sqrt(f),y=o*Math.tan((Cr-Math.acos((p+f-_)/(2*v*x)))/2),T=y/x,k=y/v;Math.abs(T-1)>te&&this._append`L${e+T*h},${n+T*u}`,this._append`A${o},${o},0,0,${+(u*d>h*g)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,o,s){if(e=+e,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),c=e+a,h=n+l,u=1^s,f=s?r-o:o-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>te||Math.abs(this._y1-h)>te)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%Mr+Mr),f>Zg?this._append`A${i},${i},0,1,${u},${e-a},${n-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>te&&this._append`A${i},${i},0,${+(f>=Cr)},${u},${this._x1=e+i*Math.cos(o)},${this._y1=n+i*Math.sin(o)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Ar(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new Jg(e)}function Ua(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ha(t){this._context=t}Ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function $r(t){return new Ha(t)}function Wa(t){return t[0]}function Ya(t){return t[1]}function Va(t,e){var n=I(!0),i=null,r=$r,o=null,s=Ar(a);t=typeof t=="function"?t:t===void 0?Wa:I(t),e=typeof e=="function"?e:e===void 0?Ya:I(e);function a(l){var c,h=(l=Ua(l)).length,u,f=!1,d;for(i==null&&(o=r(d=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,c,l),+e(u,c,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:I(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:I(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:I(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(o=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=o=null:o=r(i=l),a):i},a}function Kg(t,e,n){var i=null,r=I(!0),o=null,s=$r,a=null,l=Ar(c);t=typeof t=="function"?t:t===void 0?Wa:I(+t),e=typeof e=="function"?e:I(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Ya:I(+n);function c(u){var f,d,g,p=(u=Ua(u)).length,_,v=!1,x,y=new Array(p),T=new Array(p);for(o==null&&(a=s(x=l())),f=0;f<=p;++f){if(!(f<p&&r(_=u[f],f,u))===v)if(v=!v)d=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),g=f-1;g>=d;--g)a.point(y[g],T[g]);a.lineEnd(),a.areaEnd()}v&&(y[f]=+t(_,f,u),T[f]=+e(_,f,u),a.point(i?+i(_,f,u):y[f],n?+n(_,f,u):T[f]))}if(x)return a=null,x+""||null}function h(){return Va().defined(r).curve(s).context(o)}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:I(+u),i=null,c):t},c.x0=function(u){return arguments.length?(t=typeof u=="function"?u:I(+u),c):t},c.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:I(+u),c):i},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:I(+u),n=null,c):e},c.y0=function(u){return arguments.length?(e=typeof u=="function"?u:I(+u),c):e},c.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:I(+u),c):n},c.lineX0=c.lineY0=function(){return h().x(t).y(e)},c.lineY1=function(){return h().x(t).y(n)},c.lineX1=function(){return h().x(i).y(e)},c.defined=function(u){return arguments.length?(r=typeof u=="function"?u:I(!!u),c):r},c.curve=function(u){return arguments.length?(s=u,o!=null&&(a=s(o)),c):s},c.context=function(u){return arguments.length?(u==null?o=a=null:a=s(o=u),c):o},c}const Xa={draw(t,e){const n=gt(e/Zn);t.moveTo(n,0),t.arc(0,0,n,0,Qn)}},t0={draw(t,e){const n=gt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},qa=gt(1/3),e0=qa*2,n0={draw(t,e){const n=gt(e/e0),i=n*qa;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},i0={draw(t,e){const n=gt(e),i=-n/2;t.rect(i,i,n,n)}},r0=.8908130915292852,Ga=jn(Zn/10)/jn(7*Zn/10),o0=jn(Qn/10)*Ga,s0=-La(Qn/10)*Ga,a0={draw(t,e){const n=gt(e*r0),i=o0*n,r=s0*n;t.moveTo(0,-n),t.lineTo(i,r);for(let o=1;o<5;++o){const s=Qn*o/5,a=La(s),l=jn(s);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},Er=gt(3),l0={draw(t,e){const n=-gt(e/(Er*3));t.moveTo(0,n*2),t.lineTo(-Er*n,-n),t.lineTo(Er*n,-n),t.closePath()}},ct=-.5,ut=gt(3)/2,Nr=1/gt(12),c0=(Nr/2+1)*3,u0={draw(t,e){const n=gt(e/c0),i=n/2,r=n*Nr,o=i,s=n*Nr+n,a=-o,l=s;t.moveTo(i,r),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(ct*i-ut*r,ut*i+ct*r),t.lineTo(ct*o-ut*s,ut*o+ct*s),t.lineTo(ct*a-ut*l,ut*a+ct*l),t.lineTo(ct*i+ut*r,ct*r-ut*i),t.lineTo(ct*o+ut*s,ct*s-ut*o),t.lineTo(ct*a+ut*l,ct*l-ut*a),t.closePath()}};function h0(t,e){let n=null,i=Ar(r);t=typeof t=="function"?t:I(t||Xa),e=typeof e=="function"?e:I(e===void 0?64:+e);function r(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(t=typeof o=="function"?o:I(o),r):t},r.size=function(o){return arguments.length?(e=typeof o=="function"?o:I(+o),r):e},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function Lt(){}function Jn(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Kn(t){this._context=t}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function f0(t){return new Kn(t)}function ja(t){this._context=t}ja.prototype={areaStart:Lt,areaEnd:Lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function d0(t){return new ja(t)}function Za(t){this._context=t}Za.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function p0(t){return new Za(t)}function Qa(t,e){this._basis=new Kn(t),this._beta=e}Qa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const g0=function t(e){function n(i){return e===1?new Kn(i):new Qa(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function ti(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Or(t,e){this._context=t,this._k=(1-e)/6}Or.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ti(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ti(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const m0=function t(e){function n(i){return new Or(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Dr(t,e){this._context=t,this._k=(1-e)/6}Dr.prototype={areaStart:Lt,areaEnd:Lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ti(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _0=function t(e){function n(i){return new Dr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Rr(t,e){this._context=t,this._k=(1-e)/6}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ti(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const v0=function t(e){function n(i){return new Rr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Fr(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>za){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>za){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Ja(t,e){this._context=t,this._alpha=e}Ja.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Fr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const y0=function t(e){function n(i){return e?new Ja(i,e):new Or(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ka(t,e){this._context=t,this._alpha=e}Ka.prototype={areaStart:Lt,areaEnd:Lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Fr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const x0=function t(e){function n(i){return e?new Ka(i,e):new Dr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function tl(t,e){this._context=t,this._alpha=e}tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const b0=function t(e){function n(i){return e?new tl(i,e):new Rr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function el(t){this._context=t}el.prototype={areaStart:Lt,areaEnd:Lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function w0(t){return new el(t)}function nl(t){return t<0?-1:1}function il(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(nl(o)+nl(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function rl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Pr(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function ei(t){this._context=t}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pr(this,this._t0,rl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Pr(this,rl(this,n=il(this,t,e)),n);break;default:Pr(this,this._t0,n=il(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ol(t){this._context=new sl(t)}(ol.prototype=Object.create(ei.prototype)).point=function(t,e){ei.prototype.point.call(this,e,t)};function sl(t){this._context=t}sl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function k0(t){return new ei(t)}function T0(t){return new ol(t)}function al(t){this._context=t}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=ll(t),r=ll(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ll(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function S0(t){return new al(t)}function ni(t,e){this._context=t,this._t=e}ni.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function C0(t){return new ni(t,.5)}function M0(t){return new ni(t,0)}function A0(t){return new ni(t,1)}function cl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function $0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cl(Object(n),!0).forEach(function(i){E0(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Qe(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qe=function(e){return typeof e}:Qe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(t)}function E0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ii(){return ii=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ii.apply(this,arguments)}function N0(t,e){if(t){if(typeof t=="string")return ul(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ul(t,e)}}function ul(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function hl(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=N0(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
115
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function
|
|
114
|
+
`,Hg=Object.freeze(Object.defineProperty({__proto__:null,hidden:kr,nonInteractive:Fa,positionFixed:Ra,root:Vn,show:wr,tooltip:Ig,variables:Ug},Symbol.toStringTag,{value:"Module"}));class Pa{constructor(e={}){this._defaultConfig=Bg,this.config=this._defaultConfig,this._setUpEventsThrottled=sn(this._setUpEvents,500),this._setContainerPositionThrottled=sn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=j(this.element).attr("class",Vn),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=zt(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}hide(){this.div.classed(wr,!1).on("transitionend",()=>{this.div.classed(kr,!this._isShown)}),this._isShown=!1}display(){this.div.classed(kr,!1).classed(wr,!0),this._isShown=!0}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,i=this.element.offsetWidth,r=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?M.Center:n.horizontalPlacement),s=n.verticalPlacement===M.Auto?e.y-r<0?M.Bottom:M.Top:n.verticalPlacement,a=5,l=o===M.Left?-i-a-n.horizontalShift:o===M.Center?-i/2:a+n.horizontalShift,c=s===M.Bottom?a+n.verticalShift:s===M.Center?-r/2:-5-n.verticalShift-r,[f,u]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(f,u,r)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const i=5,r=this.element.offsetWidth,o=this.element.offsetHeight,s=this.isContainerBody(),a=s?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=s?[l.x,l.y]:uo({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),f=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?c[0]-r<0?M.Right:c[0]+r>a?M.Left:M.Center:n.horizontalPlacement);let u=0;switch(f){case M.Left:u=-r-i-n.horizontalShift;break;case M.Right:u=l.width+i+n.horizontalShift;break;case M.Center:default:u=(-r+l.width)/2;break}const h=n.verticalPlacement===M.Auto?f!==M.Center?M.Center:c[1]-o<0?M.Bottom:M.Top:n.verticalPlacement;let d=-o;switch(h){case M.Center:d+=(o+l.height)/2;break;case M.Bottom:d+=o+l.height+i+n.verticalShift;break;case M.Top:default:d+=-5-n.verticalShift;break}const[g,p]=this._constraintPosToContainer(c[0]+u,c[1]+d,r,o);this._applyPosition(g,p,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:i,prevConfig:r}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e&&this.div.html(e),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed(Fa,!i.allowHover||i.followCursor),r!=null&&r.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),o=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Ra,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${o-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const o=this.isContainerBody(),s=o?window.innerHeight:this._container.scrollHeight,a=o?window.innerWidth:this._container.scrollWidth,l=10,c=e>a-i-l,f=e<l,u=c?a-i-l:f?l:e,h=10,d=n>s-r-h,g=n<h,p=d?s-r-h:g?h:n;return[a<i?0:u,s<r?0:p]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const i=j(n.element);i.on("mousemove.tooltip",r=>{const o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const s of Object.keys(e.triggers)){const a=e.triggers[s];if(!a)continue;const l=i.selectAll(`.${s}`).nodes();for(const c of o){if(c===i.node())break;if(c.classList.contains(s)){const f=l.indexOf(c),u=j(c).datum(),h=a(u,f,l),[d,g]=this.isContainerBody()?[r.clientX,r.clientY]:uo(r,this._container);h===null?this.hide():(this.render(h),e.followCursor?this.place({x:d,y:g}):this.placeByElement(c)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover&&!e.followCursor?this.div.on("mouseenter.tooltip",this.display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),(e=this.div)===null||e===void 0||e.remove()}}Pa.selectors=Hg;function I(t){return function(){return t}}const La=Math.cos,Xn=Math.sin,pt=Math.sqrt,za=1e-12,qn=Math.PI,Gn=2*qn,Tr=Math.PI,Sr=2*Tr,Zt=1e-6,Yg=Sr-Zt;function Ba(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Wg(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ba;const n=10**e;return function(i){this._+=i[0];for(let r=1,o=i.length;r<o;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class Vg{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Ba:Wg(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,o,s){this._append`C${+e},${+n},${+i},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,i,r,o){if(e=+e,n=+n,i=+i,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=i-e,c=r-n,f=s-e,u=a-n,h=f*f+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(h>Zt)if(!(Math.abs(u*l-c*f)>Zt)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,g=r-a,p=l*l+c*c,m=d*d+g*g,v=Math.sqrt(p),x=Math.sqrt(h),y=o*Math.tan((Tr-Math.acos((p+h-m)/(2*v*x)))/2),T=y/x,k=y/v;Math.abs(T-1)>Zt&&this._append`L${e+T*f},${n+T*u}`,this._append`A${o},${o},0,0,${+(u*d>f*g)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,o,s){if(e=+e,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),c=e+a,f=n+l,u=1^s,h=s?r-o:o-r;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Zt||Math.abs(this._y1-f)>Zt)&&this._append`L${c},${f}`,i&&(h<0&&(h=h%Sr+Sr),h>Yg?this._append`A${i},${i},0,1,${u},${e-a},${n-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=f}`:h>Zt&&this._append`A${i},${i},0,${+(h>=Tr)},${u},${this._x1=e+i*Math.cos(o)},${this._y1=n+i*Math.sin(o)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Cr(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new Vg(e)}function Ia(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ua(t){this._context=t}Ua.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Mr(t){return new Ua(t)}function Ha(t){return t[0]}function Ya(t){return t[1]}function Wa(t,e){var n=I(!0),i=null,r=Mr,o=null,s=Cr(a);t=typeof t=="function"?t:t===void 0?Ha:I(t),e=typeof e=="function"?e:e===void 0?Ya:I(e);function a(l){var c,f=(l=Ia(l)).length,u,h=!1,d;for(i==null&&(o=r(d=s())),c=0;c<=f;++c)!(c<f&&n(u=l[c],c,l))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,c,l),+e(u,c,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:I(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:I(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:I(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(o=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=o=null:o=r(i=l),a):i},a}function Xg(t,e,n){var i=null,r=I(!0),o=null,s=Mr,a=null,l=Cr(c);t=typeof t=="function"?t:t===void 0?Ha:I(+t),e=typeof e=="function"?e:I(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Ya:I(+n);function c(u){var h,d,g,p=(u=Ia(u)).length,m,v=!1,x,y=new Array(p),T=new Array(p);for(o==null&&(a=s(x=l())),h=0;h<=p;++h){if(!(h<p&&r(m=u[h],h,u))===v)if(v=!v)d=h,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),g=h-1;g>=d;--g)a.point(y[g],T[g]);a.lineEnd(),a.areaEnd()}v&&(y[h]=+t(m,h,u),T[h]=+e(m,h,u),a.point(i?+i(m,h,u):y[h],n?+n(m,h,u):T[h]))}if(x)return a=null,x+""||null}function f(){return Wa().defined(r).curve(s).context(o)}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:I(+u),i=null,c):t},c.x0=function(u){return arguments.length?(t=typeof u=="function"?u:I(+u),c):t},c.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:I(+u),c):i},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:I(+u),n=null,c):e},c.y0=function(u){return arguments.length?(e=typeof u=="function"?u:I(+u),c):e},c.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:I(+u),c):n},c.lineX0=c.lineY0=function(){return f().x(t).y(e)},c.lineY1=function(){return f().x(t).y(n)},c.lineX1=function(){return f().x(i).y(e)},c.defined=function(u){return arguments.length?(r=typeof u=="function"?u:I(!!u),c):r},c.curve=function(u){return arguments.length?(s=u,o!=null&&(a=s(o)),c):s},c.context=function(u){return arguments.length?(u==null?o=a=null:a=s(o=u),c):o},c}const Va={draw(t,e){const n=pt(e/qn);t.moveTo(n,0),t.arc(0,0,n,0,Gn)}},qg={draw(t,e){const n=pt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Xa=pt(1/3),Gg=Xa*2,jg={draw(t,e){const n=pt(e/Gg),i=n*Xa;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},Zg={draw(t,e){const n=pt(e),i=-n/2;t.rect(i,i,n,n)}},Qg=.8908130915292852,qa=Xn(qn/10)/Xn(7*qn/10),Jg=Xn(Gn/10)*qa,Kg=-La(Gn/10)*qa,t0={draw(t,e){const n=pt(e*Qg),i=Jg*n,r=Kg*n;t.moveTo(0,-n),t.lineTo(i,r);for(let o=1;o<5;++o){const s=Gn*o/5,a=La(s),l=Xn(s);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},Ar=pt(3),e0={draw(t,e){const n=-pt(e/(Ar*3));t.moveTo(0,n*2),t.lineTo(-Ar*n,-n),t.lineTo(Ar*n,-n),t.closePath()}},at=-.5,lt=pt(3)/2,$r=1/pt(12),n0=($r/2+1)*3,i0={draw(t,e){const n=pt(e/n0),i=n/2,r=n*$r,o=i,s=n*$r+n,a=-o,l=s;t.moveTo(i,r),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(at*i-lt*r,lt*i+at*r),t.lineTo(at*o-lt*s,lt*o+at*s),t.lineTo(at*a-lt*l,lt*a+at*l),t.lineTo(at*i+lt*r,at*r-lt*i),t.lineTo(at*o+lt*s,at*s-lt*o),t.lineTo(at*a+lt*l,at*l-lt*a),t.closePath()}};function r0(t,e){let n=null,i=Cr(r);t=typeof t=="function"?t:I(t||Va),e=typeof e=="function"?e:I(e===void 0?64:+e);function r(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(t=typeof o=="function"?o:I(o),r):t},r.size=function(o){return arguments.length?(e=typeof o=="function"?o:I(+o),r):e},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function Ft(){}function jn(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Zn(t){this._context=t}Zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function o0(t){return new Zn(t)}function Ga(t){this._context=t}Ga.prototype={areaStart:Ft,areaEnd:Ft,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function s0(t){return new Ga(t)}function ja(t){this._context=t}ja.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:jn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function a0(t){return new ja(t)}function Za(t,e){this._basis=new Zn(t),this._beta=e}Za.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const l0=function t(e){function n(i){return e===1?new Zn(i):new Za(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Qn(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Er(t,e){this._context=t,this._k=(1-e)/6}Er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Qn(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Qn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const c0=function t(e){function n(i){return new Er(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Nr(t,e){this._context=t,this._k=(1-e)/6}Nr.prototype={areaStart:Ft,areaEnd:Ft,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Qn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const u0=function t(e){function n(i){return new Nr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Or(t,e){this._context=t,this._k=(1-e)/6}Or.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const f0=function t(e){function n(i){return new Or(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Dr(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>za){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>za){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Qa(t,e){this._context=t,this._alpha=e}Qa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Dr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const h0=function t(e){function n(i){return e?new Qa(i,e):new Er(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ja(t,e){this._context=t,this._alpha=e}Ja.prototype={areaStart:Ft,areaEnd:Ft,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Dr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const d0=function t(e){function n(i){return e?new Ja(i,e):new Nr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ka(t,e){this._context=t,this._alpha=e}Ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const p0=function t(e){function n(i){return e?new Ka(i,e):new Or(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function tl(t){this._context=t}tl.prototype={areaStart:Ft,areaEnd:Ft,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function g0(t){return new tl(t)}function el(t){return t<0?-1:1}function nl(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(el(o)+el(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function il(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Rr(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function Jn(t){this._context=t}Jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rr(this,this._t0,il(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Rr(this,il(this,n=nl(this,t,e)),n);break;default:Rr(this,this._t0,n=nl(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rl(t){this._context=new ol(t)}(rl.prototype=Object.create(Jn.prototype)).point=function(t,e){Jn.prototype.point.call(this,e,t)};function ol(t){this._context=t}ol.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function m0(t){return new Jn(t)}function _0(t){return new rl(t)}function sl(t){this._context=t}sl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=al(t),r=al(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function al(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function v0(t){return new sl(t)}function Kn(t,e){this._context=t,this._t=e}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function y0(t){return new Kn(t,.5)}function x0(t){return new Kn(t,0)}function b0(t){return new Kn(t,1)}function ll(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function w0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ll(Object(n),!0).forEach(function(i){k0(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ll(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function je(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?je=function(e){return typeof e}:je=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(t)}function k0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ti(){return ti=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ti.apply(this,arguments)}function T0(t,e){if(t){if(typeof t=="string")return cl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cl(t,e)}}function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ul(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=T0(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
115
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function S0(t,e){var n=[],i=[];function r(o,s){if(o.length===1)n.push(o[0]),i.push(o[0]);else{for(var a=Array(o.length-1),l=0;l<a.length;l++)l===0&&n.push(o[0]),l===a.length-1&&i.push(o[l+1]),a[l]=[(1-s)*o[l][0]+s*o[l+1][0],(1-s)*o[l][1]+s*o[l+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function C0(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function M0(t,e){e=e||2;for(var n=[],i=t,r=1/e,o=0;o<e-1;o++){var s=r/(1-r*o),a=S0(i,s);n.push(a.left),i=a.right}return n.push(i),n}function A0(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),M0(i,n).map(C0)}var $0=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,me={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(me).forEach(function(t){me[t.toLowerCase()]=me[t]});function Fr(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function E0(t){return"".concat(t.type).concat(me[t.type].map(function(e){return t[e]}).join(","))}function N0(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var r={};Object.keys(e).forEach(function(o){var s=e[o],a=t[o];a===void 0&&(i.includes(o)?a=s:(a===void 0&&n[o]&&(a=t[n[o]]),a===void 0&&(a=0))),r[o]=a}),r.type=e.type,t=r}return t}function O0(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(A0(t,e,n));else{var r=ti({},t);r.type==="M"&&(r.type="L"),i=i.concat(Fr(n-1).map(function(){return r})),i.push(e)}return i}function fl(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=Fr(r).reduce(function(l,c,f){var u=Math.floor(o*f);if(n&&u<t.length-1&&n(t[u],t[u+1])){var h=o*f%1<.5;l[u]&&(h?u>0?u-=1:u<t.length-1&&(u+=1):u<t.length-1?u+=1:u>0&&(u-=1))}return l[u]=(l[u]||0)+1,l},[]),a=s.reduce(function(l,c,f){if(f===t.length-1){var u=Fr(c,ti({},t[t.length-1]));return u[0].type==="M"&&u.forEach(function(h){h.type="L"}),l.concat(u)}return l.concat(O0(t[f],t[f+1],c))},[]);return a.unshift(t[0]),a}function hl(t){for(var e=(t||"").match($0)||[],n=[],i,r,o=0;o<e.length;++o)if(i=me[e[o]],i){r={type:e[o]};for(var s=0;s<i.length;++s)r[i[s]]=+e[o+s+1];o+=i.length,n.push(r)}return n}function D0(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=je(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var l=(i.length===0||i[i.length-1].type==="Z")&&(r.length===0||r[r.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),r.length>0&&r[r.length-1].type==="Z"&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]);var c=Math.abs(r.length-i.length);c!==0&&(r.length>i.length?i=fl(i,r,s):r.length<i.length&&(r=fl(r,i,s))),i=i.map(function(u,h){return N0(u,r[h])});var f=i.map(function(u){return w0({},u)});return l&&(f.push({type:"Z"}),i.push({type:"Z"})),function(h){if(h===1&&a)return e??[];if(h===0)return i;for(var d=0;d<f.length;++d){var g=i[d],p=r[d],m=f[d],v=ul(me[m.type]),x;try{for(v.s();!(x=v.n()).done;){var y=x.value;m[y]=(1-h)*g[y]+h*p[y],(y==="largeArcFlag"||y==="sweepFlag")&&(m[y]=Math.round(m[y]))}}catch(T){v.e(T)}finally{v.f()}}return f}}function dl(t,e,n){var i=hl(t),r=hl(e),o=je(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=D0(i,r,{excludeSegment:s,snapEndsToInput:a});return function(f){if(f===1&&a)return e??"";var u=l(f),h="",d=ul(u),g;try{for(d.s();!(g=d.n()).done;){var p=g.value;h+=E0(p)}}catch(m){d.e(m)}finally{d.f()}return h}}function _e(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:an(t,e,n)||(Lt(n)?`var(${Dt(n)})`:null)}var z;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(z||(z={}));const Pr={[z.Basis]:o0,[z.BasisClosed]:s0,[z.BasisOpen]:a0,[z.Bundle]:l0,[z.Cardinal]:c0,[z.CardinalClosed]:u0,[z.CardinalOpen]:f0,[z.CatmullRom]:h0,[z.CatmullRomClosed]:d0,[z.CatmullRomOpen]:p0,[z.Linear]:Mr,[z.LinearClosed]:g0,[z.MonotoneX]:m0,[z.MonotoneY]:_0,[z.Natural]:v0,[z.Step]:y0,[z.StepAfter]:b0,[z.StepBefore]:x0},R0=Object.assign(Object.assign({},Wn),{curveType:z.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),F0=le`
|
|
116
116
|
:root {
|
|
117
117
|
--vis-line-cursor: default;
|
|
118
118
|
--vis-line-stroke-dasharray: none;
|
|
@@ -122,35 +122,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
122
122
|
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
123
123
|
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
125
|
+
`,P0=R`
|
|
126
126
|
label: line-component;
|
|
127
|
-
`,
|
|
127
|
+
`,Ze=R`
|
|
128
128
|
label: line;
|
|
129
129
|
transition: opacity 200ms;
|
|
130
130
|
cursor: var(--vis-line-cursor);
|
|
131
|
-
`,
|
|
131
|
+
`,Lr=R`
|
|
132
132
|
label: linePath;
|
|
133
133
|
fill: none;
|
|
134
134
|
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
135
135
|
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
136
|
-
`,
|
|
136
|
+
`,zr=R`
|
|
137
137
|
label: lineSelectionHelper;
|
|
138
138
|
fill: none;
|
|
139
139
|
stroke: rgba(0, 0, 0, 0);
|
|
140
140
|
stroke-width: 8px;
|
|
141
|
-
`,
|
|
141
|
+
`,Br=R`
|
|
142
142
|
opacity: 0.2;
|
|
143
|
-
`,
|
|
143
|
+
`,Ir=R`
|
|
144
144
|
label: interpolated-path;
|
|
145
145
|
fill: none;
|
|
146
146
|
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
147
147
|
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
148
148
|
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
149
|
-
`,
|
|
150
|
-
`:if(y==="<"){x=i,w+="< ",y="";break}y+=P;break;default:y+=P;break}else if(x===o)switch(P){case">":y.slice(-2)=="--"&&(x=i),y="";break;default:y+=P;break}}return p.state=x,p.tag_buffer=y,p.depth=T,p.in_quote_char=k,w}function
|
|
151
|
-
`).map(l=>{const c=[];if(!e)return[l];const
|
|
149
|
+
`,L0=Object.freeze(Object.defineProperty({__proto__:null,dim:Br,globalStyles:F0,interpolatedPath:Ir,line:Ze,linePath:Lr,lineSelectionHelper:zr,root:P0},Symbol.toStringTag,{value:"Module"}));class ei extends br{constructor(e){super(),this._defaultConfig=R0,this.config=this._defaultConfig,this.curve=Pr[z.MonotoneX],this.events={[ei.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},e&&this.setConfig(e)}get bleed(){const{config:{lineWidth:e}}=this,n=this.yScale.domain(),r=(this.yScale.range()[0]>this.yScale.range()[1]?jt.North:jt.South)===jt.South,o=e>3,s=e>=10;return{top:!s&&(!r&&n[1]===0||r&&n[0]===0)?0:e/2,bottom:!s&&(!r&&n[0]===0||r&&n[1]===0)?0:e/2,left:o?e/2:0,right:o?e/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=Lt(e)?e:n.duration;this.curve=Pr[n.curveType],this.lineGen=Wa().x(u=>u.x).y(u=>u.y).defined(u=>u.defined).curve(this.curve);const o=ne(n.y)?n.y:[n.y],s=i.map((u,h)=>this.xScale(ct(u,n.x,h))),a=o.map(u=>{const h=i.map((v,x)=>{const y=ct(v,u,x),T=(Lt(y)||y===null)&&isFinite(y)?y:n.fallbackValue,k=n.interpolateMissingData?(Lt(y)||y===null)&&isFinite(y):isFinite(T);return{x:s[x],y:this.yScale(T??0),defined:k,value:T}}),d=h.reduce((v,x)=>x.defined||v,!1);let g=!1;const p=h.reduce((v,x,y)=>{!x.defined&&isFinite(n.fallbackValue)&&v.push(Object.assign(Object.assign({},x),{defined:!0})),!x.defined&&!g&&(g=!0);const T=y>0&&!h[y-1].defined||y<h.length-1&&!h[y+1].defined;return x.defined&&T&&(g||v.push(Object.assign(Object.assign({},x),{defined:!1})),v.push(x),g=!1),v},[]),m=d&&h.some(v=>v.value!==null);return{values:h,defined:d,gaps:p,visible:m}}),l=this.g.selectAll(`.${Ze}`).data(a),c=l.enter().append("g").attr("class",Ze);c.append("path").attr("class",Lr).attr("stroke",(u,h)=>_e(i,n.color,h)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),c.append("path").attr("class",zr).attr("d",this._emptyPath()),c.append("path").attr("class",Ir).attr("d",this._emptyPath()).style("opacity",0);const f=c.merge(l);f.style("cursor",(u,h)=>an(i,n.cursor,h)),f.each((u,h,d)=>{var g;const p=j(d[h]),m=p.select(`.${Lr}`),v=p.select(`.${zr}`),x=p.select(`.${Ir}`),y=u.visible,T=bi(i,n.lineDashArray,h),k=Ct(m,r).attr("stroke",_e(i,n.color,h)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",y?1:0).style("stroke-dasharray",(g=T==null?void 0:T.join(" "))!==null&&g!==void 0?g:null),w=u.values.some(B=>!B.defined),S=this.lineGen(u.values);if(r&&!w){const B=m.attr("d")||this._emptyPath(),P=S||this._emptyPath();k.attrTween("d",()=>dl(B,P))}else u.visible&&k.attr("d",S);v.attr("d",S).attr("visibility",y?null:"hidden"),w&&n.interpolateMissingData?Ct(x,r).attr("d",this.lineGen(u.gaps)).attr("stroke",_e(i,n.color,h)).attr("stroke-width",n.lineWidth-1).style("opacity",1):x.transition().duration(r).style("opacity",0)}),Ct(l.exit(),r).style("opacity",0).remove()}_emptyPath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}_highlight(e){const{config:n}=this;n.highlightOnHover&&this.g.selectAll(`.${Ze}`).classed(Br,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${Ze}`).classed(Br,!1)}}ei.selectors=L0;function z0(t){return t}var ni=1,ii=2,Ur=3,Qe=4,pl=1e-6;function B0(t){return"translate("+t+",0)"}function I0(t){return"translate(0,"+t+")"}function U0(t){return e=>+t(e)}function H0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Y0(){return!this.__axis}function ri(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===ni||t===Qe?-1:1,f=t===Qe||t===ii?"x":"y",u=t===ni||t===Ur?B0:I0;function h(d){var g=i??(e.ticks?e.ticks.apply(e,n):e.domain()),p=r??(e.tickFormat?e.tickFormat.apply(e,n):z0),m=Math.max(o,0)+a,v=e.range(),x=+v[0]+l,y=+v[v.length-1]+l,T=(e.bandwidth?H0:U0)(e.copy(),l),k=d.selection?d.selection():d,w=k.selectAll(".domain").data([null]),S=k.selectAll(".tick").data(g,e).order(),B=S.exit(),P=S.enter().append("g").attr("class","tick"),it=S.select("line"),A=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(P),it=it.merge(P.append("line").attr("stroke","currentColor").attr(f+"2",c*o)),A=A.merge(P.append("text").attr("fill","currentColor").attr(f,c*m).attr("dy",t===ni?"0em":t===Ur?"0.71em":"0.32em")),d!==k&&(w=w.transition(d),S=S.transition(d),it=it.transition(d),A=A.transition(d),B=B.transition(d).attr("opacity",pl).attr("transform",function(H){return isFinite(H=T(H))?u(H+l):this.getAttribute("transform")}),P.attr("opacity",pl).attr("transform",function(H){var V=this.parentNode.__axis;return u((V&&isFinite(V=V(H))?V:T(H))+l)})),B.remove(),w.attr("d",t===Qe||t===ii?s?"M"+c*s+","+x+"H"+l+"V"+y+"H"+c*s:"M"+l+","+x+"V"+y:s?"M"+x+","+c*s+"V"+l+"H"+y+"V"+c*s:"M"+x+","+l+"H"+y),S.attr("opacity",1).attr("transform",function(H){return u(T(H)+l)}),it.attr(f+"2",c*o),A.attr(f,c*m).text(p),k.filter(Y0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ii?"start":t===Qe?"end":"middle"),k.each(function(){this.__axis=T})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),h):i&&i.slice()},h.tickFormat=function(d){return arguments.length?(r=d,h):r},h.tickSize=function(d){return arguments.length?(o=s=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(s=+d,h):s},h.tickPadding=function(d){return arguments.length?(a=+d,h):a},h.offset=function(d){return arguments.length?(l=+d,h):l},h}function gl(t){return ri(ni,t)}function ml(t){return ri(ii,t)}function _l(t){return ri(Ur,t)}function vl(t){return ri(Qe,t)}var Qt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Qt||(Qt={}));var Jt;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Jt||(Jt={}));var oi;(function(t){t.Wrap="wrap",t.Trim="trim"})(oi||(oi={}));var gt;(function(t){t.Left="left",t.Center="center",t.Right="right"})(gt||(gt={}));var si={exports:{}},W0=si.exports,yl;function V0(){return yl||(yl=1,function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const i=n("plaintext"),r=n("html"),o=n("comment"),s=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function l(g,p,m){g=g||"",p=p||[],m=m||"";let v=f(p,m);return u(g,v)}function c(g,p){g=g||[],p=p||"";let m=f(g,p);return function(x){return u(x||"",m)}}l.init_streaming_mode=c;function f(g,p){return g=h(g),{allowable_tags:g,tag_replacement:p,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function u(g,p){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let m=p.allowable_tags,v=p.tag_replacement,x=p.state,y=p.tag_buffer,T=p.depth,k=p.in_quote_char,w="";for(let S=0,B=g.length;S<B;S++){let P=g[S];if(x===i)switch(P){case"<":x=r,y+=P;break;default:w+=P;break}else if(x===r)switch(P){case"<":if(k)break;T++;break;case">":if(k)break;if(T){T--;break}k="",x=i,y+=">",m.has(d(y))?w+=y:w+=v,y="";break;case'"':case"'":P===k?k="":k=k||P,y+=P;break;case"-":y==="<!-"&&(x=o),y+=P;break;case" ":case`
|
|
150
|
+
`:if(y==="<"){x=i,w+="< ",y="";break}y+=P;break;default:y+=P;break}else if(x===o)switch(P){case">":y.slice(-2)=="--"&&(x=i),y="";break;default:y+=P;break}}return p.state=x,p.tag_buffer=y,p.depth=T,p.in_quote_char=k,w}function h(g){let p=new Set;if(typeof g=="string"){let m;for(;m=s.exec(g);)p.add(m[1])}else!n.nonNative&&typeof g[n.iterator]=="function"?p=new Set(g):typeof g.forEach=="function"&&g.forEach(p.add,p);return p}function d(g){let p=a.exec(g);return p?p[1].toLowerCase():null}t.exports?t.exports=l:e.striptags=l})(W0)}(si)),si.exports}var X0=V0();const q0=Wf(X0);function G0(t){switch(t){case gt.Center:return"middle";case gt.Right:return"end";case gt.Left:default:return"start"}}function j0(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function Z0(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function Q0(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function J0(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function K0(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function tm(t,e=15,n=Qt.Middle){if(!t)return"";let i=K0(t,e);return n===Qt.Start?i=Q0(t,e):n===Qt.Middle&&(i=J0(t,e)),i}function em(t,e=[" "]){let n=[t];for(let i=0;i<e.length;i++){const r=e[i];n.forEach((o,s)=>{const a=o.split(r),l=a.map((c,f)=>`${c}${f===a.length-1?"":r}`);n[s]=l}),n=xi(n)}return n}function nm(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=Qt.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),l=a.length,c=r*l*o,u=Math.ceil(l*e/(1.1*c));return u<l?(t.text(tm(a,u,n)),!0):!1}function ai(t,e,n=hh()){return t.length*e*n||0}function li(t,e,n){const i="http://www.w3.org/2000/svg",r=document.createElementNS(i,"svg"),o=document.createElementNS(i,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),r.appendChild(o),document.body.appendChild(r);const s=o.getComputedTextLength();return document.body.removeChild(r),s}function im(t,e=void 0,n=!0,i=ps,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
|
|
151
|
+
`).map(l=>{const c=[];if(!e)return[l];const f=em(l,s);let u="";for(let h=0;h<f.length;h+=1){(n?ai(u+f[h],t.fontSize,t.fontWidthToHeightRatio):li(u+f[h],t.fontFamily,t.fontSize))<e||h===0?u+=f[h]:(c.push(u.trim()),u=f[h]);const g=2;if(r)for(;u.trim().length>g&&(n?ai(u,t.fontSize,t.fontWidthToHeightRatio):li(u,t.fontFamily,t.fontSize))>e;){let m=u.trim().length-g;for(;m>0;){const v=`${u.substring(0,m)}${gs}`;if((n?ai(v,t.fontSize,t.fontWidthToHeightRatio):li(v,t.fontFamily,t.fontSize))<=e||m===1){c.push(v.trim()),u=u.substring(m);break}m--}}}return u&&c.push(u.trim()),c}).flat()}function rm(t,e=void 0,n=void 0,i=!0,r=ps,o=!1){const s=Array.isArray(t)?t.map(u=>zt(ms,u)):[zt(ms,t)],a=s.map(u=>im(u,e,i,r,o)),l=s[0];let c=-l.fontSize*(l.lineHeight-1);const f=[];return s.forEach((u,h)=>{var d;let g=a[h];const p=h>0?f[h-1]:void 0,m=p?p.marginBottom:0,v=u.marginTop,x=Math.max(m,v);c+=x;const y=u.fontSize*u.lineHeight;let T=0;for(let k=0;k<g.length;k+=1){let w=g[k];c+=y;const S=`${w} …`,B=i?ai(S,u.fontSize,u.fontWidthToHeightRatio):li(S,u.fontFamily,u.fontSize);if(T=Math.max(B,T),n&&c+y>n&&k!==g.length-1){w.charAt(w.length-1)===gs&&(w=w.substr(0,g[k].length-1)),B<e?g[k]=S:g[k]=`${g[k].substr(0,g[k].length-2)}…`,g=g.slice(0,k+1);break}}f.push(Object.assign(Object.assign({},u),{_lines:g,_estimatedHeight:c-((p==null?void 0:p._estimatedHeight)||0),_maxWidth:Math.max(T,(d=p==null?void 0:p._maxWidth)!==null&&d!==void 0?d:0)}))}),f}function om(t,e=0,n){return t.map((i,r)=>{const o=r>0?t[r-1]:void 0,s=o?o.marginBottom/o.fontSize:0,a=i.marginTop/i.fontSize,l=Math.max(s,a),c={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:r===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(c).filter(([u,h])=>h).map(([u,h])=>`${j0(u)}="${Z0(h.toString())}"`).join(" ")}>${i._lines.map((u,h)=>{let d;return r===0&&h===0?d=.8+l:h===0?d=l+i.lineHeight:d=i.lineHeight,`<tspan x="${e}" dy="${d}em">${u.length?u:" "}</tspan>`}).join("")}</tspan>`})}function sm(t){return $u(t,e=>e._estimatedHeight)}const am=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function lm(t,e,n,i){var r,o;const s=rm(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),l=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),c=a??0;let f=l??0;if(n.textAlign&&t.setAttribute("text-anchor",G0(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Jt.Top){const u=sm(s),h=n.verticalAlign===Jt.Middle?-u/2:n.verticalAlign===Jt.Bottom?-u:0;f+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${c} ${f})`):t.removeAttribute("transform");{const u=new DOMParser;t.textContent="",s.forEach(h=>{const d=om([h],c,f).join(""),g=q0(d,am),p=u.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(p)})}}const cm=Object.assign(Object.assign({},Wn),{position:void 0,type:void 0,label:void 0,labelFontSize:null,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Qt.Middle,tickTextFitMode:oi.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0}),xl=R`
|
|
152
152
|
label: axis-component;
|
|
153
|
-
`,
|
|
153
|
+
`,um=le`
|
|
154
154
|
:root {
|
|
155
155
|
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
156
156
|
/* --vis-axis-font-family: */
|
|
@@ -175,18 +175,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
175
175
|
--vis-dark-axis-label-color: #fefefe;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
body.theme-dark ${`.${
|
|
178
|
+
body.theme-dark ${`.${xl}`} {
|
|
179
179
|
--vis-axis-tick-color: var(--vis-dark-axis-tick-color);
|
|
180
180
|
--vis-axis-domain-color: var(--vis-dark-axis-domain-color);
|
|
181
181
|
--vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
|
|
182
182
|
--vis-axis-grid-color: var(--vis-dark-axis-grid-color);
|
|
183
183
|
--vis-axis-label-color: var(--vis-dark-axis-label-color);
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Hr=R`
|
|
186
186
|
label: hide-tick-line;
|
|
187
|
-
`,
|
|
187
|
+
`,Yr=R`
|
|
188
188
|
label: hide-domain;
|
|
189
|
-
`,
|
|
189
|
+
`,bl=R`
|
|
190
190
|
label: axis;
|
|
191
191
|
|
|
192
192
|
user-select: none;
|
|
@@ -196,18 +196,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
196
196
|
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
&${`.${
|
|
199
|
+
&${`.${Hr}`} {
|
|
200
200
|
.tick > line {
|
|
201
201
|
opacity: 0;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
&${`.${
|
|
205
|
+
&${`.${Yr}`} {
|
|
206
206
|
.domain {
|
|
207
207
|
opacity: 0;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,wl=R`
|
|
211
211
|
label: grid;
|
|
212
212
|
|
|
213
213
|
.domain {
|
|
@@ -218,7 +218,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
218
218
|
stroke: var(--vis-axis-grid-color);
|
|
219
219
|
stroke-width: var(--vis-axis-grid-line-width);
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,kl=R`
|
|
222
222
|
label: tick;
|
|
223
223
|
|
|
224
224
|
stroke: none;
|
|
@@ -236,21 +236,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
236
236
|
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
237
237
|
stroke: none;
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,Wr=R`
|
|
240
240
|
label: label;
|
|
241
241
|
fill: var(--vis-axis-label-color);
|
|
242
242
|
font-size: var(--vis-axis-label-font-size);
|
|
243
243
|
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
244
244
|
text-anchor: middle;
|
|
245
|
-
`,
|
|
245
|
+
`,Tl=R`
|
|
246
246
|
label: tick-label;
|
|
247
|
-
`,
|
|
247
|
+
`,Sl=R`
|
|
248
248
|
label: tick-label-hideable;
|
|
249
249
|
opacity: 0;
|
|
250
250
|
transition: var(--vis-axis-tick-label-hide-transition);
|
|
251
|
-
`,
|
|
251
|
+
`,fm=Object.freeze(Object.defineProperty({__proto__:null,axis:bl,globalStyles:um,grid:wl,hideDomain:Yr,hideTickLine:Hr,label:Wr,root:xl,tick:kl,tickLabel:Tl,tickLabelHideable:Sl},Symbol.toStringTag,{value:"Module"}));class Cl extends br{constructor(e){super(),this._defaultConfig=cm,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",wl)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===F.X?M.Bottom:M.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case F.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,s=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=o-this._width>1?o-this._width:0;switch(i){case M.Top:return{top:e.height,left:s,right:a};case M.Bottom:default:return{bottom:e.height,left:s,right:a}}}case F.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case M.Right:return{right:e.width,top:o,bottom:s};case M.Left:default:return{left:e.width,top:o,bottom:s}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case F.X:switch(i){case M.Top:return{top:e.top,left:e.left};case M.Bottom:default:return{top:e.top+this._height,left:e.left}}case F.Y:switch(i){case M.Right:return{top:e.top,left:e.left+this._width};case M.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:i}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),i.gridLine){const r=this._buildGrid().tickFormat(()=>"");r.tickValues(this._getConfiguredTickValues()),this.gridGroup.selectAll("*").interrupt(),Ct(this.gridGroup,e).call(r).style("opacity",1)}else Ct(this.gridGroup,e).style("opacity",0);i.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:i}}=this,r=this._getNumTicks();switch(e){case F.X:switch(n){case M.Top:return gl(this.xScale).ticks(r).tickPadding(i);case M.Bottom:default:return _l(this.xScale).ticks(r).tickPadding(i)}case F.Y:switch(n){case M.Right:return ml(this.yScale).ticks(r).tickPadding(i);case M.Left:default:return vl(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case F.X:switch(n){case M.Top:return gl(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case M.Bottom:default:return _l(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case F.Y:switch(n){case M.Right:return ml(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case M.Left:default:return vl(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0)}}}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),o=this._getConfiguredTickValues()||r.scale().ticks(this._getNumTicks());r.tickValues(o),e.selectAll("*").interrupt(),Ct(e,n).call(r);const s=e.selectAll("g.tick");s.classed(kl,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(l=>o.some(c=>Se(l,c))).classed(Tl,!0).classed(Sl,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(l=>qi(l)),a.each((l,c,f)=>{var u,h;let d=(h=(u=i.tickFormat)===null||u===void 0?void 0:u.call(i,l,c,o))!==null&&h!==void 0?h:`${l}`;const g=f[c],p=i.tickTextWidth||(i.type===F.X?this._containerWidth/(s.size()+1):this._containerWidth/5),m=getComputedStyle(g),v=Number.parseFloat(m.fontSize),x=m.fontFamily,y={verticalAlign:i.type===F.X?Jt.Top:Jt.Middle,width:p,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===oi.Trim){const k=j(g).text(d);nm(k,p,i.tickTextTrimType,!0,v,.58),d=j(g).text()}lm(g,{text:d,fontFamily:x,fontSize:v},y)}),e.classed(bl,!0).classed(Hr,!i.tickLine).classed(Yr,!i.domainLine),i.fullSize){const l=this._getFullDomainPath(0);Ct(e.select(".domain"),n).attr("d",l)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll("g.tick > text");if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,o)=>{const s=o[r];s._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,o,s)=>{const a=s[o];if(!a._visible)return;const c=a.getBoundingClientRect();for(let f=o+1;f<s.length;f+=1){if(o===f)continue;const u=s[f];if(u._visible){const d=u.getBoundingClientRect();if(Gf(c,d,-5)){u._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];j(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===F.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===F.Y){const i=this.yScale.range(),r=Math.abs(i[0]-i[1]);return Math.pow(r,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===F.X?this.xScale:this.yScale,i=n==null?void 0:n.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):e.minMaxTicksOnly||e.type===F.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case F.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case F.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:i,label:r,labelMargin:o,labelFontSize:s}=this.config;e.selectAll(`.${Wr}`).remove();const a=this.getPosition(),{width:l,height:c}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=i===F.X?this._width/2:Math.pow(-1,+(a===M.Left))*l,u=i===F.X?Math.pow(-1,+(a===M.Top))*c:this._height/2,h=i===F.X?0:Math.pow(-1,+(a===M.Left))*o,d=i===F.X?Math.pow(-1,+(a===M.Top))*o:0,g=i===F.Y?-90:0;e.append("text").attr("class",Wr).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${f+h},${u+d}) rotate(${g})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case F.X:switch(n){case M.Top:return 0;case M.Bottom:default:return .75}case F.Y:switch(n){case M.Right:return .75;case M.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,o=this.g.selectAll("g.tick > text"),s=this._getTickTextAnchor(n),a=e===F.X?0:this._getYTickTextTranslate(n,r),l=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",l).attr("text-anchor",s)}_getTickTextAnchor(e){switch(e){case gt.Left:return"start";case gt.Right:return"end";case gt.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=M.Left){const r=this._axisRawBBox.width-9;switch(e){case gt.Left:return n===M.Left?r*-1:0;case gt.Right:return n===M.Left?0:r;case gt.Center:return n===M.Left?r*-.5:r*.5;default:return 0}}}Cl.selectors=fm;var wt;(function(t){t.Circle="circle",t.Cross="cross",t.Diamond="diamond",t.Square="square",t.Star="star",t.Triangle="triangle",t.Wye="wye"})(wt||(wt={}));const hm={[wt.Circle]:Va,[wt.Cross]:qg,[wt.Diamond]:jg,[wt.Square]:Zg,[wt.Star]:t0,[wt.Triangle]:e0,[wt.Wye]:i0},nt=Object.assign(Object.assign({},wt),{Line:"line"});var ci;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(ci||(ci={}));const dm={items:[],labelClassName:"",onLegendItemClick:void 0,labelFontSize:null,labelMaxWidth:null,bulletSize:null,bulletShape:t=>{var e;return(e=t.shape)!==null&&e!==void 0?e:nt.Circle},orientation:ci.Horizontal,renderIntoProvidedDomNode:!1},Vr=ze*3,pm={[nt.Circle]:Math.PI/4,[nt.Cross]:5/9,[nt.Diamond]:Math.sqrt(3)/6,[nt.Square]:1,[nt.Star]:.3,[nt.Triangle]:Math.sqrt(3)/4,[nt.Wye]:5/11};function gm(t){t.each((e,n,i)=>{j(i[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function mm(t,e,n){t.each((i,r,o)=>{const s=an(i,e.bulletShape,r),a=_e(i,n,r),l=Vr,c=s===nt.Line?Vr/2.5:Vr,u=j(o[r]).select("svg").attr("viewBox",`0 0 ${l} ${c}`).select("path").attr("stroke",a),h=i.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;if(s===nt.Line)u.attr("d",`M0,${c/2} L${l/2},${c/2} L${l},${c/2}`).attr("transform",null).style("opacity",h).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none");else{const d=r0().type(hm[s]).size(l*c*pm[s]),g=(l-2)/l;let p=c/2;switch(s){case nt.Triangle:p+=c/8;break;case nt.Star:p+=c/16;break;case nt.Wye:p-=c/16;break}u.attr("d",d).attr("transform",`translate(${l/2}, ${Math.round(p)}) scale(${g})`).style("stroke-width","1px").style("opacity",null).style("fill",a).style("fill-opacity",h)}})}const Xr=R`
|
|
252
252
|
label: bullet-legend-component;
|
|
253
|
-
`,
|
|
253
|
+
`,_m=le`
|
|
254
254
|
:root {
|
|
255
255
|
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
256
256
|
/* --vis-legend-font-family: */
|
|
@@ -267,14 +267,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
267
267
|
--vis-dark-legend-label-color: #eee;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
body.theme-dark ${`.${
|
|
270
|
+
body.theme-dark ${`.${Xr}`} {
|
|
271
271
|
--vis-legend-label-color: var(--vis-dark-legend-label-color);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
body.theme-patterns {
|
|
275
275
|
--vis-legend-bullet-size: 14px;
|
|
276
276
|
}
|
|
277
|
-
`,
|
|
277
|
+
`,ui=R`
|
|
278
278
|
label: legendItem;
|
|
279
279
|
display: inline-flex;
|
|
280
280
|
align-items: center;
|
|
@@ -284,13 +284,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
284
284
|
cursor: default;
|
|
285
285
|
user-select: none;
|
|
286
286
|
max-width: min-content;
|
|
287
|
-
`,
|
|
287
|
+
`,Ml=R`
|
|
288
288
|
label: legendItemVertical;
|
|
289
289
|
display: flex;
|
|
290
290
|
margin-top: var(--vis-legend-vertical-item-spacing);
|
|
291
|
-
|
|
291
|
+
`,Al=R`
|
|
292
292
|
cursor: pointer;
|
|
293
|
-
`,
|
|
293
|
+
`,qr=R`
|
|
294
294
|
label: legendItemLabel;
|
|
295
295
|
font-size: var(--vis-legend-label-font-size);
|
|
296
296
|
display: inline-block;
|
|
@@ -300,7 +300,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
300
300
|
text-overflow: ellipsis;
|
|
301
301
|
overflow: hidden;
|
|
302
302
|
white-space: nowrap;
|
|
303
|
-
`,
|
|
303
|
+
`,Gr=R`
|
|
304
304
|
flex: 0 0 auto;
|
|
305
305
|
label: legendItemBullet;
|
|
306
306
|
margin-right: var(--vis-legend-bullet-label-spacing);
|
|
@@ -310,30 +310,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
310
310
|
svg {
|
|
311
311
|
display: block;
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
314
|
-
:root {
|
|
315
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
316
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
317
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
318
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
319
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
320
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
321
|
-
}
|
|
322
|
-
`,Am=E`
|
|
323
|
-
label: crosshair-component;
|
|
324
|
-
`,Nl=E`
|
|
325
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
326
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
327
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
328
|
-
pointer-events: none;
|
|
329
|
-
`,Ol=E`
|
|
330
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
331
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
332
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
333
|
-
pointer-events: none;
|
|
334
|
-
`,$m=Object.freeze(Object.defineProperty({__proto__:null,circle:Ol,globalStyles:Mm,line:Nl,root:Am},Symbol.toStringTag,{value:"Module"}));class Dl extends qn{constructor(e){super(),this.clippable=!0,this._defaultConfig=Cm,this.config=this._defaultConfig,this.x=0,this.show=!1,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",this.show?1:0),this.line=this.g.append("line").attr("class",Nl)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,i=!!(n.x||n.y||n.yStacked),r=i?n.x:this._accessors.x,o=i?n.y:this._accessors.y,s=o?It(o)?o:[o]:void 0,a=i?n.yStacked:this._accessors.yStacked,l=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:r,y:s,yStacked:a,baseline:l}}setContainer(e){this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this))}_render(e){const{config:n}=this;if(n.snapToData&&!this.datum)return;const i=vt(e)?e:n.duration;at(this.g,i).style("opacity",this.show?1:0),this.line.attr("y1",0).attr("y1",this._height),at(this.line,i,Fs).attr("x1",this.x).attr("x2",this.x);const r=this.getCircleData(),o=this.g.selectAll("circle").data(r,(a,l)=>{var c;return(c=a.id)!==null&&c!==void 0?c:l}),s=o.enter().append("circle").attr("class",Ol).attr("r",0).attr("cx",this.x).attr("cy",a=>a.y).style("fill",a=>a.color).style("stroke",a=>a.strokeColor).style("stroke-width",a=>a.strokeWidth);at(s.merge(o),i,Fs).attr("cx",this.x).attr("cy",a=>a.y).attr("r",4).style("opacity",a=>a.opacity).style("fill",a=>a.color).style("stroke",a=>a.strokeColor).style("stroke-width",a=>a.strokeWidth),o.exit().remove()}hide(){this._onMouseOut()}_onMouseMove(e){var n,i;const{config:r,datamodel:o,element:s}=this;!this.accessors.x&&(!((n=o.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[a]=nn(e,s),l=this.xScale.range();if(r.snapToData){!this.accessors.y&&!this.accessors.yStacked&&(!((i=o.data)===null||i===void 0)&&i.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object");const c=this.xScale,h=c.invert(a);if(this.datum=Hu(o.data,h,this.accessors.x),this.datumIndex=o.data.indexOf(this.datum),!this.datum)return;this.x=Rt(Math.round(c(Y(this.datum,this.accessors.x,this.datumIndex))),0,this._width),this.show=this.x>=0&&this.x<=this._width&&(!r.hideWhenFarFromPointer||Math.abs(this.x-a)<r.hideWhenFarFromPointerDistance)}else this.x=Rt(a,l[0],l[1]),this.show=a>=l[0]-2&&a<=l[1]+2;window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this.show?this._showTooltip(e):this._hideTooltip()}_onMouseOut(){this.show=!1,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this._hideTooltip()}_showTooltip(e){var n;const{config:i}=this,r=(n=i.tooltip)!==null&&n!==void 0?n:this.tooltip;if(!r)return;const o=r.getContainer()||this.container.node(),[s,a]=r.isContainerBody()?[e.clientX,e.clientY]:nn(e,o),l=i.template(this.datum,this.xScale.invert(this.x));if(r.config.followCursor=!0,!r.config.horizontalPlacement||r.config.horizontalPlacement===C.Auto){const c=r.isContainerBody()?s-this.container.node().getBoundingClientRect().left:s;r.overrideHorizontalPlacement(c>this._containerWidth/2?C.Left:C.Right)}l&&r.show(l,{x:s,y:a})}_hideTooltip(){var e;const{config:n}=this,i=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;i==null||i.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(){var e,n;const{config:i,datamodel:{data:r}}=this;if(wi(i.getCircles))return i.getCircles(this.xScale.invert(this.x),r,this.yScale);if(i.snapToData&&this.datum){const o=(e=this.accessors.y)!==null&&e!==void 0?e:[],s=(n=this.accessors.yStacked)!==null&&n!==void 0?n:[],a=Y(this.datum,this.accessors.baseline,this.datumIndex)||0,l=Lu(this.datum,this.datumIndex,...s).map((h,u,f)=>({y:this.yScale(h+a),opacity:vt(Y(this.datum,s[u]))?1:0,color:Tt(this.datum,i.color,u),strokeColor:i.strokeColor?Tt(this.datum,i.strokeColor,u):void 0,strokeWidth:i.strokeWidth?Y(this.datum,i.strokeWidth,u):void 0})),c=o.map((h,u)=>{const f=Y(this.datum,h);return{y:this.yScale(f),opacity:vt(f)?1:0,color:Tt(this.datum,i.color,l.length+u),strokeColor:i.strokeColor?Tt(this.datum,i.strokeColor,u):void 0,strokeWidth:i.strokeWidth?Y(this.datum,i.strokeWidth,u):void 0}});return l.concat(c)}return[]}}Dl.selectors=$m;const Em=Object.assign(Object.assign({},Ze),{color:void 0,curveType:L.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1}),Rl=E`
|
|
313
|
+
`,vm=Object.freeze(Object.defineProperty({__proto__:null,bullet:Gr,clickable:Al,item:ui,itemVertical:Ml,label:qr,root:Xr,variables:_m},Symbol.toStringTag,{value:"Module"}));class $l{constructor(e,n){this._defaultConfig=dm,this.config=this._defaultConfig,this._colorAccessor=i=>i.color,this._container=e,this.div=n!=null&&n.renderIntoProvidedDomNode?j(this._container):j(this._container).append("div"),this.div.classed(Xr,!0),this.element=this.div.node(),n&&this.update(n)}update(e){this.prevConfig=this.config,this.config=zt(this._defaultConfig,e),this.render()}render(){const{config:e}=this,n=this.div.selectAll(`.${ui}`).data(e.items),i=n.enter().append("div").on("click",this._onItemClick.bind(this)),r=i.merge(n);r.attr("class",o=>{var s;return`${ui} ${(s=o.className)!==null&&s!==void 0?s:""}`}).classed(Ml,e.orientation===ci.Vertical).classed(Al,o=>!!e.onLegendItemClick&&this._isItemClickable(o)).attr("title",o=>o.name).style("display",o=>o.hidden?"none":null),i.append("span").attr("class",Gr).call(gm),r.select(`.${Gr}`).style("width",e.bulletSize).style("height",e.bulletSize).style("box-sizing","content-box").call(mm,this.config,this._colorAccessor),i.append("span").attr("class",qr).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),r.select(`.${qr}`).text(o=>o.name),n.exit().remove()}_isItemClickable(e){return e.pointer===void 0?!0:e.pointer}_onItemClick(e,n){const{config:{onLegendItemClick:i}}=this,o=this.div.selectAll(`.${ui}`).nodes().indexOf(e.currentTarget);i&&i(n,o)}destroy(){this.element!==this._container&&this.div.remove()}}$l.selectors=vm;const ym=Object.assign(Object.assign({},Wn),{color:void 0,curveType:z.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1}),El=R`
|
|
335
314
|
label: area-component;
|
|
336
|
-
`,
|
|
315
|
+
`,xm=le`
|
|
337
316
|
:root {
|
|
338
317
|
--vis-area-cursor: default;
|
|
339
318
|
--vis-area-fill-opacity: 1;
|
|
@@ -348,11 +327,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
348
327
|
--vis-dark-area-stroke-color: none;
|
|
349
328
|
}
|
|
350
329
|
|
|
351
|
-
body.theme-dark ${`.${
|
|
330
|
+
body.theme-dark ${`.${El}`} {
|
|
352
331
|
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
353
332
|
}
|
|
354
333
|
|
|
355
|
-
`,
|
|
334
|
+
`,jr=R`
|
|
356
335
|
label: area;
|
|
357
336
|
cursor: var(--vis-area-cursor);
|
|
358
337
|
fill-opacity: var(--vis-area-fill-opacity);
|
|
@@ -365,9 +344,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
365
344
|
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
366
345
|
stroke-width: var(--vis-area-hover-stroke-width);
|
|
367
346
|
}
|
|
368
|
-
`,Om=Object.freeze(Object.defineProperty({__proto__:null,area:Qr,globalStyles:Nm,root:Rl},Symbol.toStringTag,{value:"Module"}));class pi extends qn{constructor(e){super(),this._defaultConfig=Em,this.config=this._defaultConfig,this.stacked=!0,this.events={[pi.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=vt(e)?e:n.duration,o=Lr[n.curveType];this._areaGen=Kg().x(p=>p.x).y0(p=>p.y0).y1(p=>{const _=Math.abs(p.y1-p.y0)<1;return p.y1-(_&&n.minHeight1Px?1:0)}).curve(o);const s=It(n.y)?n.y:[n.y],a=i.map((p,_)=>this.xScale(Y(p,n.x,_))),l=zu(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(p=>!!p.isMostlyNegative);const c=l.map(p=>p.map((_,v)=>({y0:this.yScale(_[0]),y1:this.yScale(_[1]),x:a[v]}))),h=c.length-1,u=c.reverse(),f=this.g.selectAll(`.${Qr}`).data(u),d=f.enter().append("path").attr("class",Qr).attr("d",p=>this._areaGen(p)||this._emptyPath()).style("opacity",0).style("fill",(p,_)=>Tt(i,n.color,h-_)),g=at(d.merge(f),r).style("opacity",(p,_)=>p.some(x=>x.y0-x.y1!==0)?Y(i,n.opacity,h-_):0).style("fill",(p,_)=>Tt(i,n.color,h-_)).style("cursor",(p,_)=>un(i,n.cursor,h-_));r?g.attrTween("d",(_,v,x)=>{const y=Z(x[v]).attr("d"),T=this._areaGen(_)||this._emptyPath();return pl(y,T)}):g.attr("d",p=>this._areaGen(p)||this._emptyPath()),at(f.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=It(n.y)?n.y:[n.y],o=e?yo(i.data,this.xScale.domain(),n.x):i.data;return Bu(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}}pi.selectors=Om;const Jr=Symbol("componentAccessorKey"),Fl=Symbol("tooltipAccessorKey"),Pl=Symbol("crosshairAccessorKey"),Bl=Symbol("axisAccessorKey"),Dm=Symbol("annotationsAccessorKey");function ye(t,e){return Ce(t,e)}function ie(t){const e=m.getCurrentInstance(),n=e.attrs;return m.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[m.camelize(o)]=t[m.camelize(o)]}),{...i,...n}})}const Rm=m.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=m.toRefs(n),r=ie(n),o=m.ref(),s=m.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=m.ref();return m.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),m.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({...m.toRaw(r.value),...m.toRaw(s)})}),m.onMounted(()=>{a.value&&(o.value=new Wg(a.value,{...m.toRaw(s)},i.value))}),m.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),m.provide(Jr,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),m.provide(Bl,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),m.provide(Pl,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),m.provide(Fl,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),m.provide(Dm,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[m.renderSlot(l.$slots,"default")],512))}}),Fm={"data-vis-component":""},Pm=m.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new pi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Fm))}}),Bm={"data-vis-axis":""},Ll=m.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Bl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Ml(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Bm))}}),Lm={"data-vis-crosshair":""},zm=m.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=m.inject(Pl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Dl(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Lm))}}),Im={"data-vis-component":""},Um=m.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new ri(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Im))}}),Hm={"data-vis-tooltip":""},Wm=m.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=m.inject(Fl),i=ie(t),r=m.ref();return m.onMounted(()=>{m.nextTick(()=>{r.value=new Ba(i.value),n.update(r.value)})}),m.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),m.watch(i,(o,s)=>{var a;ye(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(m.openBlock(),m.createElementBlock("div",Hm))}}),Ym=m.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;m.computed(()=>n.data);const i=ie(n),r=m.ref(),o=m.ref();return m.onMounted(()=>{m.nextTick(()=>{o.value&&(r.value=new El(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),m.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),m.watch(i,(s,a)=>{var l;ye(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Vm={class:"flex flex-col"},Xm={class:"flex items-center mr-2 mt-2"},qm={class:"font-semibold capitalize text-white/75"},Gm={class:"flex items-center gap-2"},jm={class:"font-normal"},Zm=m.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(m.openBlock(),m.createElementBlock("div",Vm,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.entries(i.data),([o,s])=>{var a;return m.openBlock(),m.createElementBlock(m.Fragment,{key:o},[m.createElementVNode("div",Xm,[m.createElementVNode("span",qm,m.toDisplayString(o)+":",1)]),m.createElementVNode("div",Gm,[(a=n.categories[o])!=null&&a.color?(m.openBlock(),m.createElementBlock("span",{key:0,style:m.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):m.createCommentVNode("",!0),m.createElementVNode("span",jm,m.toDisplayString(s),1)])],64)}),128))]))}}),Qm={key:0,class:"flex items center justify-end"},Jm=m.defineComponent({__name:"Area",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{},yFormatter:{},curveType:{},xNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},yNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},gridLineX:{type:Boolean},domainLineX:{type:Boolean},gridLineY:{type:Boolean},domainLineY:{type:Boolean},paginationPoisition:{}},setup(t){const e=t,n=Object.values(e.categories).map(s=>s.color),i=s=>{const a=m.createApp(Zm,{data:s,categories:e.categories}),l=document.createElement("div");a.mount(l);const c=l.innerHTML;return a.unmount(),c};function r(s){var a;return{y:l=>Number(l[s]),color:((a=e.categories[s])==null?void 0:a.color)??"#3b82f6"}}const o=n.map((s,a)=>`
|
|
369
|
-
<linearGradient id="gradient${
|
|
370
|
-
<stop offset="0%" stop-color="${
|
|
371
|
-
<stop offset="100%" stop-color="${
|
|
347
|
+
`,bm=Object.freeze(Object.defineProperty({__proto__:null,area:jr,globalStyles:xm,root:El},Symbol.toStringTag,{value:"Module"}));class fi extends br{constructor(e){super(),this._defaultConfig=ym,this.config=this._defaultConfig,this.stacked=!0,this.events={[fi.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=Lt(e)?e:n.duration,o=Pr[n.curveType];this._areaGen=Xg().x(p=>p.x).y0(p=>p.y0).y1(p=>{const m=Math.abs(p.y1-p.y0)<1;return p.y1-(m&&n.minHeight1Px?1:0)}).curve(o);const s=ne(n.y)?n.y:[n.y],a=i.map((p,m)=>this.xScale(ct(p,n.x,m))),l=Du(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(p=>!!p.isMostlyNegative);const c=l.map(p=>p.map((m,v)=>({y0:this.yScale(m[0]),y1:this.yScale(m[1]),x:a[v]}))),f=c.length-1,u=c.reverse(),h=this.g.selectAll(`.${jr}`).data(u),d=h.enter().append("path").attr("class",jr).attr("d",p=>this._areaGen(p)||this._emptyPath()).style("opacity",0).style("fill",(p,m)=>_e(i,n.color,f-m)),g=Ct(d.merge(h),r).style("opacity",(p,m)=>p.some(x=>x.y0-x.y1!==0)?ct(i,n.opacity,f-m):0).style("fill",(p,m)=>_e(i,n.color,f-m)).style("cursor",(p,m)=>an(i,n.cursor,f-m));r?g.attrTween("d",(m,v,x)=>{const y=j(x[v]).attr("d"),T=this._areaGen(m)||this._emptyPath();return dl(y,T)}):g.attr("d",p=>this._areaGen(p)||this._emptyPath()),Ct(h.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=ne(n.y)?n.y:[n.y],o=e?yo(i.data,this.xScale.domain(),n.x):i.data;return Ou(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}}fi.selectors=bm;const Zr=Symbol("componentAccessorKey"),Nl=Symbol("tooltipAccessorKey"),wm=Symbol("crosshairAccessorKey"),Ol=Symbol("axisAccessorKey"),km=Symbol("annotationsAccessorKey");function Je(t,e){return Se(t,e)}function ve(t){const e=_.getCurrentInstance(),n=e.attrs;return _.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[_.camelize(o)]=t[_.camelize(o)]}),{...i,...n}})}const Tm=_.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=_.toRefs(n),r=ve(n),o=_.ref(),s=_.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=_.ref();return _.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),_.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({..._.toRaw(r.value),..._.toRaw(s)})}),_.onMounted(()=>{a.value&&(o.value=new Pg(a.value,{..._.toRaw(s)},i.value))}),_.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),_.provide(Zr,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),_.provide(Ol,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),_.provide(wm,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),_.provide(Nl,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),_.provide(km,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(_.openBlock(),_.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[_.renderSlot(l.$slots,"default")],512))}}),Sm={"data-vis-component":""},Cm=_.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(Zr),i=t,r=_.computed(()=>n.data.value??i.data),o=ve(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new fi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),_.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),_.watch(o,(a,l)=>{var c;Je(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",Sm))}}),Mm={"data-vis-axis":""},Dl=_.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(Ol),i=t,r=_.computed(()=>n.data.value??i.data),o=ve(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Cl(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),_.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),_.watch(o,(a,l)=>{var c;Je(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",Mm))}}),Am={"data-vis-component":""},$m=_.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(Zr),i=t,r=_.computed(()=>n.data.value??i.data),o=ve(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new ei(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),_.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),_.watch(o,(a,l)=>{var c;Je(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",Am))}}),Em={"data-vis-tooltip":""},Nm=_.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=_.inject(Nl),i=ve(t),r=_.ref();return _.onMounted(()=>{_.nextTick(()=>{r.value=new Pa(i.value),n.update(r.value)})}),_.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),_.watch(i,(o,s)=>{var a;Je(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(_.openBlock(),_.createElementBlock("div",Em))}}),Om=_.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;_.computed(()=>n.data);const i=ve(n),r=_.ref(),o=_.ref();return _.onMounted(()=>{_.nextTick(()=>{o.value&&(r.value=new $l(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),_.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),_.watch(i,(s,a)=>{var l;Je(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(_.openBlock(),_.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Dm={key:0,class:"flex items center justify-end"},Rm=_.defineComponent({__name:"Area",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{},yFormatter:{},curveType:{},xNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},yNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},gridLineX:{type:Boolean},domainLineX:{type:Boolean},gridLineY:{type:Boolean},domainLineY:{type:Boolean},paginationPoisition:{}},setup(t){const e=t,n=Object.values(e.categories).map(o=>o.color);function i(o){var s;return{y:a=>Number(a[o]),color:((s=e.categories[o])==null?void 0:s.color)??"#3b82f6"}}const r=n.map((o,s)=>`
|
|
348
|
+
<linearGradient id="gradient${s}-${o}" gradientTransform="rotate(90)">
|
|
349
|
+
<stop offset="0%" stop-color="${o}" stop-opacity="1" />
|
|
350
|
+
<stop offset="100%" stop-color="${o}" stop-opacity="0" />
|
|
372
351
|
</linearGradient>
|
|
373
|
-
`).join("");return(s
|
|
352
|
+
`).join("");return(o,s)=>{const a=_.resolveComponent("ClientOnly");return _.openBlock(),_.createElementBlock("div",{class:_.normalizeClass(["flex flex-col space-y-4",{"flex-col-reverse":e.paginationPoisition==="top"}])},[_.createVNode(_.unref(Tm),{data:o.data,height:o.height,"svg-defs":_.unref(r)},{default:_.withCtx(()=>[o.hideTooltip?_.createCommentVNode("",!0):(_.openBlock(),_.createBlock(_.unref(Nm),{key:0,"horizontal-placement":_.unref(M).Right,"vertical-placement":_.unref(M).Top},null,8,["horizontal-placement","vertical-placement"])),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(Object.keys(e.categories),(l,c)=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:c},[_.createVNode(_.unref(Cm),_.mergeProps({x:(f,u)=>u,ref_for:!0},i(l),{color:`url(#gradient${c}-${_.unref(n)[c]})`,opacity:.5,"curve-type":o.curveType??_.unref(z).MonotoneX}),null,16,["x","color","curve-type"]),_.createVNode(_.unref($m),{x:(f,u)=>u,y:f=>f[l],color:_.unref(n)[c],"curve-type":o.curveType??_.unref(z).MonotoneX},null,8,["x","y","color","curve-type"])],64))),128)),_.createVNode(_.unref(Dl),{type:"x","tick-format":o.xFormatter,"num-ticks":o.xNumTicks,label:o.xLabel,"grid-line":o.gridLineX,"domain-line":o.domainLineX,"tick-line":!!o.gridLineX},null,8,["tick-format","num-ticks","label","grid-line","domain-line","tick-line"]),_.createVNode(_.unref(Dl),{type:"y","num-ticks":o.yNumTicks??o.data.length,"tick-format":o.yFormatter,label:o.yLabel,"grid-line":o.gridLineY,"domain-line":o.domainLineY,"tick-line":!!o.gridLineY},null,8,["num-ticks","tick-format","label","grid-line","domain-line","tick-line"]),_.createVNode(a)]),_:1},8,["data","height","svg-defs"]),o.hideLegend?_.createCommentVNode("",!0):(_.openBlock(),_.createElementBlock("div",Dm,[_.createVNode(_.unref(Om),{items:Object.values(o.categories)},null,8,["items"])]))],2)}}});var Rl=(t=>(t.Top="top",t.Bottom="bottom",t))(Rl||{});const Fm=((t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n})(_.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(t){return(e,n)=>(_.openBlock(),_.createElementBlock("button",{class:_.normalizeClass(["button",`button--${e.variant||"primary"}`,`button--${e.size||"medium"}`])},[_.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-52b6ec0c"]]);kt.Area=Rm,kt.Button=Fm,kt.PaginationPosition=Rl,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
|