vue-chrts 0.0.53 → 0.0.55

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.
@@ -1,54 +0,0 @@
1
- (function(H,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(H=typeof globalThis<"u"?globalThis:H||self,p(H["vue-chrts"]={},H.Vue))})(this,function(H,p){"use strict";var Fe="http://www.w3.org/1999/xhtml";const at={svg:"http://www.w3.org/2000/svg",xhtml:Fe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ot(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),at.hasOwnProperty(t)?{space:at[t],local:e}:e}function yn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fe&&t.documentElement.namespaceURI===Fe?t.createElement(e):t.createElementNS(n,e)}}function bn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ct(e){var t=ot(e);return(t.local?bn:yn)(t)}function _n(){}function ft(e){return e==null?_n:function(){return this.querySelector(e)}}function wn(e){typeof e!="function"&&(e=ft(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=new Array(a),o,f,l=0;l<a;++l)(o=s[l])&&(f=e.call(o,o.__data__,l,s))&&("__data__"in o&&(f.__data__=o.__data__),c[l]=f);return new I(r,this._parents)}function An(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Sn(){return[]}function Cn(e){return e==null?Sn:function(){return this.querySelectorAll(e)}}function $n(e){return function(){return An(e.apply(this,arguments))}}function En(e){typeof e=="function"?e=$n(e):e=Cn(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],c=a.length,o,f=0;f<c;++f)(o=a[f])&&(r.push(e.call(o,o.__data__,f,a)),i.push(o));return new I(r,i)}function Rn(e){return function(){return this.matches(e)}}function lt(e){return function(t){return t.matches(e)}}var On=Array.prototype.find;function Nn(e){return function(){return On.call(this.children,e)}}function Tn(){return this.firstElementChild}function kn(e){return this.select(e==null?Tn:Nn(typeof e=="function"?e:lt(e)))}var Dn=Array.prototype.filter;function In(){return Array.from(this.children)}function Mn(e){return function(){return Dn.call(this.children,e)}}function zn(e){return this.selectAll(e==null?In:Mn(typeof e=="function"?e:lt(e)))}function Bn(e){typeof e!="function"&&(e=Rn(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=[],o,f=0;f<a;++f)(o=s[f])&&e.call(o,o.__data__,f,s)&&c.push(o);return new I(r,this._parents)}function ut(e){return new Array(e.length)}function Fn(){return new I(this._enter||this._groups.map(ut),this._parents)}function de(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}de.prototype={constructor:de,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pn(e){return function(){return e}}function Hn(e,t,n,r,i,s){for(var a=0,c,o=t.length,f=s.length;a<f;++a)(c=t[a])?(c.__data__=s[a],r[a]=c):n[a]=new de(e,s[a]);for(;a<o;++a)(c=t[a])&&(i[a]=c)}function Ln(e,t,n,r,i,s,a){var c,o,f=new Map,l=t.length,u=s.length,g=new Array(l),d;for(c=0;c<l;++c)(o=t[c])&&(g[c]=d=a.call(o,o.__data__,c,t)+"",f.has(d)?i[c]=o:f.set(d,o));for(c=0;c<u;++c)d=a.call(e,s[c],c,s)+"",(o=f.get(d))?(r[c]=o,o.__data__=s[c],f.delete(d)):n[c]=new de(e,s[c]);for(c=0;c<l;++c)(o=t[c])&&f.get(g[c])===o&&(i[c]=o)}function Vn(e){return e.__data__}function Wn(e,t){if(!arguments.length)return Array.from(this,Vn);var n=t?Ln:Hn,r=this._parents,i=this._groups;typeof e!="function"&&(e=Pn(e));for(var s=i.length,a=new Array(s),c=new Array(s),o=new Array(s),f=0;f<s;++f){var l=r[f],u=i[f],g=u.length,d=qn(e.call(l,l&&l.__data__,f,r)),v=d.length,h=c[f]=new Array(v),m=a[f]=new Array(v),x=o[f]=new Array(g);n(l,u,h,m,x,d,t);for(var w=0,A=0,R,C;w<v;++w)if(R=h[w]){for(w>=A&&(A=w+1);!(C=m[A])&&++A<v;);R._next=C||null}}return a=new I(a,r),a._enter=c,a._exit=o,a}function qn(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Un(){return new I(this._exit||this._groups.map(ut),this._parents)}function Yn(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function Gn(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),c=new Array(i),o=0;o<a;++o)for(var f=n[o],l=r[o],u=f.length,g=c[o]=new Array(u),d,v=0;v<u;++v)(d=f[v]||l[v])&&(g[v]=d);for(;o<i;++o)c[o]=n[o];return new I(c,this._parents)}function Xn(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function Zn(e){e||(e=Kn);function t(u,g){return u&&g?e(u.__data__,g.__data__):!u-!g}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],c=a.length,o=i[s]=new Array(c),f,l=0;l<c;++l)(f=a[l])&&(o[l]=f);o.sort(t)}return new I(i,this._parents).order()}function Kn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jn(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qn(){return Array.from(this)}function jn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function er(){let e=0;for(const t of this)++e;return e}function tr(){return!this.node()}function nr(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,c;s<a;++s)(c=i[s])&&e.call(c,c.__data__,s,i);return this}function rr(e){return function(){this.removeAttribute(e)}}function ir(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sr(e,t){return function(){this.setAttribute(e,t)}}function ar(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function or(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function cr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fr(e,t){var n=ot(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?ir:rr:typeof t=="function"?n.local?cr:or:n.local?ar:sr)(n,t))}function ht(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lr(e){return function(){this.style.removeProperty(e)}}function ur(e,t,n){return function(){this.style.setProperty(e,t,n)}}function hr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function dr(e,t,n){return arguments.length>1?this.each((t==null?lr:typeof t=="function"?hr:ur)(e,t,n??"")):pr(this.node(),e)}function pr(e,t){return e.style.getPropertyValue(t)||ht(e).getComputedStyle(e,null).getPropertyValue(t)}function gr(e){return function(){delete this[e]}}function vr(e,t){return function(){this[e]=t}}function mr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xr(e,t){return arguments.length>1?this.each((t==null?gr:typeof t=="function"?mr:vr)(e,t)):this.node()[e]}function dt(e){return e.trim().split(/^|\s+/)}function Pe(e){return e.classList||new pt(e)}function pt(e){this._node=e,this._names=dt(e.getAttribute("class")||"")}pt.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function gt(e,t){for(var n=Pe(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function vt(e,t){for(var n=Pe(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function yr(e){return function(){gt(this,e)}}function br(e){return function(){vt(this,e)}}function _r(e,t){return function(){(t.apply(this,arguments)?gt:vt)(this,e)}}function wr(e,t){var n=dt(e+"");if(arguments.length<2){for(var r=Pe(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?_r:t?yr:br)(n,t))}function Ar(){this.textContent=""}function Sr(e){return function(){this.textContent=e}}function Cr(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function $r(e){return arguments.length?this.each(e==null?Ar:(typeof e=="function"?Cr:Sr)(e)):this.node().textContent}function Er(){this.innerHTML=""}function Rr(e){return function(){this.innerHTML=e}}function Or(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Nr(e){return arguments.length?this.each(e==null?Er:(typeof e=="function"?Or:Rr)(e)):this.node().innerHTML}function Tr(){this.nextSibling&&this.parentNode.appendChild(this)}function kr(){return this.each(Tr)}function Dr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ir(){return this.each(Dr)}function Mr(e){var t=typeof e=="function"?e:ct(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function zr(){return null}function Br(e,t){var n=typeof e=="function"?e:ct(e),r=t==null?zr:typeof t=="function"?t:ft(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Fr(){var e=this.parentNode;e&&e.removeChild(this)}function Pr(){return this.each(Fr)}function Hr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vr(e){return this.select(e?Lr:Hr)}function Wr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function qr(e){return function(t){e.call(this,t,this.__data__)}}function Ur(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Yr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function Gr(e,t,n){return function(){var r=this.__on,i,s=qr(t);if(r){for(var a=0,c=r.length;a<c;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Xr(e,t,n){var r=Ur(e+""),i,s=r.length,a;if(arguments.length<2){var c=this.node().__on;if(c){for(var o=0,f=c.length,l;o<f;++o)for(i=0,l=c[o];i<s;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(c=t?Gr:Yr,i=0;i<s;++i)this.each(c(r[i],t,n));return this}function mt(e,t,n){var r=ht(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zr(e,t){return function(){return mt(this,e,t)}}function Kr(e,t){return function(){return mt(this,e,t.apply(this,arguments))}}function Jr(e,t){return this.each((typeof t=="function"?Kr:Zr)(e,t))}function*Qr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var jr=[null];function I(e,t){this._groups=e,this._parents=t}function ei(){return this}I.prototype={constructor:I,select:wn,selectAll:En,selectChild:kn,selectChildren:zn,filter:Bn,data:Wn,enter:Fn,exit:Un,join:Yn,merge:Gn,selection:ei,order:Xn,sort:Zn,call:Jn,nodes:Qn,node:jn,size:er,empty:tr,each:nr,attr:fr,style:dr,property:xr,classed:wr,text:$r,html:Nr,raise:kr,lower:Ir,append:Mr,insert:Br,remove:Pr,clone:Vr,datum:Wr,on:Xr,dispatch:Jr,[Symbol.iterator]:Qr};function xt(e){return typeof e=="string"?new I([[document.querySelector(e)]],[document.documentElement]):new I([[e]],jr)}var yt;(function(e){e[e.SVG=0]="SVG",e[e.HTML=1]="HTML"})(yt||(yt={}));var ee;(function(e){e.Fit="fit",e.Extend="extend",e.FitWidth="fit_width"})(ee||(ee={}));function ti(e,t){let n,r;for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}function*ni(e){for(const t of e)yield*t}function ri(e){return Array.from(ni(e))}const bt=e=>typeof e=="number",ii=e=>typeof e=="function",si=e=>Array.isArray(e),ai=e=>e instanceof Object,pe=e=>e.constructor.name!=="Function"&&e.constructor.name!=="Object",_t=e=>ai(e)&&!si(e)&&!ii(e)&&!pe(e),He=(e,t,n=[],r=new Set)=>{if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;if(r.has(e))return!0;r.add(e);for(let i=0;i<e.length;i++)if(!He(e[i],t[i],n,r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(typeof e=="object"&&e!==null&&t!==null){if(typeof t!="object")return!1;if(e===t)return!0;const i=Object.keys(e).filter(a=>!n.includes(a)),s=Object.keys(t).filter(a=>!n.includes(a));if(i.length!==s.length)return!1;if(r.has(e))return!0;r.add(e);for(const a of i)if(!He(e[a],t[a],n,r))return!1;return!0}return e===t},wt=e=>e.flat(),ge=(e,t=new Map)=>{if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){const n=[];t.set(e,n);for(const r of e)n.push(t.has(r)?t.get(r):ge(r,t));return n}if(pe(e))return e;if(e instanceof Object){const n={};t.set(e,n);const r=e;return Object.keys(e).reduce((i,s)=>(i[s]=t.has(r[s])?t.get(r[s]):ge(r[s],t),i),n),n}return e},At=(e,t,n=new Map)=>{if(!e||!t||e===t)return e;const r=pe(e)?e:ge(e);return n.has(t)?n.get(t):(n.set(t,r),Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(_t(e[i])&&_t(t[i])?r[i]=At(e[i],t[i],n):pe(t)?r[i]=t:r[i]=ge(t[i]))}),r)};function te(e){return e.filter(t=>t&&!bt(t))}function X(e,t,n){return Math.min(Math.max(e,t),n)}var W=[],oi=function(){return W.some(function(e){return e.activeTargets.length>0})},ci=function(){return W.some(function(e){return e.skippedTargets.length>0})},St="ResizeObserver loop completed with undelivered notifications.",fi=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:St}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=St),window.dispatchEvent(e)},ne;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ne||(ne={}));var q=function(e){return Object.freeze(e)},li=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,q(this)}return e}(),Ct=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,q(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,s=t.right,a=t.bottom,c=t.left,o=t.width,f=t.height;return{x:n,y:r,top:i,right:s,bottom:a,left:c,width:o,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Le=function(e){return e instanceof SVGElement&&"getBBox"in e},$t=function(e){if(Le(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,s=i.offsetWidth,a=i.offsetHeight;return!(s||a||e.getClientRects().length)},Et=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ui=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},re=typeof window<"u"?window:{},ve=new WeakMap,Rt=/auto|scroll/,hi=/^tb|vertical/,di=/msie|trident/i.test(re.navigator&&re.navigator.userAgent),z=function(e){return parseFloat(e||"0")},Z=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new li((n?t:e)||0,(n?e:t)||0)},Ot=q({devicePixelContentBoxSize:Z(),borderBoxSize:Z(),contentBoxSize:Z(),contentRect:new Ct(0,0,0,0)}),Nt=function(e,t){if(t===void 0&&(t=!1),ve.has(e)&&!t)return ve.get(e);if($t(e))return ve.set(e,Ot),Ot;var n=getComputedStyle(e),r=Le(e)&&e.ownerSVGElement&&e.getBBox(),i=!di&&n.boxSizing==="border-box",s=hi.test(n.writingMode||""),a=!r&&Rt.test(n.overflowY||""),c=!r&&Rt.test(n.overflowX||""),o=r?0:z(n.paddingTop),f=r?0:z(n.paddingRight),l=r?0:z(n.paddingBottom),u=r?0:z(n.paddingLeft),g=r?0:z(n.borderTopWidth),d=r?0:z(n.borderRightWidth),v=r?0:z(n.borderBottomWidth),h=r?0:z(n.borderLeftWidth),m=u+f,x=o+l,w=h+d,A=g+v,R=c?e.offsetHeight-A-e.clientHeight:0,C=a?e.offsetWidth-w-e.clientWidth:0,T=i?m+w:0,_=i?x+A:0,ze=r?r.width:z(n.width)-T-C,Be=r?r.height:z(n.height)-_-R,Ks=ze+m+C+w,Js=Be+x+R+A,xn=q({devicePixelContentBoxSize:Z(Math.round(ze*devicePixelRatio),Math.round(Be*devicePixelRatio),s),borderBoxSize:Z(Ks,Js,s),contentBoxSize:Z(ze,Be,s),contentRect:new Ct(u,o,ze,Be)});return ve.set(e,xn),xn},Tt=function(e,t,n){var r=Nt(e,n),i=r.borderBoxSize,s=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ne.DEVICE_PIXEL_CONTENT_BOX:return a;case ne.BORDER_BOX:return i;default:return s}},pi=function(){function e(t){var n=Nt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=q([n.borderBoxSize]),this.contentBoxSize=q([n.contentBoxSize]),this.devicePixelContentBoxSize=q([n.devicePixelContentBoxSize])}return e}(),kt=function(e){if($t(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},gi=function(){var e=1/0,t=[];W.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(f){var l=new pi(f.target),u=kt(f.target);c.push(l),f.lastReportedSize=Tt(f.target,f.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Dt=function(e){W.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(kt(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},vi=function(){var e=0;for(Dt(e);oi();)e=gi(),Dt(e);return ci()&&fi(),e>0},Ve,It=[],mi=function(){return It.splice(0).forEach(function(e){return e()})},xi=function(e){if(!Ve){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return mi()}).observe(n,r),Ve=function(){n.textContent="".concat(t?t--:t++)}}It.push(e),Ve()},yi=function(e){xi(function(){requestAnimationFrame(e)})},me=0,bi=function(){return!!me},_i=250,wi={attributes:!0,characterData:!0,childList:!0,subtree:!0},Mt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zt=function(e){return e===void 0&&(e=0),Date.now()+e},We=!1,Ai=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=_i),!We){We=!0;var r=zt(t);yi(function(){var i=!1;try{i=vi()}finally{if(We=!1,t=r-zt(),!bi())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,wi)};document.body?n():re.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Mt.forEach(function(n){return re.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Mt.forEach(function(n){return re.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),qe=new Ai,Bt=function(e){!me&&e>0&&qe.start(),me+=e,!me&&qe.stop()},Si=function(e){return!Le(e)&&!ui(e)&&getComputedStyle(e).display==="inline"},Ci=function(){function e(t,n){this.target=t,this.observedBox=n||ne.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Tt(this.target,this.observedBox,!0);return Si(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),$i=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),xe=new WeakMap,Ft=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ye=function(){function e(){}return e.connect=function(t,n){var r=new $i(t,n);xe.set(t,r)},e.observe=function(t,n,r){var i=xe.get(t),s=i.observationTargets.length===0;Ft(i.observationTargets,n)<0&&(s&&W.push(i),i.observationTargets.push(new Ci(n,r&&r.box)),Bt(1),qe.schedule())},e.unobserve=function(t,n){var r=xe.get(t),i=Ft(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&W.splice(W.indexOf(r),1),r.observationTargets.splice(i,1),Bt(-1))},e.disconnect=function(t){var n=this,r=xe.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ei=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ye.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Et(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ye.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Et(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ye.unobserve(this,t)},e.prototype.disconnect=function(){ye.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Ri=globalThis.ResizeObserver||Ei,Pt={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 ie{constructor(t){this._defaultConfig=Pt,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=t;const n=xt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",ie.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(t){var n;this.prevConfig=this.config,this.config=At(this._defaultConfig,t),(t==null?void 0:t.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(t.svgDefs))}_preRender(){}_render(t){const{config:n}=this;xt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(t=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(t)})}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||ie.DEFAULT_CONTAINER_HEIGHT}get width(){return X(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return X(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:t}=this;(t.sizing===ee.Fit||t.sizing===ee.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const t=this._container.getBoundingClientRect();this._containerSize={width:t.width,height:t.height},this._resizeObserver=new Ri((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),s={width:i.width,height:i.height};!He(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var t;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(t=this._resizeObserver)===null||t===void 0||t.disconnect(),this.svg.remove()}}ie.DEFAULT_CONTAINER_HEIGHT=300;function Oi(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ni(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ti=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},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 t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ni(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Oi(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),E="-ms-",be="-moz-",y="-webkit-",Ht="comm",Ue="rule",Ye="decl",ki="@import",Lt="@keyframes",Di="@layer",Ii=Math.abs,_e=String.fromCharCode,Mi=Object.assign;function zi(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function Vt(e){return e.trim()}function Bi(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function Ge(e,t){return e.indexOf(t)}function $(e,t){return e.charCodeAt(t)|0}function se(e,t,n){return e.slice(t,n)}function B(e){return e.length}function Xe(e){return e.length}function we(e,t){return t.push(e),e}function Fi(e,t){return e.map(t).join("")}var Ae=1,K=1,Wt=0,O=0,S=0,J="";function Se(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Ae,column:K,length:a,return:""}}function ae(e,t){return Mi(Se("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pi(){return S}function Hi(){return S=O>0?$(J,--O):0,K--,S===10&&(K=1,Ae--),S}function k(){return S=O<Wt?$(J,O++):0,K++,S===10&&(K=1,Ae++),S}function F(){return $(J,O)}function Ce(){return O}function oe(e,t){return se(J,e,t)}function ce(e){switch(e){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 qt(e){return Ae=K=1,Wt=B(J=e),O=0,[]}function Ut(e){return J="",e}function $e(e){return Vt(oe(O-1,Ze(e===91?e+2:e===40?e+1:e)))}function Li(e){for(;(S=F())&&S<33;)k();return ce(e)>2||ce(S)>3?"":" "}function Vi(e,t){for(;--t&&k()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return oe(e,Ce()+(t<6&&F()==32&&k()==32))}function Ze(e){for(;k();)switch(S){case e:return O;case 34:case 39:e!==34&&e!==39&&Ze(S);break;case 40:e===41&&Ze(e);break;case 92:k();break}return O}function Wi(e,t){for(;k()&&e+S!==57;)if(e+S===84&&F()===47)break;return"/*"+oe(t,O-1)+"*"+_e(e===47?e:k())}function qi(e){for(;!ce(F());)k();return oe(e,O)}function Ui(e){return Ut(Ee("",null,null,null,[""],e=qt(e),0,[0],e))}function Ee(e,t,n,r,i,s,a,c,o){for(var f=0,l=0,u=a,g=0,d=0,v=0,h=1,m=1,x=1,w=0,A="",R=i,C=s,T=r,_=A;m;)switch(v=w,w=k()){case 40:if(v!=108&&$(_,u-1)==58){Ge(_+=b($e(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=$e(w);break;case 9:case 10:case 13:case 32:_+=Li(v);break;case 92:_+=Vi(Ce()-1,7);continue;case 47:switch(F()){case 42:case 47:we(Yi(Wi(k(),Ce()),t,n),o);break;default:_+="/"}break;case 123*h:c[f++]=B(_)*x;case 125*h:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+l:x==-1&&(_=b(_,/\f/g,"")),d>0&&B(_)-u&&we(d>32?Gt(_+";",r,n,u-1):Gt(b(_," ","")+";",r,n,u-2),o);break;case 59:_+=";";default:if(we(T=Yt(_,t,n,f,l,i,c,A,R=[],C=[],u),s),w===123)if(l===0)Ee(_,t,T,T,R,s,u,c,C);else switch(g===99&&$(_,3)===110?100:g){case 100:case 108:case 109:case 115:Ee(e,T,T,r&&we(Yt(e,T,T,0,0,i,c,A,i,R=[],u),C),i,C,u,c,r?R:C);break;default:Ee(_,T,T,T,[""],C,0,c,C)}}f=l=d=0,h=x=1,A=_="",u=a;break;case 58:u=1+B(_),d=v;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Hi()==125)continue}switch(_+=_e(w),w*h){case 38:x=l>0?1:(_+="\f",-1);break;case 44:c[f++]=(B(_)-1)*x,x=1;break;case 64:F()===45&&(_+=$e(k())),g=F(),l=u=B(A=_+=qi(Ce())),w++;break;case 45:v===45&&B(_)==2&&(h=0)}}return s}function Yt(e,t,n,r,i,s,a,c,o,f,l){for(var u=i-1,g=i===0?s:[""],d=Xe(g),v=0,h=0,m=0;v<r;++v)for(var x=0,w=se(e,u+1,u=Ii(h=a[v])),A=e;x<d;++x)(A=Vt(h>0?g[x]+" "+w:b(w,/&\f/g,g[x])))&&(o[m++]=A);return Se(e,t,n,i===0?Ue:c,o,f,l)}function Yi(e,t,n){return Se(e,t,n,Ht,_e(Pi()),se(e,2,-2),0)}function Gt(e,t,n,r){return Se(e,t,n,Ye,se(e,0,r),se(e,r+1,-1),r)}function Q(e,t){for(var n="",r=Xe(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Gi(e,t,n,r){switch(e.type){case Di:if(e.children.length)break;case ki:case Ye:return e.return=e.return||e.value;case Ht:return"";case Lt:return e.return=e.value+"{"+Q(e.children,r)+"}";case Ue:e.value=e.props.join(",")}return B(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xi(e){var t=Xe(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function Zi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ki(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ji=function(t,n,r){for(var i=0,s=0;i=s,s=F(),i===38&&s===12&&(n[r]=1),!ce(s);)k();return oe(t,O)},Qi=function(t,n){var r=-1,i=44;do switch(ce(i)){case 0:i===38&&F()===12&&(n[r]=1),t[r]+=Ji(O-1,n,r);break;case 2:t[r]+=$e(i);break;case 4:if(i===44){t[++r]=F()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_e(i)}while(i=k());return t},ji=function(t,n){return Ut(Qi(qt(t),n))},Xt=new WeakMap,es=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Xt.get(r))&&!i){Xt.set(t,!0);for(var s=[],a=ji(n,s),c=r.props,o=0,f=0;o<a.length;o++)for(var l=0;l<c.length;l++,f++)t.props[f]=s[o]?a[o].replace(/&\f/g,c[l]):c[l]+" "+a[o]}}},ts=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Zt(e,t){switch(zi(e,t)){case 5103:return y+"print-"+e+e;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 y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return y+e+be+e+E+e+e;case 6828:case 4268:return y+e+E+e+e;case 6165:return y+e+E+"flex-"+e+e;case 5187:return y+e+b(e,/(\w+).+(:[^]+)/,y+"box-$1$2"+E+"flex-$1$2")+e;case 5443:return y+e+E+"flex-item-"+b(e,/flex-|-self/,"")+e;case 4675:return y+e+E+"flex-line-pack"+b(e,/align-content|flex-|-self/,"")+e;case 5548:return y+e+E+b(e,"shrink","negative")+e;case 5292:return y+e+E+b(e,"basis","preferred-size")+e;case 6060:return y+"box-"+b(e,"-grow","")+y+e+E+b(e,"grow","positive")+e;case 4554:return y+b(e,/([^-])(transform)/g,"$1"+y+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,y+"$1"),/(image-set)/,y+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,y+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,y+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+y+e+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,y+"$1$2")+e;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(B(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+y+"$2-$3$1"+be+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ge(e,"stretch")?Zt(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($(e,t+1)!==115)break;case 6444:switch($(e,B(e)-3-(~Ge(e,"!important")&&10))){case 107:return b(e,":",":"+y)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+y+($(e,14)===45?"inline-":"")+"box$3$1"+y+"$2$3$1"+E+"$2box$3")+e}break;case 5936:switch($(e,t+11)){case 114:return y+e+E+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return y+e+E+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return y+e+E+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return y+e+E+e+e}return e}var ns=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ye:t.return=Zt(t.value,t.length);break;case Lt:return Q([ae(t,{value:b(t.value,"@","@"+y)})],i);case Ue:if(t.length)return Fi(t.props,function(s){switch(Bi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([ae(t,{props:[b(s,/:(read-\w+)/,":"+be+"$1")]})],i);case"::placeholder":return Q([ae(t,{props:[b(s,/:(plac\w+)/,":"+y+"input-$1")]}),ae(t,{props:[b(s,/:(plac\w+)/,":"+be+"$1")]}),ae(t,{props:[b(s,/:(plac\w+)/,E+"input-$1")]})],i)}return""})}},rs=[ns],is=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||rs,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(h)});var o,f=[es,ts];{var l,u=[Gi,Zi(function(h){l.insert(h)})],g=Xi(f.concat(i,u)),d=function(m){return Q(Ui(m),g)};o=function(m,x,w,A){l=w,d(m?m+"{"+x.styles+"}":x.styles),A&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new Ti({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return v.sheet.hydrate(c),v};function ss(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var as={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},os=/[A-Z]|^ms/g,cs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kt=function(t){return t.charCodeAt(1)===45},Jt=function(t){return t!=null&&typeof t!="boolean"},Ke=Ki(function(e){return Kt(e)?e:e.replace(os,"-$&").toLowerCase()}),Qt=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cs,function(r,i,s){return L={name:i,styles:s,next:L},i})}return as[t]!==1&&!Kt(t)&&typeof n=="number"&&n!==0?n+"px":n};function Re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return L={name:i.name,styles:i.styles,next:L},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)L={name:a.name,styles:a.styles,next:L},a=a.next;var c=s.styles+";";return c}return fs(e,t,n)}}var o=n;if(t==null)return o;var f=t[o];return f!==void 0?f:o}function fs(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Re(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":Jt(c)&&(r+=Ke(s)+":"+Qt(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var o=0;o<a.length;o++)Jt(a[o])&&(r+=Ke(s)+":"+Qt(s,a[o])+";");else{var f=Re(e,t,a);switch(s){case"animation":case"animationName":{r+=Ke(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var jt=/label:\s*([^\s;{]+)\s*(;|$)/g,L;function Je(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";L=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Re(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=Re(n,t,e[c]),r){var o=s;i+=o[c]}jt.lastIndex=0;for(var f="",l;(l=jt.exec(i))!==null;)f+="-"+l[1];var u=ss(i)+f;return{name:u,styles:i,next:L}}function en(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var ls=function(t,n,r){var i=t.key+"-"+n.name;t.registered[i]===void 0&&(t.registered[i]=n.styles)},us=function(t,n,r){ls(t,n);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function tn(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function nn(e,t,n){var r=[],i=en(e,r,n);return r.length<2?n:i+t(r)}var hs=function(t){var n=is(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var r=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=Je(f,n.registered,void 0);return us(n,u),n.key+"-"+u.name},i=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=Je(f,n.registered),g="animation-"+u.name;return tn(n,{name:u.name,styles:"@keyframes "+g+"{"+u.styles+"}"}),g},s=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=Je(f,n.registered);tn(n,u)},a=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];return nn(n.registered,r,ds(f))};return{css:r,cx:a,injectGlobal:s,keyframes:i,hydrate:function(o){o.forEach(function(f){n.inserted[f]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:en.bind(null,n.registered),merge:nn.bind(null,n.registered,r)}},ds=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var a in i)i[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},rn=hs({key:"css"}),ps=rn.injectGlobal,gs=rn.css,Qe,sn;function vs(){return sn||(sn=1,Qe=function(t,n){n||(n=[0,""]),t=String(t);var r=parseFloat(t,10);return n[0]=r,n[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Qe}var je,an;function ms(){if(an)return je;an=1;var e=vs();je=i;var t=r("in",document.body);function n(s,a){var c=e(getComputedStyle(s).getPropertyValue(a));return c[0]*i(c[1],s)}function r(s,a){var c=document.createElement("div");c.style.height="128"+s,a.appendChild(c);var o=n(c,"height")/128;return a.removeChild(c),o}function i(s,a){if(!s)return null;switch(a=a||document.body,s=(s+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),s){case"%":return a.clientHeight/100;case"ch":case"ex":return r(s,a);case"em":return n(a,"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 t;case"cm":return t/2.54;case"mm":return t/25.4;case"pt":return t/72;case"pc":return t/6;case"px":return 1}var c=e(s);if(!isNaN(c[0])&&c[1]){var o=i(c[1],a);return typeof o=="number"?c[0]*o:null}return null}return je}ms();function xs(){const e=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function et(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function on(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fe(){}var le=.7,Oe=1/le,j="\\s*([+-]?\\d+)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ys=/^#([0-9a-f]{3,8})$/,bs=new RegExp(`^rgb\\(${j},${j},${j}\\)$`),_s=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),ws=new RegExp(`^rgba\\(${j},${j},${j},${ue}\\)$`),As=new RegExp(`^rgba\\(${P},${P},${P},${ue}\\)$`),Ss=new RegExp(`^hsl\\(${ue},${P},${P}\\)$`),Cs=new RegExp(`^hsla\\(${ue},${P},${P},${ue}\\)$`),cn={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};et(fe,tt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fn,formatHex:fn,formatHex8:$s,formatHsl:Es,formatRgb:ln,toString:ln});function fn(){return this.rgb().formatHex()}function $s(){return this.rgb().formatHex8()}function Es(){return gn(this).formatHsl()}function ln(){return this.rgb().formatRgb()}function tt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ys.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?un(t):n===3?new N(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ne(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ne(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bs.exec(e))?new N(t[1],t[2],t[3],1):(t=_s.exec(e))?new N(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ws.exec(e))?Ne(t[1],t[2],t[3],t[4]):(t=As.exec(e))?Ne(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ss.exec(e))?pn(t[1],t[2]/100,t[3]/100,1):(t=Cs.exec(e))?pn(t[1],t[2]/100,t[3]/100,t[4]):cn.hasOwnProperty(e)?un(cn[e]):e==="transparent"?new N(NaN,NaN,NaN,0):null}function un(e){return new N(e>>16&255,e>>8&255,e&255,1)}function Ne(e,t,n,r){return r<=0&&(e=t=n=NaN),new N(e,t,n,r)}function Rs(e){return e instanceof fe||(e=tt(e)),e?(e=e.rgb(),new N(e.r,e.g,e.b,e.opacity)):new N}function Os(e,t,n,r){return arguments.length===1?Rs(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}et(N,Os,on(fe,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?le:Math.pow(le,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new N(U(this.r),U(this.g),U(this.b),Te(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:hn,formatHex:hn,formatHex8:Ns,formatRgb:dn,toString:dn}));function hn(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}`}function Ns(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}${Y((isNaN(this.opacity)?1:this.opacity)*255)}`}function dn(){const e=Te(this.opacity);return`${e===1?"rgb(":"rgba("}${U(this.r)}, ${U(this.g)}, ${U(this.b)}${e===1?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function U(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Y(e){return e=U(e),(e<16?"0":"")+e.toString(16)}function pn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,n,r)}function gn(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof fe||(e=tt(e)),!e)return new M;if(e instanceof M)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,c=s-i,o=(s+i)/2;return c?(t===s?a=(n-r)/c+(n<r)*6:n===s?a=(r-t)/c+2:a=(t-n)/c+4,c/=o<.5?s+i:2-s-i,a*=60):c=o>0&&o<1?0:a,new M(a,c,o,e.opacity)}function nt(e,t,n,r){return arguments.length===1?gn(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}et(M,nt,on(fe,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?le:Math.pow(le,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new N(rt(e>=240?e-240:e+120,i,r),rt(e,i,r),rt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new M(vn(this.h),ke(this.s),ke(this.l),Te(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Te(this.opacity);return`${e===1?"hsl(":"hsla("}${vn(this.h)}, ${ke(this.s)*100}%, ${ke(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vn(e){return e=(e||0)%360,e<0?e+360:e}function ke(e){return Math.max(0,Math.min(1,e||0))}function rt(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const he=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Ts=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],G=e=>`--vis-${bt(e)?`color${e%he.length}`:e}`;function ks(e,t=.4){const n=nt(e);return n.l=n.l*(1+t),n.formatHex()}function Ds(e,t=.4,n=.6){const r=nt(e);return r.s=r.s*(1-n),r.l=r.l*(1-t),r.formatHex()}const De=10,it=[{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"/>'}],st=[{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 V(e){return`vis-${`pattern-${e.svg?"fill":"marker"}`}-${e.id}`}const Is=e=>`<mask id="${V(e)}">
2
- <pattern id="${e.id}" viewBox="0 0 10 10" width="${De}" height="${De}" patternUnits="userSpaceOnUse">
3
- <rect width="100%" height="100%" fill="#fff"/>
4
- ${e.svg}
5
- </pattern>
6
- <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
7
- </mask>`,Ms=(e,t)=>`<marker id="${V(e)}"
8
- fill="var(${G(t)})"
9
- markerUnits="userSpaceOnUse"
10
- refX="5"
11
- refY="5"
12
- markerWidth="${De}"
13
- markerHeight="${De}">
14
- ${e.marker}
15
- </marker>`;function zs(){const e=it.map(Is).concat(st.map(Ms)).join(""),t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.style.position="fixed",t.style.zIndex="-99999999",t.innerHTML=`<defs>${e}</defs>`,document.body.appendChild(t)}typeof window<"u"&&zs();const Bs=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5;ps`
16
- :root {
17
- label: vis-root-styles;
18
- --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
19
- --vis-font-wh-ratio: ${Bs};
20
- --vis-color-main: var(${G(0)});
21
- --vis-color-main-light: ${ks(he[0])};
22
- --vis-color-main-dark: ${Ds(he[0])};
23
- --vis-color-grey: #2a2a2a;
24
- ${he.map((e,t)=>`${G(t)}: ${e};`)}
25
- ${Ts.map((e,t)=>`--vis-dark-color${t}: ${e};`)}
26
- ${it.map((e,t)=>`
27
- --${V(e)}: url(#${V(e)});
28
- --vis-pattern-fill${t}: var(--${V(e)});
29
- `)}
30
- ${st.map((e,t)=>{var n;return`
31
- --${V(e)}: url(#${V(e)});
32
- --vis-pattern-marker${t}: var(--${V(e)});
33
- --vis-pattern-dasharray${t}: ${(n=e.dashArray)===null||n===void 0?void 0:n.join(" ")};
34
- `})}
35
-
36
- body.theme-dark {
37
- ${he.map((e,t)=>`${G(t)}: var(--vis-dark-color${t});`)}
38
- }
39
-
40
- body.theme-patterns {
41
- ${it.map((e,t)=>`path[style*="fill: var(${G(t)})"] {
42
- mask: var(--vis-pattern-fill${t});
43
- }`)}
44
- ${st.map((e,t)=>`
45
- path[stroke="var(${G(t)})"]:not([style*="fill"]),
46
- path[style*="stroke: var(${G(t)})"]:not([style*="fill"]) {
47
- marker: var(--vis-pattern-marker${t});
48
- stroke-dasharray: var(--vis-pattern-dasharray${t});
49
- }
50
- `)}
51
- }
52
- `;class Fs{constructor(t){this.data=t}get data(){return this._data}set data(t){this._data=t}}var Ie;(function(e){e.X="x",e.Y="y"})(Ie||(Ie={}));var D;(function(e){e.X="x",e.Y="y"})(D||(D={}));var Me;(function(e){e.West="west",e.East="east",e.North="north",e.South="south"})(Me||(Me={}));const Ps=Object.assign(Object.assign({},Pt),{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:Me.North,preventEmptyDomain:null,scaleByDomain:!1});class Hs extends ie{constructor(t,n,r){var i,s;super(t),this._defaultConfig=Ps,this.datamodel=new Fs,this.config=this._defaultConfig,this._clipPathId=xs(),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 a="saturate",c=window.location.href.replace(window.location.hash,"");this.svg.attr("class",gs`
53
- --highlight-filter-id: url(${c}#${a}); // defining a css variable
54
- `),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(o=>o.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const t=this._getMargin();return X(this.containerWidth-t.left-t.right,0,Number.POSITIVE_INFINITY)}get height(){const t=this._getMargin();return X(this.containerHeight-t.top-t.bottom,0,Number.POSITIVE_INFINITY)}setData(t,n){var r,i,s,a;const{components:c,config:o}=this;t&&(this.datamodel.data=t,c.forEach(f=>{f.setData(t)}),(r=o.crosshair)===null||r===void 0||r.setData(t),(i=o.xAxis)===null||i===void 0||i.setData(t),(s=o.yAxis)===null||s===void 0||s.setData(t),(a=o.tooltip)===null||a===void 0||a.hide(),n||this.render())}updateContainer(t,n){super.updateContainer(t),this._removeAllChildren(),this.setData(this.datamodel.data,!0),t.xAxis&&(this.config.xAxis.config.type=Ie.X,this.element.appendChild(t.xAxis.element)),t.yAxis&&(this.config.yAxis.config.type=Ie.Y,this.element.appendChild(t.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=t.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=t.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const s=t.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(t,n){const{config:r}=this;this.components.forEach((i,s)=>{t[s]&&i.setConfig(t[s])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(t,n,r){r&&(this.datamodel.data=r),t&&this.updateContainer(t,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:t}=this;super._preRender(),t.autoMargin&&this._setAutoMargin();const n=te([...this.components,t.xAxis,t.yAxis,t.crosshair,t.annotations]);for(const r of n)r.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,t.xAxis,t.yAxis,t.crosshair)}_render(t){var n,r,i,s,a;const{config:c}=this;super._render();const o=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(t);this._renderAxes(this._firstRender?0:t);const f=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*f).attr("height",this.height+2*f),(n=c.tooltip)===null||n===void 0||n.update();const l=c.crosshair;if(l){const u=this.components.filter(h=>!h.stacked).map(h=>h.config.y),g=this.components.filter(h=>h.stacked).map(h=>h.config.y),d=(r=this.components.find(h=>h.config.baseline))===null||r===void 0?void 0:r.config,v=d==null?void 0:d.baseline;l.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:wt(u),yStacked:wt(g),baseline:v},l.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),l.hide()}(s=c.annotations)===null||s===void 0||s.g.attr("transform",`translate(${o.left},${o.top})`),(a=c.annotations)===null||a===void 0||a.render(),this._firstRender=!1}_updateScales(...t){const n=te(t||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...t){const{config:n}=this;t&&(n.xScale&&t.forEach(r=>r.setScale(D.X,n.xScale)),n.yScale&&t.forEach(r=>r.setScale(D.Y,n.yScale)))}_updateScalesDomain(...t){const{config:n}=this;if(!t)return;const r=t.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(D).forEach(i=>{var s,a,c,o,f,l,u,g;const[d,v]=ti(ri(r.map(C=>C.getDataExtent(i,n.scaleByDomain)))),h=i===D.Y?n.yDomain:n.xDomain,m=i===D.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,x=i===D.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,w=(a=(s=h==null?void 0:h[0])!==null&&s!==void 0?s:d)!==null&&a!==void 0?a:0,A=(o=(c=h==null?void 0:h[1])!==null&&c!==void 0?c:v)!==null&&o!==void 0?o:1,R=[X(w,(f=m==null?void 0:m[0])!==null&&f!==void 0?f:Number.NEGATIVE_INFINITY,(l=m==null?void 0:m[1])!==null&&l!==void 0?l:Number.POSITIVE_INFINITY),X(A,(u=x==null?void 0:x[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(g=x==null?void 0:x[1])!==null&&g!==void 0?g:Number.POSITIVE_INFINITY)];if(R[0]===R[1]){const C=r.some(T=>{var _;return((_=T.datamodel.data)===null||_===void 0?void 0:_.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!C||i===D.Y))&&(R[1]=R[0]+1)}t.forEach(C=>C.setScaleDomain(i,R))})}_updateScalesRange(...t){var n,r,i,s,a,c;const{config:o}=this;if(!t)return;const f=o.yDirection===Me.South,l=[(n=o.padding.left)!==null&&n!==void 0?n:0,this.width-((r=o.padding.right)!==null&&r!==void 0?r:0)],u=[this.height-((i=o.padding.bottom)!==null&&i!==void 0?i:0),(s=o.padding.top)!==null&&s!==void 0?s:0];f&&u.reverse();for(const d of t)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(D.X,(a=o.xRange)!==null&&a!==void 0?a:l),d.setScaleRange(D.Y,(c=o.yRange)!==null&&c!==void 0?c:u);const g=t.map(d=>d.bleed).reduce((d,v)=>{for(const h of Object.keys(d)){const m=h;d[m]<v[m]&&(d[m]=v[m])}return d},{top:0,bottom:0,left:0,right:0});for(const d of t)d.setScaleRange(D.X,[l[0]+g.left,l[1]-g.right]),d.setScaleRange(D.Y,f?[u[0]+g.top,u[1]-g.bottom]:[u[0]-g.bottom,u[1]+g.top])}_renderAxes(t){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();te([n,r]).forEach(a=>{const c=a.getOffset(i);a.g.attr("transform",`translate(${c.left},${c.top})`),a.render(t)})}_setAutoMargin(){const{config:{xAxis:t,yAxis:n}}=this,r=te([...this.components,t,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let s=0;s<i;s+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),te([t,n]).forEach(o=>{o.preRender();const f=o.getRequiredMargin();a.top<f.top&&(a.top=f.top),a.bottom<f.bottom&&(a.bottom=f.bottom),a.left<f.left&&(a.left=f.left),a.right<f.right&&(a.right=f.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:t}}=this;return{top:t.top+this._axisMargin.top,bottom:t.bottom+this._axisMargin.bottom,left:t.left+this._axisMargin.left,right:t.right+this._axisMargin.right}}destroy(){const{components:t,config:{tooltip:n,crosshair:r,annotations:i,xAxis:s,yAxis:a}}=this;super.destroy();for(const c of t)c==null||c.destroy();n==null||n.destroy(),r==null||r.destroy(),i==null||i.destroy(),s==null||s.destroy(),a==null||a.destroy()}}const Ls=Symbol("componentAccessorKey"),Vs=Symbol("tooltipAccessorKey"),Ws=Symbol("crosshairAccessorKey"),qs=Symbol("axisAccessorKey"),Us=Symbol("annotationsAccessorKey");function Ys(e){const t=p.getCurrentInstance(),n=t.attrs;return p.computed(()=>{const r={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{r[p.camelize(s)]=e[p.camelize(s)]}),{...r,...n}})}const Gs=p.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(e,{expose:t}){const n=e,{data:r}=p.toRefs(n),i=Ys(n),s=p.ref(),a=p.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),c=p.ref();return p.watch(r,()=>{s.value&&s.value.setData(r.value,!0)}),p.watchEffect(()=>{var o;a.components.map(f=>f.config),(o=s.value)==null||o.updateContainer({...p.toRaw(i.value),...p.toRaw(a)})}),p.onMounted(()=>{c.value&&(s.value=new Hs(c.value,{...p.toRaw(a)},r.value))}),p.onUnmounted(()=>{var o;return(o=s.value)==null?void 0:o.destroy()}),p.provide(Ls,{data:r,update:o=>a.components=[...a.components,o],destroy:()=>{var o;return a.components=(o=a.components)==null?void 0:o.filter(f=>!f.isDestroyed())}}),p.provide(qs,{data:r,update:o=>a[`${o.config.type}Axis`]=o,destroy:o=>{a[`${o}Axis`]=void 0}}),p.provide(Ws,{data:r,update:o=>a.crosshair=o,destroy:()=>{a.crosshair=void 0}}),p.provide(Vs,{data:r,update:o=>a.tooltip=o,destroy:()=>{a.tooltip=void 0}}),p.provide(Us,{data:r,update:o=>a.annotations=o,destroy:()=>{a.annotations=void 0}}),t({component:s}),(o,f)=>(p.openBlock(),p.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:c,class:"unovis-xy-container"},[p.renderSlot(o.$slots,"default")],512))}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Xs=p.defineComponent({__name:"Area",props:{data:{},xNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1},yNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1}},setup(e){return(t,n)=>(p.openBlock(),p.createBlock(p.unref(Gs),{height:600},{default:p.withCtx(()=>n[0]||(n[0]=[p.createTextVNode(" 123123123 ")])),_:1}))}});var mn=(e=>(e.Top="top",e.Bottom="bottom",e))(mn||{});const Zs=((e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n})(p.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(e){return(t,n)=>(p.openBlock(),p.createElementBlock("button",{class:p.normalizeClass(["button",`button--${t.variant||"primary"}`,`button--${t.size||"medium"}`])},[p.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-52b6ec0c"]]);H.Area=Xs,H.Button=Zs,H.PaginationPosition=mn,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});