vue-chrts 0.0.46 → 0.0.47
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/index.cjs +317 -0
- package/dist/index.js +318 -0
- package/package.json +1 -1
- package/dist/vue-chrts.js +0 -7814
- package/dist/vue-chrts.umd.cjs +0 -225
package/dist/vue-chrts.umd.cjs
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
(function(mt,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(mt=typeof globalThis<"u"?globalThis:mt||self,m(mt["vue-chrts"]={},mt.Vue))})(this,function(mt,m){"use strict";var ti="http://www.w3.org/1999/xhtml";const Nr={svg:"http://www.w3.org/2000/svg",xhtml:ti,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xe(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Nr.hasOwnProperty(e)?{space:Nr[e],local:t}:t}function oc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ti&&e.documentElement.namespaceURI===ti?e.createElement(t):e.createElementNS(n,t)}}function sc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Or(t){var e=Xe(t);return(e.local?sc:oc)(e)}function ac(){}function ei(t){return t==null?ac:function(){return this.querySelector(t)}}function cc(t){typeof t!="function"&&(t=ei(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),c,l,f=0;f<s;++f)(c=o[f])&&(l=t.call(c,c.__data__,f,o))&&("__data__"in c&&(l.__data__=c.__data__),a[f]=l);return new K(i,this._parents)}function lc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function uc(){return[]}function Dr(t){return t==null?uc:function(){return this.querySelectorAll(t)}}function fc(t){return function(){return lc(t.apply(this,arguments))}}function hc(t){typeof t=="function"?t=fc(t):t=Dr(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,c,l=0;l<a;++l)(c=s[l])&&(i.push(t.call(c,c.__data__,l,s)),r.push(c));return new K(i,r)}function Rr(t){return function(){return this.matches(t)}}function Fr(t){return function(e){return e.matches(t)}}var dc=Array.prototype.find;function pc(t){return function(){return dc.call(this.children,t)}}function gc(){return this.firstElementChild}function _c(t){return this.select(t==null?gc:pc(typeof t=="function"?t:Fr(t)))}var mc=Array.prototype.filter;function vc(){return Array.from(this.children)}function yc(t){return function(){return mc.call(this.children,t)}}function xc(t){return this.selectAll(t==null?vc:yc(typeof t=="function"?t:Fr(t)))}function wc(t){typeof t!="function"&&(t=Rr(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]=[],c,l=0;l<s;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new K(i,this._parents)}function Br(t){return new Array(t.length)}function bc(){return new K(this._enter||this._groups.map(Br),this._parents)}function qe(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}qe.prototype={constructor:qe,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 kc(t){return function(){return t}}function Tc(t,e,n,i,r,o){for(var s=0,a,c=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new qe(t,o[s]);for(;s<c;++s)(a=e[s])&&(r[s]=a)}function Sc(t,e,n,i,r,o,s){var a,c,l=new Map,f=e.length,u=o.length,h=new Array(f),d;for(a=0;a<f;++a)(c=e[a])&&(h[a]=d=s.call(c,c.__data__,a,e)+"",l.has(d)?r[a]=c:l.set(d,c));for(a=0;a<u;++a)d=s.call(t,o[a],a,o)+"",(c=l.get(d))?(i[a]=c,c.__data__=o[a],l.delete(d)):n[a]=new qe(t,o[a]);for(a=0;a<f;++a)(c=e[a])&&l.get(h[a])===c&&(r[a]=c)}function Mc(t){return t.__data__}function Cc(t,e){if(!arguments.length)return Array.from(this,Mc);var n=e?Sc:Tc,i=this._parents,r=this._groups;typeof t!="function"&&(t=kc(t));for(var o=r.length,s=new Array(o),a=new Array(o),c=new Array(o),l=0;l<o;++l){var f=i[l],u=r[l],h=u.length,d=Ac(t.call(f,f&&f.__data__,l,i)),g=d.length,p=a[l]=new Array(g),_=s[l]=new Array(g),v=c[l]=new Array(h);n(f,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 K(s,i),s._enter=a,s._exit=c,s}function Ac(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function $c(){return new K(this._exit||this._groups.map(Br),this._parents)}function Ec(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 Nc(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),c=0;c<s;++c)for(var l=n[c],f=i[c],u=l.length,h=a[c]=new Array(u),d,g=0;g<u;++g)(d=l[g]||f[g])&&(h[g]=d);for(;c<r;++c)a[c]=n[c];return new K(a,this._parents)}function Oc(){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 Dc(t){t||(t=Rc);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,c=r[o]=new Array(a),l,f=0;f<a;++f)(l=s[f])&&(c[f]=l);c.sort(e)}return new K(r,this._parents).order()}function Rc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Fc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Bc(){return Array.from(this)}function Lc(){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 Ic(){let t=0;for(const e of this)++t;return t}function zc(){return!this.node()}function Pc(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 Uc(t){return function(){this.removeAttribute(t)}}function Hc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yc(t,e){return function(){this.setAttribute(t,e)}}function Vc(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 Xc(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 qc(t,e){var n=Xe(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?Hc:Uc:typeof e=="function"?n.local?Xc:Wc:n.local?Vc:Yc)(n,e))}function Lr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Gc(t){return function(){this.style.removeProperty(t)}}function Zc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function jc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Qc(t,e,n){return arguments.length>1?this.each((e==null?Gc:typeof e=="function"?jc:Zc)(t,e,n??"")):Gt(this.node(),t)}function Gt(t,e){return t.style.getPropertyValue(e)||Lr(t).getComputedStyle(t,null).getPropertyValue(e)}function Jc(t){return function(){delete this[t]}}function Kc(t,e){return function(){this[t]=e}}function tl(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function el(t,e){return arguments.length>1?this.each((e==null?Jc:typeof e=="function"?tl:Kc)(t,e)):this.node()[t]}function Ir(t){return t.trim().split(/^|\s+/)}function ni(t){return t.classList||new zr(t)}function zr(t){this._node=t,this._names=Ir(t.getAttribute("class")||"")}zr.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 Pr(t,e){for(var n=ni(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ur(t,e){for(var n=ni(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function nl(t){return function(){Pr(this,t)}}function il(t){return function(){Ur(this,t)}}function rl(t,e){return function(){(e.apply(this,arguments)?Pr:Ur)(this,t)}}function ol(t,e){var n=Ir(t+"");if(arguments.length<2){for(var i=ni(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?rl:e?nl:il)(n,e))}function sl(){this.textContent=""}function al(t){return function(){this.textContent=t}}function cl(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ll(t){return arguments.length?this.each(t==null?sl:(typeof t=="function"?cl:al)(t)):this.node().textContent}function ul(){this.innerHTML=""}function fl(t){return function(){this.innerHTML=t}}function hl(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function dl(t){return arguments.length?this.each(t==null?ul:(typeof t=="function"?hl:fl)(t)):this.node().innerHTML}function pl(){this.nextSibling&&this.parentNode.appendChild(this)}function gl(){return this.each(pl)}function _l(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ml(){return this.each(_l)}function vl(t){var e=typeof t=="function"?t:Or(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function yl(){return null}function xl(t,e){var n=typeof t=="function"?t:Or(t),i=e==null?yl:typeof e=="function"?e:ei(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function wl(){var t=this.parentNode;t&&t.removeChild(this)}function bl(){return this.each(wl)}function kl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Tl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Sl(t){return this.select(t?Tl:kl)}function Ml(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Cl(t){return function(e){t.call(this,e,this.__data__)}}function Al(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 $l(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 El(t,e,n){return function(){var i=this.__on,r,o=Cl(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 Nl(t,e,n){var i=Al(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,f;c<l;++c)for(r=0,f=a[c];r<o;++r)if((s=i[r]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?El:$l,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function Hr(t,e,n){var i=Lr(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 Ol(t,e){return function(){return Hr(this,t,e)}}function Dl(t,e){return function(){return Hr(this,t,e.apply(this,arguments))}}function Rl(t,e){return this.each((typeof e=="function"?Dl:Ol)(t,e))}function*Fl(){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 Yr=[null];function K(t,e){this._groups=t,this._parents=e}function ge(){return new K([[document.documentElement]],Yr)}function Bl(){return this}K.prototype=ge.prototype={constructor:K,select:cc,selectAll:hc,selectChild:_c,selectChildren:xc,filter:wc,data:Cc,enter:bc,exit:$c,join:Ec,merge:Nc,selection:Bl,order:Oc,sort:Dc,call:Fc,nodes:Bc,node:Lc,size:Ic,empty:zc,each:Pc,attr:qc,style:Qc,property:el,classed:ol,text:ll,html:dl,raise:gl,lower:ml,append:vl,insert:xl,remove:bl,clone:Sl,datum:Ml,on:Nl,dispatch:Rl,[Symbol.iterator]:Fl};function Mt(t){return typeof t=="string"?new K([[document.querySelector(t)]],[document.documentElement]):new K([[t]],Yr)}var _e;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(_e||(_e={}));var Zt;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Zt||(Zt={}));function me(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ll(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ii(t){let e,n,i;t.length!==2?(e=me,n=(a,c)=>me(t(a),c),i=(a,c)=>t(a)-c):(e=t===me||t===Ll?t:Il,n=t,i=t);function r(a,c,l=0,f=a.length){if(l<f){if(e(c,c)!==0)return f;do{const u=l+f>>>1;n(a[u],c)<0?l=u+1:f=u}while(l<f)}return l}function o(a,c,l=0,f=a.length){if(l<f){if(e(c,c)!==0)return f;do{const u=l+f>>>1;n(a[u],c)<=0?l=u+1:f=u}while(l<f)}return l}function s(a,c,l=0,f=a.length){const u=r(a,c,l,f-1);return u>l&&i(a[u-1],c)>-i(a[u],c)?u-1:u}return{left:r,center:s,right:o}}function Il(){return 0}function Vr(t){return t===null?NaN:+t}const Ge=ii(me).right;ii(Vr).center;function zl(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 Wr extends Map{constructor(e,n=Hl){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(Xr(this,e))}has(e){return super.has(Xr(this,e))}set(e,n){return super.set(Pl(this,e),n)}delete(e){return super.delete(Ul(this,e))}}function Xr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Pl({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Ul({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Hl(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Yl=Math.sqrt(50),Vl=Math.sqrt(10),Wl=Math.sqrt(2);function Ze(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>=Yl?10:o>=Vl?5:o>=Wl?2:1;let a,c,l;return r<0?(l=Math.pow(10,-r)/s,a=Math.round(t*l),c=Math.round(e*l),a/l<t&&++a,c/l>e&&--c,l=-l):(l=Math.pow(10,r)*s,a=Math.round(t/l),c=Math.round(e/l),a*l<t&&++a,c*l>e&&--c),c<a&&.5<=n&&n<2?Ze(t,e,n*2):[a,c,l]}function ri(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?Ze(e,t,n):Ze(t,e,n);if(!(o>=r))return[];const a=o-r+1,c=new Array(a);if(i)if(s<0)for(let l=0;l<a;++l)c[l]=(o-l)/-s;else for(let l=0;l<a;++l)c[l]=(o-l)*s;else if(s<0)for(let l=0;l<a;++l)c[l]=(r+l)/-s;else for(let l=0;l<a;++l)c[l]=(r+l)*s;return c}function oi(t,e,n){return e=+e,t=+t,n=+n,Ze(t,e,n)[2]}function si(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?oi(e,t,n):oi(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function qr(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 Gr(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 Xl(t,e,n=Vr){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 ql(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*Gl(t){for(const e of t)yield*e}function Zl(t){return Array.from(Gl(t))}function jl(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 Ql(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 Jl(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,c=i.debounceMode,l=c===void 0?void 0:c,f,u=!1,h=0;function d(){f&&clearTimeout(f)}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()-h;if(u)return;function k(){h=Date.now(),e.apply(y,v)}function b(){f=void 0}!a&&l&&!f&&k(),d(),l===void 0&&T>t?a?(h=Date.now(),o||(f=setTimeout(l?b:k,t))):k():o!==!0&&(f=setTimeout(l?b:k,l===void 0?t-T:t))}return p.cancel=g,p}const Ot=t=>typeof t=="number",Zr=t=>typeof t=="function",jt=t=>Array.isArray(t),Kl=t=>t instanceof Object,je=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",jr=t=>Kl(t)&&!jt(t)&&!Zr(t)&&!je(t),ve=(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(!ve(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(!ve(t[s],e[s],n,i))return!1;return!0}return t===e},ai=t=>t.flat(),Qe=(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):Qe(i,e));return n}if(je(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]):Qe(i[o],e),r),n),n}return t},ye=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=je(t)?t:Qe(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(jr(t[r])&&jr(e[r])?i[r]=ye(t[r],e[r],n):je(e)?i[r]=e:i[r]=Qe(e[r]))}),i)},Qr=(t,e,n)=>Jl(e,t);function ci(t,e,n){return Zr(e)?e(t,n):e}function li(t,e,n){return ci(t,e,n)}function ot(t,e,n){return ci(t,e,n)}function xe(t){return t.filter(e=>e&&!Ot(e))}function Qt(t,e,n){return Math.min(Math.max(t,e),n)}function tu(t,...e){if(!t)return[void 0,void 0];if(jt(e)){let n=0,i=0;return t.forEach((r,o)=>{let s=0,a=0;for(const c of e){const l=ot(r,c,o)||0;l>=0?s+=l:a+=l}s>i&&(i=s),a<n&&(n=a)}),[n,i]}}function eu(t,e,n,i){const r=t.map((a,c)=>ot(a,e,c)||0),o=n.map((a,c)=>{const l=ql(t,(f,u)=>ot(f,a,u)||0);return l===0&&Array.isArray(i)?i[c]:l<0}),s=n.map(()=>[]);return t.forEach((a,c)=>{let l=r[c],f=r[c];n.forEach((u,h)=>{const d=ot(a,u,c)||0;d>=0?s[h].push([l,l+=d]):s[h].push([f,f+=d])})}),s.forEach((a,c)=>{a.isMostlyNegative=o[c]}),s}function nu(t,...e){return t?Gr(t,(i,r)=>Gr(e,o=>ot(i,o,r))):void 0}function iu(t,...e){return t?qr(t,(i,r)=>qr(e,o=>ot(i,o,r))):void 0}function ui(t,...e){return[nu(t,...e),iu(t,...e)]}function Jr(t,e,n){return t.filter((r,o)=>{const s=ot(r,n,o);return s>=e[0]&&s<=e[1]})}var Dt=[],ru=function(){return Dt.some(function(t){return t.activeTargets.length>0})},ou=function(){return Dt.some(function(t){return t.skippedTargets.length>0})},Kr="ResizeObserver loop completed with undelivered notifications.",su=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Kr}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Kr),window.dispatchEvent(t)},we;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(we||(we={}));var Rt=function(t){return Object.freeze(t)},au=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Rt(this)}return t}(),to=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,Rt(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,c=e.width,l=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:c,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),fi=function(t){return t instanceof SVGElement&&"getBBox"in t},eo=function(t){if(fi(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)},no=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)},cu=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},be=typeof window<"u"?window:{},Je=new WeakMap,io=/auto|scroll/,lu=/^tb|vertical/,uu=/msie|trident/i.test(be.navigator&&be.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},Jt=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new au((n?e:t)||0,(n?t:e)||0)},ro=Rt({devicePixelContentBoxSize:Jt(),borderBoxSize:Jt(),contentBoxSize:Jt(),contentRect:new to(0,0,0,0)}),oo=function(t,e){if(e===void 0&&(e=!1),Je.has(t)&&!e)return Je.get(t);if(eo(t))return Je.set(t,ro),ro;var n=getComputedStyle(t),i=fi(t)&&t.ownerSVGElement&&t.getBBox(),r=!uu&&n.boxSizing==="border-box",o=lu.test(n.writingMode||""),s=!i&&io.test(n.overflowY||""),a=!i&&io.test(n.overflowX||""),c=i?0:ht(n.paddingTop),l=i?0:ht(n.paddingRight),f=i?0:ht(n.paddingBottom),u=i?0:ht(n.paddingLeft),h=i?0:ht(n.borderTopWidth),d=i?0:ht(n.borderRightWidth),g=i?0:ht(n.borderBottomWidth),p=i?0:ht(n.borderLeftWidth),_=u+l,v=c+f,x=p+d,y=h+g,T=a?t.offsetHeight-y-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,b=r?_+x:0,S=r?v+y:0,L=i?i.width:ht(n.width)-b-k,F=i?i.height:ht(n.height)-S-T,et=L+_+k+x,C=F+v+T+y,P=Rt({devicePixelContentBoxSize:Jt(Math.round(L*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:Jt(et,C,o),contentBoxSize:Jt(L,F,o),contentRect:new to(u,c,L,F)});return Je.set(t,P),P},so=function(t,e,n){var i=oo(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case we.DEVICE_PIXEL_CONTENT_BOX:return s;case we.BORDER_BOX:return r;default:return o}},fu=function(){function t(e){var n=oo(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Rt([n.borderBoxSize]),this.contentBoxSize=Rt([n.contentBoxSize]),this.devicePixelContentBoxSize=Rt([n.devicePixelContentBoxSize])}return t}(),ao=function(t){if(eo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},hu=function(){var t=1/0,e=[];Dt.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(l){var f=new fu(l.target),u=ao(l.target);a.push(f),l.lastReportedSize=so(l.target,l.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},co=function(t){Dt.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))})})},du=function(){var t=0;for(co(t);ru();)t=hu(),co(t);return ou()&&su(),t>0},hi,lo=[],pu=function(){return lo.splice(0).forEach(function(t){return t()})},gu=function(t){if(!hi){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return pu()}).observe(n,i),hi=function(){n.textContent="".concat(e?e--:e++)}}lo.push(t),hi()},_u=function(t){gu(function(){requestAnimationFrame(t)})},Ke=0,mu=function(){return!!Ke},vu=250,yu={attributes:!0,characterData:!0,childList:!0,subtree:!0},uo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],fo=function(t){return t===void 0&&(t=0),Date.now()+t},di=!1,xu=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=vu),!di){di=!0;var i=fo(e);_u(function(){var r=!1;try{r=du()}finally{if(di=!1,e=i-fo(),!mu())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,yu)};document.body?n():be.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uo.forEach(function(n){return be.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),uo.forEach(function(n){return be.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),pi=new xu,ho=function(t){!Ke&&t>0&&pi.start(),Ke+=t,!Ke&&pi.stop()},wu=function(t){return!fi(t)&&!cu(t)&&getComputedStyle(t).display==="inline"},bu=function(){function t(e,n){this.target=e,this.observedBox=n||we.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=so(this.target,this.observedBox,!0);return wu(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),ku=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),tn=new WeakMap,po=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},en=function(){function t(){}return t.connect=function(e,n){var i=new ku(e,n);tn.set(e,i)},t.observe=function(e,n,i){var r=tn.get(e),o=r.observationTargets.length===0;po(r.observationTargets,n)<0&&(o&&Dt.push(r),r.observationTargets.push(new bu(n,i&&i.box)),ho(1),pi.schedule())},t.unobserve=function(e,n){var i=tn.get(e),r=po(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&Dt.splice(Dt.indexOf(i),1),i.observationTargets.splice(r,1),ho(-1))},t.disconnect=function(e){var n=this,i=tn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),Tu=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.");en.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(!no(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");en.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(!no(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");en.unobserve(this,e)},t.prototype.disconnect=function(){en.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Su=globalThis.ResizeObserver||Tu,go={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Zt.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class ke{constructor(e){this._defaultConfig=go,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Mt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",ke.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=ye(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;Mt(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||ke.DEFAULT_CONTAINER_HEIGHT}get width(){return Qt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Qt(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===Zt.Fit||e.sizing===Zt.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 Su((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!ve(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()}}ke.DEFAULT_CONTAINER_HEIGHT=300;function Mu(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 Cu(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 Au=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(Cu(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Mu(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-",nn="-moz-",O="-webkit-",_o="comm",gi="rule",_i="decl",$u="@import",mo="@keyframes",Eu="@layer",Nu=Math.abs,rn=String.fromCharCode,Ou=Object.assign;function Du(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 vo(t){return t.trim()}function Ru(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,n){return t.replace(e,n)}function mi(t,e){return t.indexOf(e)}function q(t,e){return t.charCodeAt(e)|0}function Te(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function vi(t){return t.length}function on(t,e){return e.push(t),t}function Fu(t,e){return t.map(e).join("")}var sn=1,Kt=1,yo=0,Z=0,U=0,te="";function an(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:sn,column:Kt,length:s,return:""}}function Se(t,e){return Ou(an("",null,null,"",null,null,0),t,{length:-t.length},e)}function Bu(){return U}function Lu(){return U=Z>0?q(te,--Z):0,Kt--,U===10&&(Kt=1,sn--),U}function tt(){return U=Z<yo?q(te,Z++):0,Kt++,U===10&&(Kt=1,sn++),U}function pt(){return q(te,Z)}function cn(){return Z}function Me(t,e){return Te(te,t,e)}function Ce(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 xo(t){return sn=Kt=1,yo=dt(te=t),Z=0,[]}function wo(t){return te="",t}function ln(t){return vo(Me(Z-1,yi(t===91?t+2:t===40?t+1:t)))}function Iu(t){for(;(U=pt())&&U<33;)tt();return Ce(t)>2||Ce(U)>3?"":" "}function zu(t,e){for(;--e&&tt()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Me(t,cn()+(e<6&&pt()==32&&tt()==32))}function yi(t){for(;tt();)switch(U){case t:return Z;case 34:case 39:t!==34&&t!==39&&yi(U);break;case 40:t===41&&yi(t);break;case 92:tt();break}return Z}function Pu(t,e){for(;tt()&&t+U!==57;)if(t+U===84&&pt()===47)break;return"/*"+Me(e,Z-1)+"*"+rn(t===47?t:tt())}function Uu(t){for(;!Ce(pt());)tt();return Me(t,Z)}function Hu(t){return wo(un("",null,null,null,[""],t=xo(t),0,[0],t))}function un(t,e,n,i,r,o,s,a,c){for(var l=0,f=0,u=s,h=0,d=0,g=0,p=1,_=1,v=1,x=0,y="",T=r,k=o,b=i,S=y;_;)switch(g=x,x=tt()){case 40:if(g!=108&&q(S,u-1)==58){mi(S+=D(ln(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=ln(x);break;case 9:case 10:case 13:case 32:S+=Iu(g);break;case 92:S+=zu(cn()-1,7);continue;case 47:switch(pt()){case 42:case 47:on(Yu(Pu(tt(),cn()),e,n),c);break;default:S+="/"}break;case 123*p:a[l++]=dt(S)*v;case 125*p:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+f:v==-1&&(S=D(S,/\f/g,"")),d>0&&dt(S)-u&&on(d>32?ko(S+";",i,n,u-1):ko(D(S," ","")+";",i,n,u-2),c);break;case 59:S+=";";default:if(on(b=bo(S,e,n,l,f,r,a,y,T=[],k=[],u),o),x===123)if(f===0)un(S,e,b,b,T,o,u,a,k);else switch(h===99&&q(S,3)===110?100:h){case 100:case 108:case 109:case 115:un(t,b,b,i&&on(bo(t,b,b,0,0,r,a,y,r,T=[],u),k),r,k,u,a,i?T:k);break;default:un(S,b,b,b,[""],k,0,a,k)}}l=f=d=0,p=v=1,y=S="",u=s;break;case 58:u=1+dt(S),d=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&Lu()==125)continue}switch(S+=rn(x),x*p){case 38:v=f>0?1:(S+="\f",-1);break;case 44:a[l++]=(dt(S)-1)*v,v=1;break;case 64:pt()===45&&(S+=ln(tt())),h=pt(),f=u=dt(y=S+=Uu(cn())),x++;break;case 45:g===45&&dt(S)==2&&(p=0)}}return o}function bo(t,e,n,i,r,o,s,a,c,l,f){for(var u=r-1,h=r===0?o:[""],d=vi(h),g=0,p=0,_=0;g<i;++g)for(var v=0,x=Te(t,u+1,u=Nu(p=s[g])),y=t;v<d;++v)(y=vo(p>0?h[v]+" "+x:D(x,/&\f/g,h[v])))&&(c[_++]=y);return an(t,e,n,r===0?gi:a,c,l,f)}function Yu(t,e,n){return an(t,e,n,_o,rn(Bu()),Te(t,2,-2),0)}function ko(t,e,n,i){return an(t,e,n,_i,Te(t,0,i),Te(t,i+1,-1),i)}function ee(t,e){for(var n="",i=vi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Vu(t,e,n,i){switch(t.type){case Eu:if(t.children.length)break;case $u:case _i:return t.return=t.return||t.value;case _o:return"";case mo:return t.return=t.value+"{"+ee(t.children,i)+"}";case gi:t.value=t.props.join(",")}return dt(n=ee(t.children,i))?t.return=t.value+"{"+n+"}":""}function Wu(t){var e=vi(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 Xu(t){return function(e){e.root||(e=e.return)&&t(e)}}function qu(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Gu=function(e,n,i){for(var r=0,o=0;r=o,o=pt(),r===38&&o===12&&(n[i]=1),!Ce(o);)tt();return Me(e,Z)},Zu=function(e,n){var i=-1,r=44;do switch(Ce(r)){case 0:r===38&&pt()===12&&(n[i]=1),e[i]+=Gu(Z-1,n,i);break;case 2:e[i]+=ln(r);break;case 4:if(r===44){e[++i]=pt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=rn(r)}while(r=tt());return e},ju=function(e,n){return wo(Zu(xo(e),n))},To=new WeakMap,Qu=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&&!To.get(i))&&!r){To.set(e,!0);for(var o=[],s=ju(n,o),a=i.props,c=0,l=0;c<s.length;c++)for(var f=0;f<a.length;f++,l++)e.props[l]=o[c]?s[c].replace(/&\f/g,a[f]):a[f]+" "+s[c]}}},Ju=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function So(t,e){switch(Du(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+nn+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(dt(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"+nn+(q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~mi(t,"stretch")?So(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(q(t,e+1)!==115)break;case 6444:switch(q(t,dt(t)-3-(~mi(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 Ku=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case _i:e.return=So(e.value,e.length);break;case mo:return ee([Se(e,{value:D(e.value,"@","@"+O)})],r);case gi:if(e.length)return Fu(e.props,function(o){switch(Ru(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ee([Se(e,{props:[D(o,/:(read-\w+)/,":"+nn+"$1")]})],r);case"::placeholder":return ee([Se(e,{props:[D(o,/:(plac\w+)/,":"+O+"input-$1")]}),Se(e,{props:[D(o,/:(plac\w+)/,":"+nn+"$1")]}),Se(e,{props:[D(o,/:(plac\w+)/,G+"input-$1")]})],r)}return""})}},tf=[Ku],ef=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||tf,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 c,l=[Qu,Ju];{var f,u=[Vu,Xu(function(p){f.insert(p)})],h=Wu(l.concat(r,u)),d=function(_){return ee(Hu(_),h)};c=function(_,v,x,y){f=x,d(_?_+"{"+v.styles+"}":v.styles),y&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new Au({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return g.sheet.hydrate(a),g};function nf(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 rf={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},of=/[A-Z]|^ms/g,sf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mo=function(e){return e.charCodeAt(1)===45},Co=function(e){return e!=null&&typeof e!="boolean"},xi=qu(function(t){return Mo(t)?t:t.replace(of,"-$&").toLowerCase()}),Ao=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(sf,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return rf[e]!==1&&!Mo(e)&&typeof n=="number"&&n!==0?n+"px":n};function fn(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 Ct={name:r.name,styles:r.styles,next:Ct},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=o.styles+";";return a}return af(t,e,n)}}var c=n;if(e==null)return c;var l=e[c];return l!==void 0?l:c}function af(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=fn(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]+"}":Co(a)&&(i+=xi(o)+":"+Ao(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var c=0;c<s.length;c++)Co(s[c])&&(i+=xi(o)+":"+Ao(o,s[c])+";");else{var l=fn(t,e,s);switch(o){case"animation":case"animationName":{i+=xi(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}return i}var $o=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function wi(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="";Ct=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=fn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=fn(n,e,t[a]),i){var c=o;r+=c[a]}$o.lastIndex=0;for(var l="",f;(f=$o.exec(r))!==null;)l+="-"+f[1];var u=nf(r)+l;return{name:u,styles:r,next:Ct}}function Eo(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var cf=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},lf=function(e,n,i){cf(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 No(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Oo(t,e,n){var i=[],r=Eo(t,i,n);return i.length<2?n:r+e(i)}var uf=function(e){var n=ef(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];var u=wi(l,n.registered,void 0);return lf(n,u),n.key+"-"+u.name},r=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];var u=wi(l,n.registered),h="animation-"+u.name;return No(n,{name:u.name,styles:"@keyframes "+h+"{"+u.styles+"}"}),h},o=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];var u=wi(l,n.registered);No(n,u)},s=function(){for(var c=arguments.length,l=new Array(c),f=0;f<c;f++)l[f]=arguments[f];return Oo(n.registered,i,ff(l))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(c){c.forEach(function(l){n.inserted[l]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Eo.bind(null,n.registered),merge:Oo.bind(null,n.registered,i)}},ff=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},Do=uf({key:"css"}),hn=Do.injectGlobal,V=Do.css;function hf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bi,Ro;function df(){return Ro||(Ro=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 ki,Fo;function pf(){if(Fo)return ki;Fo=1;var t=df();ki=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 c=n(a,"height")/128;return s.removeChild(a),c}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 c=r(a[1],s);return typeof c=="number"?a[0]*c:null}return null}return ki}pf();function Bo(){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 gf(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function _f(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,c,l,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<f||c<s||o<a||l<i)}function Ti(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Lo(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Ae(){}var $e=.7,dn=1/$e,ne="\\s*([+-]?\\d+)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mf=/^#([0-9a-f]{3,8})$/,vf=new RegExp(`^rgb\\(${ne},${ne},${ne}\\)$`),yf=new RegExp(`^rgb\\(${gt},${gt},${gt}\\)$`),xf=new RegExp(`^rgba\\(${ne},${ne},${ne},${Ee}\\)$`),wf=new RegExp(`^rgba\\(${gt},${gt},${gt},${Ee}\\)$`),bf=new RegExp(`^hsl\\(${Ee},${gt},${gt}\\)$`),kf=new RegExp(`^hsla\\(${Ee},${gt},${gt},${Ee}\\)$`),Io={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};Ti(Ae,Ft,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zo,formatHex:zo,formatHex8:Tf,formatHsl:Sf,formatRgb:Po,toString:Po});function zo(){return this.rgb().formatHex()}function Tf(){return this.rgb().formatHex8()}function Sf(){return Wo(this).formatHsl()}function Po(){return this.rgb().formatRgb()}function Ft(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=mf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Uo(e):n===3?new j(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?pn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?pn(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=vf.exec(t))?new j(e[1],e[2],e[3],1):(e=yf.exec(t))?new j(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=xf.exec(t))?pn(e[1],e[2],e[3],e[4]):(e=wf.exec(t))?pn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=bf.exec(t))?Vo(e[1],e[2]/100,e[3]/100,1):(e=kf.exec(t))?Vo(e[1],e[2]/100,e[3]/100,e[4]):Io.hasOwnProperty(t)?Uo(Io[t]):t==="transparent"?new j(NaN,NaN,NaN,0):null}function Uo(t){return new j(t>>16&255,t>>8&255,t&255,1)}function pn(t,e,n,i){return i<=0&&(t=e=n=NaN),new j(t,e,n,i)}function Mf(t){return t instanceof Ae||(t=Ft(t)),t?(t=t.rgb(),new j(t.r,t.g,t.b,t.opacity)):new j}function Si(t,e,n,i){return arguments.length===1?Mf(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}Ti(j,Si,Lo(Ae,{brighter(t){return t=t==null?dn:Math.pow(dn,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?$e:Math.pow($e,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new j(Bt(this.r),Bt(this.g),Bt(this.b),gn(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:Ho,formatHex:Ho,formatHex8:Cf,formatRgb:Yo,toString:Yo}));function Ho(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}`}function Cf(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}${Lt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yo(){const t=gn(this.opacity);return`${t===1?"rgb(":"rgba("}${Bt(this.r)}, ${Bt(this.g)}, ${Bt(this.b)}${t===1?")":`, ${t})`}`}function gn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Lt(t){return t=Bt(t),(t<16?"0":"")+t.toString(16)}function Vo(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,i)}function Wo(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof Ae||(t=Ft(t)),!t)return new st;if(t instanceof st)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,c=(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/=c<.5?o+r:2-o-r,s*=60):a=c>0&&c<1?0:s,new st(s,a,c,t.opacity)}function Mi(t,e,n,i){return arguments.length===1?Wo(t):new st(t,e,n,i??1)}function st(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Ti(st,Mi,Lo(Ae,{brighter(t){return t=t==null?dn:Math.pow(dn,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?$e:Math.pow($e,t),new st(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(Ci(t>=240?t-240:t+120,r,i),Ci(t,r,i),Ci(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new st(Xo(this.h),_n(this.s),_n(this.l),gn(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=gn(this.opacity);return`${t===1?"hsl(":"hsla("}${Xo(this.h)}, ${_n(this.s)*100}%, ${_n(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Xo(t){return t=(t||0)%360,t<0?t+360:t}function _n(t){return Math.max(0,Math.min(1,t||0))}function Ci(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 Ne=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Af=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],At=t=>`--vis-${Ot(t)?`color${t%Ne.length}`:t}`;function $f(t,e=.4){const n=Mi(t);return n.l=n.l*(1+e),n.formatHex()}function Ef(t,e=.4,n=.6){const i=Mi(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const mn=10,Ai=[{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"/>'}],$i=[{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 $t(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const Nf=t=>`<mask id="${$t(t)}">
|
|
2
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${mn}" height="${mn}" patternUnits="userSpaceOnUse">
|
|
3
|
-
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
|
-
${t.svg}
|
|
5
|
-
</pattern>
|
|
6
|
-
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
|
|
7
|
-
</mask>`,Of=(t,e)=>`<marker id="${$t(t)}"
|
|
8
|
-
fill="var(${At(e)})"
|
|
9
|
-
markerUnits="userSpaceOnUse"
|
|
10
|
-
refX="5"
|
|
11
|
-
refY="5"
|
|
12
|
-
markerWidth="${mn}"
|
|
13
|
-
markerHeight="${mn}">
|
|
14
|
-
${t.marker}
|
|
15
|
-
</marker>`;function Df(){const t=Ai.map(Nf).concat($i.map(Of)).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"&&Df();const qo=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,Go=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],Zo=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",jo=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};hn`
|
|
16
|
-
:root {
|
|
17
|
-
label: vis-root-styles;
|
|
18
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${qo};
|
|
20
|
-
--vis-color-main: var(${At(0)});
|
|
21
|
-
--vis-color-main-light: ${$f(Ne[0])};
|
|
22
|
-
--vis-color-main-dark: ${Ef(Ne[0])};
|
|
23
|
-
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${Ne.map((t,e)=>`${At(e)}: ${t};`)}
|
|
25
|
-
${Af.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
-
${Ai.map((t,e)=>`
|
|
27
|
-
--${$t(t)}: url(#${$t(t)});
|
|
28
|
-
--vis-pattern-fill${e}: var(--${$t(t)});
|
|
29
|
-
`)}
|
|
30
|
-
${$i.map((t,e)=>{var n;return`
|
|
31
|
-
--${$t(t)}: url(#${$t(t)});
|
|
32
|
-
--vis-pattern-marker${e}: var(--${$t(t)});
|
|
33
|
-
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
|
-
`})}
|
|
35
|
-
|
|
36
|
-
body.theme-dark {
|
|
37
|
-
${Ne.map((t,e)=>`${At(e)}: var(--vis-dark-color${e});`)}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
body.theme-patterns {
|
|
41
|
-
${Ai.map((t,e)=>`path[style*="fill: var(${At(e)})"] {
|
|
42
|
-
mask: var(--vis-pattern-fill${e});
|
|
43
|
-
}`)}
|
|
44
|
-
${$i.map((t,e)=>`
|
|
45
|
-
path[stroke="var(${At(e)})"]:not([style*="fill"]),
|
|
46
|
-
path[style*="stroke: var(${At(e)})"]:not([style*="fill"]) {
|
|
47
|
-
marker: var(--vis-pattern-marker${e});
|
|
48
|
-
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
|
-
}
|
|
50
|
-
`)}
|
|
51
|
-
}
|
|
52
|
-
`;function Rf(t=window==null?void 0:window.document.body){return t?+gf("var(--vis-font-wh-ratio)",t):qo}var Ff={value:()=>{}};function Qo(){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 vn(n)}function vn(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}})}vn.prototype=Qo.prototype={constructor:vn,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=Lf(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]=Jo(n[r],t.name,e);else if(e==null)for(r in n)n[r]=Jo(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 vn(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 Lf(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function Jo(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Ff,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var ie=0,Oe=0,De=0,Ko=1e3,yn,Re,xn=0,It=0,wn=0,Fe=typeof performance=="object"&&performance.now?performance:Date,ts=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ei(){return It||(ts(If),It=Fe.now()+wn)}function If(){It=0}function bn(){this._call=this._time=this._next=null}bn.prototype=es.prototype={constructor:bn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ei():+n)+(e==null?0:+e),!this._next&&Re!==this&&(Re?Re._next=this:yn=this,Re=this),this._call=t,this._time=n,Ni()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ni())}};function es(t,e,n){var i=new bn;return i.restart(t,e,n),i}function zf(){Ei(),++ie;for(var t=yn,e;t;)(e=It-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ie}function ns(){It=(xn=Fe.now())+wn,ie=Oe=0;try{zf()}finally{ie=0,Uf(),It=0}}function Pf(){var t=Fe.now(),e=t-xn;e>Ko&&(wn-=e,xn=t)}function Uf(){for(var t,e=yn,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:yn=n);Re=t,Ni(i)}function Ni(t){if(!ie){Oe&&(Oe=clearTimeout(Oe));var e=t-It;e>24?(t<1/0&&(Oe=setTimeout(ns,t-Fe.now()-wn)),De&&(De=clearInterval(De))):(De||(xn=Fe.now(),De=setInterval(Pf,Ko)),ie=1,ts(ns))}}function is(t,e,n){var i=new bn;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var Hf=Qo("start","end","cancel","interrupt"),Yf=[],rs=0,os=1,Oi=2,kn=3,ss=4,Di=5,Tn=6;function Sn(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Vf(t,n,{name:e,index:i,group:r,on:Hf,tween:Yf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:rs})}function Ri(t,e){var n=at(t,e);if(n.state>rs)throw new Error("too late; already scheduled");return n}function _t(t,e){var n=at(t,e);if(n.state>kn)throw new Error("too late; already running");return n}function at(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Vf(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=es(o,0,n.time);function o(l){n.state=os,n.timer.restart(s,n.delay,n.time),n.delay<=l&&s(l-n.delay)}function s(l){var f,u,h,d;if(n.state!==os)return c();for(f in i)if(d=i[f],d.name===n.name){if(d.state===kn)return is(s);d.state===ss?(d.state=Tn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[f]):+f<e&&(d.state=Tn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[f])}if(is(function(){n.state===kn&&(n.state=ss,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=Oi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Oi){for(n.state=kn,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(l){for(var f=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=Di,1),u=-1,h=r.length;++u<h;)r[u].call(t,f);n.state===Di&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=Tn,n.timer.stop(),delete i[e];for(var l in i)return;delete t.__transition}}function Fi(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>Oi&&i.state<Di,i.state=Tn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function Wf(t){return this.each(function(){Fi(this,t)})}const Bi=t=>()=>t;function Xf(t,e){return function(n){return t+n*e}}function qf(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 Gf(t){return(t=+t)==1?as:function(e,n){return n-e?qf(e,n,t):Bi(isNaN(e)?n:e)}}function as(t,e){var n=e-t;return n?Xf(t,n):Bi(isNaN(t)?e:t)}const Mn=function t(e){var n=Gf(e);function i(r,o){var s=n((r=Si(r)).r,(o=Si(o)).r),a=n(r.g,o.g),c=n(r.b,o.b),l=as(r.opacity,o.opacity);return function(f){return r.r=s(f),r.g=a(f),r.b=c(f),r.opacity=l(f),r+""}}return i.gamma=t,i}(1);function Zf(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 jf(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Qf(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]=re(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 Jf(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function ct(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Kf(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]=re(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var Li=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ii=new RegExp(Li.source,"g");function th(t){return function(){return t}}function eh(t){return function(e){return t(e)+""}}function cs(t,e){var n=Li.lastIndex=Ii.lastIndex=0,i,r,o,s=-1,a=[],c=[];for(t=t+"",e=e+"";(i=Li.exec(t))&&(r=Ii.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,c.push({i:s,x:ct(i,r)})),n=Ii.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?c[0]?eh(c[0].x):th(e):(e=c.length,function(l){for(var f=0,u;f<e;++f)a[(u=c[f]).i]=u.x(l);return a.join("")})}function re(t,e){var n=typeof e,i;return e==null||n==="boolean"?Bi(e):(n==="number"?ct:n==="string"?(i=Ft(e))?(e=i,Mn):cs:e instanceof Ft?Mn:e instanceof Date?Jf:jf(e)?Zf:Array.isArray(e)?Qf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Kf:ct)(t,e)}function zi(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ls=180/Math.PI,Pi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function us(t,e,n,i,r,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ls,skewX:Math.atan(c)*ls,scaleX:s,scaleY:a}}var Cn;function nh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Pi:us(e.a,e.b,e.c,e.d,e.e,e.f)}function ih(t){return t==null||(Cn||(Cn=document.createElementNS("http://www.w3.org/2000/svg","g")),Cn.setAttribute("transform",t),!(t=Cn.transform.baseVal.consolidate()))?Pi:(t=t.matrix,us(t.a,t.b,t.c,t.d,t.e,t.f))}function fs(t,e,n,i){function r(l){return l.length?l.pop()+" ":""}function o(l,f,u,h,d,g){if(l!==u||f!==h){var p=d.push("translate(",null,e,null,n);g.push({i:p-4,x:ct(l,u)},{i:p-2,x:ct(f,h)})}else(u||h)&&d.push("translate("+u+e+h+n)}function s(l,f,u,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:u.push(r(u)+"rotate(",null,i)-2,x:ct(l,f)})):f&&u.push(r(u)+"rotate("+f+i)}function a(l,f,u,h){l!==f?h.push({i:u.push(r(u)+"skewX(",null,i)-2,x:ct(l,f)}):f&&u.push(r(u)+"skewX("+f+i)}function c(l,f,u,h,d,g){if(l!==u||f!==h){var p=d.push(r(d)+"scale(",null,",",null,")");g.push({i:p-4,x:ct(l,u)},{i:p-2,x:ct(f,h)})}else(u!==1||h!==1)&&d.push(r(d)+"scale("+u+","+h+")")}return function(l,f){var u=[],h=[];return l=t(l),f=t(f),o(l.translateX,l.translateY,f.translateX,f.translateY,u,h),s(l.rotate,f.rotate,u,h),a(l.skewX,f.skewX,u,h),c(l.scaleX,l.scaleY,f.scaleX,f.scaleY,u,h),l=f=null,function(d){for(var g=-1,p=h.length,_;++g<p;)u[(_=h[g]).i]=_.x(d);return u.join("")}}}var rh=fs(nh,"px, ","px)","deg)"),oh=fs(ih,", ",")",")");function sh(t,e){e===void 0&&(e=t,t=re);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 ah(t,e){var n,i;return function(){var r=_t(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 ch(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=_t(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===e){r[c]=a;break}c===l&&r.push(a)}o.tween=r}}function lh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=at(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?ah:ch)(n,t,e))}function Ui(t,e,n){var i=t._id;return t.each(function(){var r=_t(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return at(r,i).value[e]}}function hs(t,e){var n;return(typeof e=="number"?ct:e instanceof Ft?Mn:(n=Ft(e))?(e=n,Mn):cs)(t,e)}function uh(t){return function(){this.removeAttribute(t)}}function fh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hh(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 dh(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 ph(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function gh(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function _h(t,e){var n=Xe(t),i=n==="transform"?oh:hs;return this.attrTween(t,typeof e=="function"?(n.local?gh:ph)(n,i,Ui(this,"attr."+t,e)):e==null?(n.local?fh:uh)(n):(n.local?dh:hh)(n,i,e))}function mh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function vh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function yh(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&vh(t,o)),n}return r._value=e,r}function xh(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&mh(t,o)),n}return r._value=e,r}function wh(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=Xe(t);return this.tween(n,(i.local?yh:xh)(i,e))}function bh(t,e){return function(){Ri(this,t).delay=+e.apply(this,arguments)}}function kh(t,e){return e=+e,function(){Ri(this,t).delay=e}}function Th(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:kh)(e,t)):at(this.node(),e).delay}function Sh(t,e){return function(){_t(this,t).duration=+e.apply(this,arguments)}}function Mh(t,e){return e=+e,function(){_t(this,t).duration=e}}function Ch(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Sh:Mh)(e,t)):at(this.node(),e).duration}function Ah(t,e){if(typeof e!="function")throw new Error;return function(){_t(this,t).ease=e}}function $h(t){var e=this._id;return arguments.length?this.each(Ah(e,t)):at(this.node(),e).ease}function Eh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;_t(this,t).ease=n}}function Nh(t){if(typeof t!="function")throw new Error;return this.each(Eh(this._id,t))}function Oh(t){typeof t!="function"&&(t=Rr(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]=[],c,l=0;l<s;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new vt(i,this._parents,this._name,this._id)}function Dh(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 c=e[a],l=n[a],f=c.length,u=s[a]=new Array(f),h,d=0;d<f;++d)(h=c[d]||l[d])&&(u[d]=h);for(;a<i;++a)s[a]=e[a];return new vt(s,this._parents,this._name,this._id)}function Rh(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 Fh(t,e,n){var i,r,o=Rh(e)?Ri:_t;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function Bh(t,e){var n=this._id;return arguments.length<2?at(this.node(),n).on.on(t):this.each(Fh(n,t,e))}function Lh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Ih(){return this.on("end.remove",Lh(this._id))}function zh(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ei(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],c=a.length,l=o[s]=new Array(c),f,u,h=0;h<c;++h)(f=a[h])&&(u=t.call(f,f.__data__,h,a))&&("__data__"in f&&(u.__data__=f.__data__),l[h]=u,Sn(l[h],e,n,h,l,at(f,n)));return new vt(o,this._parents,e,n)}function Ph(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Dr(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var c=i[a],l=c.length,f,u=0;u<l;++u)if(f=c[u]){for(var h=t.call(f,f.__data__,u,c),d,g=at(f,n),p=0,_=h.length;p<_;++p)(d=h[p])&&Sn(d,e,n,p,h,g);o.push(h),s.push(f)}return new vt(o,s,e,n)}var Uh=ge.prototype.constructor;function Hh(){return new Uh(this._groups,this._parents)}function Yh(t,e){var n,i,r;return function(){var o=Gt(this,t),s=(this.style.removeProperty(t),Gt(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 Vh(t,e,n){var i,r=n+"",o;return function(){var s=Gt(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function Wh(t,e,n){var i,r,o;return function(){var s=Gt(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),Gt(this,t))),s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a))}}function Xh(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var c=_t(this,t),l=c.on,f=c.value[o]==null?a||(a=ds(e)):void 0;(l!==n||r!==f)&&(i=(n=l).copy()).on(s,r=f),c.on=i}}function qh(t,e,n){var i=(t+="")=="transform"?rh:hs;return e==null?this.styleTween(t,Yh(t,i)).on("end.style."+t,ds(t)):typeof e=="function"?this.styleTween(t,Wh(t,i,Ui(this,"style."+t,e))).each(Xh(this._id,t)):this.styleTween(t,Vh(t,i,e),n).on("end.style."+t,null)}function Gh(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Zh(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Gh(t,s,n)),i}return o._value=e,o}function jh(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,Zh(t,e,n??""))}function Qh(t){return function(){this.textContent=t}}function Jh(t){return function(){var e=t(this);this.textContent=e??""}}function Kh(t){return this.tween("text",typeof t=="function"?Jh(Ui(this,"text",t)):Qh(t==null?"":t+""))}function td(t){return function(e){this.textContent=t.call(this,e)}}function ed(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&td(r)),e}return i._value=t,i}function nd(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,ed(t))}function id(){for(var t=this._name,e=this._id,n=ps(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,c,l=0;l<a;++l)if(c=s[l]){var f=at(c,e);Sn(c,t,n,l,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new vt(i,this._parents,t,n)}function rd(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},c={value:function(){--r===0&&o()}};n.each(function(){var l=_t(this,i),f=l.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),l.on=e}),r===0&&o()})}var od=0;function vt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ps(){return++od}var yt=ge.prototype;vt.prototype={constructor:vt,select:zh,selectAll:Ph,selectChild:yt.selectChild,selectChildren:yt.selectChildren,filter:Oh,merge:Dh,selection:Hh,transition:id,call:yt.call,nodes:yt.nodes,node:yt.node,size:yt.size,empty:yt.empty,each:yt.each,on:Bh,attr:_h,attrTween:wh,style:qh,styleTween:jh,text:Kh,textTween:nd,remove:Ih,tween:lh,delay:Th,duration:Ch,ease:$h,easeVarying:Nh,end:rd,[Symbol.iterator]:yt[Symbol.iterator]};function sd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ad={time:null,delay:0,duration:250,ease:sd};function cd(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 ld(t){var e,n;t instanceof vt?(e=t._id,t=t._name):(e=ps(),(n=ad).time=Ei(),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,c,l=0;l<a;++l)(c=s[l])&&Sn(c,t,e,l,s,n||cd(c,e));return new vt(i,this._parents,t,e)}ge.prototype.interrupt=Wf,ge.prototype.transition=ld;function xt(t,e,n){return t.nodes().forEach(i=>Fi(i)),e?t.transition().duration(e):t}class Hi{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var R;(function(t){t.X="x",t.Y="y"})(R||(R={}));function lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function gs(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 _s=Symbol("implicit");function Yi(){var t=new Wr,e=[],n=[],i=_s;function r(o){let s=t.get(o);if(s===void 0){if(i!==_s)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 Wr;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 Yi(e,n).unknown(i)},lt.apply(r,arguments),r}function Vi(){var t=Yi().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,c=0,l=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-c+l*2),a&&(o=Math.floor(o)),g+=(p-g-o*(h-c))*f,s=o*(1-c),a&&(g=Math.round(g),s=Math.round(s));var _=jl(h).map(function(v){return g+o*v});return n(d?_.reverse():_)}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?(c=Math.min(1,l=+h),u()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),u()):c},t.paddingOuter=function(h){return arguments.length?(l=+h,u()):l},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),u()):f},t.copy=function(){return Vi(e(),[i,r]).round(a).paddingInner(c).paddingOuter(l).align(f)},lt.apply(u(),arguments)}function ms(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ms(e())},t}function ud(){return ms(Vi.apply(null,arguments).paddingInner(1))}function fd(t){return function(){return t}}function Wi(t){return+t}var vs=[0,1];function Q(t){return t}function Xi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:fd(isNaN(e)?NaN:.5)}function hd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function dd(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Xi(r,i),o=n(s,o)):(i=Xi(i,r),o=n(o,s)),function(a){return o(i(a))}}function pd(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]=Xi(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var c=Ge(t,a,1,i)-1;return o[c](r[c](a))}}function Be(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function An(){var t=vs,e=vs,n=re,i,r,o,s=Q,a,c,l;function f(){var h=Math.min(t.length,e.length);return s!==Q&&(s=hd(t[0],t[h-1])),a=h>2?pd:dd,c=l=null,u}function u(h){return h==null||isNaN(h=+h)?o:(c||(c=a(t.map(i),e,n)))(i(s(h)))}return u.invert=function(h){return s(r((l||(l=a(e,t.map(i),ct)))(h)))},u.domain=function(h){return arguments.length?(t=Array.from(h,Wi),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=zi,f()},u.clamp=function(h){return arguments.length?(s=h?!0:Q,f()):s!==Q},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 ys(){return An()(Q,Q)}function gd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function $n(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 oe(t){return t=$n(Math.abs(t)),t?t[1]:NaN}function _d(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),o.push(n.substring(r-=a,r+a)),!((c+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function md(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var vd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Le(t){if(!(e=vd.exec(t)))throw new Error("invalid format: "+t);var e;return new qi({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]})}Le.prototype=qi.prototype;function qi(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+""}qi.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 yd(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 xs;function xd(t,e){var n=$n(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(xs=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")+$n(t,Math.max(0,e+o-1))[0]}function ws(t,e){var n=$n(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 bs={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:gd,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)=>ws(t*100,e),r:ws,s:xd,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ks(t){return t}var Ts=Array.prototype.map,Ss=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wd(t){var e=t.grouping===void 0||t.thousands===void 0?ks:_d(Ts.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?ks:md(Ts.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(u){u=Le(u);var h=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"):bs[k]||(y===void 0&&(y=12),T=!0,k="g"),(_||h==="0"&&d==="=")&&(_=!0,h="0",d="=");var b=p==="$"?n:p==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",S=p==="$"?i:/[%p]/.test(k)?s:"",L=bs[k],F=/[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 et(C){var P=b,Y=S,Nt,Kn,he;if(k==="c")Y=L(C)+Y,C="";else{C=+C;var de=C<0||1/C<0;if(C=isNaN(C)?c:L(Math.abs(C),y),T&&(C=yd(C)),de&&+C==0&&g!=="+"&&(de=!1),P=(de?g==="("?g:a:g==="-"||g==="("?"":g)+P,Y=(k==="s"?Ss[8+xs/3]:"")+Y+(de&&g==="("?")":""),F){for(Nt=-1,Kn=C.length;++Nt<Kn;)if(he=C.charCodeAt(Nt),48>he||he>57){Y=(he===46?r+C.slice(Nt+1):C.slice(Nt))+Y,C=C.slice(0,Nt);break}}}x&&!_&&(C=e(C,1/0));var pe=P.length+C.length+Y.length,ft=pe<v?new Array(v-pe+1).join(h):"";switch(x&&_&&(C=e(ft+C,ft.length?v-Y.length:1/0),ft=""),d){case"<":C=P+C+Y+ft;break;case"=":C=P+ft+C+Y;break;case"^":C=ft.slice(0,pe=ft.length>>1)+P+C+Y+ft.slice(pe);break;default:C=ft+P+C+Y;break}return o(C)}return et.toString=function(){return u+""},et}function f(u,h){var d=l((u=Le(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(oe(h)/3)))*3,p=Math.pow(10,-g),_=Ss[8+g/3];return function(v){return d(p*v)+_}}return{format:l,formatPrefix:f}}var En,Gi,Ms;bd({thousands:",",grouping:[3],currency:["$",""]});function bd(t){return En=wd(t),Gi=En.format,Ms=En.formatPrefix,En}function kd(t){return Math.max(0,-oe(Math.abs(t)))}function Td(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(oe(e)/3)))*3-oe(Math.abs(t)))}function Sd(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,oe(e)-oe(t))+1}function Md(t,e,n,i){var r=si(t,e,n),o;switch(i=Le(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=Td(r,s))&&(i.precision=o),Ms(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Sd(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=kd(r))&&(i.precision=o-(i.type==="%")*2);break}}return Gi(i)}function zt(t){var e=t.domain;return t.ticks=function(n){var i=e();return ri(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return Md(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],c,l,f=10;for(a<s&&(l=s,s=a,a=l,l=r,r=o,o=l);f-- >0;){if(l=oi(s,a,n),l===c)return i[r]=s,i[o]=a,e(i);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;c=l}return t},t}function Cs(){var t=ys();return t.copy=function(){return Be(t,Cs())},lt.apply(t,arguments),zt(t)}function As(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,Wi),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return As(t).unknown(e)},t=arguments.length?Array.from(t,Wi):[0,1],zt(n)}function $s(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 Es(t){return Math.log(t)}function Ns(t){return Math.exp(t)}function Cd(t){return-Math.log(-t)}function Ad(t){return-Math.exp(-t)}function $d(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ed(t){return t===10?$d:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Nd(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 Os(t){return(e,n)=>-t(-e,n)}function Od(t){const e=t(Es,Ns),n=e.domain;let i=10,r,o;function s(){return r=Nd(i),o=Ed(i),n()[0]<0?(r=Os(r),o=Os(o),t(Cd,Ad)):t(Es,Ns),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 c=n();let l=c[0],f=c[c.length-1];const u=f<l;u&&([l,f]=[f,l]);let h=r(l),d=r(f),g,p;const _=a==null?10:+a;let v=[];if(!(i%1)&&d-h<_){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(g=1;g<i;++g)if(p=h<0?g/o(-h):g*o(h),!(p<l)){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<l)){if(p>f)break;v.push(p)}v.length*2<_&&(v=ri(l,f,_))}else v=ri(h,d,Math.min(d-h,_)).map(o);return u?v.reverse():v},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=i===10?"s":","),typeof c!="function"&&(!(i%1)&&(c=Le(c)).precision==null&&(c.trim=!0),c=Gi(c)),a===1/0)return c;const l=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<=l?c(f):""}},e.nice=()=>n($s(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function Ds(){const t=Od(An()).domain([1,10]);return t.copy=()=>Be(t,Ds()).base(t.base()),lt.apply(t,arguments),t}function Rs(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Fs(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Dd(t){var e=1,n=t(Rs(e),Fs(e));return n.constant=function(i){return arguments.length?t(Rs(e=+i),Fs(e)):e},zt(n)}function Bs(){var t=Dd(An());return t.copy=function(){return Be(t,Bs()).constant(t.constant())},lt.apply(t,arguments)}function Ls(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Rd(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Fd(t){return t<0?-t*t:t*t}function Bd(t){var e=t(Q,Q),n=1;function i(){return n===1?t(Q,Q):n===.5?t(Rd,Fd):t(Ls(n),Ls(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},zt(e)}function Zi(){var t=Bd(An());return t.copy=function(){return Be(t,Zi()).exponent(t.exponent())},lt.apply(t,arguments),t}function Ld(){return Zi.apply(null,arguments).exponent(.5)}function Is(){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]=Xl(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[Ge(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(me),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 Is().domain(t).range(e).unknown(i)},lt.apply(o,arguments)}function zs(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(c){return c!=null&&c<=c?r[Ge(i,c,0,n)]:o}function a(){var c=-1;for(i=new Array(n);++c<n;)i[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},s.range=function(c){return arguments.length?(n=(r=Array.from(c)).length-1,a()):r.slice()},s.invertExtent=function(c){var l=r.indexOf(c);return l<0?[NaN,NaN]:l<1?[t,i[0]]:l>=n?[i[n-1],e]:[i[l-1],i[l]]},s.unknown=function(c){return arguments.length&&(o=c),s},s.thresholds=function(){return i.slice()},s.copy=function(){return zs().domain([t,e]).range(r).unknown(o)},lt.apply(zt(s),arguments)}function Ps(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[Ge(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 Ps().domain(t).range(e).unknown(n)},lt.apply(r,arguments)}const ji=new Date,Qi=new Date;function H(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 c=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return c;let l;do c.push(l=new Date(+o)),e(o,a),t(o);while(l<o&&o<s);return c},r.filter=o=>H(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)=>(ji.setTime(+o),Qi.setTime(+s),t(ji),t(Qi),Math.floor(n(ji,Qi))),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 Nn=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Nn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Nn),Nn.range;const wt=1e3,rt=wt*60,bt=rt*60,kt=bt*24,Ji=kt*7,Us=kt*30,Ki=kt*365,Pt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*wt)},(t,e)=>(e-t)/wt,t=>t.getUTCSeconds());Pt.range;const tr=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());tr.range;const er=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());er.range;const nr=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getHours());nr.range;const ir=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getUTCHours());ir.range;const Ie=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/kt,t=>t.getDate()-1);Ie.range;const On=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/kt,t=>t.getUTCDate()-1);On.range;const Hs=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/kt,t=>Math.floor(t/kt));Hs.range;function Ut(t){return H(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())*rt)/Ji)}const Dn=Ut(0),Rn=Ut(1),Id=Ut(2),zd=Ut(3),se=Ut(4),Pd=Ut(5),Ud=Ut(6);Dn.range,Rn.range,Id.range,zd.range,se.range,Pd.range,Ud.range;function Ht(t){return H(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)/Ji)}const Fn=Ht(0),Bn=Ht(1),Hd=Ht(2),Yd=Ht(3),ae=Ht(4),Vd=Ht(5),Wd=Ht(6);Fn.range,Bn.range,Hd.range,Yd.range,ae.range,Vd.range,Wd.range;const rr=H(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());rr.range;const or=H(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());or.range;const Tt=H(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());Tt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(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)}),Tt.range;const St=H(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());St.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(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)}),St.range;function Ys(t,e,n,i,r,o){const s=[[Pt,1,wt],[Pt,5,5*wt],[Pt,15,15*wt],[Pt,30,30*wt],[o,1,rt],[o,5,5*rt],[o,15,15*rt],[o,30,30*rt],[r,1,bt],[r,3,3*bt],[r,6,6*bt],[r,12,12*bt],[i,1,kt],[i,2,2*kt],[n,1,Ji],[e,1,Us],[e,3,3*Us],[t,1,Ki]];function a(l,f,u){const h=f<l;h&&([l,f]=[f,l]);const d=u&&typeof u.range=="function"?u:c(l,f,u),g=d?d.range(l,+f+1):[];return h?g.reverse():g}function c(l,f,u){const h=Math.abs(f-l)/u,d=ii(([,,_])=>_).right(s,h);if(d===s.length)return t.every(si(l/Ki,f/Ki,u));if(d===0)return Nn.every(Math.max(si(l,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,c]}const[Xd,qd]=Ys(St,or,Fn,Hs,ir,er),[Gd,Zd]=Ys(Tt,rr,Dn,Ie,nr,tr);function sr(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 ar(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 ze(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function jd(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,l=Pe(r),f=Ue(r),u=Pe(o),h=Ue(o),d=Pe(s),g=Ue(s),p=Pe(a),_=Ue(a),v=Pe(c),x=Ue(c),y={a:de,A:pe,b:ft,B:Ig,c:null,d:Zs,e:Zs,f:y0,g:$0,G:N0,H:_0,I:m0,j:v0,L:js,m:x0,M:w0,p:zg,q:Pg,Q:na,s:ia,S:b0,u:k0,U:T0,V:S0,w:M0,W:C0,x:null,X:null,y:A0,Y:E0,Z:O0,"%":ea},T={a:Ug,A:Hg,b:Yg,B:Vg,c:null,d:Js,e:Js,f:B0,g:X0,G:G0,H:D0,I:R0,j:F0,L:Ks,m:L0,M:I0,p:Wg,q:Xg,Q:na,s:ia,S:z0,u:P0,U:U0,V:H0,w:Y0,W:V0,x:null,X:null,y:W0,Y:q0,Z:Z0,"%":ea},k={a:et,A:C,b:P,B:Y,c:Nt,d:qs,e:qs,f:h0,g:Xs,G:Ws,H:Gs,I:Gs,j:c0,L:f0,m:a0,M:l0,p:F,q:s0,Q:p0,s:g0,S:u0,u:e0,U:n0,V:i0,w:t0,W:r0,x:Kn,X:he,y:Xs,Y:Ws,Z:o0,"%":d0};y.x=b(n,y),y.X=b(i,y),y.c=b(e,y),T.x=b(n,T),T.X=b(i,T),T.c=b(e,T);function b(M,A){return function(N){var w=[],J=-1,B=0,nt=M.length,it,qt,rc;for(N instanceof Date||(N=new Date(+N));++J<nt;)M.charCodeAt(J)===37&&(w.push(M.slice(B,J)),(qt=Vs[it=M.charAt(++J)])!=null?it=M.charAt(++J):qt=it==="e"?" ":"0",(rc=A[it])&&(it=rc(N,qt)),w.push(it),B=J+1);return w.push(M.slice(B,J)),w.join("")}}function S(M,A){return function(N){var w=ze(1900,void 0,1),J=L(w,M,N+="",0),B,nt;if(J!=N.length)return null;if("Q"in w)return new Date(w.Q);if("s"in w)return new Date(w.s*1e3+("L"in w?w.L:0));if(A&&!("Z"in w)&&(w.Z=0),"p"in w&&(w.H=w.H%12+w.p*12),w.m===void 0&&(w.m="q"in w?w.q:0),"V"in w){if(w.V<1||w.V>53)return null;"w"in w||(w.w=1),"Z"in w?(B=ar(ze(w.y,0,1)),nt=B.getUTCDay(),B=nt>4||nt===0?Bn.ceil(B):Bn(B),B=On.offset(B,(w.V-1)*7),w.y=B.getUTCFullYear(),w.m=B.getUTCMonth(),w.d=B.getUTCDate()+(w.w+6)%7):(B=sr(ze(w.y,0,1)),nt=B.getDay(),B=nt>4||nt===0?Rn.ceil(B):Rn(B),B=Ie.offset(B,(w.V-1)*7),w.y=B.getFullYear(),w.m=B.getMonth(),w.d=B.getDate()+(w.w+6)%7)}else("W"in w||"U"in w)&&("w"in w||(w.w="u"in w?w.u%7:"W"in w?1:0),nt="Z"in w?ar(ze(w.y,0,1)).getUTCDay():sr(ze(w.y,0,1)).getDay(),w.m=0,w.d="W"in w?(w.w+6)%7+w.W*7-(nt+5)%7:w.w+w.U*7-(nt+6)%7);return"Z"in w?(w.H+=w.Z/100|0,w.M+=w.Z%100,ar(w)):sr(w)}}function L(M,A,N,w){for(var J=0,B=A.length,nt=N.length,it,qt;J<B;){if(w>=nt)return-1;if(it=A.charCodeAt(J++),it===37){if(it=A.charAt(J++),qt=k[it in Vs?A.charAt(J++):it],!qt||(w=qt(M,N,w))<0)return-1}else if(it!=N.charCodeAt(w++))return-1}return w}function F(M,A,N){var w=l.exec(A.slice(N));return w?(M.p=f.get(w[0].toLowerCase()),N+w[0].length):-1}function et(M,A,N){var w=d.exec(A.slice(N));return w?(M.w=g.get(w[0].toLowerCase()),N+w[0].length):-1}function C(M,A,N){var w=u.exec(A.slice(N));return w?(M.w=h.get(w[0].toLowerCase()),N+w[0].length):-1}function P(M,A,N){var w=v.exec(A.slice(N));return w?(M.m=x.get(w[0].toLowerCase()),N+w[0].length):-1}function Y(M,A,N){var w=p.exec(A.slice(N));return w?(M.m=_.get(w[0].toLowerCase()),N+w[0].length):-1}function Nt(M,A,N){return L(M,e,A,N)}function Kn(M,A,N){return L(M,n,A,N)}function he(M,A,N){return L(M,i,A,N)}function de(M){return s[M.getDay()]}function pe(M){return o[M.getDay()]}function ft(M){return c[M.getMonth()]}function Ig(M){return a[M.getMonth()]}function zg(M){return r[+(M.getHours()>=12)]}function Pg(M){return 1+~~(M.getMonth()/3)}function Ug(M){return s[M.getUTCDay()]}function Hg(M){return o[M.getUTCDay()]}function Yg(M){return c[M.getUTCMonth()]}function Vg(M){return a[M.getUTCMonth()]}function Wg(M){return r[+(M.getUTCHours()>=12)]}function Xg(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var A=b(M+="",y);return A.toString=function(){return M},A},parse:function(M){var A=S(M+="",!1);return A.toString=function(){return M},A},utcFormat:function(M){var A=b(M+="",T);return A.toString=function(){return M},A},utcParse:function(M){var A=S(M+="",!0);return A.toString=function(){return M},A}}}var Vs={"-":"",_:" ",0:"0"},W=/^\s*\d+/,Qd=/^%/,Jd=/[\\^$*+?|[\]().{}]/g;function $(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 Kd(t){return t.replace(Jd,"\\$&")}function Pe(t){return new RegExp("^(?:"+t.map(Kd).join("|")+")","i")}function Ue(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function t0(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function e0(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function n0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function i0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function r0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Ws(t,e,n){var i=W.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Xs(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function o0(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 s0(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function a0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function qs(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function c0(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Gs(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function l0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function u0(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function f0(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function h0(t,e,n){var i=W.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function d0(t,e,n){var i=Qd.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function p0(t,e,n){var i=W.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function g0(t,e,n){var i=W.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Zs(t,e){return $(t.getDate(),e,2)}function _0(t,e){return $(t.getHours(),e,2)}function m0(t,e){return $(t.getHours()%12||12,e,2)}function v0(t,e){return $(1+Ie.count(Tt(t),t),e,3)}function js(t,e){return $(t.getMilliseconds(),e,3)}function y0(t,e){return js(t,e)+"000"}function x0(t,e){return $(t.getMonth()+1,e,2)}function w0(t,e){return $(t.getMinutes(),e,2)}function b0(t,e){return $(t.getSeconds(),e,2)}function k0(t){var e=t.getDay();return e===0?7:e}function T0(t,e){return $(Dn.count(Tt(t)-1,t),e,2)}function Qs(t){var e=t.getDay();return e>=4||e===0?se(t):se.ceil(t)}function S0(t,e){return t=Qs(t),$(se.count(Tt(t),t)+(Tt(t).getDay()===4),e,2)}function M0(t){return t.getDay()}function C0(t,e){return $(Rn.count(Tt(t)-1,t),e,2)}function A0(t,e){return $(t.getFullYear()%100,e,2)}function $0(t,e){return t=Qs(t),$(t.getFullYear()%100,e,2)}function E0(t,e){return $(t.getFullYear()%1e4,e,4)}function N0(t,e){var n=t.getDay();return t=n>=4||n===0?se(t):se.ceil(t),$(t.getFullYear()%1e4,e,4)}function O0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$(e/60|0,"0",2)+$(e%60,"0",2)}function Js(t,e){return $(t.getUTCDate(),e,2)}function D0(t,e){return $(t.getUTCHours(),e,2)}function R0(t,e){return $(t.getUTCHours()%12||12,e,2)}function F0(t,e){return $(1+On.count(St(t),t),e,3)}function Ks(t,e){return $(t.getUTCMilliseconds(),e,3)}function B0(t,e){return Ks(t,e)+"000"}function L0(t,e){return $(t.getUTCMonth()+1,e,2)}function I0(t,e){return $(t.getUTCMinutes(),e,2)}function z0(t,e){return $(t.getUTCSeconds(),e,2)}function P0(t){var e=t.getUTCDay();return e===0?7:e}function U0(t,e){return $(Fn.count(St(t)-1,t),e,2)}function ta(t){var e=t.getUTCDay();return e>=4||e===0?ae(t):ae.ceil(t)}function H0(t,e){return t=ta(t),$(ae.count(St(t),t)+(St(t).getUTCDay()===4),e,2)}function Y0(t){return t.getUTCDay()}function V0(t,e){return $(Bn.count(St(t)-1,t),e,2)}function W0(t,e){return $(t.getUTCFullYear()%100,e,2)}function X0(t,e){return t=ta(t),$(t.getUTCFullYear()%100,e,2)}function q0(t,e){return $(t.getUTCFullYear()%1e4,e,4)}function G0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?ae(t):ae.ceil(t),$(t.getUTCFullYear()%1e4,e,4)}function Z0(){return"+0000"}function ea(){return"%"}function na(t){return+t}function ia(t){return Math.floor(+t/1e3)}var ce,ra,oa;j0({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 j0(t){return ce=jd(t),ra=ce.format,ce.parse,oa=ce.utcFormat,ce.utcParse,ce}function Q0(t){return new Date(t)}function J0(t){return t instanceof Date?+t:+new Date(+t)}function cr(t,e,n,i,r,o,s,a,c,l){var f=ys(),u=f.invert,h=f.domain,d=l(".%L"),g=l(":%S"),p=l("%I:%M"),_=l("%I %p"),v=l("%a %d"),x=l("%b %d"),y=l("%B"),T=l("%Y");function k(b){return(c(b)<b?d:a(b)<b?g:s(b)<b?p:o(b)<b?_:i(b)<b?r(b)<b?v:x:n(b)<b?y:T)(b)}return f.invert=function(b){return new Date(u(b))},f.domain=function(b){return arguments.length?h(Array.from(b,J0)):h().map(Q0)},f.ticks=function(b){var S=h();return t(S[0],S[S.length-1],b??10)},f.tickFormat=function(b,S){return S==null?k:l(S)},f.nice=function(b){var S=h();return(!b||typeof b.range!="function")&&(b=e(S[0],S[S.length-1],b??10)),b?h($s(S,b)):f},f.copy=function(){return Be(f,cr(t,e,n,i,r,o,s,a,c,l))},f}function K0(){return lt.apply(cr(Gd,Zd,Tt,rr,Dn,Ie,nr,tr,Pt,ra).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tp(){return lt.apply(cr(Xd,qd,St,or,Fn,On,ir,er,Pt,oa).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ep(){var t=0,e=1,n,i,r,o,s=Q,a=!1,c;function l(u){return u==null||isNaN(u=+u)?c:s(r===0?.5:(u=(o(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}l.domain=function(u){return arguments.length?([t,e]=u,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),l):[t,e]},l.clamp=function(u){return arguments.length?(a=!!u,l):a},l.interpolator=function(u){return arguments.length?(s=u,l):s};function f(u){return function(h){var d,g;return arguments.length?([d,g]=h,s=u(d,g),l):[s(0),s(1)]}}return l.range=f(re),l.rangeRound=f(zi),l.unknown=function(u){return arguments.length?(c=u,l):c},function(u){return o=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),l}}function sa(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function aa(){var t=zt(ep()(Q));return t.copy=function(){return sa(t,aa())},gs.apply(t,arguments)}function np(){var t=0,e=.5,n=1,i=1,r,o,s,a,c,l=Q,f,u=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+f(p))-o)*(i*p<i*o?a:c),l(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),c=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?(l=p,d):l};function g(p){return function(_){var v,x,y;return arguments.length?([v,x,y]=_,l=sh(p,[v,x,y]),d):[l(0),l(.5),l(1)]}}return d.range=g(re),d.rangeRound=g(zi),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),c=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function ca(){var t=zt(np()(Q));return t.copy=function(){return sa(t,ca())},gs.apply(t,arguments)}const la={scaleLinear:Cs,scalePow:Zi,scaleSqrt:Ld,scaleLog:Ds,scaleSymlog:Bs,scaleIdentity:As,scaleTime:K0,scaleUtc:tp,scaleSequential:aa,scaleDiverging:ca,scaleQuantize:zs,scaleQuantile:Is,scaleThreshold:Ps,scaleOrdinal:Yi,scaleBand:Vi,scalePoint:ud};var z;(function(t){t.X="x",t.Y="y"})(z||(z={}));var Yt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Yt||(Yt={}));const ip=Object.assign(Object.assign({},go),{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:Yt.North,preventEmptyDomain:null,scaleByDomain:!1});class rp extends ke{constructor(e,n,i){var r,o;super(e),this._defaultConfig=ip,this.datamodel=new Hi,this.config=this._defaultConfig,this._clipPathId=Bo(),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",V`
|
|
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(c=>c.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 Qt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Qt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:c}=this;e&&(this.datamodel.data=e,a.forEach(l=>{l.setData(e)}),(i=c.crosshair)===null||i===void 0||i.setData(e),(r=c.xAxis)===null||r===void 0||r.setData(e),(o=c.yAxis)===null||o===void 0||o.setData(e),(s=c.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=R.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=R.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=xe([...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 c=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${c.left},${c.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 l=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*l).attr("height",this.height+2*l),(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:ai(u),yStacked:ai(h),baseline:g},f.g.attr("transform",`translate(${c.left},${c.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(${c.left},${c.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=xe(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(z.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(z.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(z).forEach(r=>{var o,s,a,c,l,f,u,h;const[d,g]=zl(Zl(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),p=r===z.Y?n.yDomain:n.xDomain,_=r===z.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,v=r===z.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=(c=(a=p==null?void 0:p[1])!==null&&a!==void 0?a:g)!==null&&c!==void 0?c:1,T=[Qt(x,(l=_==null?void 0:_[0])!==null&&l!==void 0?l:Number.NEGATIVE_INFINITY,(f=_==null?void 0:_[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),Qt(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(b=>{var S;return((S=b.datamodel.data)===null||S===void 0?void 0:S.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===z.Y))&&(T[1]=T[0]+1)}e.forEach(k=>k.setScaleDomain(r,T))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:c}=this;if(!e)return;const l=c.yDirection===Yt.South,f=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((i=c.padding.right)!==null&&i!==void 0?i:0)],u=[this.height-((r=c.padding.bottom)!==null&&r!==void 0?r:0),(o=c.padding.top)!==null&&o!==void 0?o:0];l&&u.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(z.X,(s=c.xRange)!==null&&s!==void 0?s:f),d.setScaleRange(z.Y,(a=c.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 _=p;d[_]<g[_]&&(d[_]=g[_])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(z.X,[f[0]+h.left,f[1]-h.right]),d.setScaleRange(z.Y,l?[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();xe([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=xe([...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),xe([e,n]).forEach(c=>{c.preRender();const l=c.getRequiredMargin();s.top<l.top&&(s.top=l.top),s.bottom<l.bottom&&(s.bottom=l.bottom),s.left<l.left&&(s.left=l.left),s.right<l.right&&(s.right=l.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 ua={duration:600,events:{},attributes:{}};class op{constructor(e=_e.SVG){var n,i;this.type=_e.SVG,this.datamodel=new Hi,this.sizing=Zt.Fit,this.events={},this._defaultConfig=ua,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=Qr(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Qr(this._setCustomAttributes,500),e===_e.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Bo(),this.g=Mt(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=ye(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 c=o.nodes(),l=c.indexOf(s.currentTarget),f=e[i][r];return f==null?void 0:f(a,s,l,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class sp extends Hi{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 Ln=Object.assign(Object.assign({},ua),{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 lr extends op{constructor(){super(...arguments),this.datamodel=new sp,this.clippable=!0,this.stacked=!1,this._defaultConfig=Ln,this._xScale=la.scaleLinear(),this._yScale=la.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===z.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===z.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===z.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===z.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===z.X&&(this._xScale=n),n&&e===z.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case z.X:return this.getXDataExtent();case z.Y:return this.getYDataExtent(n);default:return ui(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return ui(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?Jr(i.data,this.xScale.domain(),n.x):i.data,o=jt(n.y)?n.y:[n.y];return ui(r,...o)}}var E;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(E||(E={}));var fa;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(fa||(fa={}));var ha;(function(t){t.Inside="inside",t.Outside="outside"})(ha||(ha={}));var da;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(da||(da={}));function X(t){return function(){return t}}const pa=1e-12,ur=Math.PI,fr=2*ur,Vt=1e-6,ap=fr-Vt;function ga(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function cp(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ga;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 lp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ga:cp(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,c=i-e,l=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>Vt)if(!(Math.abs(u*c-l*f)>Vt)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,g=r-a,p=c*c+l*l,_=d*d+g*g,v=Math.sqrt(p),x=Math.sqrt(h),y=o*Math.tan((ur-Math.acos((p+h-_)/(2*v*x)))/2),T=y/x,k=y/v;Math.abs(T-1)>Vt&&this._append`L${e+T*f},${n+T*u}`,this._append`A${o},${o},0,0,${+(u*d>f*g)},${this._x1=e+k*c},${this._y1=n+k*l}`}}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),c=i*Math.sin(r),l=e+a,f=n+c,u=1^s,h=s?r-o:o-r;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>Vt||Math.abs(this._y1-f)>Vt)&&this._append`L${l},${f}`,i&&(h<0&&(h=h%fr+fr),h>ap?this._append`A${i},${i},0,1,${u},${e-a},${n-c}A${i},${i},0,1,${u},${this._x1=l},${this._y1=f}`:h>Vt&&this._append`A${i},${i},0,${+(h>=ur)},${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 _a(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 lp(e)}function ma(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function va(t){this._context=t}va.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 hr(t){return new va(t)}function ya(t){return t[0]}function xa(t){return t[1]}function wa(t,e){var n=X(!0),i=null,r=hr,o=null,s=_a(a);t=typeof t=="function"?t:t===void 0?ya:X(t),e=typeof e=="function"?e:e===void 0?xa:X(e);function a(c){var l,f=(c=ma(c)).length,u,h=!1,d;for(i==null&&(o=r(d=s())),l=0;l<=f;++l)!(l<f&&n(u=c[l],l,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,l,c),+e(u,l,c));if(d)return o=null,d+""||null}return a.x=function(c){return arguments.length?(t=typeof c=="function"?c:X(+c),a):t},a.y=function(c){return arguments.length?(e=typeof c=="function"?c:X(+c),a):e},a.defined=function(c){return arguments.length?(n=typeof c=="function"?c:X(!!c),a):n},a.curve=function(c){return arguments.length?(r=c,i!=null&&(o=r(i)),a):r},a.context=function(c){return arguments.length?(c==null?i=o=null:o=r(i=c),a):i},a}function up(t,e,n){var i=null,r=X(!0),o=null,s=hr,a=null,c=_a(l);t=typeof t=="function"?t:t===void 0?ya:X(+t),e=typeof e=="function"?e:X(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?xa:X(+n);function l(u){var h,d,g,p=(u=ma(u)).length,_,v=!1,x,y=new Array(p),T=new Array(p);for(o==null&&(a=s(x=c())),h=0;h<=p;++h){if(!(h<p&&r(_=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(_,h,u),T[h]=+e(_,h,u),a.point(i?+i(_,h,u):y[h],n?+n(_,h,u):T[h]))}if(x)return a=null,x+""||null}function f(){return wa().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t=typeof u=="function"?u:X(+u),i=null,l):t},l.x0=function(u){return arguments.length?(t=typeof u=="function"?u:X(+u),l):t},l.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:X(+u),l):i},l.y=function(u){return arguments.length?(e=typeof u=="function"?u:X(+u),n=null,l):e},l.y0=function(u){return arguments.length?(e=typeof u=="function"?u:X(+u),l):e},l.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:X(+u),l):n},l.lineX0=l.lineY0=function(){return f().x(t).y(e)},l.lineY1=function(){return f().x(t).y(n)},l.lineX1=function(){return f().x(i).y(e)},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:X(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,o!=null&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(u==null?o=a=null:a=s(o=u),l):o},l}function Et(){}function In(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:In(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:In(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fp(t){return new zn(t)}function ba(t){this._context=t}ba.prototype={areaStart:Et,areaEnd:Et,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:In(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function hp(t){return new ba(t)}function ka(t){this._context=t}ka.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:In(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function dp(t){return new ka(t)}function Ta(t,e){this._basis=new zn(t),this._beta=e}Ta.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,c;++a<=n;)c=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+c*o),this._beta*e[a]+(1-this._beta)*(r+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const pp=function t(e){function n(i){return e===1?new zn(i):new Ta(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Pn(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 dr(t,e){this._context=t,this._k=(1-e)/6}dr.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:Pn(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:Pn(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 gp=function t(e){function n(i){return new dr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function pr(t,e){this._context=t,this._k=(1-e)/6}pr.prototype={areaStart:Et,areaEnd:Et,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:Pn(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 _p=function t(e){function n(i){return new pr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function gr(t,e){this._context=t,this._k=(1-e)/6}gr.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:Pn(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 mp=function t(e){function n(i){return new gr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function _r(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>pa){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>pa){var l=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*l+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Sa(t,e){this._context=t,this._alpha=e}Sa.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:_r(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 vp=function t(e){function n(i){return e?new Sa(i,e):new dr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ma(t,e){this._context=t,this._alpha=e}Ma.prototype={areaStart:Et,areaEnd:Et,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:_r(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 yp=function t(e){function n(i){return e?new Ma(i,e):new pr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ca(t,e){this._context=t,this._alpha=e}Ca.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:_r(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 xp=function t(e){function n(i){return e?new Ca(i,e):new gr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Aa(t){this._context=t}Aa.prototype={areaStart:Et,areaEnd:Et,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 wp(t){return new Aa(t)}function $a(t){return t<0?-1:1}function Ea(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($a(o)+$a(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Na(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function mr(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 Un(t){this._context=t}Un.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:mr(this,this._t0,Na(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,mr(this,Na(this,n=Ea(this,t,e)),n);break;default:mr(this,this._t0,n=Ea(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Oa(t){this._context=new Da(t)}(Oa.prototype=Object.create(Un.prototype)).point=function(t,e){Un.prototype.point.call(this,e,t)};function Da(t){this._context=t}Da.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 bp(t){return new Un(t)}function kp(t){return new Oa(t)}function Ra(t){this._context=t}Ra.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=Fa(t),r=Fa(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 Fa(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 Tp(t){return new Ra(t)}function Hn(t,e){this._context=t,this._t=e}Hn.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 Sp(t){return new Hn(t,.5)}function Mp(t){return new Hn(t,0)}function Cp(t){return new Hn(t,1)}function Ba(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 Ap(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ba(Object(n),!0).forEach(function(i){$p(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function He(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?He=function(e){return typeof e}:He=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(t)}function $p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yn(){return Yn=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},Yn.apply(this,arguments)}function Ep(t,e){if(t){if(typeof t=="string")return La(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 La(t,e)}}function La(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 Ia(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ep(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(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
55
|
-
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 c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Np(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),c=0;c<a.length;c++)c===0&&n.push(o[0]),c===a.length-1&&i.push(o[c+1]),a[c]=[(1-s)*o[c][0]+s*o[c+1][0],(1-s)*o[c][1]+s*o[c+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Op(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 Dp(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=Np(i,s);n.push(a.left),i=a.right}return n.push(i),n}function Rp(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]),Dp(i,n).map(Op)}var Fp=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,le={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(le).forEach(function(t){le[t.toLowerCase()]=le[t]});function vr(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Bp(t){return"".concat(t.type).concat(le[t.type].map(function(e){return t[e]}).join(","))}function Lp(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 Ip(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(Rp(t,e,n));else{var r=Yn({},t);r.type==="M"&&(r.type="L"),i=i.concat(vr(n-1).map(function(){return r})),i.push(e)}return i}function za(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=vr(r).reduce(function(c,l,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;c[u]&&(h?u>0?u-=1:u<t.length-1&&(u+=1):u<t.length-1?u+=1:u>0&&(u-=1))}return c[u]=(c[u]||0)+1,c},[]),a=s.reduce(function(c,l,f){if(f===t.length-1){var u=vr(l,Yn({},t[t.length-1]));return u[0].type==="M"&&u.forEach(function(h){h.type="L"}),c.concat(u)}return c.concat(Ip(t[f],t[f+1],l))},[]);return a.unshift(t[0]),a}function Pa(t){for(var e=(t||"").match(Fp)||[],n=[],i,r,o=0;o<e.length;++o)if(i=le[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 zp(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=He(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var c=(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 l=Math.abs(r.length-i.length);l!==0&&(r.length>i.length?i=za(i,r,s):r.length<i.length&&(r=za(r,i,s))),i=i.map(function(u,h){return Lp(u,r[h])});var f=i.map(function(u){return Ap({},u)});return c&&(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],_=f[d],v=Ia(le[_.type]),x;try{for(v.s();!(x=v.n()).done;){var y=x.value;_[y]=(1-h)*g[y]+h*p[y],(y==="largeArcFlag"||y==="sweepFlag")&&(_[y]=Math.round(_[y]))}}catch(T){v.e(T)}finally{v.f()}}return f}}function Ua(t,e,n){var i=Pa(t),r=Pa(e),o=He(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var c=zp(i,r,{excludeSegment:s,snapEndsToInput:a});return function(f){if(f===1&&a)return e??"";var u=c(f),h="",d=Ia(u),g;try{for(d.s();!(g=d.n()).done;){var p=g.value;h+=Bp(p)}}catch(_){d.e(_)}finally{d.f()}return h}}function Ye(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:li(t,e,n)||(Ot(n)?`var(${At(n)})`:null)}var I;(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"})(I||(I={}));const yr={[I.Basis]:fp,[I.BasisClosed]:hp,[I.BasisOpen]:dp,[I.Bundle]:pp,[I.Cardinal]:gp,[I.CardinalClosed]:_p,[I.CardinalOpen]:mp,[I.CatmullRom]:vp,[I.CatmullRomClosed]:yp,[I.CatmullRomOpen]:xp,[I.Linear]:hr,[I.LinearClosed]:wp,[I.MonotoneX]:bp,[I.MonotoneY]:kp,[I.Natural]:Tp,[I.Step]:Sp,[I.StepAfter]:Cp,[I.StepBefore]:Mp},Pp=Object.assign(Object.assign({},Ln),{curveType:I.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),Up=hn`
|
|
56
|
-
:root {
|
|
57
|
-
--vis-line-cursor: default;
|
|
58
|
-
--vis-line-stroke-dasharray: none;
|
|
59
|
-
--vis-line-stroke-dashoffset: 0;
|
|
60
|
-
|
|
61
|
-
--vis-line-gapfill-stroke-dasharray: 2 3;
|
|
62
|
-
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
63
|
-
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
64
|
-
}
|
|
65
|
-
`,Hp=V`
|
|
66
|
-
label: line-component;
|
|
67
|
-
`,Ve=V`
|
|
68
|
-
label: line;
|
|
69
|
-
transition: opacity 200ms;
|
|
70
|
-
cursor: var(--vis-line-cursor);
|
|
71
|
-
`,xr=V`
|
|
72
|
-
label: linePath;
|
|
73
|
-
fill: none;
|
|
74
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
75
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
76
|
-
`,wr=V`
|
|
77
|
-
label: lineSelectionHelper;
|
|
78
|
-
fill: none;
|
|
79
|
-
stroke: rgba(0, 0, 0, 0);
|
|
80
|
-
stroke-width: 8px;
|
|
81
|
-
`,br=V`
|
|
82
|
-
opacity: 0.2;
|
|
83
|
-
`,kr=V`
|
|
84
|
-
label: interpolated-path;
|
|
85
|
-
fill: none;
|
|
86
|
-
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
87
|
-
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
88
|
-
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
89
|
-
`,Yp=Object.freeze(Object.defineProperty({__proto__:null,dim:br,globalStyles:Up,interpolatedPath:kr,line:Ve,linePath:xr,lineSelectionHelper:wr,root:Hp},Symbol.toStringTag,{value:"Module"}));class ue extends lr{constructor(e){super(),this._defaultConfig=Pp,this.config=this._defaultConfig,this.curve=yr[I.MonotoneX],this.events={[ue.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]?Yt.North:Yt.South)===Yt.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=Ot(e)?e:n.duration;this.curve=yr[n.curveType],this.lineGen=wa().x(u=>u.x).y(u=>u.y).defined(u=>u.defined).curve(this.curve);const o=jt(n.y)?n.y:[n.y],s=i.map((u,h)=>this.xScale(ot(u,n.x,h))),a=o.map(u=>{const h=i.map((v,x)=>{const y=ot(v,u,x),T=(Ot(y)||y===null)&&isFinite(y)?y:n.fallbackValue,k=n.interpolateMissingData?(Ot(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},[]),_=d&&h.some(v=>v.value!==null);return{values:h,defined:d,gaps:p,visible:_}}),c=this.g.selectAll(`.${Ve}`).data(a),l=c.enter().append("g").attr("class",Ve);l.append("path").attr("class",xr).attr("stroke",(u,h)=>Ye(i,n.color,h)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),l.append("path").attr("class",wr).attr("d",this._emptyPath()),l.append("path").attr("class",kr).attr("d",this._emptyPath()).style("opacity",0);const f=l.merge(c);f.style("cursor",(u,h)=>li(i,n.cursor,h)),f.each((u,h,d)=>{var g;const p=Mt(d[h]),_=p.select(`.${xr}`),v=p.select(`.${wr}`),x=p.select(`.${kr}`),y=u.visible,T=ci(i,n.lineDashArray,h),k=xt(_,r).attr("stroke",Ye(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),b=u.values.some(L=>!L.defined),S=this.lineGen(u.values);if(r&&!b){const L=_.attr("d")||this._emptyPath(),F=S||this._emptyPath();k.attrTween("d",()=>Ua(L,F))}else u.visible&&k.attr("d",S);v.attr("d",S).attr("visibility",y?null:"hidden"),b&&n.interpolateMissingData?xt(x,r).attr("d",this.lineGen(u.gaps)).attr("stroke",Ye(i,n.color,h)).attr("stroke-width",n.lineWidth-1).style("opacity",1):x.transition().duration(r).style("opacity",0)}),xt(c.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(`.${Ve}`).classed(br,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${Ve}`).classed(br,!1)}}ue.selectors=Yp;function Vp(t){return t}var Vn=1,Wn=2,Tr=3,We=4,Ha=1e-6;function Wp(t){return"translate("+t+",0)"}function Xp(t){return"translate(0,"+t+")"}function qp(t){return e=>+t(e)}function Gp(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Zp(){return!this.__axis}function Xn(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===Vn||t===We?-1:1,f=t===We||t===Wn?"x":"y",u=t===Vn||t===Tr?Wp:Xp;function h(d){var g=i??(e.ticks?e.ticks.apply(e,n):e.domain()),p=r??(e.tickFormat?e.tickFormat.apply(e,n):Vp),_=Math.max(o,0)+a,v=e.range(),x=+v[0]+c,y=+v[v.length-1]+c,T=(e.bandwidth?Gp:qp)(e.copy(),c),k=d.selection?d.selection():d,b=k.selectAll(".domain").data([null]),S=k.selectAll(".tick").data(g,e).order(),L=S.exit(),F=S.enter().append("g").attr("class","tick"),et=S.select("line"),C=S.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(F),et=et.merge(F.append("line").attr("stroke","currentColor").attr(f+"2",l*o)),C=C.merge(F.append("text").attr("fill","currentColor").attr(f,l*_).attr("dy",t===Vn?"0em":t===Tr?"0.71em":"0.32em")),d!==k&&(b=b.transition(d),S=S.transition(d),et=et.transition(d),C=C.transition(d),L=L.transition(d).attr("opacity",Ha).attr("transform",function(P){return isFinite(P=T(P))?u(P+c):this.getAttribute("transform")}),F.attr("opacity",Ha).attr("transform",function(P){var Y=this.parentNode.__axis;return u((Y&&isFinite(Y=Y(P))?Y:T(P))+c)})),L.remove(),b.attr("d",t===We||t===Wn?s?"M"+l*s+","+x+"H"+c+"V"+y+"H"+l*s:"M"+c+","+x+"V"+y:s?"M"+x+","+l*s+"V"+c+"H"+y+"V"+l*s:"M"+x+","+c+"H"+y),S.attr("opacity",1).attr("transform",function(P){return u(T(P)+c)}),et.attr(f+"2",l*o),C.attr(f,l*_).text(p),k.filter(Zp).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Wn?"start":t===We?"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?(c=+d,h):c},h}function Ya(t){return Xn(Vn,t)}function Va(t){return Xn(Wn,t)}function Wa(t){return Xn(Tr,t)}function Xa(t){return Xn(We,t)}var Wt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Wt||(Wt={}));var Xt;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Xt||(Xt={}));var qn;(function(t){t.Wrap="wrap",t.Trim="trim"})(qn||(qn={}));var ut;(function(t){t.Left="left",t.Center="center",t.Right="right"})(ut||(ut={}));var Gn={exports:{}},jp=Gn.exports,qa;function Qp(){return qa||(qa=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 c(g,p,_){g=g||"",p=p||[],_=_||"";let v=f(p,_);return u(g,v)}function l(g,p){g=g||[],p=p||"";let _=f(g,p);return function(x){return u(x||"",_)}}c.init_streaming_mode=l;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 _=p.allowable_tags,v=p.tag_replacement,x=p.state,y=p.tag_buffer,T=p.depth,k=p.in_quote_char,b="";for(let S=0,L=g.length;S<L;S++){let F=g[S];if(x===i)switch(F){case"<":x=r,y+=F;break;default:b+=F;break}else if(x===r)switch(F){case"<":if(k)break;T++;break;case">":if(k)break;if(T){T--;break}k="",x=i,y+=">",_.has(d(y))?b+=y:b+=v,y="";break;case'"':case"'":F===k?k="":k=k||F,y+=F;break;case"-":y==="<!-"&&(x=o),y+=F;break;case" ":case`
|
|
90
|
-
`:if(y==="<"){x=i,b+="< ",y="";break}y+=F;break;default:y+=F;break}else if(x===o)switch(F){case">":y.slice(-2)=="--"&&(x=i),y="";break;default:y+=F;break}}return p.state=x,p.tag_buffer=y,p.depth=T,p.in_quote_char=k,b}function h(g){let p=new Set;if(typeof g=="string"){let _;for(;_=s.exec(g);)p.add(_[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=c:e.striptags=c})(jp)}(Gn)),Gn.exports}var Jp=Qp();const Kp=hf(Jp);function tg(t){switch(t){case ut.Center:return"middle";case ut.Right:return"end";case ut.Left:default:return"start"}}function eg(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 ng(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 ig(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function rg(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 og(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function sg(t,e=15,n=Wt.Middle){if(!t)return"";let i=og(t,e);return n===Wt.Start?i=ig(t,e):n===Wt.Middle&&(i=rg(t,e)),i}function ag(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),c=a.map((l,f)=>`${l}${f===a.length-1?"":r}`);n[s]=c}),n=ai(n)}return n}function cg(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=Wt.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),c=a.length,l=r*c*o,u=Math.ceil(c*e/(1.1*l));return u<c?(t.text(sg(a,u,n)),!0):!1}function Zn(t,e,n=Rf()){return t.length*e*n||0}function jn(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 lg(t,e=void 0,n=!0,i=Go,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
|
|
91
|
-
`).map(c=>{const l=[];if(!e)return[c];const f=ag(c,s);let u="";for(let h=0;h<f.length;h+=1){(n?Zn(u+f[h],t.fontSize,t.fontWidthToHeightRatio):jn(u+f[h],t.fontFamily,t.fontSize))<e||h===0?u+=f[h]:(l.push(u.trim()),u=f[h]);const g=2;if(r)for(;u.trim().length>g&&(n?Zn(u,t.fontSize,t.fontWidthToHeightRatio):jn(u,t.fontFamily,t.fontSize))>e;){let _=u.trim().length-g;for(;_>0;){const v=`${u.substring(0,_)}${Zo}`;if((n?Zn(v,t.fontSize,t.fontWidthToHeightRatio):jn(v,t.fontFamily,t.fontSize))<=e||_===1){l.push(v.trim()),u=u.substring(_);break}_--}}}return u&&l.push(u.trim()),l}).flat()}function ug(t,e=void 0,n=void 0,i=!0,r=Go,o=!1){const s=Array.isArray(t)?t.map(u=>ye(jo,u)):[ye(jo,t)],a=s.map(u=>lg(u,e,i,r,o)),c=s[0];let l=-c.fontSize*(c.lineHeight-1);const f=[];return s.forEach((u,h)=>{var d;let g=a[h];const p=h>0?f[h-1]:void 0,_=p?p.marginBottom:0,v=u.marginTop,x=Math.max(_,v);l+=x;const y=u.fontSize*u.lineHeight;let T=0;for(let k=0;k<g.length;k+=1){let b=g[k];l+=y;const S=`${b} …`,L=i?Zn(S,u.fontSize,u.fontWidthToHeightRatio):jn(S,u.fontFamily,u.fontSize);if(T=Math.max(L,T),n&&l+y>n&&k!==g.length-1){b.charAt(b.length-1)===Zo&&(b=b.substr(0,g[k].length-1)),L<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:l-((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 fg(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,c=Math.max(s,a),l={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(l).filter(([u,h])=>h).map(([u,h])=>`${eg(u)}="${ng(h.toString())}"`).join(" ")}>${i._lines.map((u,h)=>{let d;return r===0&&h===0?d=.8+c:h===0?d=c+i.lineHeight:d=i.lineHeight,`<tspan x="${e}" dy="${d}em">${u.length?u:" "}</tspan>`}).join("")}</tspan>`})}function hg(t){return Ql(t,e=>e._estimatedHeight)}const dg=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function pg(t,e,n,i){var r,o;const s=ug(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),l=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",tg(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Xt.Top){const u=hg(s),h=n.verticalAlign===Xt.Middle?-u/2:n.verticalAlign===Xt.Bottom?-u:0;f+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${l} ${f})`):t.removeAttribute("transform");{const u=new DOMParser;t.textContent="",s.forEach(h=>{const d=fg([h],l,f).join(""),g=Kp(d,dg),p=u.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(p)})}}const gg=Object.assign(Object.assign({},Ln),{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:Wt.Middle,tickTextFitMode:qn.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}),Ga=V`
|
|
92
|
-
label: axis-component;
|
|
93
|
-
`,_g=hn`
|
|
94
|
-
:root {
|
|
95
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
96
|
-
/* --vis-axis-font-family: */
|
|
97
|
-
--vis-axis-tick-color: #e8e9ef;
|
|
98
|
-
/* --vis-axis-domain-color: // Undefined by default to allow fallback to var(--vis-axis-tick-color) */
|
|
99
|
-
--vis-axis-grid-color: #e8e9ef;
|
|
100
|
-
--vis-axis-label-color: #6c778c;
|
|
101
|
-
--vis-axis-tick-label-color: #6c778c;
|
|
102
|
-
--vis-axis-tick-label-font-size: 12px;
|
|
103
|
-
--vis-axis-tick-label-cursor: default;
|
|
104
|
-
--vis-axis-tick-label-text-decoration: none;
|
|
105
|
-
--vis-axis-label-font-size: 14px;
|
|
106
|
-
--vis-axis-tick-line-width: 1px;
|
|
107
|
-
--vis-axis-tick-label-hide-transition: opacity 400ms ease-in-out;
|
|
108
|
-
--vis-axis-grid-line-width: 1px;
|
|
109
|
-
/* --vis-axis-domain-line-width: // Undefined by default to allow fallback to var(--vis-axis-grid-line-width) */
|
|
110
|
-
|
|
111
|
-
--vis-dark-axis-tick-color: #6c778c;
|
|
112
|
-
/* --vis-dark-axis-domain-color: // Undefined by default to allow fallback to var(--vis-dark-axis-tick-color) */
|
|
113
|
-
--vis-dark-axis-tick-label-color: #e8e9ef;
|
|
114
|
-
--vis-dark-axis-grid-color: #6c778c;
|
|
115
|
-
--vis-dark-axis-label-color: #fefefe;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
body.theme-dark ${`.${Ga}`} {
|
|
119
|
-
--vis-axis-tick-color: var(--vis-dark-axis-tick-color);
|
|
120
|
-
--vis-axis-domain-color: var(--vis-dark-axis-domain-color);
|
|
121
|
-
--vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
|
|
122
|
-
--vis-axis-grid-color: var(--vis-dark-axis-grid-color);
|
|
123
|
-
--vis-axis-label-color: var(--vis-dark-axis-label-color);
|
|
124
|
-
}
|
|
125
|
-
`,Sr=V`
|
|
126
|
-
label: hide-tick-line;
|
|
127
|
-
`,Mr=V`
|
|
128
|
-
label: hide-domain;
|
|
129
|
-
`,Za=V`
|
|
130
|
-
label: axis;
|
|
131
|
-
|
|
132
|
-
user-select: none;
|
|
133
|
-
|
|
134
|
-
.domain {
|
|
135
|
-
stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
|
|
136
|
-
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&${`.${Sr}`} {
|
|
140
|
-
.tick > line {
|
|
141
|
-
opacity: 0;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&${`.${Mr}`} {
|
|
146
|
-
.domain {
|
|
147
|
-
opacity: 0;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
`,ja=V`
|
|
151
|
-
label: grid;
|
|
152
|
-
|
|
153
|
-
.domain {
|
|
154
|
-
opacity: 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
line {
|
|
158
|
-
stroke: var(--vis-axis-grid-color);
|
|
159
|
-
stroke-width: var(--vis-axis-grid-line-width);
|
|
160
|
-
}
|
|
161
|
-
`,Qa=V`
|
|
162
|
-
label: tick;
|
|
163
|
-
|
|
164
|
-
stroke: none;
|
|
165
|
-
font-size: var(--vis-axis-tick-label-font-size);
|
|
166
|
-
|
|
167
|
-
line {
|
|
168
|
-
stroke: var(--vis-axis-tick-color);
|
|
169
|
-
stroke-width: var(--vis-axis-tick-line-width);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
text {
|
|
173
|
-
fill: var(--vis-axis-tick-label-color);
|
|
174
|
-
cursor: var(--vis-axis-tick-label-cursor);
|
|
175
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
176
|
-
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
177
|
-
stroke: none;
|
|
178
|
-
}
|
|
179
|
-
`,Cr=V`
|
|
180
|
-
label: label;
|
|
181
|
-
fill: var(--vis-axis-label-color);
|
|
182
|
-
font-size: var(--vis-axis-label-font-size);
|
|
183
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
184
|
-
text-anchor: middle;
|
|
185
|
-
`,Ja=V`
|
|
186
|
-
label: tick-label;
|
|
187
|
-
`,Ka=V`
|
|
188
|
-
label: tick-label-hideable;
|
|
189
|
-
opacity: 0;
|
|
190
|
-
transition: var(--vis-axis-tick-label-hide-transition);
|
|
191
|
-
`,mg=Object.freeze(Object.defineProperty({__proto__:null,axis:Za,globalStyles:_g,grid:ja,hideDomain:Mr,hideTickLine:Sr,label:Cr,root:Ga,tick:Qa,tickLabel:Ja,tickLabelHideable:Ka},Symbol.toStringTag,{value:"Module"}));class Qn extends lr{constructor(e){super(),this._defaultConfig=gg,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",ja)}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===R.X?E.Bottom:E.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case R.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 E.Top:return{top:e.height,left:s,right:a};case E.Bottom:default:return{bottom:e.height,left:s,right:a}}}case R.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case E.Right:return{right:e.width,top:o,bottom:s};case E.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 R.X:switch(i){case E.Top:return{top:e.top,left:e.left};case E.Bottom:default:return{top:e.top+this._height,left:e.left}}case R.Y:switch(i){case E.Right:return{top:e.top,left:e.left+this._width};case E.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(),xt(this.gridGroup,e).call(r).style("opacity",1)}else xt(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 R.X:switch(n){case E.Top:return Ya(this.xScale).ticks(r).tickPadding(i);case E.Bottom:default:return Wa(this.xScale).ticks(r).tickPadding(i)}case R.Y:switch(n){case E.Right:return Va(this.yScale).ticks(r).tickPadding(i);case E.Left:default:return Xa(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case R.X:switch(n){case E.Top:return Ya(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case E.Bottom:default:return Wa(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case R.Y:switch(n){case E.Right:return Va(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case E.Left:default:return Xa(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(),xt(e,n).call(r);const s=e.selectAll("g.tick");s.classed(Qa,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(c=>o.some(l=>ve(c,l))).classed(Ja,!0).classed(Ka,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(c=>Fi(c)),a.each((c,l,f)=>{var u,h;let d=(h=(u=i.tickFormat)===null||u===void 0?void 0:u.call(i,c,l,o))!==null&&h!==void 0?h:`${c}`;const g=f[l],p=i.tickTextWidth||(i.type===R.X?this._containerWidth/(s.size()+1):this._containerWidth/5),_=getComputedStyle(g),v=Number.parseFloat(_.fontSize),x=_.fontFamily,y={verticalAlign:i.type===R.X?Xt.Top:Xt.Middle,width:p,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===qn.Trim){const k=Mt(g).text(d);cg(k,p,i.tickTextTrimType,!0,v,.58),d=Mt(g).text()}pg(g,{text:d,fontFamily:x,fontSize:v},y)}),e.classed(Za,!0).classed(Sr,!i.tickLine).classed(Mr,!i.domainLine),i.fullSize){const c=this._getFullDomainPath(0);xt(e.select(".domain"),n).attr("d",c)}}_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 l=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(_f(l,d,-5)){u._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];Mt(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===R.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===R.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===R.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===R.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case R.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case R.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(`.${Cr}`).remove();const a=this.getPosition(),{width:c,height:l}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=i===R.X?this._width/2:Math.pow(-1,+(a===E.Left))*c,u=i===R.X?Math.pow(-1,+(a===E.Top))*l:this._height/2,h=i===R.X?0:Math.pow(-1,+(a===E.Left))*o,d=i===R.X?Math.pow(-1,+(a===E.Top))*o:0,g=i===R.Y?-90:0;e.append("text").attr("class",Cr).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 R.X:switch(n){case E.Top:return 0;case E.Bottom:default:return .75}case R.Y:switch(n){case E.Right:return .75;case E.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===R.X?0:this._getYTickTextTranslate(n,r),c=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",c).attr("text-anchor",s)}_getTickTextAnchor(e){switch(e){case ut.Left:return"start";case ut.Right:return"end";case ut.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=E.Left){const r=this._axisRawBBox.width-9;switch(e){case ut.Left:return n===E.Left?r*-1:0;case ut.Right:return n===E.Left?0:r;case ut.Center:return n===E.Left?r*-.5:r*.5;default:return 0}}}Qn.selectors=mg;const vg=Object.assign(Object.assign({},Ln),{color:void 0,curveType:I.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1}),tc=V`
|
|
192
|
-
label: area-component;
|
|
193
|
-
`,yg=hn`
|
|
194
|
-
:root {
|
|
195
|
-
--vis-area-cursor: default;
|
|
196
|
-
--vis-area-fill-opacity: 1;
|
|
197
|
-
--vis-area-stroke-color: none;
|
|
198
|
-
--vis-area-stroke-width: 0px;
|
|
199
|
-
--vis-area-stroke-dasharray: none;
|
|
200
|
-
--vis-area-stroke-opacity: 1;
|
|
201
|
-
--vis-area-hover-fill-opacity: none;
|
|
202
|
-
--vis-area-hover-stroke-width: none;
|
|
203
|
-
|
|
204
|
-
/* Dark Theme */
|
|
205
|
-
--vis-dark-area-stroke-color: none;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
body.theme-dark ${`.${tc}`} {
|
|
209
|
-
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
`,Ar=V`
|
|
213
|
-
label: area;
|
|
214
|
-
cursor: var(--vis-area-cursor);
|
|
215
|
-
fill-opacity: var(--vis-area-fill-opacity);
|
|
216
|
-
stroke-width: var(--vis-area-stroke-width);
|
|
217
|
-
stroke-dasharray: var(--vis-area-stroke-dasharray);
|
|
218
|
-
stroke: var(--vis-area-stroke-color);
|
|
219
|
-
stroke-opacity: var(--vis-area-stroke-opacity);
|
|
220
|
-
|
|
221
|
-
&:hover {
|
|
222
|
-
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
223
|
-
stroke-width: var(--vis-area-hover-stroke-width);
|
|
224
|
-
}
|
|
225
|
-
`,xg=Object.freeze(Object.defineProperty({__proto__:null,area:Ar,globalStyles:yg,root:tc},Symbol.toStringTag,{value:"Module"}));class fe extends lr{constructor(e){super(),this._defaultConfig=vg,this.config=this._defaultConfig,this.stacked=!0,this.events={[fe.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=Ot(e)?e:n.duration,o=yr[n.curveType];this._areaGen=up().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=jt(n.y)?n.y:[n.y],a=i.map((p,_)=>this.xScale(ot(p,n.x,_))),c=eu(i,n.baseline,s,this._prevNegative);this._prevNegative=c.map(p=>!!p.isMostlyNegative);const l=c.map(p=>p.map((_,v)=>({y0:this.yScale(_[0]),y1:this.yScale(_[1]),x:a[v]}))),f=l.length-1,u=l.reverse(),h=this.g.selectAll(`.${Ar}`).data(u),d=h.enter().append("path").attr("class",Ar).attr("d",p=>this._areaGen(p)||this._emptyPath()).style("opacity",0).style("fill",(p,_)=>Ye(i,n.color,f-_)),g=xt(d.merge(h),r).style("opacity",(p,_)=>p.some(x=>x.y0-x.y1!==0)?ot(i,n.opacity,f-_):0).style("fill",(p,_)=>Ye(i,n.color,f-_)).style("cursor",(p,_)=>li(i,n.cursor,f-_));r?g.attrTween("d",(_,v,x)=>{const y=Mt(x[v]).attr("d"),T=this._areaGen(_)||this._emptyPath();return Ua(y,T)}):g.attr("d",p=>this._areaGen(p)||this._emptyPath()),xt(h.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=jt(n.y)?n.y:[n.y],o=e?Jr(i.data,this.xScale.domain(),n.x):i.data;return tu(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]}])}}fe.selectors=xg;const $r=Symbol("componentAccessorKey"),wg=Symbol("tooltipAccessorKey"),bg=Symbol("crosshairAccessorKey"),ec=Symbol("axisAccessorKey"),kg=Symbol("annotationsAccessorKey");function Er(t,e){return ve(t,e)}function Jn(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 Tg=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=Jn(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 c;s.components.map(l=>l.config),(c=o.value)==null||c.updateContainer({...m.toRaw(r.value),...m.toRaw(s)})}),m.onMounted(()=>{a.value&&(o.value=new rp(a.value,{...m.toRaw(s)},i.value))}),m.onUnmounted(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),m.provide($r,{data:i,update:c=>s.components=[...s.components,c],destroy:()=>{var c;return s.components=(c=s.components)==null?void 0:c.filter(l=>!l.isDestroyed())}}),m.provide(ec,{data:i,update:c=>s[`${c.config.type}Axis`]=c,destroy:c=>{s[`${c}Axis`]=void 0}}),m.provide(bg,{data:i,update:c=>s.crosshair=c,destroy:()=>{s.crosshair=void 0}}),m.provide(wg,{data:i,update:c=>s.tooltip=c,destroy:()=>{s.tooltip=void 0}}),m.provide(kg,{data:i,update:c=>s.annotations=c,destroy:()=>{s.annotations=void 0}}),e({component:o}),(c,l)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[m.renderSlot(c.$slots,"default")],512))}}),Sg={"data-vis-component":""};fe.selectors;const Mg=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($r),i=t,r=m.computed(()=>n.data.value??i.data),o=Jn(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new fe(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,c)=>{var l;Er(a,c)||(l=s.value)==null||l.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(m.openBlock(),m.createElementBlock("div",Sg))}}),Cg={"data-vis-axis":""};Qn.selectors;const nc=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(ec),i=t,r=m.computed(()=>n.data.value??i.data),o=Jn(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Qn(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,c)=>{var l;Er(a,c)||(l=s.value)==null||l.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(m.openBlock(),m.createElementBlock("div",Cg))}}),Ag={"data-vis-component":""};ue.selectors;const $g=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($r),i=t,r=m.computed(()=>n.data.value??i.data),o=Jn(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new ue(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,c)=>{var l;Er(a,c)||(l=s.value)==null||l.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(m.openBlock(),m.createElementBlock("div",Ag))}});(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)}})(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Eg(){const t=m.shallowRef(!1),e=m.getCurrentInstance();return e&&m.onMounted(()=>{t.value=!0},e),t}const Ng={class:"w-full h-[400px] flex flex-col items-end"},Og={width:"0",height:"0"},Dg=["stop-color"],Rg=["stop-color"],Fg=["stop-color"],Bg=m.defineComponent({__name:"Area",props:{data:{},categories:{},index:{},colors:{},margin:{default:()=>({top:0,bottom:0,left:0,right:0})},filterOpacity:{default:.2},xFormatter:{},yFormatter:{},showXAxis:{type:Boolean,default:!0},showYAxis:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},showGridLine:{type:Boolean,default:!0},customTooltip:{},curveType:{default:I.MonotoneX},showGradiant:{type:Boolean,default:!0}},emits:["legendItemClick"],setup(t,{emit:e}){function n(f=3){const u=Math.floor(f/2),h=f%2,d=u+h,g=u;return[...Array.from(new Array(d).keys()).map(p=>`hsl(var(--vis-primary-color) / ${1-1/d*p})`),...Array.from(new Array(g).keys()).map(p=>`hsl(var(--vis-secondary-color) / ${1-1/g*p})`)]}const i=t,r=e,o=m.computed(()=>i.index),s=m.computed(()=>{var f;return(f=i.colors)!=null&&f.length?i.colors:n(i.categories.length)}),a=m.ref(i.categories.map((f,u)=>({name:f,color:s.value[u],inactive:!1}))),c=Eg();function l(f,u){r("legendItemClick",f,u)}return(f,u)=>{const h=m.resolveComponent("ChartLegend"),d=m.resolveComponent("ChartCrosshair");return m.openBlock(),m.createElementBlock("div",Ng,[f.showLegend?(m.openBlock(),m.createBlock(h,{key:0,items:a.value,"onUpdate:items":u[0]||(u[0]=g=>a.value=g),onLegendItemClick:l},null,8,["items"])):m.createCommentVNode("",!0),m.createVNode(m.unref(Tg),{style:m.normalizeStyle({height:m.unref(c)?"100%":"auto"}),margin:{left:20,right:20},data:f.data},{default:m.withCtx(()=>[(m.openBlock(),m.createElementBlock("svg",Og,[m.createElementVNode("defs",null,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(s.value,(g,p)=>(m.openBlock(),m.createElementBlock("linearGradient",{key:p,x1:"0",y1:"0",x2:"0",y2:"1"},[f.showGradiant?(m.openBlock(),m.createElementBlock(m.Fragment,{key:0},[m.createElementVNode("stop",{offset:"5%","stop-color":g,"stop-opacity":"0.4"},null,8,Dg),m.createElementVNode("stop",{offset:"95%","stop-color":g,"stop-opacity":"0"},null,8,Rg)],64)):(m.openBlock(),m.createElementBlock("stop",{key:1,offset:"0%","stop-color":g},null,8,Fg))]))),128))])])),f.showTooltip?(m.openBlock(),m.createBlock(d,{key:0,colors:s.value,items:a.value,index:o.value,"custom-tooltip":f.customTooltip},null,8,["colors","items","index","custom-tooltip"])):m.createCommentVNode("",!0),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.categories,g=>{var p;return m.openBlock(),m.createBlock(m.unref(Mg),{key:g,x:(_,v)=>v,y:_=>_[g],color:"auto","curve-type":f.curveType,attributes:{[m.unref(fe).selectors.area]:{fill:""}},opacity:(p=a.value.find(_=>_.name===g))!=null&&p.inactive?f.filterOpacity:1},null,8,["x","y","curve-type","attributes","opacity"])}),128)),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.categories,(g,p)=>{var _;return m.openBlock(),m.createBlock(m.unref($g),{key:g,x:(v,x)=>x,y:v=>v[g],color:s.value[p],"curve-type":f.curveType,attributes:{[m.unref(ue).selectors.line]:{opacity:(_=a.value.find(v=>v.name===g))!=null&&_.inactive?f.filterOpacity:1}}},null,8,["x","y","color","curve-type","attributes"])}),128)),f.showXAxis?(m.openBlock(),m.createBlock(m.unref(nc),{key:1,type:"x","tick-format":f.xFormatter??(g=>{var p;return(p=f.data[g])==null?void 0:p[o.value]}),"grid-line":!1,"tick-line":!1,"tick-text-color":"hsl(var(--vis-text-color))"},null,8,["tick-format"])):m.createCommentVNode("",!0),f.showYAxis?(m.openBlock(),m.createBlock(m.unref(nc),{key:2,type:"y","tick-line":!1,"tick-format":f.yFormatter,"domain-line":!1,"grid-line":f.showGridLine,attributes:{[m.unref(Qn).selectors.grid]:{class:"text-muted"}},"tick-text-color":"hsl(var(--vis-text-color))"},null,8,["tick-format","grid-line","attributes"])):m.createCommentVNode("",!0),m.renderSlot(f.$slots,"default")]),_:3},8,["style","data"])])}}});var ic=(t=>(t.Top="top",t.Bottom="bottom",t))(ic||{});const Lg=((t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n})(m.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(t){return(e,n)=>(m.openBlock(),m.createElementBlock("button",{class:m.normalizeClass(["button",`button--${e.variant||"primary"}`,`button--${e.size||"medium"}`])},[m.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-52b6ec0c"]]);mt.Area=Bg,mt.Button=Lg,mt.PaginationPosition=ic,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});
|