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